@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=Pinyon+Script&display=swap");

/* ════════════════════════════════════════════
   TOKENS — "A Timeless Javanese Romance"
   ════════════════════════════════════════════ */
:root {
  --ink:        #0C0907;
  --gold:       #B0893A;
  --gold-soft:  #CBA862;
  --gold-deep:  #8A6B2C;

  --on:         #DCCFB6;
  --on-dim:     rgba(220,207,182,.55);
  --cream:      #E7D8BD;

  --maxw: 600px;
  --app-h: 100svh;              /* JS locks this to window.innerHeight */
  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-label:   "Cinzel", serif;
  --f-script:  "Pinyon Script", cursive;
  --ease: cubic-bezier(.22,.61,.36,1);
  --slide: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #060403;
  color: var(--on);
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.7;
  overflow: hidden;
}

img { display: block; max-width: 100%; }
button, a, input, textarea, select { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }

/* ════════════════════════════════════════════
   DECK — scroll-snap swipe
   ════════════════════════════════════════════ */
.deck {
  position: relative;
  width: min(100%, var(--maxw));
  height: var(--app-h);
  height: 100dvh;
  margin: 0 auto;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  background: var(--ink);
  box-shadow: 0 0 120px rgba(0,0,0,.7);
}
.deck::-webkit-scrollbar { display: none; }
body.is-locked .deck { overflow: hidden; }

/* ── Panel ── */
.panel {
  position: relative;
  height: var(--app-h);
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  text-align: center;
  isolation: isolate;
}

.panel__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(.9) brightness(.92);
  transform: scale(1.08);
  transition: transform 7s var(--ease), opacity 1.2s var(--ease);
  opacity: .55;
}
.panel.is-active .panel__bg { transform: scale(1.0); opacity: 1; }
.panel__bg--bw { filter: grayscale(1) contrast(1.02) brightness(.86); }
.panel__bg--blur { filter: saturate(.85) brightness(.72) blur(3px); transform: scale(1.14); }
.panel.is-active .panel__bg--blur { transform: scale(1.08); }

/* ── Rotating background set ── */
.panel__bgset { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.panel__bgset img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(.92) brightness(.9);
  transition: opacity 1.2s var(--ease);
  transform: translateZ(0);
  backface-visibility: hidden;
}
.panel__bgset img.is-shown { opacity: 1; }

.panel__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,6,4,.38), rgba(8,6,4,.18) 38%, rgba(8,6,4,.24) 62%, rgba(8,6,4,.56)),
    radial-gradient(125% 80% at 50% 46%, transparent 40%, rgba(8,6,4,.3) 100%);
}
.panel__veil--deep {
  background:
    linear-gradient(180deg, rgba(7,5,3,.45), rgba(7,5,3,.3) 45%, rgba(7,5,3,.6)),
    radial-gradient(120% 75% at 50% 46%, transparent 34%, rgba(7,5,3,.34) 100%);
}
/* portrait veil: keep the centre (faces) clear, darken only top & bottom */
.panel__veil--bottom {
  background: linear-gradient(180deg, rgba(8,6,4,.52) 0%, rgba(8,6,4,.08) 22%, rgba(8,6,4,0) 42%, rgba(8,6,4,0) 56%, rgba(8,6,4,.38) 76%, rgba(8,6,4,.72) 100%);
}

/* uniform thin dark overlay on EVERY section — even tone, richer/luxe feel */
.panel__veil::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(7,5,3,.14);
}

/* ── Panel inner + reveal ── */
.panel__inner {
  position: relative; z-index: 2;
  width: min(100% - 52px, 440px);
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 92px 0 96px;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.panel__inner::-webkit-scrollbar { display: none; }
.panel__inner--wide { width: 100%; padding-left: 0; padding-right: 0; }

/* split: title pinned to top, description pinned to bottom (faces stay clear) */
.panel__inner--split {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding-top: max(7svh, calc(env(safe-area-inset-top) + 60px));
  padding-bottom: max(7svh, calc(env(safe-area-inset-bottom) + 56px));
}
.panel__inner--split .lead,
.panel__inner--split .tail { width: 100%; }

/* top-aligned (verse) */
.panel__inner--top { margin-bottom: auto; padding-top: 11svh; }

.panel__inner > * {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--slide), transform 1.1s var(--slide);
}
.panel.is-active .panel__inner > * { opacity: 1; transform: none; }
.panel.is-active .panel__inner > *:nth-child(2) { transition-delay: .12s; }
.panel.is-active .panel__inner > *:nth-child(3) { transition-delay: .22s; }
.panel.is-active .panel__inner > *:nth-child(4) { transition-delay: .30s; }
.panel.is-active .panel__inner > *:nth-child(5) { transition-delay: .38s; }
.panel.is-active .panel__inner > *:nth-child(6) { transition-delay: .46s; }

/* ── Panel number plate ── */
.panel__no {
  position: absolute; top: 26px; right: 26px; z-index: 3;
  font-family: var(--f-label);
  font-size: .58rem;
  letter-spacing: .28em;
  color: var(--on-dim);
}
.panel__no::before { content: "— "; color: var(--gold); }

/* ════════════════════════════════════════════
   PER-SECTION LUXURY HAIRLINE FRAMES
   (cover keeps its own ornate frame)
   Six subtle gold treatments — assigned so that
   neighbouring sections never share a style.
   ════════════════════════════════════════════ */

/* F1 · double concentric hairline */
.frame-f1::after { content:""; position:absolute; inset:13px; z-index:3; pointer-events:none; border:1px solid rgba(203,168,98,.22); }
.frame-f1::before { content:""; position:absolute; inset:19px; z-index:3; pointer-events:none; border:1px solid rgba(203,168,98,.12); }

/* F2 · corner brackets only */
.frame-f2::after {
  content:""; position:absolute; inset:14px; z-index:3; pointer-events:none;
  --c:rgba(203,168,98,.65); --l:26px;
  background:
    linear-gradient(var(--c),var(--c)) left top     / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) left top     / 1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) right top    / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) right top    / 1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) left bottom  / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) left bottom  / 1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) right bottom / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) right bottom / 1px var(--l) no-repeat;
}

/* F3 · top & bottom centred fading rules */
.frame-f3::after  { content:""; position:absolute; left:30px; right:30px; top:18px;    height:1px; z-index:3; pointer-events:none; background:linear-gradient(90deg,transparent,rgba(203,168,98,.5) 28%,rgba(203,168,98,.5) 72%,transparent); }
.frame-f3::before { content:""; position:absolute; left:30px; right:30px; bottom:18px; height:1px; z-index:3; pointer-events:none; background:linear-gradient(90deg,transparent,rgba(203,168,98,.5) 28%,rgba(203,168,98,.5) 72%,transparent); }

/* F4 · left & right vertical rules */
.frame-f4::after  { content:""; position:absolute; top:30px; bottom:30px; left:18px;  width:1px; z-index:3; pointer-events:none; background:linear-gradient(180deg,transparent,rgba(203,168,98,.42) 24%,rgba(203,168,98,.42) 76%,transparent); }
.frame-f4::before { content:""; position:absolute; top:30px; bottom:30px; right:18px; width:1px; z-index:3; pointer-events:none; background:linear-gradient(180deg,transparent,rgba(203,168,98,.42) 24%,rgba(203,168,98,.42) 76%,transparent); }

/* F5 · hairline border + bright corner brackets */
.frame-f5::after { content:""; position:absolute; inset:13px; z-index:3; pointer-events:none; border:1px solid rgba(203,168,98,.18); }
.frame-f5::before {
  content:""; position:absolute; inset:13px; z-index:3; pointer-events:none;
  --c:rgba(203,168,98,.75); --l:22px;
  background:
    linear-gradient(var(--c),var(--c)) left top     / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) left top     / 1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) right top    / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) right top    / 1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) left bottom  / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) left bottom  / 1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) right bottom / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) right bottom / 1px var(--l) no-repeat;
}

/* F6 · hairline border + small corner dots */
.frame-f6::after { content:""; position:absolute; inset:13px; z-index:3; pointer-events:none; border:1px solid rgba(203,168,98,.2); }
.frame-f6::before {
  content:""; position:absolute; inset:9px; z-index:3; pointer-events:none;
  --c:rgba(203,168,98,.8);
  background:
    radial-gradient(circle, var(--c) 0 1.7px, transparent 2.3px) left top     / 9px 9px no-repeat,
    radial-gradient(circle, var(--c) 0 1.7px, transparent 2.3px) right top    / 9px 9px no-repeat,
    radial-gradient(circle, var(--c) 0 1.7px, transparent 2.3px) left bottom  / 9px 9px no-repeat,
    radial-gradient(circle, var(--c) 0 1.7px, transparent 2.3px) right bottom / 9px 9px no-repeat;
}

/* F-TOP · single thin fading line at the top only (gallery) */
.frame-top::after {
  content:""; position:absolute; left:32px; right:32px; top:18px; height:1px; z-index:3; pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(203,168,98,.55) 30%,rgba(203,168,98,.55) 70%,transparent);
}

/* ════════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════════ */
.kicker {
  margin: 0;
  font-family: var(--f-label);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-indent: .44em;
}
.display {
  margin: .3em 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 10.5vw, 3.5rem);
  line-height: 1.04;
  color: var(--cream);
}
.muted { color: var(--on-dim); font-size: .98rem; }
.lede {
  margin: 1.3em auto 0;
  max-width: 36ch;
  font-size: 1.06rem;
  color: var(--on);
}
.lede--light { color: var(--cream); }
.center { text-align: center; }

.rule { width: 1px; height: 50px; margin: 22px auto; background: linear-gradient(180deg, transparent, rgba(203,168,98,.7), transparent); }
.rule--gold { height: 36px; background: linear-gradient(180deg, transparent, var(--gold-soft), transparent); }

.amp { font-family: var(--f-script); color: var(--gold-soft); }

/* ════════════════════════════════════════════
   COVER (panel 01)
   ════════════════════════════════════════════ */
.panel.panel--cover .panel__bg,
.panel.panel--cover.is-active .panel__bg {
  filter: sepia(.14) saturate(.86) brightness(.9);
  object-position: center 74%;
  transform: scale(1.24);
  transform-origin: 50% 76%;
}
.panel__frame {
  position: absolute;
  inset: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 8vw, 50px) clamp(24px, 6vw, 38px);
  border: 1px solid rgba(203,168,98,.42);
  box-shadow: inset 0 0 60px rgba(0,0,0,.34);   /* soft inner vignette only */
}
/* Corner brackets */
.panel__frame::before {
  content: ""; position: absolute; inset: 11px; pointer-events: none;
  --c: rgba(203,168,98,.85); --l: 26px;
  background:
    linear-gradient(var(--c),var(--c)) left top    / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) left top    / 1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) right top   / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) right top   / 1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) left bottom / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) left bottom / 1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) right bottom/ var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) right bottom/ 1px var(--l) no-repeat;
}
/* Diamond crests (top & bottom centre) */
.frame__orn {
  position: absolute; left: 50%; z-index: 3;
  width: 8px; height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold-soft);
  box-shadow: 0 0 12px rgba(203,168,98,.7);
  pointer-events: none;
}
.frame__orn--top { top: -4px; }
.frame__orn--bottom { bottom: -4px; }
.panel--cover .panel__inner {
  overflow: visible; padding: 0; width: 100%;
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.cover__foot { width: 100%; margin-bottom: 6vh; }
.panel--cover .names { margin-top: 10vh; }
.cover__top { display: flex; justify-content: center; align-items: baseline; }

.names {
  margin: 0 0 26px;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 14vw, 4rem);
  line-height: .94;
  color: var(--cream);
  text-shadow: 0 16px 44px rgba(0,0,0,.55);
}
.names span { display: block; }
.names .amp { font-size: .54em; margin: -.02em 0; }
.cover__date { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 24px; }
.cover__date span { font-family: var(--f-label); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.cover__date em { font-style: normal; font-family: var(--f-label); font-size: 1.04rem; letter-spacing: .26em; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.7); }
.invitee { margin-bottom: 24px; }
.invitee__label { margin: 0; font-size: .9rem; color: var(--on-dim); }
.invitee__name { margin: 6px 0 0; font-size: 1.3rem; font-weight: 500; color: var(--cream); }

.cover__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); }
.cover__hint span { display: block; width: 1px; height: 34px; background: linear-gradient(180deg, var(--gold-soft), transparent); animation: hintpulse 2.2s var(--ease) infinite; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  border: 1px solid var(--gold);
  font-family: var(--f-label);
  font-size: .62rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: color .4s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 50%, var(--gold-soft));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.btn--solid { color: var(--gold-soft); text-shadow: 0 1px 10px rgba(0,0,0,.65); background: rgba(12,9,7,.3); }
.btn--solid::before { display: none; }
.btn--solid:hover { color: var(--cream); background: rgba(12,9,7,.5); }
.btn--ghost { color: var(--gold-soft); margin-top: 22px; }
.btn--ghost:hover { color: var(--ink); }
.btn--ghost:hover::before { transform: scaleX(1); }

/* ════════════════════════════════════════════
   CONTENT BLOCKS
   ════════════════════════════════════════════ */
.arabic { margin: 20px 0 0; font-size: 1.6rem; line-height: 1.9; color: var(--cream); direction: rtl; }
.salam { margin: 0; font-style: italic; font-size: 1.14rem; color: var(--gold-soft); }

.name-display {
  margin: 0 0 .3em;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 8.5vw, 2.7rem);
  line-height: 1.06;
  color: var(--cream);
  text-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.panel--portrait .muted { max-width: 30ch; margin-inline: auto; }
#bride .panel__bgset img { object-position: 50% 62%; }
#groom .panel__bgset img { object-position: 50% 48%; }

.poem {
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  font-weight: 300;
  line-height: 1.32;
}
.poem em { color: var(--gold-soft); font-style: italic; font-weight: 300; }

/* Q.S. Ar-Rum — smaller, sits high so the photo stays visible */
.quote { margin: 0; font-style: italic; font-size: clamp(.98rem, 3.8vw, 1.16rem); line-height: 1.72; color: var(--cream); }
.quote__ref { margin: 18px 0 0; font-family: var(--f-label); font-size: .58rem; letter-spacing: .3em; color: var(--gold-soft); }

/* ── Gallery ── */
.panel--gallery .panel__inner { display: flex; flex-direction: column; justify-content: center; }
.panel--gallery header { margin-bottom: 22px; padding: 0 26px; }
.gallery__rail {
  display: flex; gap: 14px;
  padding: 4px clamp(26px, 8vw, 54px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior: contain;
  touch-action: pan-x;
}
.gallery__rail::-webkit-scrollbar { display: none; }
.gallery__fig {
  flex: 0 0 auto;
  height: 52svh;
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(203,168,98,.32);
  padding: 6px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
}
.gallery__fig img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); pointer-events: none; }
.swipe { margin: 22px auto 0; font-family: var(--f-label); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--on-dim); }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(4,3,2,.94);
  backdrop-filter: blur(6px);
  padding: env(safe-area-inset-top) 12px env(safe-area-inset-bottom);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 92vw; max-height: 84svh;
  object-fit: contain;
  border: 1px solid rgba(203,168,98,.4);
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
}
.lightbox__close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 18px;
  width: 44px; height: 44px;
  background: transparent; border: none;
  font-size: 2.2rem; line-height: 1; color: var(--gold-soft); cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 64px;
  background: rgba(12,9,7,.4); border: 1px solid rgba(203,168,98,.35);
  color: var(--gold-soft); font-size: 1.8rem; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

/* ── Save the date ── */
.bigdate { margin: 0 0 8px; }
.bigdate__dow, .bigdate__mo { display: block; font-family: var(--f-label); font-size: .76rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-soft); }
.bigdate__num { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(6rem, 36vw, 9rem); line-height: .82; letter-spacing: .03em; color: var(--gold-soft); margin: 6px 0; text-shadow: 0 14px 40px rgba(0,0,0,.5); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 340px; margin: 26px auto 0; }
.cd { border: 1px solid rgba(203,168,98,.3); background: rgba(8,6,4,.25); padding: 14px 6px 11px; backdrop-filter: blur(2px); }
.cd strong { display: block; font-family: var(--f-display); font-size: 1.85rem; font-weight: 500; color: var(--cream); font-variant-numeric: tabular-nums; }
.cd span { display: block; margin-top: 3px; font-family: var(--f-label); font-size: .5rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dim); }

/* ── Agenda ── */
.agenda { margin-top: 0; }
.agenda__item { padding: 6px 0; }
.agenda__item h3 { margin: 6px 0 6px; font-family: var(--f-display); font-weight: 500; font-size: 1.95rem; color: var(--cream); }
.agenda__time { margin: 0; font-family: var(--f-label); font-size: .8rem; letter-spacing: .14em; color: var(--gold-soft); }
.agenda__rule { height: 1px; width: 56%; margin: 18px auto; background: linear-gradient(90deg, transparent, rgba(203,168,98,.45), transparent); }

/* ── Forms ── */
.form { display: grid; gap: 11px; margin-top: 22px; text-align: left; }
.form input, .form textarea, .form select {
  width: 100%; padding: 14px 15px;
  border: 1px solid rgba(203,168,98,.34);
  background: rgba(10,7,4,.42);
  backdrop-filter: blur(3px);
  outline: none; font-size: 1rem;
  color: var(--cream);
  transition: border-color .3s var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--gold-soft); }
.form textarea { min-height: 84px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--on-dim); }
.form .btn { width: 100%; margin-top: 2px; }
.note { min-height: 18px; margin: 2px 0 0; text-align: center; font-size: .9rem; color: var(--gold-soft); font-style: italic; }

/* ── Gift ── */
.cards { display: grid; gap: 12px; margin-top: 0; }
.acct { border: 1px solid rgba(203,168,98,.32); background: rgba(8,6,4,.3); backdrop-filter: blur(3px); padding: 18px 16px; }
.acct__bank { margin: 0; font-family: var(--f-label); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft); }
.acct__no { margin: 8px 0 5px; font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .06em; color: var(--cream); font-variant-numeric: tabular-nums; -webkit-text-fill-color: var(--cream); pointer-events: none; }
.copy { margin-top: 11px; padding: 8px 18px; background: transparent; border: 1px solid rgba(203,168,98,.5); font-family: var(--f-label); font-size: .54rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.copy:hover { background: var(--gold); color: var(--ink); }

/* ── Wishes ── */
.wishlist { margin-top: 20px; max-height: 20svh; overflow-y: auto; text-align: left; scrollbar-width: thin; }
.wishlist::-webkit-scrollbar { width: 3px; }
.wishlist::-webkit-scrollbar-thumb { background: rgba(203,168,98,.4); }
.wish { padding: 0 0 13px; margin-bottom: 13px; border-bottom: 1px solid rgba(203,168,98,.18); }
.wish h4 { margin: 0; font-family: var(--f-display); font-size: 1.24rem; font-weight: 600; color: var(--cream); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wish__att { font-family: var(--f-label); font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); border: 1px solid rgba(203,168,98,.4); padding: 3px 8px; border-radius: 999px; }
.wish time { font-family: var(--f-label); font-size: .54rem; letter-spacing: .12em; color: var(--on-dim); }
.wish p { margin: 5px 0 0; font-size: .98rem; color: var(--on); }

/* ── Closing ── */
#closing {
  justify-content: flex-start;
}
#closing .panel__inner {
  padding-top: max(8svh, calc(env(safe-area-inset-top) + 54px));
  padding-bottom: 0;
}
.names--closing { font-size: clamp(3.2rem, 17vw, 4.6rem); line-height: 1; margin: clamp(168px, 34svh, 290px) 0 14px; }
.names--closing span { display: inline; }
.names--closing .amp { font-size: .62em; }

/* ── Credit footer ── */
.credit {
  position: absolute; z-index: 3; left: 0; right: 0;
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px));
  text-align: center;
}
.credit__line, .credit__ig { margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.credit__line { font-family: var(--f-label); font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dim); }
.credit__ig { margin-top: 5px; font-family: var(--f-label); font-size: .58rem; letter-spacing: .2em; color: var(--gold-soft); }
.credit a { color: var(--gold-soft); text-decoration: none; }
.credit a:hover { color: var(--cream); }

/* ════════════════════════════════════════════
   MUSIC + PROGRESS
   ════════════════════════════════════════════ */
.music {
  position: fixed; z-index: 90; bottom: 20px;
  right: max(20px, calc((100vw - var(--maxw)) / 2 + 20px));
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(12,9,7,.6); backdrop-filter: blur(8px);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility .6s var(--ease), transform .3s var(--ease);
}
.music.is-ready { opacity: 1; visibility: visible; }
.music:hover { transform: scale(1.06); }
.music__disc { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--gold-soft); position: relative; }
.music__disc::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--gold-soft); }
.music.is-playing .music__disc { animation: spin 4s linear infinite; }

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 88;
  width: 44px;
  height: 44px;
  transform: translateX(-50%);
  border: 1px solid rgba(203,168,98,.3);
  border-radius: 50%;
  background: rgba(12,9,7,.12);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s var(--ease), transform .3s var(--ease);
}
.scroll-cue.is-ready {
  opacity: .52;
  visibility: visible;
}
.scroll-cue.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.scroll-cue:hover {
  transform: translateX(-50%) translateY(-2px);
}
.scroll-cue span {
  width: 12px;
  height: 12px;
  border-right: 1.5px solid rgba(203,168,98,.72);
  border-bottom: 1.5px solid rgba(203,168,98,.72);
  transform: translateY(-2px) rotate(45deg);
  animation: cuebounce 1.8s var(--ease) infinite;
}

.progress {
  position: fixed; z-index: 90; top: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, var(--maxw)); height: 2px; background: transparent;
  opacity: 0; transition: opacity .6s var(--ease);
}
.progress.is-ready { opacity: 1; }
.progress::after { content: ""; display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft)); transition: width .4s var(--ease); }

/* ════════════════════════════════════════════
   MOTION
   ════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hintpulse { 0%,100% { opacity: .25; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes cuebounce { 0%,100% { transform: translateY(-3px) rotate(45deg); } 50% { transform: translateY(3px) rotate(45deg); } }

@media (min-width: 601px) { body { background: #040302; } }

@media (prefers-reduced-motion: reduce) {
  .deck { scroll-behavior: auto; }
  .panel__bg { transition: none; transform: none !important; opacity: 1 !important; }
  .panel__bgset img { transition: opacity .6s linear; transform: none !important; }
  .panel__inner > * { opacity: 1 !important; transform: none !important; }
  .cover__hint span { animation: none; }
  .scroll-cue span { animation: none; }
}
