/* The sections under a flagship cover (flagship_sections() in inc/flagship.php), shared by the Premium designs
   (2026-11-14). Each design sets the palette on its wrapper (.fx):
     --dk / --dk-img      dark sheets (date, venue, answer, shared sections) and their pattern
     --lt / --lt-img      light sheets (letter, programme, dress code)
     --iv / --iv-2        text on dark, and its quieter tone      --gd     accent on dark (gold)
     --ink / --ink-2      text on light                           --gd-dk  accent on light (rules)   --rb  headings on light
     --gd-ink             text on a gold button                   --nt     the footer
     --fd display face    --fb reading face    --fu interface face
     --mark               a small mark (clip-path polygon) for the programme and the light sheets' rule
   Shared parts (RSVP form, countdown, music button, demo bar) are styled by invite.css through its variables. */

.fx {
  --page: var(--dk); --page-ink: var(--iv); --page-acc: var(--gd); --on-acc: var(--gd-ink);
  position: relative; max-width: 480px; margin: 0 auto; min-height: 100svh; overflow-x: clip; background: var(--nt);
}
@media (min-width: 481px) { .fx { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gd) 16%, transparent), 0 30px 120px rgba(0, 0, 0, .6); } }
.fx :focus-visible { outline: 2px solid var(--gd); outline-offset: 3px; }
.fx .ip-main { outline: none; }
.fx .ip-main a { color: inherit; }

.fx .ip-sec { position: relative; padding: 88px 32px 90px; }
.fx .ip-h { margin: 0 0 30px; font: 400 34px/1.12 var(--fd); color: var(--gd); }
.fx .ip-h--big { font-size: 44px; line-height: 1.05; color: var(--iv); }
.fx .ip-lead { margin: 0; font: 400 25px/1.4 var(--fb); }
.fx .ip-note { margin: -16px 0 28px; font: italic 400 19px/1.4 var(--fb); color: var(--iv-2); }

/* light sheets: the letter, the programme, the dress code; a rule with the design's mark at the top */
.fx .ip-letter, .fx .ip-prog, .fx .ip-dress { background-color: var(--lt); background-image: var(--lt-img); color: var(--ink); }
.fx .ip-letter::before, .fx .ip-prog::before, .fx .ip-dress::before { content: ""; position: absolute; left: 32px; right: 32px; top: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gd-dk) 18%, var(--gd-dk) 44%, transparent 44% 56%, var(--gd-dk) 56%, var(--gd-dk) 82%, transparent); opacity: .7; }
.fx .ip-letter::after, .fx .ip-prog::after, .fx .ip-dress::after { content: ""; position: absolute; left: 50%; top: 30px; width: 13px; height: 13px; margin-left: -6.5px;
  background: var(--gd-dk); clip-path: var(--mark); }
.fx .ip-letter .ip-h, .fx .ip-prog .ip-h, .fx .ip-dress .ip-h { color: var(--rb); }
.fx .ip-to { margin: 0 0 20px; font: italic 400 23px/1.3 var(--fb); color: var(--rb); }
.fx .ip-letter-text { margin: 0; font: 400 25px/1.45 var(--fb); text-wrap: pretty; }
.fx .ip-sign { margin: 32px 0 0; padding-left: 40px; position: relative; font: italic 400 23px/1.3 var(--fb); }
.fx .ip-sign::before { content: ""; position: absolute; left: 0; top: .7em; width: 28px; height: 1px; background: var(--gd-dk); }
.fx .ip-photo { margin: 52px auto 0; max-width: 360px; padding: 7px; border: 1px solid color-mix(in srgb, var(--gd-dk) 55%, transparent); border-radius: var(--photo-r, 2px); }
.fx .ip-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--photo-r-in, 1px); }
.fx .ip-dress .ip-lead { color: var(--ink); }

/* dark sheets: the date, the venue, the answer */
.fx .ip-date, .fx .ip-rsvp, .fx .ip-place { background-color: var(--dk); background-image: var(--dk-img); background-size: var(--dk-size, auto); }
.fx .ip-place { background-color: var(--dk-2, var(--dk)); }
.fx .ip-date { text-align: center; }
/* the day in foil: the design's own --foil, else a foil made of its gold (2026-11-21: Ayna, Samovar, Göygöl and Bulud have
   no --foil, so the number was clipped to nothing and the guests saw no day) */
.fx .ip-day { margin: 0 0 6px; font: 400 clamp(130px, 40vw, 188px)/.86 var(--fd); letter-spacing: -.02em; font-variant-numeric: lining-nums;
  background: var(--foil, linear-gradient(115deg, var(--gd) 0%, color-mix(in srgb, var(--gd) 55%, #fff) 30%, var(--gd) 52%,
    color-mix(in srgb, var(--gd) 62%, #fff) 74%, var(--gd) 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx .ip-month { margin: 0; font: italic 400 34px/1.15 var(--fb); }
.fx .ip-time { margin: 12px 0 0; font: 400 14px/1.5 var(--fu); letter-spacing: .18em; text-transform: uppercase; color: var(--gd); }
.fx .ip-cd { margin: 40px auto 0; max-width: none; gap: 0; border-top: 1px solid color-mix(in srgb, var(--gd) 40%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gd) 40%, transparent); padding: 18px 0; }
.fx .ip-cd div { padding: 0; background: none; border-radius: 0; }
.fx .ip-cd div + div { border-left: 1px solid color-mix(in srgb, var(--gd) 25%, transparent); }
.fx .ip-cd span { font: 400 32px/1 var(--fd); font-variant-numeric: lining-nums tabular-nums; }
.fx .ip-cd small { font: 400 12px/1.4 var(--fu); letter-spacing: .08em; opacity: .75; margin-top: 6px; }
.fx .ip-date .cd-done { margin-top: 36px; font: italic 400 28px/1.2 var(--fb); color: var(--gd); }
.fx .ip-date .ip-btns { margin-left: auto; margin-right: auto; }

/* programme: a line with the design's mark at each moment */
.fx .ip-thread { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; }
.fx .ip-thread::before { content: ""; position: absolute; left: 7px; top: 16px; bottom: 30px; width: 1px; background: var(--gd-dk); opacity: .55; }
.fx .ip-thread li { position: relative; padding-bottom: 30px; }
.fx .ip-thread li:last-child { padding-bottom: 0; }
.fx .ip-knot { position: absolute; left: -36px; top: 11px; width: 15px; height: 15px; background: var(--rb); clip-path: var(--mark); }
.fx .ip-thread time { display: block; font: 400 34px/1 var(--fd); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.fx .ip-thread span { display: block; margin-top: 6px; font: 400 21px/1.4 var(--fb); }

/* venue */
.fx .ip-venue { margin: 0; font: 400 36px/1.1 var(--fd); text-wrap: balance; }
.fx .ip-addr { margin: 12px 0 0; font: 400 19px/1.45 var(--fb); color: var(--iv-2); }

/* buttons */
.fx .ip-btns { display: grid; gap: 10px; margin-top: 32px; max-width: 330px; }
.fx .ip-btn, .fx .inv-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px;
  border: 1px solid color-mix(in srgb, var(--iv) 36%, transparent); border-radius: var(--btn-r, 2px); color: var(--iv); text-decoration: none;
  font: 500 16px/1 var(--fu); background: color-mix(in srgb, var(--iv) 5%, transparent); cursor: pointer;
}
.fx .ip-btn:hover, .fx .inv-btn:hover { border-color: var(--gd); }
.fx .ip-btn .icon, .fx .inv-btn .icon { width: 18px; height: 18px; color: var(--gd); }
.fx .ip-btn--line { border-color: color-mix(in srgb, var(--gd) 75%, transparent); }

/* RSVP: the shared form on the dark sheet, light fields */
.fx .ip-rsvp .rsvp { max-width: none; margin-top: 0; gap: 22px; font-family: var(--fu); }
.fx .ip-rsvp .rsvp-opts { gap: 10px; }
.fx .ip-rsvp .rsvp-opts span { text-align: left; padding: 16px 20px; border-radius: var(--btn-r, 2px); border-color: color-mix(in srgb, var(--iv) 32%, transparent); font: 400 21px/1.25 var(--fb); }
.fx .ip-rsvp .rsvp-opts input:checked + span { border-color: var(--gd); background: color-mix(in srgb, var(--gd) 16%, transparent); color: var(--iv); box-shadow: inset 4px 0 0 var(--gd); }
.fx .ip-rsvp .rsvp-field { font: 500 15px/1.3 var(--fu); color: var(--iv-2); }
.fx .ip-rsvp .rsvp-field input, .fx .ip-rsvp .rsvp-field textarea {
  border-radius: var(--btn-r, 2px); border: 1px solid transparent; background: var(--field, #f6ecd9); color: var(--field-ink, #1d1b2b); font: 400 18px/1.4 var(--fu); }
.fx .ip-rsvp .rsvp-field input:focus, .fx .ip-rsvp .rsvp-field textarea:focus { border-color: var(--gd); box-shadow: 0 0 0 2px var(--gd); }
.fx .ip-rsvp .stepper { border-color: color-mix(in srgb, var(--iv) 32%, transparent); }
.fx .ip-rsvp .stepper button { background: color-mix(in srgb, var(--iv) 10%, transparent); color: var(--iv); }
.fx .ip-rsvp .stepper output { color: var(--iv); font: 400 21px/1 var(--fd); }
.fx .ip-rsvp .inv-btn--solid { min-height: 56px; font: 600 17px/1 var(--fu); background: var(--gd); color: var(--gd-ink); border-color: var(--gd); }
.fx .ip-rsvp .rsvp-err { color: var(--gd); }
.fx .ip-rsvp .rsvp-done { justify-items: start; text-align: left; }
.fx .ip-rsvp .rsvp-done .inv-big { margin: 0; font: italic 400 34px/1.15 var(--fb); color: var(--gd); }
.fx .ip-rsvp .inv-muted { opacity: .78; }
.fx .ip-rsvp .rsvp-ev { color: var(--gd); }

.fx .ip-foot { padding: 46px 30px 120px; text-align: center; background: var(--nt); font: 400 14px/1.4 var(--fu); color: var(--iv-2); }
.fx .ip-foot p { margin: 0; }
.fx .ip-foot a { color: var(--gd); }
.fx .ip-foot svg { display: block; width: 24px; height: 24px; margin: 0 auto 14px; }

.fx .demo-bar { font-family: var(--fu); background: var(--nt); border: 1px solid color-mix(in srgb, var(--gd) 40%, transparent); }
.fx .demo-bar a { background: var(--gd); color: var(--gd-ink); border-radius: var(--btn-r, 2px); }

/* shared sections (seating, album, thank-you photos) on the dark sheet */
.fx .inv-sec { position: relative; padding: 88px 32px 90px; text-align: left; display: block; border-top: 0;
  background-color: var(--dk-2, var(--dk)); background-image: var(--dk-img); background-size: var(--dk-size, auto); }
.fx .inv-h { margin: 0 0 24px; font: 400 34px/1.12 var(--fd); color: var(--gd); }
.fx .inv-text { margin: 0 0 14px; max-width: none; font: 400 19px/1.5 var(--fb); }
.fx .inv-muted { color: var(--iv-2); }
.fx .inv-big { margin: 0; font: 400 30px/1.2 var(--fd); }
.fx .inv-btn--solid { background: var(--gd); border-color: var(--gd); color: var(--gd-ink); font-weight: 600; }
.fx .inv-btn--solid .icon { color: currentColor; }
.fx .inv-upload { margin-top: 18px; max-width: 330px; width: fit-content; }
.fx .seat-q { border-radius: var(--btn-r, 2px); background: var(--field, #f6ecd9); color: var(--field-ink, #1d1b2b); border-color: transparent; font: 400 18px/1 var(--fu); }
.fx .seat-mine { color: var(--gd); }
.fx .seat-pick { border-radius: var(--btn-r, 2px); background: transparent; color: var(--iv); }
.fx .ip-shots { padding-top: 64px; background-color: var(--dk-2, var(--dk)); background-image: var(--dk-img); background-size: var(--dk-size, auto); }
.fx .thx-grid img { border-radius: 1px; }
.fx .ip-thx-text { margin: 18px 0 0; font: 400 21px/1.5 var(--fb); }
.fx .ip-letter .thx-t { font: inherit; }
.fx .ip-ev + .ip-ev { margin-top: 48px; padding-top: 40px; border-top: 1px solid color-mix(in srgb, var(--gd) 30%, transparent); }
.fx .ip-ev-t { margin: 0 0 6px; font: italic 400 28px/1.15 var(--fb); color: var(--gd); }
.fx .ip-ev-d { margin: 0 0 18px; font: 400 19px/1.45 var(--fb); color: var(--iv-2); }
.fx .inv-ribbon { background: var(--gd); color: var(--gd-ink); }
.is-video .inv-langs, .is-video .inv-music, .is-video .demo-bar { display: none !important; }
.is-video .fx { max-width: none; } /* the story video (540 px wide): edge to edge */

/* the opening's frame, the same in each design: fixed over the page, words at the top, the button at the foot */
.fx-open { display: none; }
.js .fx-open {
  display: block; position: fixed; inset: 0; z-index: 40; overflow: hidden; color: var(--iv);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.js .fx-open.is-gone { display: none; }
.js .fx-open:not(.is-gone) ~ .inv-music, .js .fx-open:not(.is-gone) ~ .demo-bar,
.js .fx-open:not(.is-gone) ~ .inv-langs, .js .fx-open:not(.is-gone) ~ .inv-ribbon { display: none; }
.fx-open.is-play { cursor: default; }
.fx-cam { position: absolute; inset: 0; perspective: var(--P, 1000px); perspective-origin: var(--ox, 50%) var(--oy, 50%); opacity: 0; }
.fx-open.is-ready .fx-cam { opacity: 1; }
.fx-cam .fx-3d { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: var(--ox, 50%) var(--oy, 50%); pointer-events: none; }
.fx-look { transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.fx-world { position: absolute; left: var(--ox, 50%); top: var(--oy, 50%); width: 0; height: 0; transform-style: preserve-3d; }
.fx-f { position: absolute; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fx-open-t { position: absolute; left: 16px; right: 16px; top: max(5.5svh, calc(env(safe-area-inset-top) + 18px)); margin: 0; text-align: center;
  font: italic 400 clamp(21px, 6vw, 27px)/1.25 var(--fb); color: var(--iv); text-shadow: 0 2px 16px rgba(0, 0, 0, .6); pointer-events: none; }
.fx-open-name { display: block; margin-top: 6px; font: 400 clamp(28px, 8.4vw, 38px)/1.12 var(--fd); font-style: normal; color: var(--gd); }
.fx-open-foot { position: absolute; left: 16px; right: 16px; bottom: max(4.5svh, calc(env(safe-area-inset-bottom) + 16px)); margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fx-btn { padding: 14px 30px; border: 1px solid var(--gd); border-radius: var(--btn-r, 2px); background: color-mix(in srgb, var(--gd) 14%, transparent); color: var(--iv);
  font: 500 16px/1 var(--fu); letter-spacing: .02em; cursor: pointer; box-shadow: 0 0 30px -8px color-mix(in srgb, var(--gd) 50%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fx-btn:hover { background: color-mix(in srgb, var(--gd) 26%, transparent); }
.fx-open-hint { margin: 0; text-align: center; font: italic 400 16px/1.3 var(--fb); color: var(--iv-2); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.js .fx-open:not(.is-ready) .fx-open-t, .js .fx-open:not(.is-ready) .fx-open-foot { opacity: 0; }
@media (max-height: 520px) {
  .fx-open-hint { display: none; }
  .fx-open-t { top: 10px; font-size: 19px; }
  .fx-open-name { display: inline; margin: 0 0 0 .3em; font-size: 22px; }
  .fx-open-foot { bottom: 10px; }
  .fx-btn { padding: 11px 24px; }
}
/* motes in the light (flat, over the scene); each design colours them */
.fx-dust { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.fx-dust i { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff7de 0 22%, rgba(255, 210, 130, .7) 45%, transparent 70%); }
.fx-dust i:nth-child(3n) { width: 13px; height: 13px; margin: -6.5px; }

/* the seal over the date (FLAGSHIPS 'seal' => the symbol drawn on it; flagship_sections(), invite.js): pressed and held,
   its ring fills (--hold, 0–1) until it breaks in two and the date rises. «Muğam gecəsi», «Qız qalası gecəsi». */
.ip-seal-wrap { display: none; }
.js .ip-seal-wrap { position: relative; display: grid; justify-items: center; gap: 18px; margin: 4px auto 0; }
.js .ip-date--sealed:not(.is-open) .ip-date-body { display: none; }
.ip-date--sealed.is-open .ip-seal, .ip-date--sealed.is-open .ip-seal-hint { visibility: hidden; height: 0; margin: 0; }
.ip-seal { --hold: 0; position: relative; width: 148px; height: 148px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  touch-action: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.ip-seal svg { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45));
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.ip-seal.is-holding svg { transform: scale(.94); }
.ip-seal-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--gd) calc(var(--hold) * 360deg), color-mix(in srgb, var(--gd) 18%, transparent) 0);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
.ip-seal:not(.is-holding):not(:hover) .ip-seal-ring { animation: mg-call 2.6s ease-in-out infinite; }
@keyframes mg-call { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.05); opacity: 1; } }
.ip-seal-hint { margin: 0; font: italic 400 19px/1.35 var(--fb); color: var(--iv-2); max-width: 24ch; }
.ip-seal-half { position: absolute; left: 50%; top: 14px; width: 120px; height: 120px; margin-left: -60px; pointer-events: none; }
.ip-seal-half--l { clip-path: polygon(0 0, 54% 0, 46% 100%, 0 100%); }
.ip-seal-half--r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 46% 100%); }
@media (prefers-reduced-motion: reduce) { .ip-seal-ring { animation: none !important; } }
/* the date gets the focus when its seal breaks (for screen readers); it is not a control, so no ring */
.fx .ip-date-body:focus { outline: none; }
