/* ============================================================
   Layar (a parody wordmark) — streaming-service wedding invitation
   Mobile-first. Dark cinematic aesthetic.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg:        #09080e;
  --surface:   #110f19;
  --card:      #171523;
  --card-2:    #1d1a2c;
  --line:      #242137;
  --ink:       #f5f4f6;
  --muted:     #9f9da9;
  --dim:       #584f87;

  --red:       #7c4dff;
  --red-dark:  #6236d9;
  --green:     #6fd3b0;
  --gold:      #f5c518;

  --shell:     520px;
  --r-sm:      4px;
  --r-md:      8px;
  --r-lg:      14px;
  --r-xl:      22px;

  --ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Bebas Neue", "Inter", Impact, sans-serif;
  --serif:   "Playfair Display", Georgia, "Times New Roman", serif;

  --tab-h:  62px;
  --ease:   cubic-bezier(.22, .61, .36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; height: 100vh; }

/* Component `display` rules below would otherwise beat the UA's [hidden]. */
[hidden] { display: none !important; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico { width: 24px; height: 24px; flex: none; display: block; }
.ico--sm { width: 16px; height: 16px; }

:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

/* ---------- BRAND WORDMARK ---------- */
.brand {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: .09em;
  color: var(--red);
  line-height: 1;
  text-shadow: 0 2px 14px rgba(124, 77, 255, .45);
}

.brand--sm { font-size: 19px; letter-spacing: .12em; }

/* ============================================================
   INTRO SPLASH
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: #05040b;
  transition: opacity .5s var(--ease), visibility .5s;
}

.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.intro__inner { text-align: center; }

.intro__word {
  font-family: var(--display);
  font-size: clamp(44px, 15vw, 82px);
  letter-spacing: .14em;
  color: var(--red);
  text-shadow: 0 0 26px rgba(124, 77, 255, .55), 0 0 70px rgba(124, 77, 255, .3);
  animation: brand-in 1.5s var(--ease) both;
}

.intro__tag {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--dim);
  animation: fade 1s .7s var(--ease) both;
}

.intro__bar {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  width: 160px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.intro__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform-origin: left;
  animation: load-bar 2s var(--ease) both;
}

/* ============================================================
   PROFILE GATE
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  transition: opacity .45s var(--ease), visibility .45s;
}

.gate.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.gate__head { padding: 16px 20px; }

.gate__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 20px 24px 60px;
  text-align: center;
  animation: rise .6s var(--ease) both;
}

.gate__title {
  font-family: var(--display);
  font-size: clamp(30px, 9vw, 44px);
  font-weight: 400;
  letter-spacing: .04em;
}

.gate__profiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 22px;
  max-width: 400px;
}

.pfp {
  width: 84px;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.pfp__face {
  width: 76px;
  height: 76px;
  border-radius: var(--r-md);
  border: 3px solid transparent;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 32px;
  color: #fff;
  background-size: cover;
  background-position: center;
  transition: border-color .18s, transform .18s var(--ease);
}

.pfp:hover .pfp__face,
.pfp:focus-visible .pfp__face { border-color: #fff; transform: scale(1.05); }

.pfp__name {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
  transition: color .18s;
}

.pfp:hover .pfp__name { color: var(--ink); }

.pfp--guest .pfp__face { box-shadow: 0 0 0 2px rgba(124, 77, 255, .5); }
.pfp--guest .pfp__name { color: var(--ink); font-weight: 600; }

.gate__hint { font-size: 12px; color: var(--dim); }

/* ============================================================
   COVER
   ============================================================ */
.cover {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 34px 24px;
  background: #05040b;
  text-align: center;
  transition: opacity .6s var(--ease), visibility .6s;
}

.cover.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

.cover__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%,   rgba(124, 77, 255, .34), transparent 62%),
    radial-gradient(110% 70% at 15% 100%, rgba(52, 30, 110, .38), transparent 60%),
    radial-gradient(90% 60% at 92% 88%,   rgba(124, 77, 255, .16), transparent 60%);
}

.cover__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, transparent 30%, rgba(0, 0, 0, .85) 100%);
}

.cover__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  max-width: 380px;
  animation: rise .8s var(--ease) both;
}

.cover__kicker {
  font-size: 11px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover__names {
  font-family: var(--serif);
  font-size: clamp(36px, 12vw, 52px);
  font-weight: 500;
  line-height: 1.08;
}

.cover__meta,
.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}

.tag {
  padding: 1px 7px;
  border-radius: var(--r-sm);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
}

.tag--match { background: none; color: var(--green); padding: 0; }
.tag--age { border: 1px solid var(--line); color: var(--muted); }

.cover__guest {
  margin-top: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(17, 15, 25, .75);
  backdrop-filter: blur(6px);
}

.cover__guest-label { display: block; font-size: 11px; color: var(--muted); }
.cover__guest-name  { display: block; font-size: 17px; margin-top: 2px; overflow-wrap: anywhere; }

.cover__note { font-size: 13px; color: var(--muted); max-width: 310px; }
.cover__hint { font-size: 11px; color: var(--dim); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--card-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s var(--ease), opacity .15s, background .15s;
}

.btn:active { transform: scale(.97); }

.btn--play { background: #fff; color: #05040b; }
.btn--play:hover { background: rgba(255, 255, 255, .82); }

.btn--soft { background: rgba(91, 81, 138, .55); color: #fff; }
.btn--soft:hover { background: rgba(91, 81, 138, .38); }

.btn--icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  background: rgba(17, 15, 25, .6);
}

.btn--icon:hover { border-color: #fff; }
.btn--icon.is-on { border-color: var(--green); color: var(--green); }

.btn--lg { padding: 13px 30px; font-size: 15px; }
.btn--sm { padding: 7px 14px; font-size: 12.5px; }
.btn--block { width: 100%; }

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
}

.icon-btn:hover { background: rgba(255, 255, 255, .1); }

.icon-btn__badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* ============================================================
   MUSIC PILL
   ============================================================ */
.music-pill {
  position: fixed;
  right: 14px;
  bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 15, 25, .9);
  backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
}

.music-pill__disc {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}

.music-pill__disc .ico { width: 17px; height: 17px; }
.music-pill.is-playing .music-pill__disc { animation: spin-ring 4s linear infinite; }
.music-pill__state { width: 15px; height: 15px; color: var(--muted); }

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  max-width: var(--shell);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--surface);
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}

/* ---------- TOP BAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 8px 0 16px;
  background: linear-gradient(#09080e, rgba(9, 8, 14, 0));
  transition: background .3s;
}

.topbar.is-stuck { background: rgba(9, 8, 14, .95); backdrop-filter: blur(8px); }

.topbar__nav { display: none; flex: 1; gap: 4px; }

.topbar__link {
  border: 0;
  background: none;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: color .15s;
}

.topbar__link:hover { color: var(--ink); }

.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }

.topbar__avatar {
  width: 30px;
  height: 30px;
  margin-left: 6px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

/* ============================================================
   HERO BILLBOARD
   ============================================================ */
.hero {
  position: relative;
  margin-top: -54px;
  padding: 100px 20px 26px;
  text-align: center;
  overflow: hidden;
}

.hero__art { position: absolute; inset: 0; }

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(95% 62% at 50% 8%,  rgba(124, 77, 255, .42), transparent 66%),
    radial-gradient(80% 55% at 12% 62%, rgba(70, 40, 140, .32), transparent 62%),
    linear-gradient(180deg, #0b0718 0%, var(--surface) 88%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, #05040b 10%, transparent 85%);
}

.hero__body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 11px; }

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .34em;
  color: var(--muted);
}

.hero__n {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0;
  color: var(--red);
  line-height: 1;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(34px, 11vw, 50px);
  font-weight: 500;
  line-height: 1.06;
}

.hero__badges { display: flex; gap: 6px; }

.hero__badges span {
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .12);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.hero__match { color: var(--green); font-weight: 700; }

.hero__synopsis {
  max-width: 340px;
  font-size: 13.5px;
  color: #d0cfd5;
  line-height: 1.6;
}

.hero__genres { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }
.hero__genres span::after { content: " ·"; color: var(--dim); }
.hero__genres span:last-child::after { content: ""; }

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 6px;
}

/* ============================================================
   COUNTDOWN STRIP
   ============================================================ */
.strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, #13111d, #0d0c14);
}

.strip__label {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown { display: flex; gap: 8px; }

.cd {
  min-width: 62px;
  padding: 9px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #0b0a10;
  text-align: center;
}

.cd__num {
  display: block;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cd__label {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ============================================================
   QUOTE BAND
   ============================================================ */
.quote-band {
  padding: 30px 24px;
  text-align: center;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(124, 77, 255, .12), transparent 70%);
}

.quote__text {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  color: #e7e7e9;
  max-width: 420px;
  margin: 0 auto;
}

.quote__src {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  font-style: normal;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
}

/* ============================================================
   ROWS
   ============================================================ */
.row { padding: 22px 0 4px; }

.row__title {
  margin: 0 16px 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}

/* Horizontal rails share scroll behaviour; the card sizes differ per modifier. */
.rail {
  display: flex;
  gap: 10px;
  padding: 2px 16px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

/* ---------- EPISODES ---------- */
.episodes { display: flex; flex-direction: column; gap: 2px; }

.episode {
  display: flex;
  gap: 13px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}

.episode:hover { background: #151321; }
.episode:last-child { border-bottom: 1px solid var(--line); }

.episode__no {
  flex: none;
  width: 18px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--dim);
}

.episode__thumb {
  flex: none;
  position: relative;
  width: 96px;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, #160f2c, #100e18);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.episode__year {
  font-family: var(--display);
  font-size: 20px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .04em;
}

.episode__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(124, 77, 255, .28), transparent 70%);
}

.episode__body { min-width: 0; flex: 1; }

.episode__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.episode__title { font-size: 14px; font-weight: 600; }
.episode__dur { font-size: 11.5px; color: var(--dim); flex: none; }

.episode__text {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.episode.is-open .episode__text { color: #d6d6da; }

/* ---------- CAST ---------- */
.rail--cast > .cast {
  width: 190px;
  padding: 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #1a1727, #100e18);
  text-align: center;
}

.cast__face {
  width: 78px;
  height: 78px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 2px solid rgba(124, 77, 255, .55);
  background: #0d0c14;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 27px;
}

.cast__role {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
}

.cast__name { font-size: 15px; font-weight: 700; margin-top: 4px; line-height: 1.3; }
.cast__parents { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.cast__parents strong { color: #dcdbdf; font-weight: 600; }

.cast__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.cast__link:hover { color: var(--ink); }

/* ---------- EVENTS ---------- */
.rail--events > .event {
  width: 250px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #120c24, #100e18);
}

.event__name {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink);
}

.event__row { display: flex; gap: 9px; margin-top: 11px; font-size: 12.5px; }
.event__row .ico { width: 17px; height: 17px; color: var(--red); margin-top: 2px; }
.event__venue { font-weight: 600; }
.event__addr { color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.45; }

.event__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .1);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.event__map:hover { background: rgba(255, 255, 255, .18); }
.event__map .ico { width: 14px; height: 14px; }

/* ---------- GALLERY (top-10 numbered posters) ---------- */
.rail--top { padding-left: 6px; gap: 2px; }

.poster {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 146px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.poster__no {
  font-family: var(--display);
  font-size: 96px;
  line-height: .78;
  color: #0d0c14;
  -webkit-text-stroke: 2px #302b49;
  margin-right: -10px;
  flex: none;
}

.poster__art {
  position: relative;
  width: 92px;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-sm);
  background: linear-gradient(150deg, #171030, #110f19);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform .18s var(--ease);
}

.poster:hover .poster__art { transform: scale(1.05); }

.poster__art--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 50% at 50% 22%, rgba(124, 77, 255, .3), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 8px, transparent 8px 16px);
}

.poster__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 6px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
  font-size: 10px;
  color: #dcdbdf;
  text-align: left;
  line-height: 1.3;
}

/* ---------- PANELS (dress code, gift) ---------- */
.panel {
  margin: 0 16px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #191626, #0f0d17);
  text-align: center;
}

.panel__title {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: .05em;
}

.panel__note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}

.panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(124, 77, 255, .16);
  color: #a98bff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.panel--gift .btn { margin-top: 16px; }

.palette {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 16px 0 14px;
}

.swatch { width: 60px; }

.swatch__chip {
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .16);
}

.swatch__name { font-size: 10.5px; color: var(--muted); }

/* ---------- REVIEWS ---------- */
.rating {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 16px 12px;
}

.rating__score { font-family: var(--display); font-size: 34px; line-height: 1; }
.rating__stars { display: flex; gap: 2px; color: var(--gold); }
.rating__stars .ico { width: 15px; height: 15px; }
.rating__count { font-size: 12px; color: var(--muted); }

.rail--reviews > .review {
  width: 232px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #151220;
}

.review__top { display: flex; align-items: center; gap: 8px; }

.review__face {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card-2);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

.review__name { font-size: 12.5px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.review__msg { margin-top: 9px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.review__time { margin-top: 8px; font-size: 10.5px; color: var(--dim); }

#row-wishes > .btn { width: calc(100% - 32px); margin: 4px 16px 0; }

/* ============================================================
   CREDITS
   ============================================================ */
.credits {
  margin-top: 34px;
  padding: 40px 24px calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0d0c14, #05040b);
  text-align: center;
}

.credits__text {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.75;
  color: #d4d4d8;
  max-width: 380px;
  margin: 0 auto;
}

.credits__thanks {
  font-family: var(--display);
  font-size: 40px;
  letter-spacing: .06em;
  color: var(--red);
  margin: 20px 0 6px;
}

.credits__list {
  display: grid;
  gap: 7px;
  max-width: 280px;
  margin: 22px auto;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}

.credits__list > div { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; }
.credits__list dt { color: var(--dim); letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
.credits__list dd { font-weight: 600; }

.credits__sign { font-size: 12px; color: var(--muted); }

.credits__names {
  font-family: var(--serif);
  font-size: 30px;
  margin-top: 4px;
}

.credits__families { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

.credits__tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.credits__tags span { font-size: 11.5px; color: #7fa9ff; }

.credits__footer { margin-top: 20px; font-size: 11px; color: var(--dim); }

/* ============================================================
   TAB BAR
   ============================================================ */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: var(--shell);
  height: var(--tab-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--line);
  background: rgba(9, 8, 14, .96);
  backdrop-filter: blur(10px);
}

.tabbar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--dim);
  cursor: pointer;
  transition: color .15s;
}

.tabbar__btn span { font-size: 9.5px; letter-spacing: .04em; }
.tabbar__btn .ico { width: 21px; height: 21px; }
.tabbar__btn.is-active { color: var(--ink); }
.tabbar__btn--cta { color: var(--red); }

/* ============================================================
   SHEETS
   ============================================================ */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  animation: fade .22s var(--ease);
}

.sheet__panel {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border-top: 2px solid var(--red);
  background: var(--surface);
  animation: slide-up .32s var(--ease);
}

.sheet__panel--tall { height: 88vh; }

.sheet__grab {
  width: 40px;
  height: 4px;
  margin: 9px auto 0;
  border-radius: 2px;
  background: #302b49;
  flex: none;
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 12px 20px;
  border-bottom: 1px solid var(--line);
  flex: none;
}

.sheet__title { font-size: 16px; font-weight: 700; }

.sheet__body {
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.sheet__body--list { padding: 0; flex: 1; }
.sheet__lead { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* ---------- FORM ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }

.field { display: block; position: relative; }

.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.field__label em { font-style: normal; font-weight: 400; color: var(--dim); }

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #0b0a10;
  color: var(--ink);
  font: inherit;
  transition: border-color .2s;
}

.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--red); }
.input--area { resize: vertical; min-height: 84px; }
.input.is-invalid { border-color: var(--red); }

.field__count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 10px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.choices { display: flex; gap: 7px; }

.choice { flex: 1; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice span {
  display: block;
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #0b0a10;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s;
}

.choice input:checked + span {
  border-color: var(--red);
  background: rgba(124, 77, 255, .16);
  color: var(--ink);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 148px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #0b0a10;
}

.stepper__btn {
  width: 36px;
  height: 34px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--card-2);
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
}

.stepper__btn:hover { background: #27233b; }

.stepper__value {
  flex: 1;
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

.stepper__value::-webkit-outer-spin-button,
.stepper__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.form__note { font-size: 11px; color: var(--dim); text-align: center; line-height: 1.5; }
.form__note code { color: var(--muted); }

/* ---------- SUCCESS ---------- */
.success {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 0 6px;
}

.success__mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(111, 211, 176, .14);
  color: var(--green);
  animation: pop .4s var(--ease);
}

.success__title { font-family: var(--display); font-size: 34px; letter-spacing: .04em; }
.success__text { font-size: 13.5px; color: var(--muted); line-height: 1.6; max-width: 300px; }
.success__text strong { color: var(--ink); }
.success .btn { margin-top: 8px; }

/* ---------- WISHES LIST ---------- */
.wishes { padding: 8px 0; }

.wish {
  display: flex;
  gap: 11px;
  padding: 11px 20px;
  animation: fade .3s var(--ease);
}

.wish__face {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--card-2);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.wish__body { flex: 1; min-width: 0; }
.wish__top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wish__name { font-size: 13px; font-weight: 600; }

.wish__badge {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid;
}

.wish__badge--hadir { color: var(--green); border-color: rgba(111, 211, 176, .4); background: rgba(111, 211, 176, .1); }
.wish__badge--ragu  { color: var(--gold); border-color: rgba(245, 197, 24, .4); background: rgba(245, 197, 24, .1); }
.wish__badge--tidak { color: var(--dim); border-color: var(--line); }

.wish__msg { font-size: 13.5px; line-height: 1.5; color: #dfdee2; margin-top: 2px; overflow-wrap: anywhere; }
.wish__time { font-size: 11px; color: var(--dim); margin-top: 4px; }

.wishes__empty { padding: 40px 20px; text-align: center; color: var(--dim); font-size: 13px; }

.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--card);
  flex: none;
}

.composer__fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.composer__name,
.composer__msg {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b0a10;
  color: var(--ink);
  font: inherit;
  padding: 8px 14px;
}

.composer__name { font-size: 12px; }
.composer__name::placeholder,
.composer__msg::placeholder { color: var(--dim); }
.composer__name:focus, .composer__msg:focus { outline: none; border-color: var(--red); }
.composer__name.is-invalid, .composer__msg.is-invalid { border-color: var(--red); }

.composer__send {
  border: 0;
  background: none;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
  flex: none;
}

.composer__send:hover { opacity: .75; }

/* ---------- BANKS ---------- */
.banks { display: grid; gap: 11px; }

.bank {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 16px 46px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #130d26, #0c0a12);
  cursor: pointer;
  transition: border-color .2s, transform .12s var(--ease);
}

.bank:hover { border-color: #3a3458; }
.bank:active { transform: scale(.99); }

.bank__name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.bank__number {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  margin-top: 5px;
}

.bank__holder { font-size: 12px; color: var(--muted); margin-top: 3px; }

.bank__copy {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--muted);
}

.bank.is-copied { border-color: var(--green); }
.bank.is-copied .bank__copy { color: var(--green); }

.ship {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}

.ship__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.ship__name { font-size: 14px; font-weight: 600; }
.ship__addr { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 3px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .95);
  animation: fade .22s var(--ease);
}

.lightbox__close { position: absolute; top: 14px; right: 14px; z-index: 2; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}

.lightbox__nav--prev { left: 10px; }
.lightbox__nav--prev .ico { transform: rotate(180deg); }
.lightbox__nav--next { right: 10px; }

.lightbox__figure { max-width: 380px; width: 100%; text-align: center; }

.lightbox__stage {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-md);
  background-size: cover;
  background-position: center;
  background-color: #110f19;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 84px;
  color: rgba(255, 255, 255, .12);
}

.lightbox__caption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 26px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 14px);
  z-index: 420;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  background: #f5f4f6;
  color: #0e0d15;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rise      { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade      { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up  { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop       { 0% { transform: scale(.6); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes spin-ring { to { transform: rotate(360deg); } }
@keyframes load-bar  { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@keyframes brand-in {
  0%   { opacity: 0; transform: scale(1.35); letter-spacing: .4em; }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); letter-spacing: .14em; }
}

/* Rows fade in as they enter the viewport (class added by script.js). */
.row, .strip, .quote-band, .credits { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.row.is-in, .strip.is-in, .quote-band.is-in, .credits.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .row, .strip, .quote-band, .credits { opacity: 1; transform: none; }
}

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 560px) {
  .topbar__nav { display: flex; }
  .hero { padding-top: 118px; }
}

@media (min-width: 820px) {
  body {
    background:
      radial-gradient(60% 60% at 12% 8%, rgba(124, 77, 255, .1), transparent 60%),
      radial-gradient(60% 60% at 88% 92%, rgba(52, 30, 110, .12), transparent 60%),
      #05040b;
    background-attachment: fixed;
  }

  .app {
    margin: 24px auto;
    min-height: calc(100vh - 48px);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .8);
  }

  .tabbar { bottom: 24px; border-radius: 0 0 20px 20px; border-inline: 1px solid var(--line); }
  .music-pill { bottom: calc(var(--tab-h) + 42px); right: max(14px, calc(50vw - var(--shell) / 2 + 14px)); }
  .toast { bottom: calc(var(--tab-h) + 50px); }
}
