:root {
  --bg: #07041a;
  --ink: #f6efff;
  --mute: #b9add6;
  --pink: #ff3d9a;
  --orange: #ff9a4d;
  --gold: #ffd76a;
  --teal: #4de3d6;
  --glass: rgba(12, 7, 34, 0.55);
  --line: rgba(255, 255, 255, 0.12);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg) radial-gradient(120% 80% at 50% 110%, #4a1257 0%, #170a3a 45%, #07041a 75%) fixed;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#space { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(4, 2, 14, 0.7) 100%);
}

main { position: relative; z-index: 2; }
section {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 16px;
  text-align: center;
}

.eyebrow {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 18px;
}
.grad {
  background: linear-gradient(90deg, var(--gold), var(--orange) 40%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

h1, h2, .giant, .num, .arrived-big, .tagline { font-family: var(--display); font-weight: 800; }
h1 {
  font-size: clamp(30px, 6.4vw, 76px); line-height: 1.05; letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(7, 4, 26, 0.9);
}
h2 { font-size: clamp(22px, 3.6vw, 40px); line-height: 1.25; font-weight: 500; }

/* countdown */
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 2vw, 22px);
  margin: clamp(28px, 5vh, 56px) auto 22px;
  width: min(100%, 860px);
}
.unit {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(14px, 2.6vw, 30px) 4px clamp(10px, 2vw, 20px);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 60px rgba(255, 61, 154, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.num {
  display: block;
  font-size: clamp(30px, 9vw, 104px); line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 34px rgba(255, 120, 160, 0.55);
}
.lbl {
  display: block; margin-top: 10px;
  font-size: clamp(10px, 1.4vw, 13px); letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute);
}
.when { color: var(--mute); font-size: clamp(13px, 1.6vw, 16px); max-width: 620px; text-shadow: 0 2px 14px var(--bg); }
.when b { color: var(--ink); font-weight: 600; }

.arrived { margin: 40px 0 20px; }
.arrived-big {
  font-size: clamp(56px, 15vw, 190px); line-height: 1;
  background: linear-gradient(180deg, var(--gold), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1.6s cubic-bezier(.2,.8,.2,1) both;
}
.arrived-sub { font-size: clamp(16px, 2.2vw, 22px); margin-top: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.96); } }

.scroll-hint {
  margin-top: clamp(28px, 6vh, 64px);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 48px; padding: 6px 14px;
  color: var(--mute); text-decoration: none; font-size: 13px; letter-spacing: 0.08em;
}
.scroll-hint svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* panels */
.panel {
  width: min(100%, 760px);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  text-align: left;
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.panel.in { opacity: 1; transform: none; }
.panel.center { text-align: center; }

.giant { font-size: clamp(54px, 13vw, 132px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.giant small { font-size: 0.22em; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); font-family: var(--body); font-weight: 500; }
.lead { font-size: clamp(16px, 2vw, 20px); color: #e2d8f7; margin-top: 20px; max-width: 58ch; }
.center .lead { margin-inline: auto; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 4.4vw, 44px); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.stats div { border-top: 1px solid var(--line); padding-top: 14px; }
.stats b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(17px, 3vw, 28px); font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--mute); letter-spacing: 0.06em; }

/* slider */
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 48px; background: transparent; margin-top: 18px; cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--pink)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--pink)); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; margin-top: -11px;
  background: var(--ink); border: 4px solid var(--pink); box-shadow: 0 0 20px rgba(255, 61, 154, .7);
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 4px solid var(--pink); box-shadow: 0 0 20px rgba(255, 61, 154, .7);
}
input[type=range]:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 8px; }

/* timeline */
.timeline { list-style: none; padding: 0; margin-top: 8px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--pink) 70%, var(--gold));
}
.timeline li { position: relative; padding: 12px 0 12px 32px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--pink);
}
.timeline time { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
.timeline div { color: #e2d8f7; }
.timeline b { color: var(--ink); }
.timeline .final::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 18px var(--gold); }
.timeline .final time { color: var(--gold); }

.share {
  margin-top: 34px; min-height: 52px; padding: 0 30px;
  font: 600 16px var(--body); color: #1a0828;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--pink));
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 40px rgba(255, 61, 154, 0.4);
  transition: transform .2s ease;
}
.share:hover { transform: translateY(-2px); }
.share:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.fine { margin-top: 36px; font-size: 12px; color: var(--mute); max-width: 60ch; margin-inline: auto; }
.fine a { color: var(--teal); }

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .unit { border-radius: 14px; }
  .lbl { letter-spacing: 0.1em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel { transition: none; opacity: 1; transform: none; }
  .scroll-hint svg, .arrived-big { animation: none; }
}

/* official stores */
.stores { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.stores .eyebrow { width: 100%; margin-bottom: 4px; }
.stores a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .05);
  transition: border-color .2s ease, background .2s ease;
}
.stores a:hover { border-color: var(--pink); background: rgba(255, 61, 154, .14); }
.stores a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.share { margin-top: 22px; }

.credit { margin-top: 18px; font-size: 12px; color: var(--mute); max-width: 70ch; }
.credit a { color: var(--teal); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#end { padding-bottom: 120px; }

/* hero */
h1 { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.kicker { font: 600 clamp(13px, 1.8vw, 18px) var(--body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink); }
.wordmark { font-size: clamp(64px, 15vw, 176px); line-height: 0.95; letter-spacing: -0.04em; }
.tagline { font-weight: 500; font-size: clamp(16px, 2.6vw, 28px); margin-top: 10px; text-shadow: 0 2px 20px var(--bg); }
.hero .countdown { margin-top: clamp(20px, 3.5vh, 40px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font: 600 15px var(--body); color: var(--ink); cursor: pointer;
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .2s ease, border-color .2s ease;
}
.pill:hover { transform: translateY(-2px); border-color: var(--pink); }
.pill.primary { color: #1a0828; border: 0; background: linear-gradient(90deg, var(--gold), var(--orange), var(--pink)); box-shadow: 0 10px 40px rgba(255, 61, 154, .35); }
.pill:focus-visible, .round:focus-visible, .seg button:focus-visible, .card:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.tri { border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.scroll-hint { margin-top: clamp(14px, 3vh, 36px); }

/* wide sections */
section.wide { padding-inline: 0; }
.section-head { padding: 0 16px; margin-bottom: 26px; }
.wide .credit { padding: 0 16px; margin-inline: auto; }
.round {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none;
  color: var(--ink); background: var(--glass); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.round:hover { border-color: var(--pink); }
.round:disabled { opacity: .35; cursor: default; }

/* gallery */
.gallery { width: 100%; overflow: hidden; perspective: 1400px; touch-action: pan-y; padding: 20px 0; cursor: grab; outline: none; }
.gallery:focus-visible { outline: 2px solid var(--teal); outline-offset: -4px; }
.gallery-stage { position: relative; height: calc(min(640px, 80vw) * 0.5625); transform-style: preserve-3d; }
.card {
  position: absolute; left: 50%; top: 0; width: min(640px, 80vw); aspect-ratio: 16 / 9; margin-left: calc(min(640px, 80vw) / -2);
  padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; background: #120a2c;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s ease, box-shadow .4s ease, filter .4s ease;
  filter: brightness(.55) saturate(.8); user-select: none; -webkit-user-drag: none;
}
.dragging .card { transition: none; }
.card.active { filter: none; box-shadow: 0 30px 90px rgba(255, 61, 154, .35), 0 0 0 1px rgba(255, 255, 255, .2); }
.card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(135deg, var(--gold), var(--pink)); box-shadow: 0 6px 30px rgba(7, 4, 26, .6);
}
.card.active .play { opacity: 1; }
.play::after { content: ""; position: absolute; left: 28px; top: 22px; border-left: 18px solid #1a0828; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.gallery-bar { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 16px; margin-top: 8px; }
.gallery-cap { min-width: min(320px, 50vw); }
.gallery-cap b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(16px, 2.2vw, 22px); }
.gallery-cap span { font-size: 14px; color: var(--mute); }

/* lightbox */
.lightbox { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; margin: auto; }
.lightbox::backdrop { background: rgba(4, 2, 14, .88); backdrop-filter: blur(8px); }
.lightbox-frame { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 120px rgba(255, 61, 154, .35); }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox .close { position: absolute; right: 0; top: -58px; }

/* city */
.city {
  position: relative; width: min(1180px, calc(100% - 32px)); height: min(68svh, 640px); min-height: 360px;
  border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #1a0f3a;
  box-shadow: 0 30px 120px rgba(80, 40, 160, .35);
}
.city canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.city canvas:active { cursor: grabbing; }
.city-ui { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.city-hint { font-size: 13px; color: var(--ink); background: rgba(12, 7, 34, .6); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(8px); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(12, 7, 34, .7); border: 1px solid var(--line); pointer-events: auto; backdrop-filter: blur(8px); }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--mute); font: 600 13px var(--body); cursor: pointer; }
.seg button[aria-pressed=true] { background: linear-gradient(90deg, var(--orange), var(--pink)); color: #1a0828; }
.city-label {
  position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; transition: opacity .3s ease;
  font: 600 11px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  background: rgba(12, 7, 34, .7); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px;
}
.city-label::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: var(--ink); opacity: .6; }

/* faq */
.faq { margin-top: 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--pink); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: #e2d8f7; padding-bottom: 16px; max-width: 62ch; }

/* radio */
.radio {
  position: fixed; z-index: 5;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.radio-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  font: 600 14px var(--body); color: var(--ink);
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.radio.on .radio-toggle { border-color: var(--pink); box-shadow: 0 0 30px rgba(255, 61, 154, .35); }
.radio-toggle:focus-visible, .radio-panel button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.bars i { width: 3px; height: 5px; border-radius: 2px; background: var(--teal); }
.pill .bars i:nth-child(2) { height: 12px; } .pill .bars i:nth-child(3) { height: 8px; }
.radio.on .radio-toggle .bars i { background: var(--pink); animation: eq .9s ease-in-out infinite; }
.radio.on .radio-toggle .bars i:nth-child(2) { animation-delay: .25s; }
.radio.on .radio-toggle .bars i:nth-child(3) { animation-delay: .5s; }
@keyframes eq { 50% { height: 16px; } }
.radio-panel {
  width: min(360px, calc(100vw - 32px)); max-height: calc(100svh - 96px); display: flex; flex-direction: column; gap: 12px; padding: 14px;
  background: rgba(12, 7, 34, .92); border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 80px rgba(0, 0, 0, .5);
}
.radio-head { display: flex; align-items: center; gap: 10px; }
.now { flex: 1; min-width: 0; text-align: left; }
.now > * { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-station { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.now b { font-size: 16px; }
.now span:last-child { font-size: 13px; color: var(--mute); min-height: 1.2em; }
.round.small { width: 44px; height: 44px; }
.radio-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
.radio-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.round.playbtn { width: 56px; height: 56px; color: #1a0828; border: 0; background: linear-gradient(135deg, var(--gold), var(--pink)); }


.radio-full { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.stations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stations button {
  min-height: 52px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 14px; background: transparent;
  color: var(--ink); font: 600 13px var(--body); cursor: pointer;
}
.stations span { display: block; font-weight: 400; font-size: 11px; color: var(--mute); }
.stations button[aria-selected=true] { border-color: var(--pink); background: rgba(255, 61, 154, .16); }
.tracks { list-style: none; padding: 0; margin: 0; overflow-y: auto; max-height: 30svh; overscroll-behavior: contain; }
.tracks:empty { display: none; }
.tracks button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 8px; text-align: left;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; font: 14px var(--body);
}
.tracks button:hover { background: rgba(255, 255, 255, .06); }
.tracks i { width: 22px; flex: none; font-style: normal; font-size: 12px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.tracks span { min-width: 0; }
.tracks b, .tracks em { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: normal; }
.tracks em { font-size: 12px; color: var(--mute); }
.tracks .cur { background: rgba(255, 61, 154, .16); }
.tracks .cur i, .tracks .cur b { color: var(--pink); }
.radio-note { font-size: 11px; color: var(--mute); text-align: left; }
/* minimised: one compact bar with a small player, the title and play / next */
.radio-panel.mini {
  width: min(340px, calc(100vw - 32px)); padding: 8px; gap: 10px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; border-radius: 18px;
}
.radio-panel.mini .radio-full, .radio-panel.mini #radioMin, .radio-panel.mini #radioPrev { display: none; }
.radio-panel.mini .radio-player { order: 1; width: 96px; }
.radio-panel.mini .radio-player iframe { border-radius: 10px; pointer-events: none; }
.radio-panel.mini .radio-head { order: 2; min-width: 0; }
.radio-panel.mini .radio-controls { order: 3; gap: 6px; }
.radio-panel.mini .now b { font-size: 14px; }
.radio-panel.mini .now span:last-child { font-size: 12px; }
.radio-panel.mini .round.playbtn, .radio-panel.mini .round.small { width: 44px; height: 44px; }

@media (max-width: 520px) {
  .city-hint { display: none; }
  .city-ui { justify-content: flex-end; }
  .gallery-cap { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .radio.on .radio-toggle .bars i { animation: none; height: 12px; }
}

.radio-link { align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; font-size: 12px; color: var(--teal); }
.grad { text-shadow: none; }

/* visualizer */
#viz { position: fixed; left: 0; bottom: 0; width: 100%; height: 34vh; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .8s ease; }

/* gallery backdrop */
#gallery-section { position: relative; overflow: hidden; }
#gallery-section > :not(.gallery-bg) { position: relative; }
.gallery-bg {
  position: absolute; inset: -60px; background: center / cover no-repeat; filter: blur(46px) saturate(1.3); opacity: .32;
  transition: background-image .6s ease; -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
}

/* world times */
.lead.small { font-size: 16px; margin-top: 8px; color: var(--mute); }
.world { list-style: none; padding: 0; margin-top: 18px; }
.world li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 10px; border-top: 1px solid var(--line); border-radius: 10px; }
.world b { font-weight: 600; }
.world span { grid-column: 1; font-size: 14px; color: var(--mute); }
.world em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-family: var(--display); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--gold); }
.world .me { background: rgba(255, 61, 154, .14); border-top-color: transparent; }
.world .me b { color: var(--pink); }

/* tools */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; width: min(1180px, calc(100% - 32px)); text-align: left; }
.hub-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); color: var(--ink); text-decoration: none; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .25s, border-color .25s; }
.hub-card:hover { transform: translateY(-3px); border-color: var(--pink); }
.hub-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.hub-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hub-card > span { display: grid; gap: 4px; padding: 14px 16px 18px; }
.hub-card b { font-family: var(--display); font-weight: 500; font-size: 17px; }
.hub-card span span { color: var(--mute); font-size: 14px; }
.hub-games { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; padding: 0 16px; }
.hub-games .pill { text-decoration: none; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; width: min(1180px, calc(100% - 32px)); text-align: left; }
.tool { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--glass); border: 1px solid var(--line); border-radius: 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tool h3 { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.3; }
.tool p { color: #e2d8f7; }
.tool label { font-size: 13px; color: var(--mute); }
.tool label output { color: var(--ink); font-weight: 600; }
.tool input[type=range] { margin-top: -6px; }
.tool input[type=number] { min-height: 48px; padding: 0 14px; width: 120px; font: 600 16px var(--body); color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 12px; }
.tool input[type=number]:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.tool-result b { display: block; font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--gold); }
.tool-result span { font-size: 14px; }
.tool-note { font-size: 12px; color: var(--mute) !important; margin-top: auto; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-actions.center { justify-content: center; margin-top: 14px; }
a.pill { text-decoration: none; }
.excuse { font-size: 18px; line-height: 1.45; min-height: 5.8em; }
.card-cta { margin-top: 22px; }

/* wait card */
.cardbox { width: min(420px, 92vw); }
.cardbox img { display: block; width: 100%; height: auto; max-height: 70svh; object-fit: contain; border-radius: 18px; box-shadow: 0 30px 120px rgba(255, 61, 154, .35); }

/* share row */
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.share-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 600; color: var(--mute); text-decoration: none; border-radius: 999px; border: 1px solid var(--line); }
.share-row a:hover { color: var(--ink); border-color: var(--pink); }
.faq a { color: var(--teal); }

/* opening screen */
.intro {
  position: fixed; inset: 0; z-index: 50; overflow: hidden; cursor: pointer;
  background: #05030f radial-gradient(90% 70% at 70% 110%, #5a1668 0%, #1c0c44 45%, #05030f 80%);
  animation: introOut .7s 3.6s forwards;       /* safety net if scripts never run */
}
.intro.out { animation: introOut .7s forwards; }
@keyframes introOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro-sun {
  position: absolute; right: 8vw; bottom: -18vmin; width: 62vmin; height: 62vmin; border-radius: 50%;
  background: linear-gradient(var(--gold), var(--orange) 45%, var(--pink)); box-shadow: 0 0 140px rgba(255, 61, 154, .5);
  -webkit-mask-image: repeating-linear-gradient(#000 0 7%, transparent 7% 9%); mask-image: repeating-linear-gradient(#000 0 7%, transparent 7% 9%);
  animation: introRise 4s ease-out both;
}
@keyframes introRise { from { transform: translateY(14vmin) scale(.96); } }
.intro p { position: absolute; margin: 0; }
.intro-place { left: clamp(20px, 5vw, 64px); top: clamp(24px, 6vh, 64px); font-family: var(--display); font-weight: 800; font-size: clamp(22px, 4.4vw, 48px); line-height: 1.1; text-align: left; animation: introIn .9s .15s both; }
.intro-place span { display: block; margin-top: 8px; font: 600 clamp(11px, 1.4vw, 14px) var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--teal); }
.intro-tip { left: clamp(20px, 5vw, 64px); bottom: clamp(70px, 12vh, 120px); max-width: min(520px, 70vw); text-align: left; font-size: clamp(15px, 2vw, 20px); color: #e2d8f7; padding-left: 16px; border-left: 3px solid var(--pink); animation: introIn .9s .5s both; }
.intro-load { right: clamp(20px, 5vw, 64px); bottom: clamp(24px, 5vh, 48px); display: flex; align-items: center; gap: 12px; font: 600 12px var(--body); letter-spacing: .3em; text-transform: uppercase; }
.intro-skip { left: clamp(20px, 5vw, 64px); bottom: clamp(24px, 5vh, 48px); font-size: 12px; color: var(--mute); letter-spacing: .1em; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes introIn { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) { .intro { display: none; } .char { transition: none; } }

/* launcher */
.ls {
  position: relative; overflow: hidden; width: min(1180px, calc(100% - 32px)); min-height: min(620px, 78svh);
  display: grid; grid-template: "top top" auto "menu main" 1fr "foot foot" auto / 230px 1fr; gap: 0 32px;
  padding: clamp(18px, 3vw, 34px); text-align: left; border-radius: 28px; border: 1px solid var(--line);
  background: #05030f radial-gradient(90% 80% at 85% 115%, #5a1668 0%, #1c0c44 45%, #05030f 80%);
  box-shadow: 0 30px 120px rgba(80, 40, 160, .35);
}
.ls > * { position: relative; }
.ls-sun {
  position: absolute; right: 4%; bottom: -24%; width: min(46%, 440px); aspect-ratio: 1; border-radius: 50%; opacity: .85;
  background: linear-gradient(var(--gold), var(--orange) 45%, var(--pink));
  -webkit-mask-image: repeating-linear-gradient(#000 0 7%, transparent 7% 9%); mask-image: repeating-linear-gradient(#000 0 7%, transparent 7% 9%);
}
.ls-top { grid-area: top; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 22px; }
.ls-title { font: 600 12px var(--body); letter-spacing: .3em; text-transform: uppercase; }
.ls-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mute); letter-spacing: .08em; }
.ls-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.ls.ready .ls-status i { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.ls-menu { grid-area: menu; display: flex; flex-direction: column; gap: 4px; }
.ls-menu a, .ls-menu button {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px; border: 0; border-left: 3px solid transparent; background: transparent;
  color: var(--mute); text-decoration: none; text-align: left; font: 600 15px var(--body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: color .2s ease, background .2s ease, padding .2s ease;
}
.ls-menu a:hover, .ls-menu button:hover, .ls-menu .sel { color: var(--ink); background: rgba(255, 255, 255, .07); border-left-color: var(--pink); padding-left: 20px; }
.ls-menu a:focus-visible, .ls-menu button:focus-visible, .ls-play:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ls-main { grid-area: main; align-self: center; max-width: 620px; padding: 20px 0; }
.ls-kicker { font: 600 12px var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--teal); }
.ls-count { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3.6vw, 44px); line-height: 1.15; margin-top: 10px; font-variant-numeric: tabular-nums; }
.ls-bar { height: 10px; margin-top: 26px; border-radius: 5px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ls-bar i { display: block; height: 100%; width: 99%; border-radius: 5px; background: linear-gradient(90deg, var(--teal), var(--gold), var(--pink)); }
.ls-pct { margin-top: 10px; font-size: 14px; color: var(--mute); }
.ls-pct b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ls-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; min-height: 60px; }
.ls-play {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 38px; border: 0; border-radius: 14px; cursor: pointer;
  font: 800 18px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: rgba(255, 255, 255, .1);
}
.ls.ready .ls-play { color: #1a0828; background: linear-gradient(90deg, var(--gold), var(--orange), var(--pink)); box-shadow: 0 10px 40px rgba(255, 61, 154, .45); }
.ls-play.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.ls-msg { font-size: 15px; color: var(--gold); }
.ls-foot { grid-area: foot; display: flex; align-items: center; gap: 12px; padding-top: 22px; font-size: 14px; color: #e2d8f7; min-height: 66px; }
.ls-foot .spinner { flex: none; width: 20px; height: 20px; }
@media (max-width: 760px) {
  .ls { grid-template: "top" auto "menu" auto "main" 1fr "foot" auto / 1fr; min-height: 0; }
  .ls-menu { flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 -18px; padding: 0 18px 6px; scrollbar-width: none; }
  .ls-menu::-webkit-scrollbar { display: none; }
  .ls-menu a, .ls-menu button { flex: none; border-left: 0; border-bottom: 3px solid transparent; padding: 0 12px; font-size: 13px; }
  .ls-menu a:hover, .ls-menu button:hover, .ls-menu .sel { padding-left: 12px; border-bottom-color: var(--pink); }
  .ls-sun { width: 70%; bottom: -16%; opacity: .28; }
  .ls-top { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .ls-play.shake { animation: none; } .spinner { animation: none; } }
.art-link { margin-top: 24px; }

/* parallax sunset */
.parallax {
  position: relative; overflow: hidden; min-height: min(92svh, 760px); padding: 0; justify-content: flex-start;
  background: linear-gradient(#07041a 0%, #2a1160 30%, #a83279 62%, #ff8a5c 86%, #ffc46b 100%);
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 100%); mask-image: linear-gradient(transparent, #000 12%, #000 100%);
}
.px { position: absolute; left: -4%; right: -4%; bottom: -70px; height: 78%; will-change: transform; pointer-events: none; }
.px svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.px-sun {
  left: 50%; right: auto; bottom: 8%; width: min(64vmin, 520px); height: auto; aspect-ratio: 1; margin-left: calc(min(64vmin, 520px) / -2); border-radius: 50%;
  background: linear-gradient(var(--gold), var(--orange) 45%, var(--pink)); box-shadow: 0 0 160px rgba(255, 120, 120, .6);
  -webkit-mask-image: linear-gradient(#000 52%, transparent 52% 55%, #000 55% 63%, transparent 63% 67%, #000 67% 76%, transparent 76% 82%, #000 82% 90%, transparent 90%);
  mask-image: linear-gradient(#000 52%, transparent 52% 55%, #000 55% 63%, transparent 63% 67%, #000 67% 76%, transparent 76% 82%, #000 82% 90%, transparent 90%);
}
.px-palms { height: 96%; }
.px-copy { position: relative; padding: clamp(90px, 16vh, 150px) 16px 0; text-shadow: 0 2px 30px rgba(7, 4, 26, .8); }
.px-copy h2 { font-weight: 800; font-size: clamp(28px, 5.4vw, 64px); line-height: 1.1; }
.px-copy .grad { text-shadow: none; }
#gallery-section { margin-top: -1px; }

/* sunset drive */
.drive {
  position: relative; width: min(1180px, calc(100% - 32px)); height: min(70svh, 640px); min-height: 380px;
  border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #1a0f3a; box-shadow: 0 30px 120px rgba(255, 61, 154, .22);
}
.drive canvas { width: 100%; height: 100%; display: block; outline: none; touch-action: pan-y; }
.drive.playing canvas { touch-action: none; cursor: pointer; }
.drive canvas:focus-visible { outline: 2px solid var(--teal); outline-offset: -4px; }
.drive-hud { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.drive-hud span { font: 600 13px var(--body); color: var(--ink); background: rgba(12, 7, 34, .65); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(8px); }
.drive-hud b { font-family: var(--display); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--gold); }
.drive-best { margin-left: auto; }
.drive-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px;
  background: rgba(7, 4, 26, .55); backdrop-filter: blur(3px); transition: opacity .3s ease;
}
.drive.playing .drive-overlay { opacity: 0; pointer-events: none; }
.drive-result { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 3vw, 28px); max-width: 22ch; line-height: 1.25; }
.drive-help { margin-top: 14px; font-size: 13px; color: var(--mute); }

/* ---------- official artwork ---------- */
.art-credit { position: absolute; right: 14px; bottom: 12px; font-size: 11px; letter-spacing: .08em; color: rgba(255, 255, 255, .75); text-shadow: 0 1px 6px #000; pointer-events: none; }

/* loading screen art */
.intro { animation-delay: 4.4s; background: #05030f; }
.intro-art { position: absolute; inset: 0; background: center / cover no-repeat; animation: introZoom 5s ease-out both; }
.intro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(5, 3, 15, .88)); pointer-events: none; }
.intro p { z-index: 1; }
@keyframes introZoom { from { transform: scale(1.08); } }

/* launcher art */
.ls-art { position: absolute; right: clamp(18px, 4vw, 48px); top: 50%; width: min(34%, 360px); height: auto; border-radius: 18px; transform: translateY(-50%) rotate(2deg); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .15); }
.ls-main { max-width: min(560px, 56%); }
@media (max-width: 760px) {
  .ls-art { position: relative; right: auto; top: auto; grid-row: 3; width: 150px; transform: rotate(-2deg); margin: 18px 0 0; }
  .ls { grid-template: "top" auto "menu" auto "art" auto "main" 1fr "foot" auto / 1fr; }
  .ls-art { grid-area: art; } .ls-main { max-width: none; }
}

/* characters with posters */
.cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: min(1180px, calc(100% - 32px)); perspective: 1200px; }
.char {
  position: relative; display: block; aspect-ratio: 3 / 4.4; overflow: hidden; border-radius: 22px; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; text-align: left; background: #120a2c;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.char.duo { grid-column: span 2; aspect-ratio: auto; }
.char > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s ease; }
.char:hover > img { transform: scale(1.05); }
.char:hover { border-color: var(--pink); box-shadow: 0 24px 70px rgba(255, 61, 154, .3); }
.char:focus-visible, .char a:focus-visible, .postcard a:focus-visible, .pc-inner:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.char-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 70px 18px 18px; background: linear-gradient(transparent, rgba(7, 4, 26, .94) 55%); }
.char b { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.2; }
.char-line { font-size: 14px; color: #e2d8f7; }
.char-go { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--teal); text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.char-go::after { content: " ↗"; white-space: pre; }
.char-links { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .cast { grid-template-columns: repeat(2, 1fr); gap: 12px; } .char.duo { aspect-ratio: 16 / 11; } .char b { font-size: 16px; } .char-line { font-size: 13px; } .char-body { padding: 50px 12px 12px; } }

/* postcards */
.postcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; width: min(1180px, calc(100% - 32px)); perspective: 1400px; }
.postcard { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pc-inner { position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: none; cursor: pointer; transform-style: preserve-3d; transform: rotate(var(--tilt)); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.pc-inner:hover { transform: rotate(0deg) translateY(-6px); }
.pc-inner.flipped { transform: rotateY(180deg); }
.pc-face { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.pc-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 8% 10%; text-align: left; color: #2a1b3d; background: #f7efe1 repeating-linear-gradient(transparent 0 27px, rgba(42, 27, 61, .12) 27px 28px); }
.pc-back b { font-family: var(--display); font-weight: 800; font-size: clamp(16px, 2vw, 24px); line-height: 1.15; }
.pc-back span { font-size: clamp(13px, 1.4vw, 16px); }
.pc-from { font-size: 11px !important; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.pc-stamp { position: absolute; right: 7%; top: 9%; width: 15%; aspect-ratio: 3 / 4; display: grid; place-items: center; font: 800 clamp(12px, 1.6vw, 20px) var(--display) !important; color: #fff; background: linear-gradient(var(--orange), var(--pink)); outline: 2px dashed #f7efe1; outline-offset: -5px; }
@media (max-width: 900px) { .postcards { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } }
@media (max-width: 520px) { .postcards { grid-template-columns: 1fr; } }

/* artwork viewer */
.artbox { width: min(1200px, 94vw); }
.artbox figure { margin: 0; position: relative; }
.artbox img { display: block; max-width: 100%; max-height: 74svh; margin: 0 auto; border-radius: 16px; box-shadow: 0 30px 120px rgba(255, 61, 154, .3); }
.artbox figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--mute); text-align: left; }
.artbox figcaption b { color: var(--ink); }
.art-count { align-self: center; font-size: 13px; color: var(--mute); min-width: 60px; text-align: center; }

/* radio cover */
.now-cover { width: 52px; height: 52px; border-radius: 10px; flex: none; object-fit: cover; }

@media (prefers-reduced-motion: reduce) { .intro-art { animation: none; } .slide, .slide figcaption, .pc-inner, .char > img { transition: none; } }

/* loading screen slider */
.loading { position: relative; padding: 0; min-height: 100svh; overflow: hidden; background: #05030f; outline: none; }
.loading:focus-visible { outline: 2px solid var(--teal); outline-offset: -4px; }
.ld-stage { position: absolute; inset: 0; cursor: pointer; touch-action: pan-y; }
.ld-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; user-select: none; }
.ld-slide.on { opacity: 1; animation: ldPan 7s ease-out both; }
@keyframes ldPan { from { transform: scale(1.1) translateX(-1.2%); } to { transform: scale(1.01); } }
.loading::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(5, 3, 15, .45), transparent 20%, transparent 48%, rgba(5, 3, 15, .94)); }
.loading > :not(.ld-stage) { position: absolute; z-index: 1; margin: 0; }
.ld-load { right: clamp(16px, 4vw, 48px); top: clamp(18px, 4vh, 40px); display: flex; align-items: center; gap: 12px; font: 600 12px var(--body); letter-spacing: .3em; text-transform: uppercase; text-shadow: 0 1px 8px #000; }
.ld-cap { left: clamp(20px, 5vw, 64px); right: clamp(20px, 5vw, 64px); bottom: 124px; text-align: left; pointer-events: none; }
.ld-cap .slide-no { display: block; font: 600 12px var(--body); letter-spacing: .28em; color: var(--teal); margin-bottom: 8px; }
.ld-cap b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 5.4vw, 64px); line-height: 1.05; text-shadow: 0 2px 24px #000; }
.ld-cap > span:not(.slide-no) { display: block; font-size: clamp(15px, 1.9vw, 20px); color: #e2d8f7; margin-top: 6px; max-width: 40ch; text-shadow: 0 1px 10px #000; }
.ld-cap .ld-tip { margin-top: 14px; padding-left: 12px; border-left: 3px solid var(--pink); font-size: 13px; color: var(--mute); }
.ld-arrow { top: 50%; transform: translateY(-50%); }
.ld-prev { left: clamp(10px, 2vw, 28px); } .ld-next { right: clamp(10px, 2vw, 28px); }
.ld-rail { left: 0; right: 0; bottom: 0; padding: 0 clamp(12px, 5vw, 64px) 14px; }
.ld-progress { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-bottom: 10px; }
.ld-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--pink)); }
@keyframes ldFill { from { width: 0; } to { width: 100%; } }
.ld-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.ld-thumbs::-webkit-scrollbar { display: none; }
.ld-thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: #120a2c; opacity: .6; transition: opacity .25s ease, transform .25s ease, border-color .25s ease; }
.ld-thumbs button:hover { opacity: 1; transform: translateY(-3px); }
.ld-thumbs button.on { opacity: 1; border-color: var(--pink); }
.ld-thumbs button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ld-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loading .art-credit { right: clamp(16px, 4vw, 48px); bottom: 104px; left: auto; }
@media (max-width: 700px) { .ld-arrow { display: none; } .ld-thumbs button { width: 52px; height: 52px; } .ld-cap { bottom: 112px; } .loading .art-credit { bottom: auto; top: 46px; } }

/* artwork backdrops */
section[data-bg] { position: relative; overflow: hidden; }
section[data-bg] > :not(.sec-bg) { position: relative; }
.sec-bg { position: absolute; inset: 0; pointer-events: none; opacity: .5; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.sec-bg picture, .sec-bg img { display: block; width: 100%; height: 100%; }
.sec-bg img { object-fit: cover; object-position: center 25%; transform: scale(1.22); will-change: transform; }
.sec-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7, 4, 26, .78) 20%, rgba(7, 4, 26, .35) 100%); }
section[data-bg] .panel { background: rgba(12, 7, 34, .72); }

/* section navigation */
.sidenav { position: fixed; z-index: 6; opacity: 0; pointer-events: none; transition: opacity .4s ease, transform .4s ease; }
.sidenav.show { opacity: 1; pointer-events: auto; }
.sidenav a { color: var(--mute); text-decoration: none; font: 600 12px var(--body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.sidenav a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (min-width: 1000px) {
  .sidenav { left: 0; top: 50%; transform: translate(-12px, -50%); display: flex; flex-direction: column; padding: 10px 14px 10px 10px; border-radius: 0 18px 18px 0; }
  .sidenav.show { transform: translate(0, -50%); }
  .sidenav:hover, .sidenav:focus-within { background: rgba(12, 7, 34, .9); border: 1px solid var(--line); border-left: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .sidenav a { display: flex; align-items: center; gap: 10px; min-height: 30px; }
  .sidenav i { width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); transition: width .25s ease, background .25s ease; flex: none; }
  .sidenav span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s ease, opacity .3s ease; }
  .sidenav:hover span, .sidenav:focus-within span, .sidenav a.on span { max-width: 180px; opacity: 1; }
  .sidenav a.on { color: var(--ink); }
  .sidenav a.on i { width: 26px; background: var(--pink); }
  .sidenav a:hover { color: var(--ink); } .sidenav a:hover i { background: var(--teal); }
  .sidenav a.on span { text-shadow: 0 1px 8px #000; }
}
@media (max-width: 999.98px) {
  html { scroll-padding-top: 52px; }
  .sidenav { left: 0; right: 0; top: 0; transform: translateY(-100%); display: flex; gap: 4px; overflow-x: auto; padding: 4px 10px; scrollbar-width: none;
    background: rgba(12, 7, 34, .88); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav.show { transform: none; }
  .sidenav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; }
  .sidenav i { display: none; }
  .sidenav a.on { color: #1a0828; background: linear-gradient(90deg, var(--gold), var(--pink)); }
}
@media (prefers-reduced-motion: reduce) { .ld-slide, .sidenav { transition: none; } .ld-slide.on img { animation: none; } }

/* artwork carousel shares the trailer gallery look */
#wall-section { position: relative; overflow: hidden; }
#wall-section > :not(.gallery-bg) { position: relative; }
#artGallery .card img { object-position: center 25%; }
#artGallery .card.active { cursor: zoom-in; }

/* hover: cards pop out of the grid and the picture zooms */
.cast { overflow: visible; }
.char { transform: scale(var(--s, 1)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .25s ease, box-shadow .35s ease; z-index: 0; }
@media (hover: hover) {
  .char:hover, .char:focus-within { --s: 1.12; z-index: 5; box-shadow: 0 40px 110px rgba(0, 0, 0, .7), 0 0 0 2px var(--pink), 0 0 70px rgba(255, 61, 154, .45); }
  .char.duo:hover, .char.duo:focus-within { --s: 1.06; }
  .char:hover > img { transform: scale(1.14); }
  .postcard { position: relative; z-index: 0; }
  .postcard:hover { z-index: 5; }
  .pc-inner:hover { transform: rotate(0deg) scale(1.2) translateY(-4px); }
  .pc-inner:hover .pc-face { box-shadow: 0 40px 100px rgba(0, 0, 0, .75), 0 0 60px rgba(255, 61, 154, .35); }
  .pc-inner.flipped:hover { transform: rotateY(180deg) scale(1.2); }
  .pc-front img { transition: transform .6s ease; }
  .pc-inner:hover .pc-front img { transform: scale(1.06); }
}
.ls-menu a, .ls-menu button { min-height: 44px; }
@media (min-width: 761px) { .ls-menu a, .ls-menu button { min-height: 40px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .ld-slide { transition: none; } .ld-slide.on { animation: none; } .char { transition: none; } }
/* keep the launcher's height fixed while its tip rotates, so in-page jumps land exactly */
@media (max-width: 760px) { .ls-foot { align-items: flex-start; min-height: 6.6em; } .ls-actions { min-height: 110px; align-content: flex-start; } }
.ld-cap .ld-tip.ld-tip { font-size: 13px; color: var(--mute); }
@media (max-width: 700px) { .ld-rail { padding-bottom: 100px; } .ld-cap { bottom: 200px; } }

/* 3D timeline */
.road3d {
  position: relative; overflow: hidden; width: min(1180px, calc(100% - 32px)); height: min(74svh, 640px); min-height: 460px;
  border-radius: 28px; border: 1px solid var(--line); outline: none; touch-action: pan-y; cursor: grab; user-select: none;
  background: linear-gradient(#05030f 0%, #150a3a 26%, #2a1160 36%);
  box-shadow: 0 30px 120px rgba(80, 40, 160, .35);
}
.road3d:active { cursor: grabbing; }
.road3d:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.r3-dawn { position: absolute; inset: 0 0 64% 0; background: linear-gradient(#1b0d4a, #a83279 62%, #ff8a5c 92%, #ffc46b); opacity: 0; }
.r3-sun {
  position: absolute; left: 50%; top: 36%; width: min(44vmin, 300px); aspect-ratio: 1; margin-top: calc(min(44vmin, 300px) * -0.72); border-radius: 50%;
  background: linear-gradient(var(--gold), var(--orange) 45%, var(--pink)); box-shadow: 0 0 120px rgba(255, 120, 120, .6);
  clip-path: inset(0 0 28% 0);
  -webkit-mask-image: linear-gradient(#000 40%, transparent 40% 43%, #000 43% 51%, transparent 51% 55%, #000 55% 63%, transparent 63% 68%, #000 68%);
  mask-image: linear-gradient(#000 40%, transparent 40% 43%, #000 43% 51%, transparent 51% 55%, #000 55% 63%, transparent 63% 68%, #000 68%);
}
.road3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.r3-signs { position: absolute; inset: 0; }
.r3-sign {
  position: absolute; left: 0; top: 0; width: min(300px, 74vw); padding: 16px 18px 18px; text-align: left; transform-origin: 50% 100%;
  background: rgba(12, 7, 34, .88); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  will-change: transform, opacity; transition: border-color .3s ease, box-shadow .3s ease; cursor: pointer;
}
.r3-sign::after { content: ""; position: absolute; left: 50%; top: 100%; width: 4px; height: 26px; margin-left: -2px; background: linear-gradient(var(--pink), transparent); }
.r3-sign.on { border-color: var(--pink); box-shadow: 0 0 60px rgba(255, 61, 154, .35); cursor: default; }
.r3-sign.final.on { border-color: var(--gold); box-shadow: 0 0 80px rgba(255, 215, 106, .5); }
.r3-sign time { display: block; font: 600 12px var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.r3-sign.final time { color: var(--gold); }
.r3-sign b { display: block; margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.2; }
.r3-sign p { margin-top: 6px; font-size: 14px; color: #e2d8f7; }
.r3-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; margin-bottom: 12px; border: 0; border-radius: 10px; overflow: hidden; background: #120a2c; cursor: pointer; }
.r3-media img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.r3-media .play { opacity: 1; width: 48px; height: 48px; }
.r3-media .play::after { left: 19px; top: 14px; border-left-width: 14px; border-top-width: 10px; border-bottom-width: 10px; }
.r3-media:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.r3-share { margin-top: 12px; min-height: 44px; font-size: 14px; }
.r3-hud { position: absolute; left: 20px; top: 16px; margin: 0; text-align: left; pointer-events: none; }
.r3-hud b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 4vw, 40px); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .92); text-shadow: 0 2px 20px #000; }
.r3-hud span { font: 600 12px var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--teal); }
.r3-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; width: min(820px, calc(100% - 32px)); margin-top: 18px; }
.r3-controls input[type=range] { flex: 1; min-width: 160px; margin: 0; }
@media (max-width: 700px) { .r3-sign { padding: 12px 14px 14px; } .r3-sign b { font-size: 17px; } .r3-controls .pill { width: 100%; justify-content: center; } }

/* after launch */
.since { margin-top: clamp(16px, 3vh, 30px); font: 600 12px var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--teal); }
.since + .countdown { margin-top: 12px; }
.launched #remindTool, .launched #arrived { display: none; }
.launched .unit { border-color: rgba(255, 215, 106, .4); box-shadow: 0 0 60px rgba(255, 215, 106, .16), inset 0 1px 0 rgba(255, 255, 255, .08); }
.since { color: var(--ink); text-shadow: 0 1px 12px var(--bg), 0 0 20px var(--bg); }

/* developer credit */
.maker { margin-top: 30px; font-size: 14px; color: var(--mute); }
.maker a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: 4px; padding: 0 16px; color: var(--ink); font-weight: 600; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .05); transition: border-color .2s ease, background .2s ease; }
.maker a:hover { border-color: var(--teal); background: rgba(77, 227, 214, .12); }
.maker a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.maker svg { color: var(--teal); }
.fine { margin-top: 20px; }

/* arcade */
.arcade { width: min(1180px, calc(100% - 32px)); }
.arc-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.arc-tabs button { min-height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); color: var(--mute); font: 600 15px var(--body); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: color .2s ease, border-color .2s ease; }
.arc-tabs button:hover { color: var(--ink); border-color: var(--pink); }
.arc-tabs button[aria-selected=true] { color: #1a0828; border-color: transparent; background: linear-gradient(90deg, var(--gold), var(--orange), var(--pink)); }
.arc-tabs button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.gm { position: relative; height: min(66svh, 560px); min-height: 400px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #150a3a; box-shadow: 0 30px 120px rgba(255, 61, 154, .2); }
.gm canvas { width: 100%; height: 100%; display: block; outline: none; touch-action: none; cursor: pointer; }
.gm canvas:focus-visible { outline: 2px solid var(--teal); outline-offset: -4px; }
.gm-hud { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.gm-hud > span { font: 600 13px var(--body); color: var(--ink); background: rgba(12, 7, 34, .7); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(8px); }
.gm-hud b { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--gold); font-variant-numeric: tabular-nums; }
.gm-lives { letter-spacing: .25em; color: var(--pink) !important; }
.gm-best { margin-left: auto; }
.gm-hud .pill { pointer-events: auto; min-height: 40px; padding: 0 16px; font-size: 13px; }
.gm-overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; background: rgba(7, 4, 26, .62); backdrop-filter: blur(3px); transition: opacity .3s ease; }
.gm.playing .gm-overlay { opacity: 0; pointer-events: none; }
.gm-msg { font-family: var(--display); font-weight: 500; font-size: clamp(17px, 2.8vw, 26px); max-width: 24ch; line-height: 1.3; }
.gm-help { margin-top: 14px; font-size: 13px; color: var(--mute); max-width: 44ch; }

/* neon match */
.gm.match { height: auto; min-height: 0; padding: 14px 16px 22px; background: radial-gradient(90% 80% at 50% 0%, #2a1160, #150a3a); }
.gm.match .gm-hud { position: static; margin: 0 0 16px; }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(100%, 480px, calc(66svh - 110px)); aspect-ratio: 1; margin: 0 auto; }
.mcard { position: relative; padding: 0; border: 0; background: none; cursor: pointer; perspective: 600px; aspect-ratio: 1; min-width: 0; }
.mcard:disabled { cursor: default; }
.mi { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.mcard.up .mi, .mcard.done .mi { transform: rotateY(180deg); }
.mf { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--line); }
.mfront { font: 800 clamp(16px, 4vw, 26px) var(--display); color: rgba(255, 255, 255, .85); background: linear-gradient(135deg, #5a1668, #ff3d9a 130%); }
.mback { transform: rotateY(180deg); background: #0d0920; }
.mback svg { width: 62%; height: 62%; filter: drop-shadow(0 0 8px currentColor); }
.mcard.done .mback { border-color: currentColor; box-shadow: 0 0 24px rgba(255, 255, 255, .12); }
.mcard:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 14px; }
@media (hover: hover) { .mcard:not(.up):not(.done):hover .mi { transform: rotateY(14deg) translateY(-3px); } }
@media (max-width: 520px) { .arc-tabs { flex-wrap: nowrap; gap: 6px; } .arc-tabs button { flex: 1 1 auto; padding: 0 8px; font-size: 13px; white-space: nowrap; } .gm { min-height: 380px; } .mgrid { gap: 7px; } .gm-hud > span { padding: 6px 10px; } }
@media (prefers-reduced-motion: reduce) { .mi { transition: none; } }

/* sound effects button */
.sfx-toggle { pointer-events: auto; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--ink); background: rgba(12, 7, 34, .7); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s ease, color .2s ease; }
.sfx-toggle:hover { border-color: var(--pink); }
.sfx-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.sfx-toggle[aria-pressed=true] .sx, .sfx-toggle[aria-pressed=false] .sw { display: none; }
.sfx-toggle[aria-pressed=false] { color: var(--mute); }
.sfx-toggle[aria-pressed=false] .sx { stroke: var(--pink); }
.gm-hud .sfx-toggle, .drive-hud .sfx-toggle { margin-left: 4px; }

/* keep the top bar (and its mute button) clickable above the start / game-over overlay */
.gm-hud { z-index: 4; }
.drive-hud { z-index: 3; }
.drive-overlay { z-index: 2; }


/* ---------- fan hub ---------- */
/* after launch the countdown gives way to a day counter and quick links */
.launched .countdown, .launched .since { display: none; }
.fanhero { margin-top: clamp(14px, 3vh, 30px); }
.dayn { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0; font-family: var(--display); }
.dayn span { font-weight: 500; font-size: clamp(16px, 3vw, 30px); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.dayn b { font-weight: 800; font-size: clamp(72px, 16vw, 190px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, var(--gold), var(--orange) 45%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dayn-sub { margin-top: 6px; font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; text-shadow: 0 1px 12px var(--bg); }
.fan-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.fan-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 7, 34, .6); color: var(--ink); text-decoration: none; font: 600 14px var(--body); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s ease, background .2s ease; }
.fan-chips a:hover { border-color: var(--pink); background: rgba(255, 61, 154, .16); }
.fan-chips a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* latest updates */
.updates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: min(1180px, calc(100% - 32px)); text-align: left; }
@media (max-width: 900px) { .updates { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .updates { grid-template-columns: 1fr; } }
.upd { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--glass); color: var(--ink); text-decoration: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
a.upd:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: 0 20px 60px rgba(255, 61, 154, .22); }
a.upd:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.upd time { font: 600 12px var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.upd b { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.3; }
.upd p { font-size: 14px; color: #e2d8f7; margin: 0; }
.upd-src { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--mute); }

/* quiz */
.quiz { width: min(900px, calc(100% - 32px)); text-align: left; }
.qz-card { padding: clamp(20px, 4vw, 40px); border: 1px solid var(--line); border-radius: 28px; background: rgba(12, 7, 34, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.qz-step { font: 600 12px var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--teal); margin: 0; }
.qz-bar { height: 6px; margin: 12px 0 22px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.qz-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--gold), var(--pink)); transition: width .4s ease; }
.qz-q { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(20px, 3.4vw, 32px); line-height: 1.25; outline: none; }
.qz-intro .qz-q { margin-top: 10px; }
.qz-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.qz-opt { min-height: 72px; padding: 14px 18px; text-align: left; font: 500 16px var(--body); color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.qz-opt:hover { border-color: var(--pink); background: rgba(255, 61, 154, .14); transform: translateY(-2px); }
.qz-opt:focus-visible, .qz-back:focus-visible, .qz-official:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.qz-back { margin-top: 16px; min-height: 44px; padding: 0 6px; background: none; border: 0; color: var(--mute); font: 600 14px var(--body); cursor: pointer; }
.qz-back:hover { color: var(--ink); }
.qz-result { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(18px, 4vw, 40px); align-items: center; }
.qz-art { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: 20px; box-shadow: 0 30px 90px rgba(255, 61, 154, .3); }
.qz-name { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 54px); line-height: 1.05; outline: none; }
.qz-title { margin: 8px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(16px, 2.2vw, 22px); background: linear-gradient(90deg, var(--gold), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qz-traits { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.qz-traits li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font: 600 13px var(--body); }
.qz-line { margin: 16px 0 0; color: #e2d8f7; }
.qz-close { margin: 10px 0 0; font-size: 14px; color: var(--mute); }
.qz-result .tool-actions { margin-top: 20px; }
.qz-official { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--teal); font: 600 14px var(--body); text-decoration: none; }
.qz-note { margin: 6px 0 0; font-size: 12px; color: var(--mute); }

/* soundtrack */
.st { width: min(860px, calc(100% - 32px)); text-align: left; }
.st-bar { display: flex; flex-direction: column; gap: 12px; }
#stSearch { min-height: 52px; padding: 0 18px; width: 100%; font: 500 16px var(--body); color: var(--ink); background: rgba(12, 7, 34, .78); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(10px); }
#stSearch::placeholder { color: var(--mute); }
#stSearch:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chips button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 7, 34, .7); color: var(--mute); font: 600 13px var(--body); cursor: pointer; }
.st-chips button:hover { color: var(--ink); border-color: var(--pink); }
.st-chips button[aria-pressed=true] { color: #1a0828; border-color: transparent; background: linear-gradient(90deg, var(--gold), var(--orange), var(--pink)); }
.st-chips button:focus-visible, .st-fav:focus-visible, .st-play:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.st-count { margin: 14px 4px 6px; font-size: 13px; color: var(--mute); min-height: 1.3em; }
.st-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.st-list li { display: flex; gap: 6px; align-items: stretch; }
.st-play { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 16px; text-align: left; color: var(--ink); background: rgba(12, 7, 34, .78); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; font: 14px var(--body); transition: border-color .2s ease, background .2s ease; }
.st-play:hover { border-color: var(--pink); background: rgba(255, 61, 154, .12); }
.st-play i { width: 24px; flex: none; font-style: normal; font-size: 12px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.st-play span { flex: 1; min-width: 0; }
.st-play b, .st-play em { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: normal; }
.st-play b { font-size: 15px; } .st-play em { font-size: 13px; color: var(--mute); }
.st-play svg { flex: none; color: var(--teal); }
.st-fav { flex: none; width: 56px; display: grid; place-items: center; color: var(--mute); background: rgba(12, 7, 34, .78); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; }
.st-fav svg { fill: none; }
.st-fav:hover { color: var(--pink); border-color: var(--pink); }
.st-fav[aria-pressed=true] { color: var(--pink); } .st-fav[aria-pressed=true] svg { fill: currentColor; }
.st-empty { display: block !important; padding: 22px; text-align: center; color: var(--mute); }
.st .tool-actions { margin-top: 18px; }

@media (max-width: 700px) {
  .qz-opts { grid-template-columns: 1fr; }
  .qz-result { grid-template-columns: 1fr; }
  .qz-art { max-width: 240px; height: auto; aspect-ratio: 4 / 5; }
  .fan-chips a { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { .qz-bar i, .upd, .qz-opt { transition: none; } }

/* ---------- mission passed ---------- */
.passed { position: relative; overflow: hidden; padding: clamp(80px, 12vh, 140px) 16px; min-height: 100svh; background: #05030f; }
.mp-bg { position: absolute; inset: -6% 0; transform: scale(1.18); will-change: transform; }
.mp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.mp-slide.on { opacity: 1; }
.mp-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.mp-slide.on img { animation: ldPan 9s ease-out both; }
.passed::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5, 3, 15, .8) 0%, rgba(5, 3, 15, .62) 55%, rgba(5, 3, 15, .88) 100%); pointer-events: none; }
.mp-body { position: relative; z-index: 1; width: min(860px, 100%); display: flex; flex-direction: column; align-items: center; }
.mp-kicker { font: 600 clamp(13px, 1.8vw, 18px) var(--body); letter-spacing: .34em; text-transform: uppercase; color: var(--ink); margin: 0; }
.mp-title { margin: 14px 0 0; width: min(900px, 100%); line-height: 0; }
.mp-title img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .55)); }
@media (max-width: 700px) { .mp-title { width: min(340px, 92%); } }
.mp-respect { margin: 12px 0 0; font: 600 clamp(14px, 2vw, 20px) var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--teal); }
.passed .mp-title, .passed .mp-kicker, .passed .mp-respect { opacity: 0; transform: scale(1.25); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .2, 1); }
.passed.seen .mp-title, .passed.seen .mp-kicker, .passed.seen .mp-respect { opacity: 1; transform: none; }
.passed.seen .mp-title { transition-delay: .15s; } .passed.seen .mp-respect { transition-delay: .5s; }
.mp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; width: min(680px, 100%); margin: clamp(22px, 4vh, 40px) 0 0; text-align: left; }
.mp-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.mp-stats dt { font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.mp-stats dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(16px, 2.4vw, 24px); font-variant-numeric: tabular-nums; text-align: right; }
.mp-stats dd.grad { text-shadow: none; }
.mp-note { margin-top: clamp(22px, 4vh, 40px); padding: clamp(20px, 4vw, 34px); text-align: left; border: 1px solid var(--line); border-radius: 24px; background: rgba(12, 7, 34, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.mp-note p { margin: 0 0 14px; font-size: clamp(16px, 1.9vw, 19px); color: #e9e0fb; }
.mp-note b { color: var(--ink); }
.mp-note .mp-sign { margin: 0; font-family: var(--display); font-weight: 500; color: var(--gold); }
.passed .tool-actions { margin-top: 24px; }
.passed .art-credit { position: static; margin-top: 22px; }
@media (max-width: 600px) { .mp-stats { grid-template-columns: 1fr; } }

/* ---------- party stage ---------- */
.party { position: relative; width: min(1180px, calc(100% - 32px)); height: min(76svh, 680px); min-height: 440px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #150a3a; box-shadow: 0 30px 120px rgba(255, 61, 154, .25); }
.party canvas { width: 100%; height: 100%; display: block; outline: none; touch-action: none; cursor: grab; }
.party canvas:active { cursor: grabbing; }
.party canvas:focus-visible { outline: 2px solid var(--teal); outline-offset: -4px; }
.party-tag, .party-djtag { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; opacity: 0; font: 600 12px var(--body); letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; background: rgba(12, 7, 34, .78); border: 1px solid var(--line); color: var(--ink); max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
.party-tag { border-color: var(--pink); color: #fff; }
.party:not(.in) .party-tag { display: none; }
.party-djtag { color: var(--gold); }
.party-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 24px 20px 34px; background: linear-gradient(transparent 35%, rgba(7, 4, 26, .82)); transition: opacity .3s ease; }
.party.in .party-overlay { opacity: 0; pointer-events: none; }
.party-hud { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: none; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.party.in .party-hud { display: flex; }
.party-moves { display: flex; gap: 6px; flex-wrap: wrap; pointer-events: auto; }
.party-moves button { min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 7, 34, .78); color: var(--ink); font: 600 14px var(--body); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.party-moves button:hover { border-color: var(--pink); }
.party-moves button[aria-pressed=true] { color: #1a0828; border-color: transparent; background: linear-gradient(90deg, var(--gold), var(--orange), var(--pink)); }
.party-moves button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.party-top .pill { min-height: 44px; padding: 0 16px; font-size: 13px; }
@media (max-width: 700px) { .party-hud { bottom: 70px; } .party-moves button { padding: 0 12px; font-size: 13px; } }

/* party sign-in dialog */
.formbox { width: min(460px, 92vw); }
.formbox form { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 5vw, 32px); text-align: left; border: 1px solid var(--line); border-radius: 26px; background: #120a2c; color: var(--ink); box-shadow: 0 30px 120px rgba(255, 61, 154, .3); }
.formbox h2 { font-size: clamp(22px, 5vw, 30px); font-weight: 800; margin-bottom: 6px; }
.formbox label, .formbox legend { font: 600 13px var(--body); letter-spacing: .08em; color: var(--mute); margin-top: 8px; padding: 0; }
.formbox input[type=text] { min-height: 50px; width: 100%; min-width: 0; padding: 0 16px; font: 500 16px var(--body); color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 14px; }
.formbox input[type=text]:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.formbox input[aria-invalid=true] { border-color: var(--pink); }
.pd-row { display: flex; gap: 8px; } .pd-row .pill { flex: none; padding: 0 16px; font-size: 13px; }
.pd-err { margin: 0; font-size: 13px; color: #ff8fc2; }
.pd-outfit { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pd-outfit legend { margin-bottom: 8px; }
.swatch { position: relative; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; margin: 0 !important; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span:not(.sr-only) { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); transition: transform .15s ease; }
.swatch input:checked + span { transform: scale(1.2); border-color: #fff; box-shadow: 0 0 0 3px var(--pink); }
.swatch input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 4px; }
.pd-note { margin: 6px 0 4px; font-size: 12px; color: var(--mute); }
.formbox .tool-actions { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .mp-slide, .passed .mp-title, .passed .mp-kicker, .passed .mp-respect { transition: none; } .mp-slide.on img { animation: none; } }

.party-top { position: absolute; right: 12px; top: 12px; z-index: 2; display: none; gap: 6px; }
.party.in .party-top { display: flex; }

.mp-stats dd.txt { white-space: nowrap; }
@media (max-width: 700px) { .party-moves { flex-wrap: nowrap; } .party-moves button { padding: 0 10px; font-size: 12px; min-height: 44px; } }

.party-npc { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; opacity: 0; font: 500 11px var(--body); letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: rgba(12, 7, 34, .6); border: 1px solid var(--line); color: var(--mute); transition: opacity .25s ease; }

/* ten dance moves: one scrolling row */
.party-hud { right: 12px; }
.party-moves { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding: 4px; margin: -4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.party-moves::-webkit-scrollbar { display: none; }
.party-moves button { flex: none; white-space: nowrap; }
@media (min-width: 701px) { .party-hud { right: 360px; } }

/* music sync */
.stations { grid-template-columns: repeat(2, 1fr); }
.party-top { flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 24px); }
.party-sync { position: absolute; left: 12px; top: 12px; z-index: 2; display: none; margin: 0; max-width: min(46%, 320px); text-align: left; font: 500 12px var(--body); color: var(--ink); padding: 7px 12px; border-radius: 14px; background: rgba(12, 7, 34, .72); border: 1px solid var(--line); }
.party.in .party-sync { display: block; }
@media (max-width: 700px) { .party-sync { top: auto; bottom: 126px; max-width: calc(100% - 24px); } .party-top .pill { padding: 0 12px; font-size: 12px; } }
