/* ============ Bunny's Big Day — styles (mobile first) ============ */
:root {
  --bg: #0e0918;
  --bg2: #1a1030;
  --ink: #fff8fc;
  --muted: rgba(255, 240, 250, .74);
  --faint: rgba(255, 240, 250, .5);
  --glass: rgba(24, 14, 44, .62);
  --glass-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .14);
  --gold: #ffd08a;
  --rose: #ff6fa3;
  --lav: #b8a2ff;
  --mint: #7ef0c8;
  --accent: #ff6fa3;
  --accent-2: #ffb36b;
  --accent-ink: #2a0a1c;
  --radius: 22px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --display: "Fraunces", Georgia, serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--body);
  font-size: clamp(15px, 1.2vw + 11px, 17px);
  line-height: 1.55;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

/* ---------- stage & scenes ---------- */
#stage { position: fixed; inset: 0; overflow: hidden; }
.scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: calc(64px + var(--safe-t)) 16px calc(20px + var(--safe-b));
  animation: sceneIn .7s ease both;
}
.scene.no-hud { padding-top: calc(20px + var(--safe-t)); }
@keyframes sceneIn { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }

.bg {
  position: fixed; inset: -4%;
  background-size: cover; background-position: center;
  z-index: -2;
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
.bg.still { animation: none; inset: 0; }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 9, 24, .55) 0%, rgba(14, 9, 24, .05) 30%, rgba(14, 9, 24, .35) 60%, rgba(14, 9, 24, .94) 100%);
}
.bg.dim::after { background: linear-gradient(180deg, rgba(14, 9, 24, .78), rgba(14, 9, 24, .9)); }
.bg.blur { filter: blur(10px) saturate(1.15); inset: -8%; }
@keyframes kenburns {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.14) translate(-2%, -1.5%); }
}
.glow-bg {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(255, 111, 163, .22), transparent 70%),
    radial-gradient(50% 50% at 90% 30%, rgba(184, 162, 255, .2), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(255, 179, 107, .18), transparent 70%),
    var(--bg);
}

/* ---------- panel (visual-novel style card) ---------- */
.spacer { flex: 1 1 auto; min-height: 18vh; }
.panel {
  width: 100%; max-width: 680px; margin: 0 auto;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  animation: panelUp .8s .15s cubic-bezier(.2, .8, .2, 1) both;
}
.panel.wide { max-width: 980px; }
.panel.center { text-align: center; }
@keyframes panelUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.kicker {
  font-size: .72em; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.panel .kicker.center { justify-content: center; }
.panel h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin-bottom: 10px; }
.panel h2 em { font-style: italic; color: var(--accent); }
.lead { color: var(--muted); }
.lead + .lead { margin-top: 8px; }
.say {
  position: relative; padding: 12px 14px 12px 16px; margin: 14px 0 4px;
  background: var(--glass-2); border-radius: 14px; border-left: 3px solid var(--accent);
  color: var(--ink); font-style: italic;
}
.say small { display: block; font-style: normal; color: var(--faint); font-size: .75em; margin-top: 4px; letter-spacing: .04em; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.actions.center { justify-content: center; }
.btn {
  --b: var(--accent);
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 10px 28px -8px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s;
  touch-action: manipulation; user-select: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.ghost {
  background: rgba(255, 255, 255, .08); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.big { min-height: 58px; padding: 14px 30px; font-size: 1.08em; }
.btn.block { width: 100%; }
.btn.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 28px -8px var(--accent), 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  50% { box-shadow: 0 10px 28px -8px var(--accent), 0 0 0 14px transparent; }
}
.btn:focus-visible, .opt:focus-visible, .seat:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- option cards ---------- */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.opts.one { grid-template-columns: 1fr; }
.opts.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.opt {
  position: relative; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  padding: 12px; min-height: 64px;
  display: flex; flex-direction: column; gap: 2px;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
  touch-action: manipulation;
}
.opt:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.opts:not(.three):not(.one) > .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.opts:not(.three):not(.one) > .opt.photo:last-child:nth-child(odd) .ph { aspect-ratio: 16 / 7; }
@media (max-width: 639px) {
  .opts.three > .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .opts.three > .opt.photo:last-child:nth-child(odd) .ph { aspect-ratio: 16 / 7; }
}
.opt .ico { font-size: 1.6em; line-height: 1.1; }
.opt b { font-weight: 700; }
.opt span.sub { font-size: .8em; color: var(--faint); line-height: 1.35; }
.opt.sel {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 30px -14px var(--accent);
}
.opt.sel::after {
  content: "✓"; position: absolute; top: 8px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 900;
  animation: pop .3s cubic-bezier(.3, 1.6, .5, 1);
}
.opt.photo { padding: 0; overflow: hidden; }
.opt.photo .ph { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.opt.photo .txt { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.hint { font-size: .82em; color: var(--faint); margin-top: 10px; }

/* ---------- HUD ---------- */
#hud {
  position: fixed; z-index: 50; left: 0; right: 0; top: 0;
  padding: calc(10px + var(--safe-t)) 12px 10px;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, rgba(14, 9, 24, .96) 0%, rgba(14, 9, 24, .88) 72%, rgba(14, 9, 24, 0) 100%);
  pointer-events: none;
  transition: opacity .4s, transform .4s;
}
#hud.hidden { opacity: 0; transform: translateY(-100%); }
#hud > * { pointer-events: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px; border-radius: 999px;
  background: rgba(20, 12, 36, .7); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-weight: 700; font-size: .88em; white-space: nowrap;
}
.chip.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.18); } }
.chip .heart { color: var(--accent); }
.hud-progress { flex: 1; display: flex; justify-content: center; gap: 5px; }
.hud-progress i { width: 26px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .18); transition: background .4s; }
.hud-progress i.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: rgba(20, 12, 36, .7); display: grid; place-items: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 520px) {
  #hud { flex-wrap: wrap; row-gap: 6px; }
  .hud-progress { order: 10; flex: 1 0 100%; }
  .hud-progress i { flex: 1; width: auto; height: 3px; }
  #sndBtn { margin-left: auto; }
  .scene { padding-top: calc(74px + var(--safe-t)); }
}
@media (max-width: 360px) { .chip { padding: 0 9px; } }
h1:focus, h2:focus { outline: none; }

/* floating +points */
.floater {
  position: fixed; z-index: 80; pointer-events: none;
  font-weight: 800; color: var(--gold); text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
  animation: floatUp 1.4s ease-out forwards;
}
@keyframes floatUp { from { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 15% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -70px) scale(1.1); } }

/* toast */
#toast {
  position: fixed; z-index: 90; left: 50%; top: calc(84px + var(--safe-t));
  transform: translate(-50%, calc(-100% - 120px)); pointer-events: none; text-align: center; transition: transform .45s cubic-bezier(.2, .9, .3, 1.2);
  background: rgba(20, 12, 36, .92); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 18px; max-width: calc(100% - 32px); box-shadow: var(--shadow); font-weight: 600;
}
#toast.show { transform: translate(-50%, 0); }

/* curtain fade between scenes */
#fade { position: fixed; inset: 0; z-index: 100; background: #000; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
#fade.on { opacity: 1; pointer-events: auto; }

/* letterbox for cinematic scenes */
.letterbox::before, .letterbox::after {
  content: ""; position: fixed; left: 0; right: 0; height: 9vh; background: #000; z-index: 20;
  animation: lbIn 1s ease both;
}
.letterbox::before { top: 0; }
.letterbox::after { bottom: 0; }
@keyframes lbIn { from { height: 0; } }
.skip {
  position: fixed; z-index: 30; right: 14px; bottom: calc(10vh + 10px + var(--safe-b));
  background: rgba(0, 0, 0, .45); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-size: .82em; cursor: pointer;
}

.subtitle {
  position: fixed; z-index: 25; left: 50%; bottom: calc(12vh + var(--safe-b)); transform: translateX(-50%);
  width: min(92vw, 760px); text-align: center;
  font-family: var(--display); font-style: italic; font-size: clamp(1.15rem, 3.6vw, 1.9rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .9), 0 0 2px #000;
  min-height: 2.6em;
}
.subtitle .caret { display: inline-block; width: 2px; height: 1em; background: var(--ink); margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- title scene ---------- */
#stars { position: fixed; inset: 0; z-index: -1; }
.title-wrap { margin: auto; text-align: center; max-width: 720px; padding: 10px 4px; }
.title-wrap .eyebrow { letter-spacing: .4em; font-size: .72em; color: var(--gold); font-weight: 700; text-transform: uppercase; animation: rise 1s .2s both; }
.title-wrap h1 {
  font-size: clamp(3rem, 13vw, 6.4rem); margin: 14px 0 8px; font-weight: 700;
  background: linear-gradient(120deg, #fff 10%, var(--accent) 45%, var(--gold) 75%, #fff 95%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1.1s .35s both, shimmer 6s linear 1.4s infinite;
}
.title-wrap h1 i { font-style: italic; font-weight: 500; }
.title-wrap .tag { color: var(--muted); font-size: 1.05em; animation: rise 1s .6s both; }
.title-wrap .actions { animation: rise 1s .85s both; }
.route { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 6px; animation: rise 1s .75s both; }
.route span { font-size: .8em; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes shimmer { to { background-position: -220% center; } }
.bunny-logo { width: 84px; height: 84px; margin: 0 auto; animation: rise 1s both, floaty 4s ease-in-out 1s infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* ---------- invitation ---------- */
.envelope-wrap { margin: auto; width: min(100%, 520px); perspective: 1200px; }
.letter {
  position: relative; background: linear-gradient(180deg, #fff9f3, #ffeef3); color: #3a1630;
  border-radius: 18px; padding: 28px 22px 22px; box-shadow: var(--shadow);
  transform-origin: bottom center; animation: letterOut 1.1s .3s cubic-bezier(.2, .8, .2, 1) both;
}
.letter::before {
  content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(190, 60, 120, .25); border-radius: 12px; pointer-events: none;
}
@keyframes letterOut { from { opacity: 0; transform: rotateX(70deg) translateY(60px); } to { opacity: 1; transform: none; } }
.letter h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); color: #b0245f; margin-bottom: 10px; font-style: italic; }
.letter p { color: #5c2b49; margin-bottom: 10px; }
.letter .sig { font-family: var(--display); font-style: italic; text-align: right; color: #b0245f; }
.letter .stamp {
  position: absolute; top: -18px; right: 18px; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8fb8, #c9306d); display: grid; place-items: center;
  color: #fff; font-size: 28px; box-shadow: 0 6px 16px rgba(160, 30, 90, .4); transform: rotate(-12deg);
  animation: pop .6s 1.2s cubic-bezier(.3, 1.6, .5, 1) both;
}
.letter .btn.ghost { color: #5c2b49; box-shadow: inset 0 0 0 1px rgba(92, 43, 73, .25); background: rgba(255, 255, 255, .6); }
.dodge { transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }

/* ---------- phone notification ---------- */
.notif {
  position: fixed; z-index: 30; left: 50%; top: calc(16px + var(--safe-t)); transform: translate(-50%, -160%);
  width: min(92vw, 400px); display: flex; gap: 12px; align-items: center;
  background: rgba(250, 248, 255, .92); color: #1b1230; border-radius: 20px; padding: 12px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  animation: notif 4.8s .6s cubic-bezier(.2, .9, .3, 1.1) forwards;
}
.notif .app { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font-size: 22px; flex: none; }
.notif b { display: block; font-size: .92em; }
.notif small { color: #4a3d63; font-size: .82em; line-height: 1.3; display: block; }
@keyframes notif { 0% { transform: translate(-50%, -160%); } 12%, 84% { transform: translate(-50%, 0); } 100% { transform: translate(-50%, 0); } }

/* ---------- drive scene ---------- */
.drive { position: fixed; inset: 0; overflow: hidden; z-index: -1; }
.drive .sky { position: absolute; inset: 0; }
.drive.eve .sky { background: linear-gradient(180deg, #2b1850 0%, #7b2f6b 38%, #ff7e6b 64%, #ffc27a 76%, #ffe2a8 82%); }
.drive.night .sky { background: linear-gradient(180deg, #05040f 0%, #120b2e 45%, #2a1650 72%, #4a2560 82%); }
.drive .sun { position: absolute; left: 62%; top: 52%; width: 22vmin; height: 22vmin; border-radius: 50%; background: radial-gradient(circle, #fff3c4, #ffb85c 60%, transparent 72%); filter: blur(1px); }
.drive .moon { position: absolute; right: 14%; top: 12%; width: 13vmin; height: 13vmin; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fffdf2, #e9e1c8 60%, #cbbf9f); box-shadow: 0 0 60px 18px rgba(255, 250, 220, .25); }
.strip { position: absolute; left: 0; background-repeat: repeat-x; background-position: left bottom; will-change: transform; animation: scrollpx linear infinite; }
@keyframes scrollpx { to { transform: translate3d(calc(var(--tile, 100px) * -1), 0, 0); } }
.strip.far { bottom: 30%; height: 34%; }
.strip.mid { bottom: 30%; height: 26%; }
.strip.near { bottom: 22%; height: 36%; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, #2c2638 0%, #1a1624 100%); border-top: 4px solid #4a4058; }
.road .lane { --tile: 130px; position: absolute; left: 0; width: calc(100% + 130px); top: 46%; height: 6px; background: repeating-linear-gradient(90deg, #ffe08a 0 60px, transparent 60px 130px); animation: scrollpx .36s linear infinite; opacity: .85; }
.road .curb { --tile: 80px; position: absolute; left: 0; width: calc(100% + 80px); top: 0; height: 10px; background: repeating-linear-gradient(90deg, #ddd 0 40px, #c33 40px 80px); animation: scrollpx .22s linear infinite; opacity: .5; }
.car-wrap { position: absolute; left: 50%; bottom: 17%; width: min(78vw, 520px); transform: translateX(-50%); animation: carIn 2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes carIn { from { transform: translateX(-140%); } }
.car-wrap svg { width: 100%; height: auto; overflow: visible; animation: rumble .35s ease-in-out infinite alternate; }
@keyframes rumble { to { transform: translateY(-1.5px) rotate(-.15deg); } }
.wheel { transform-box: fill-box; transform-origin: center; animation: spin .45s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.night .beam { opacity: 1; }
.beam { opacity: 0; }
.nowplaying {
  position: fixed; z-index: 26; left: 50%; top: calc(10vh + 14px + var(--safe-t)); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .45); border: 1px solid var(--line); font-size: .85em; white-space: nowrap;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--accent); border-radius: 1px; animation: eq .8s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
.eta { position: fixed; z-index: 26; left: 50%; transform: translateX(-50%); top: calc(10vh + 60px + var(--safe-t)); width: min(70vw, 340px); }
.eta .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.eta .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .3s linear; }
.eta .lbl { display: flex; justify-content: space-between; font-size: .75em; color: var(--muted); margin-top: 4px; }

/* ---------- arrival title ---------- */
.big-title { margin: auto; text-align: center; z-index: 25; padding: 0 10px; }
.big-title .eyebrow { letter-spacing: .5em; font-size: .75em; color: var(--gold); font-weight: 700; animation: rise 1.2s .3s both; }
.big-title h1 { font-size: clamp(2.6rem, 11vw, 6rem); letter-spacing: .06em; margin: 10px 0; text-shadow: 0 6px 40px rgba(0, 0, 0, .7); animation: tracking 2s .5s cubic-bezier(.2, .8, .2, 1) both; }
.big-title p { color: var(--muted); animation: rise 1.2s 1.4s both; }
@keyframes tracking { from { letter-spacing: .6em; opacity: 0; filter: blur(10px); } to { letter-spacing: .06em; opacity: 1; filter: none; } }

.doors { position: fixed; inset: 0; z-index: 15; display: flex; pointer-events: none; }
.doors i {
  flex: 1; background: linear-gradient(90deg, rgba(190, 220, 240, .5), rgba(120, 160, 190, .35)), rgba(20, 30, 50, .3);
  border: 2px solid rgba(220, 235, 255, .4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  transition: transform 1.6s cubic-bezier(.6, 0, .2, 1);
}
.doors.open i:first-child { transform: translateX(-100%); }
.doors.open i:last-child { transform: translateX(100%); }

/* ---------- mall map ---------- */
.quests { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 720px) { .quests { grid-template-columns: 1fr 1fr; } }
.quest {
  position: relative; display: flex; gap: 12px; align-items: stretch; text-align: left;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06); cursor: pointer; padding: 0; min-height: 96px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quest:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 34px -18px var(--accent); }
.quest .th { width: 34%; min-width: 96px; background-size: cover; background-position: center; flex: none; }
.quest .qt { padding: 12px 12px 12px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.quest .qt b { font-family: var(--display); font-size: 1.15em; }
.quest .qt small { color: var(--faint); font-size: .8em; }
.quest .badge { align-self: flex-start; font-size: .7em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); margin-bottom: 2px; }
.quest.next .badge { background: var(--accent); color: var(--accent-ink); }
.quest.done { opacity: .78; }
.quest.done .badge { background: var(--mint); color: #08321f; }
.quest:disabled { cursor: not-allowed; filter: grayscale(.8); opacity: .55; }
.quest.next { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }

/* ---------- seats ---------- */
.screen-arc { height: 26px; margin: 6px auto 14px; width: 86%; border-top: 4px solid rgba(255, 255, 255, .7); border-radius: 50% 50% 0 0 / 100% 100% 0 0; box-shadow: 0 -10px 30px -6px rgba(180, 220, 255, .6); text-align: center; font-size: .66em; letter-spacing: .4em; color: var(--faint); padding-top: 6px; }
.seats { display: grid; gap: 5px; justify-content: center; user-select: none; }
.seat-row { display: flex; gap: 4px; align-items: center; }
.seat-row .rl { width: 16px; font-size: .7em; color: var(--faint); text-align: center; }
.seat {
  width: clamp(20px, 6.2vw, 32px); aspect-ratio: 1; border-radius: 7px 7px 4px 4px; border: 0; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); transition: transform .12s, background .2s;
}
.seat:hover:not(:disabled) { transform: translateY(-2px); background: rgba(255, 255, 255, .3); }
.seat:disabled { background: rgba(255, 255, 255, .05); cursor: not-allowed; }
.seat.her { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.seat.me { background: var(--gold); }
.seat.gap { visibility: hidden; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; font-size: .75em; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- ticket ---------- */
.ticket {
  position: relative; display: flex; margin: 16px auto 4px; max-width: 460px; color: #2a1020;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .5)); animation: ticketIn .9s cubic-bezier(.2, 1.2, .3, 1) both;
}
@keyframes ticketIn { from { transform: translateY(40px) rotate(-6deg); opacity: 0; } }
.ticket .main { flex: 1; background: linear-gradient(135deg, #fff6e6, #ffe2ec); border-radius: 16px 0 0 16px; padding: 16px; text-align: left; }
.ticket .stub { width: 96px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 0 16px 16px 0; border-left: 2px dashed rgba(0, 0, 0, .3); display: grid; place-items: center; text-align: center; font-weight: 800; color: var(--accent-ink); padding: 8px; font-size: .85em; }
.ticket .main small { display: block; font-size: .68em; letter-spacing: .14em; text-transform: uppercase; color: #8a5070; }
.ticket .main b { font-family: var(--display); font-size: 1.4em; }
.ticket .row { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- movie ---------- */
.cinema { position: fixed; inset: 0; background: #000; z-index: -1; overflow: hidden; }
.cinema .frame { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.cinema .frame.on { opacity: 1; animation: kb2 9s ease-out both; }
.cinema .frame.contain { background-size: contain; background-repeat: no-repeat; }
@keyframes kb2 { from { transform: scale(1.12); } to { transform: scale(1); } }
.cinema .beam { opacity: .35; position: absolute; left: 50%; top: -10%; width: 140%; height: 70%; transform: translateX(-50%); background: conic-gradient(from 170deg at 50% 0%, transparent 0deg, rgba(255, 255, 240, .18) 10deg, transparent 20deg); mix-blend-mode: screen; pointer-events: none; }
.cinema .grain { position: absolute; inset: -50%; opacity: .08; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain .5s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(3%, -2%); } 50% { transform: translate(-2%, 3%); } 75% { transform: translate(2%, 2%); } }
.countdown { position: fixed; inset: 0; display: grid; place-items: center; z-index: 22; font-family: var(--display); font-size: 28vmin; color: rgba(255, 255, 255, .9); pointer-events: none; }
.countdown span { animation: cd 1s ease-out both; }
@keyframes cd { from { transform: scale(1.6); opacity: 0; } 30% { opacity: 1; } to { transform: scale(.8); opacity: 0; } }

.stars-rate { display: flex; justify-content: center; gap: 6px; margin: 14px 0 6px; }
.stars-rate button { background: none; border: 0; font-size: clamp(34px, 10vw, 46px); cursor: pointer; color: rgba(255, 255, 255, .25); transition: transform .15s, color .2s; padding: 2px; }
.stars-rate button.on { color: var(--gold); text-shadow: 0 0 18px rgba(255, 208, 138, .7); }
.stars-rate button:active { transform: scale(1.25); }

/* ---------- games shared ---------- */
.game-box { position: relative; width: 100%; margin: 12px auto 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #120c20; touch-action: none; }
.game-box canvas { display: block; width: 100%; height: 100%; }
.game-hud { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-weight: 700; flex-wrap: wrap; }
.game-hud .chip { height: 34px; }
.game-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.6rem); text-shadow: 0 4px 20px rgba(0, 0, 0, .8); }
.game-msg span { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }

/* grill */
.grill {
  position: relative; margin: 12px auto 0; border-radius: 20px; padding: 18px 12px;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(0, 0, 0, .55) 22px 26px),
    radial-gradient(80% 70% at 50% 60%, #ff7a1a, #b3240b 55%, #3a0d05 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .8), 0 0 50px -10px rgba(255, 110, 30, .6);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; user-select: none;
}
.grill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 6px solid #2a2430; pointer-events: none; }
.skewer { position: relative; height: 120px; cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
.skewer .stick { position: absolute; left: 50%; top: 4px; bottom: 4px; width: 4px; transform: translateX(-50%); background: #c9a271; border-radius: 2px; }
.skewer .bits { position: absolute; inset: 14px 0 10px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.skewer .bits i { background-color: #f3e2c4; width: 58%; max-width: 46px; height: 19%; border-radius: 6px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); background-image: repeating-linear-gradient(115deg, transparent 0 7px, rgba(40, 15, 0, var(--m, 0)) 7px 9px); }
.skewer .bits i:nth-child(even) { width: 50%; border-radius: 10px; }
.skewer .smoke { position: absolute; left: 50%; top: 0; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: rgba(120, 120, 120, .5); filter: blur(6px); opacity: 0; }
.skewer.burnt .smoke { animation: smoke 1s ease-out infinite; }
@keyframes smoke { from { opacity: .8; transform: translateY(0) scale(.6); } to { opacity: 0; transform: translateY(-50px) scale(1.6); } }
.skewer.served { animation: served .5s ease-in forwards; }
@keyframes served { to { transform: translateY(-60px) scale(.6); opacity: 0; } }
.skewer .tag { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); font-weight: 800; font-size: .8em; white-space: nowrap; pointer-events: none; text-shadow: 0 2px 6px #000; }

/* flag */
.flag-wrap { display: flex; align-items: flex-end; justify-content: center; gap: 0; height: 120px; margin: 8px 0; }
.flag-pole { width: 6px; height: 110px; background: linear-gradient(90deg, #ccc, #888); border-radius: 3px; position: relative; }
.flag { position: absolute; left: 6px; top: 0; width: 70px; height: 46px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); clip-path: polygon(0 0, 100% 10%, 85% 50%, 100% 90%, 0 100%); transform-origin: left center; animation: wave 1.2s ease-in-out infinite alternate; transition: top 1s cubic-bezier(.5, 0, .3, 1); }
.flag.down { top: 64px; background: linear-gradient(135deg, #fff, #ddd); }
@keyframes wave { to { transform: skewY(4deg) scaleX(.94); } }

/* shopping */
.bag-chip { position: relative; }
.bag-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet { width: 100%; max-width: 640px; max-height: 88dvh; overflow: auto; background: #1b1130; border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); animation: sheetUp .35s cubic-bezier(.2, .9, .3, 1); }
@keyframes sheetUp { from { transform: translateY(100%); } }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-radius: 24px; border-bottom: 1px solid var(--line); } }
.sheet .handle { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); margin: -6px auto 12px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); transition: transform .15s; }
.swatch.sel { border-color: var(--ink); transform: scale(1.1); }
.bag-list { margin-top: 12px; display: grid; gap: 8px; }
.bag-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: .9em; }
.bag-item .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); }
.bag-item button { margin-left: auto; background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 1.1em; }

/* trial room */
.trial { position: relative; margin: 10px auto 0; width: min(100%, 420px); aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: radial-gradient(70% 60% at 50% 40%, #3b2450, #170e26); border: 1px solid var(--line); }
.mirror { position: absolute; inset: 9% 14%; border-radius: 48% 48% 14px 14px / 30% 30% 14px 14px; background: linear-gradient(160deg, rgba(255, 255, 255, .32), rgba(200, 220, 255, .08) 45%, rgba(255, 255, 255, .18)); border: 6px solid var(--gold); box-shadow: 0 0 40px rgba(255, 208, 138, .35), inset 0 0 30px rgba(255, 255, 255, .15); display: grid; place-items: center; text-align: center; padding: 16px; }
.mirror .look { display: grid; gap: 6px; font-size: .9em; }
.mirror .look .dot { width: 14px; height: 14px; display: inline-block; border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
.curtain { position: absolute; top: 0; bottom: 0; width: 51%; z-index: 3; background: repeating-linear-gradient(90deg, #8e1a3c 0 14px, #6e0f2c 14px 28px); box-shadow: inset 0 -30px 40px rgba(0, 0, 0, .4); transition: transform 1.8s cubic-bezier(.6, 0, .2, 1); }
.curtain.l { left: 0; transform-origin: left; }
.curtain.r { right: 0; transform-origin: right; }
.trial.open .curtain.l { transform: translateX(-92%) scaleX(.5); }
.trial.open .curtain.r { transform: translateX(92%) scaleX(.5); }
.receipt { margin: 14px auto 0; max-width: 360px; background: #fffdf7; color: #2b2230; border-radius: 6px; padding: 16px 16px 22px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .82em; box-shadow: var(--shadow); position: relative; animation: printIn 1.2s ease-out both; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 6px, #fffdf7 0) 0 0 / 12px 12px, linear-gradient(45deg, transparent 6px, #fffdf7 0) 0 0 / 12px 12px; }
.receipt .r { display: flex; justify-content: space-between; gap: 8px; }
.receipt hr { border: 0; border-top: 1px dashed #998; margin: 8px 0; }
@keyframes printIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -20px 0); } }

/* timezone */
.credits-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; margin-top: 12px; background: linear-gradient(120deg, #2f1b63, #6c2b8f 60%, #d13f7b); box-shadow: 0 14px 30px -14px #d13f7b; position: relative; overflow: hidden; }
.credits-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .25) 50%, transparent 60%); animation: sheen 3.5s ease-in-out infinite; }
@keyframes sheen { from { transform: translateX(-100%); } 60%, to { transform: translateX(100%); } }
.credits-card .n { font-family: var(--display); font-size: 1.8em; font-weight: 700; }
.claw-box { aspect-ratio: 3 / 4; max-width: min(420px, calc((100vh - 300px) * .75)); max-width: min(420px, calc((100dvh - 300px) * .75)); }
.bowl-box { aspect-ratio: 9 / 14; max-width: min(400px, calc((100vh - 290px) * .643)); max-width: min(400px, calc((100dvh - 290px) * .643)); }
.bump-box { aspect-ratio: 4 / 5; max-width: min(480px, calc((100vh - 310px) * .8)); max-width: min(480px, calc((100dvh - 310px) * .8)); }
.claw-box, .bowl-box, .bump-box { min-width: 240px; }
@media (min-width: 760px) and (min-height: 700px) { .bump-box { aspect-ratio: 4 / 3; max-width: min(640px, calc((100dvh - 310px) * 1.333)); } }

/* finale */
#fireworks { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.album { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
@media (min-width: 760px) { .album { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.polaroid { background: #fffdf8; color: #2b1f2e; padding: 8px 8px 12px; border-radius: 4px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); transform: rotate(var(--r, -2deg)); animation: drop .8s cubic-bezier(.2, 1.2, .3, 1) both; animation-delay: var(--d, 0s); }
.polaroid .ph { aspect-ratio: 1; background-size: cover; background-position: center; border-radius: 2px; }
.polaroid b { display: block; font-family: var(--display); font-size: .95em; margin-top: 8px; }
.polaroid small { display: block; font-size: .72em; color: #6a5a6e; line-height: 1.35; margin-top: 2px; }
@keyframes drop { from { opacity: 0; transform: translateY(-40px) rotate(12deg) scale(1.1); } }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.stat { min-width: 96px; text-align: center; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: 1.6em; color: var(--gold); }
.stat small { color: var(--faint); font-size: .74em; }
.note { margin-top: 18px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 111, 163, .16), rgba(255, 208, 138, .12)); border: 1px solid var(--line); font-family: var(--display); font-style: italic; font-size: 1.08em; line-height: 1.6; }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; animation: fadeIn .25s; }
.modal { width: 100%; max-width: 420px; background: #1b1130; border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px; text-align: center; box-shadow: var(--shadow); animation: pop .35s cubic-bezier(.3, 1.4, .5, 1); }
.modal h3 { font-size: 1.5em; margin-bottom: 6px; }

#confetti { position: fixed; inset: 0; z-index: 85; pointer-events: none; }

@media (min-width: 900px) {
  .scene { padding-left: 32px; padding-right: 32px; }
  .panel { padding: 26px 28px; }
}
/* short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .spacer { min-height: 6vh; }
  .letterbox::before, .letterbox::after { height: 5vh; }
  .title-wrap h1 { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
