/* Endless Festival landing page. Hand-written (build_site.py writes the
   HTML and images, not this). The look is the game's own: its tokens,
   its pixel font, its 9-slice frames as border-images (1 frame px = 1
   CSS px, like the game at 720 wide), and its sprites, scaled only by
   whole numbers or by the stage's own --s. */

@font-face { font-family: "Festival Pixel"; src: url(fonts/FestivalPixel-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Festival Pixel"; src: url(fonts/FestivalPixel-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #0b0d16;
  --glass-deep: #0e1426;
  --glass: #18203a;
  --glass-hi: #2a3558;
  --steel-100: #dce0ea;
  --steel-300: #98a0b2;
  --steel-500: #646c80;
  --steel-700: #3e4456;
  --gold-300: #ffe9a0;
  --gold-500: #f2c04a;
  --gold-700: #a8741e;
  --text: #f5ebd1;
  --text-header: #ffd959;
  --text-label: #9eb0d9;
  --text-value: #fff7e0;
  --text-on-gold: #291705;
  --teal: #1ea898;
  --purple: #7446c8;
  --purple-dark: #5e36a8;
  --red: #d03844;
  --blue: #4468b8;
  --lilac: #c79eff;
  --pick: #e8b82a;
  --pick-outline: #3a2406;
  --sky-night: #24104a;
  --sky-horizon: #e87a4a;
  --crowd: #1a0e22;
  --keep: #8ce68c;
  --pixel: "Festival Pixel", ui-monospace, monospace;
  --read: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --col: 880px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--text);
  font: 400 19px/1.5 var(--pixel);
}
img, .px, .band, .fan, .closeup, .mini-band, .fan-front { image-rendering: pixelated; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-300); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--text-header); outline-offset: 3px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold-500); color: var(--text-on-gold); padding: 8px 12px; }
.skip:focus { left: 8px; }

.container { position: relative; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Breaks out of the column to the full window width. */
.bleed, .marquee { width: 100vw; margin-left: calc(50% - 50vw); }

/* --- The game's frames -------------------------------------------------- */
.bezel {
  border: 18px solid transparent;
  border-image: url(img/ui/frame_bezel.png) 18 fill / 18px stretch;
  padding: 4px 6px;
}
.inset {
  border: 9px solid transparent;
  border-image: url(img/ui/frame_inset.png) 9 fill / 9px stretch;
  padding: 10px 12px;
}
.bezel-plate {
  border: 12px solid transparent;
  border-image: url(img/ui/frame_plate.png) 12 fill / 12px stretch;
  padding: 0 8px;
}
.btn-gold {
  display: inline-block;
  border: 12px solid transparent;
  border-image: url(img/ui/btn_gold.png) 12 fill / 12px stretch;
  padding: 0 8px 4px;
  color: var(--text-on-gold);
  font-weight: 700;
  text-decoration: none;
}
.btn-gold:hover { border-image-source: url(img/ui/btn_gold_hover.png); }
.btn-gold:active { border-image-source: url(img/ui/btn_gold_pressed.png); padding: 4px 8px 0; }

.section-title {
  font-size: clamp(30px, 5.4vw, 52px);
  color: var(--text-header);
  text-align: center;
  text-shadow: 3px 3px 0 var(--pick-outline), -1px -1px 0 var(--pick-outline), 1px -1px 0 var(--pick-outline), -1px 1px 0 var(--pick-outline);
  letter-spacing: .02em;
}

/* --- Language switch: at the top of the page, scrolls away with it ---- */
.topbar {
  position: absolute; top: 0; right: 0; z-index: 5;
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) 0 var(--gutter);
}
.langs { display: flex; gap: 6px; }
.langs a {
  min-width: 44px; text-align: center; text-decoration: none; font-size: 15px; font-weight: 700;
  color: var(--text-label);
  border: 9px solid transparent; border-image: url(img/ui/frame_inset.png) 9 fill / 9px stretch;
  padding: 0 2px;
}
.langs a:hover { color: var(--text); }
.langs a[aria-current] { color: var(--text-on-gold); border: 12px solid transparent; border-image: url(img/ui/btn_gold.png) 12 fill / 12px stretch; padding: 0 0 4px; margin: -3px 0; min-width: 50px; }


/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative; text-align: center;
  padding: 72px 0 40px;
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-sky {
  position: absolute; z-index: -1; top: 0; bottom: -320px; left: calc(50% - 50vw); width: 100vw;
  background: linear-gradient(var(--sky-night) 0%, #3b1a5e 38%, #8a3a62 62%, var(--sky-horizon) 78%, #6a2c3a 88%, var(--ink) 100%);
}
.hero-sky i { position: absolute; width: 4px; height: 4px; background: #fff3c2; animation: twinkle 3.2s steps(2) infinite; }
.hero-sky i:nth-child(1) { left: 8%; top: 12%; }
.hero-sky i:nth-child(2) { left: 22%; top: 30%; animation-delay: -1s; background: #a8b8ff; }
.hero-sky i:nth-child(3) { left: 37%; top: 8%; animation-delay: -2.1s; }
.hero-sky i:nth-child(4) { left: 61%; top: 18%; animation-delay: -.6s; background: #a8b8ff; }
.hero-sky i:nth-child(5) { left: 78%; top: 9%; animation-delay: -1.7s; }
.hero-sky i:nth-child(6) { left: 90%; top: 27%; animation-delay: -2.6s; }
.hero-sky i:nth-child(7) { left: 14%; top: 46%; animation-delay: -.3s; background: #a8b8ff; }
.hero-sky i:nth-child(8) { left: 85%; top: 44%; animation-delay: -1.3s; }
@keyframes twinkle { 50% { opacity: .15; } }

.logo { margin: 0; width: min(580px, 100%); }
.logo img { display: block; width: 100%; filter: drop-shadow(0 6px 0 rgba(26, 14, 34, .55)); animation: logo-in .9s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes logo-in { from { transform: scale(.6) translateY(-30px); opacity: 0; } }
.hero-pick { position: relative; margin: 22px 0 10px; animation: bob 2.6s ease-in-out infinite; }
.hero-pick img { width: 96px; filter: drop-shadow(0 0 18px rgba(242, 192, 74, .55)); }
.spark { position: absolute; width: 6px; height: 6px; background: var(--gold-300); box-shadow: 0 -6px 0 var(--gold-300), 0 6px 0 var(--gold-300), -6px 0 0 var(--gold-300), 6px 0 0 var(--gold-300); animation: spark 1.8s steps(3) infinite; }
.s1 { left: -16px; top: 12px; }
.s2 { right: -18px; bottom: 18px; animation-delay: -.9s; }
@keyframes spark { 0% { transform: scale(0); } 33% { transform: scale(1); } 66% { transform: scale(.5); opacity: .6; } 100% { transform: scale(0); } }
@keyframes bob { 50% { transform: translateY(-12px); } }

.tagline { font-size: clamp(26px, 4.4vw, 40px); font-weight: 700; color: var(--text-value); margin: 6px 0 8px; text-shadow: 3px 3px 0 var(--crowd); max-width: 20ch; }
.sub { max-width: 34ch; color: var(--text); margin: 0 auto 26px; font-size: 20px; text-shadow: 2px 2px 0 var(--crowd); }

/* --- Store buttons ("coming soon") ---------------------------------------- */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 20px; margin-top: 14px; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-width: 214px;
  border: 12px solid transparent; border-image: url(img/ui/btn_normal.png) 12 fill / 12px stretch;
  padding: 2px 10px 6px 4px;
  color: var(--text-value); text-align: left; cursor: default; user-select: none;
}
.store-mark { flex: none; }
.st-text { display: flex; flex-direction: column; line-height: 1.05; }
.st-small { font-size: 13px; color: var(--text-label); text-transform: uppercase; letter-spacing: .04em; }
.st-big { font-size: 25px; font-weight: 700; }
.st-soon {
  position: absolute; top: -30px; right: -18px;
  background: var(--gold-500); color: var(--text-on-gold);
  border: 3px solid var(--pick-outline); box-shadow: 3px 3px 0 rgba(0, 0, 0, .35);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  padding: 1px 8px 2px; transform: rotate(5deg);
  animation: soon 3s ease-in-out infinite;
}
.st-google .st-soon { animation-delay: -1.5s; }
@keyframes soon { 50% { transform: rotate(-3deg) translateY(-3px); } }

/* --- The stage ---------------------------------------------------------- */
.stage-wrap { margin: 20px 0 10px; text-align: center; }
.now-playing { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px; margin-bottom: 14px; font-size: 18px; }
.np-label { color: var(--text-label); text-transform: uppercase; font-size: 14px; letter-spacing: .06em; }
.np-band { color: var(--text-header); font-weight: 700; font-size: 22px; }
.np-genre { color: var(--steel-300); font-size: 15px; }
.nameplate, .screen-logo, .closeup { transition: opacity .35s; }
.stage .backdrop, .stage .band, .stage .screen { transition: filter .35s; }

.scaled { position: relative; overflow: hidden; }
.scale-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--s, .5)); }

.stage {
  aspect-ratio: 720 / 780; max-width: 720px; margin: 0 auto;
  border: 18px solid transparent; border-image: url(img/ui/frame_bezel.png) 18 fill / 18px stretch;
  background-clip: padding-box;
  box-shadow: 0 0 0 4px var(--ink), 0 24px 60px rgba(0, 0, 0, .55);
}
.stage-inner { width: 720px; height: 780px; }
/* Positions are the game's own: the backdrop's 780x570 picture with world
   (0,0) at its (390,70), shown from (30,40). */
.backdrop, .backdrop::after { position: absolute; left: -30px; top: -40px; width: 780px; height: 570px; background: url(img/stage/stadium_1.png); }
.backdrop::after { content: ""; left: 0; top: 0; background-image: url(img/stage/stadium_2.png); animation: chase 1.2s steps(1) infinite; }
@keyframes chase { 50% { opacity: 0; } }
.screen { position: absolute; overflow: hidden; background: #050507; }
.screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .22) 2px 3px); pointer-events: none; }
.screen-main { left: 249px; top: 161px; width: 222px; height: 114px; }
.screen-logo { display: block; width: 100%; height: 100%; max-width: none; animation: screen-glow 2.4s ease-in-out infinite; }
@keyframes screen-glow { 50% { filter: brightness(1.18); } }
.screen-side { top: 137px; width: 102px; height: 156px; }
.screen-left { left: 120px; }
.screen-right { left: 498px; }
.closeup {
  position: absolute; inset: 0;
  background-image: var(--sheet);
  background-size: 1326px 319px;
  background-position: calc(var(--cx, 12) * -1.7px) calc(var(--cy, 64) * -1.733px);
  animation: closeup .5s steps(3) infinite;
}
@keyframes closeup { to { background-position-x: calc(var(--cx, 12) * -1.7px - 1326px); } }
.band {
  position: absolute; left: 230px; top: 296px; width: 260px; height: 184px;
  background-size: 780px 184px; background-repeat: no-repeat;
  animation: frames3 .5s steps(3) infinite;
}
@keyframes frames3 { to { background-position-x: -780px; } }
.nameplate {
  position: absolute; left: 160px; top: 500px; width: 400px; text-align: center; z-index: 12;
  font-size: 26px; font-weight: 700; color: var(--text-value);
  text-shadow: 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 0 4px 0 var(--ink);
}
/* Between bands the stage blacks out: lights and screens down, the next
   act walks on in the dark, lights up. The crowd in front stays lit. */
.stage.swap .backdrop, .stage.swap .band, .stage.swap .screen { filter: brightness(.1); }
.stage.swap .nameplate, .stage.swap .screen-logo, .stage.swap .closeup, .stage.swap .pyro { opacity: 0; }
/* The game's Pyrotechnics tier: a 300x128 three-frame effect per genre
   flavour, drawn over the band at 2.4x, centred on world (0, 312). */
.pyro {
  position: absolute; left: 0; top: 188px; width: 720px; height: 307px; z-index: 2;
  background-size: 2160px 307px; background-repeat: no-repeat; image-rendering: pixelated;
  animation: pyro .43s steps(3) infinite; display: none; transition: opacity .35s;
}
.stage.has-pyro .pyro { display: block; }
@keyframes pyro { to { background-position-x: -2160px; } }
.floor { position: absolute; left: -30px; top: 530px; width: 780px; height: 420px; background: url(img/stage/floor_stadium.png); }
.crowd { position: absolute; left: 0; top: 0; width: 720px; height: 780px; }

/* Fans: 88x148 frames, two per sheet. --z scales them by whole numbers. */
/* Each fan holds both views, loaded up front, and shows one: swapping a
   background image instead blanks the fan while the new one loads. */
.fan { position: absolute; width: 88px; height: 148px; -webkit-tap-highlight-color: transparent; }
.fan i {
  position: absolute; inset: 0;
  background-size: 176px 148px; background-repeat: no-repeat;
  animation: frames2 1.33s steps(2) infinite; animation-delay: var(--d, 0s);
}
.fan .front, .fan .side, .fan.needy .back { visibility: hidden; }
.fan.needy .front { visibility: visible; }
/* In the circle pit: the side run pose, faster, mirrored going left. */
.fan.pit .back, .fan.pit .front { visibility: hidden; }
.fan.pit .side { visibility: visible; animation-duration: .6s; }
.fan.pit.left .side { transform: scaleX(-1); }
@keyframes frames2 { to { background-position-x: -176px; } }
.fan.needy { cursor: pointer; }
.fan.hop { animation: hop .3s ease-out; }
@keyframes hop { 30% { scale: 1.08 .92; } 60% { scale: .95 1.06; } }
.runner { position: absolute; width: 88px; height: 148px; background-size: 176px 148px; animation: frames2 .33s steps(2) infinite; pointer-events: none; }
.runner.flip { transform: scaleX(-1); }
.pop { position: absolute; z-index: 30; pointer-events: none; width: 160px; margin-left: -80px; text-align: center; }
.pop-item { position: absolute; left: 62px; top: 30px; width: 36px; animation: item-pop .72s ease-out forwards; }
@keyframes item-pop { 0% { transform: translateY(0) scale(0); } 30% { transform: translateY(-24px) scale(1.15); } 40% { transform: translateY(-24px) scale(1); } 80% { transform: translateY(-24px) scale(1); } 100% { transform: translateY(-24px) scale(0); } }
.pop-amt {
  position: absolute; left: 0; right: 0; top: -10px;
  font: 700 30px/1 var(--pixel); color: var(--text-header);
  text-shadow: 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink);
  animation: amt 1.2s ease-out forwards;
}
.pop.vip .pop-amt { color: var(--lilac); }
@keyframes amt { 0% { transform: scale(.6); opacity: 1; } 18% { transform: scale(1); } 70% { opacity: 1; } 100% { transform: translateY(-58px); opacity: 0; } }
.tap-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--text-label); font-size: 16px; }

/* --- Marquees ------------------------------------------------------------ */
.marquee {
  position: relative; z-index: 2; overflow: hidden;
  margin-top: 56px; margin-bottom: 56px;
  background: var(--gold-500); color: var(--text-on-gold);
  border-block: 5px solid var(--pick-outline);
  box-shadow: inset 0 4px 0 var(--gold-300), inset 0 -4px 0 var(--gold-700), 0 8px 0 rgba(0, 0, 0, .3);
  transform: rotate(-2deg);
}
.mq-alt { background: var(--purple); color: var(--text-value); box-shadow: inset 0 4px 0 #9a72e0, inset 0 -4px 0 var(--purple-dark), 0 8px 0 rgba(0, 0, 0, .3); border-color: #1d0f3a; transform: rotate(1.5deg); }
.mq-track { display: flex; align-items: center; width: max-content; padding: 14px 0 12px; animation: marquee 34s linear infinite; }
.mq-alt .mq-track { animation-direction: reverse; animation-duration: 28s; }
.mq-track span { font-size: clamp(24px, 4vw, 38px); font-weight: 700; text-transform: uppercase; white-space: nowrap; padding: 0 22px; }
.mq-pick { width: 36px; flex: none; animation: spin-y 2.4s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin-y { 50% { transform: scaleX(.2); } }

/* --- Screenshots --------------------------------------------------------- */
.shots { margin: 40px 0; }
.shots-scroller {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 14px var(--gutter) 22px; margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain;
}
.shots-scroller::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .shots-scroller { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); } }
.shots-scroller.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.phone { flex: none; width: min(260px, 66vw); margin: 0; scroll-snap-align: center; text-align: center; }
.phone img {
  display: block; width: 100%; image-rendering: auto; pointer-events: none;
  border: 18px solid transparent; border-image: url(img/ui/frame_bezel.png) 18 / 18px stretch;
  background: var(--ink); background-clip: padding-box;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  transition: transform .25s;
}
.phone:hover img { transform: translateY(-6px) rotate(-1deg); }
.phone figcaption { margin-top: 10px; font-size: 16px; color: var(--text-label); }
.shots-nav { display: flex; justify-content: center; gap: 14px; }
.btn-arrow {
  width: 64px; height: 56px; cursor: pointer; font: inherit; color: var(--text-value);
  background: none; border: 12px solid transparent; border-image: url(img/ui/btn_normal.png) 12 fill / 12px stretch;
  padding: 0 0 4px; display: grid; place-items: center;
}
.btn-arrow:hover { border-image-source: url(img/ui/btn_hover.png); }
.btn-arrow:active { border-image-source: url(img/ui/btn_pressed.png); padding: 4px 0 0; }
.btn-arrow span { display: block; width: 14px; height: 20px; background: currentColor; clip-path: polygon(100% 0, 100% 100%, 0 50%); }
.btn-arrow.next span { clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* --- Features ------------------------------------------------------------ */
.feature { display: grid; gap: 28px; align-items: center; margin: 72px 0; }
@media (min-width: 760px) { .feature { grid-template-columns: 1fr 1fr; gap: 44px; } }
.f-text h2 { font-size: clamp(26px, 3.6vw, 34px); color: var(--text-header); display: flex; align-items: center; gap: 10px; }
.f-text p { margin: 0; font-size: 19px; }
.f-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 230px; }

.f-bands .f-art { flex-direction: column; min-height: 360px; }
.logo-stack { position: relative; width: 264px; height: 160px; }
.logo-stack img {
  position: absolute; width: 220px; left: 22px; top: 23px;
  border: 9px solid transparent; border-image: url(img/ui/frame_inset.png) 9 fill / 9px stretch;
  box-sizing: content-box; background: #050507; background-clip: padding-box;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
  transition: transform .45s cubic-bezier(.3, 1.3, .5, 1);
}
.logo-stack .p0 { z-index: 3; transform: rotate(-3deg); }
.logo-stack .p1 { z-index: 2; transform: translate(26px, 16px) rotate(4deg); }
.logo-stack .p2 { z-index: 1; transform: translate(-24px, -14px) rotate(-7deg); }
.logo-stack .out { z-index: 3; transform: translate(150px, -10px) rotate(14deg); transition-timing-function: ease-in; transition-duration: .3s; }
.mini-band { position: relative; width: 260px; height: 184px; margin-top: -6px; background-size: 780px 184px; animation: frames3 .5s steps(3) infinite; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .4)); }

.venue-show { display: grid; gap: 14px; }
.vs-screen {
  aspect-ratio: 720 / 600; width: 100%;
  border: 18px solid transparent; border-image: url(img/ui/frame_bezel.png) 18 fill / 18px stretch;
}
.vs-screen .scale-inner { width: 720px; height: 600px; }
.vs-backdrop, .vs-backdrop::after { position: absolute; left: -30px; top: -40px; width: 780px; height: 570px; background-image: var(--b1); transition: opacity .3s; }
.vs-backdrop::after { content: ""; left: 0; top: 0; background-image: var(--b2); animation: chase 1.2s steps(1) infinite; }
.vs-band { left: 230px; top: 300px; }
/* Screens as the game builds them: a main one from the theater up, the
   two close-up screens at the stadium only. */
.vs-screen .screen { display: none; }
.vs-screen.has-main .screen-main, .vs-screen.has-sides .screen-side { display: block; }
.vs-floor { position: absolute; left: -30px; top: 530px; width: 780px; height: 420px; background-image: var(--fl); }
.vs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.vs-steps li {
  cursor: pointer; text-align: center; line-height: 1.1;
  border: 9px solid transparent; border-image: url(img/ui/frame_inset.png) 9 fill / 9px stretch;
  padding: 2px 0; transition: transform .2s;
}
.v-name { display: block; font-size: 13px; color: var(--text-label); }
.v-cap { display: block; font-size: 12px; color: var(--steel-300); }
.vs-steps li.on { transform: translateY(-4px); border: 12px solid transparent; border-image: url(img/ui/btn_gold.png) 12 fill / 12px stretch; padding: 0 0 2px; margin: -3px 0; }
.vs-steps li.on .v-name, .vs-steps li.on .v-cap { color: var(--text-on-gold); }

.fan-front { --z: 2; width: calc(88px * var(--z)); height: calc(148px * var(--z)); background-size: calc(176px * var(--z)) calc(148px * var(--z)); animation: frames2-z 1.33s steps(2) infinite; flex: none; }
@keyframes frames2-z { to { background-position-x: calc(-176px * var(--z)); } }
.serve-art { gap: 0; }
.serve-art .f2 { margin-left: -50px; animation-delay: -.66s; }
.float-cash, .float-vip {
  position: absolute; left: 50%; top: 40%;
  font-size: 34px; font-weight: 700; color: var(--text-header);
  text-shadow: 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink);
  animation: rise 2.4s ease-out infinite;
}
.float-vip { color: var(--lilac); display: flex; align-items: center; gap: 4px; left: 30%; animation-delay: -1.2s; }
.float-vip img { width: 36px; }
@keyframes rise { 0% { transform: translateY(30px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-80px); opacity: 0; } }

.genres { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.genres li { font-size: 14px; color: var(--text); padding: 1px 8px 2px; background: var(--glass); box-shadow: inset 0 -3px 0 var(--ink), 0 0 0 2px var(--steel-700); }
.genres li:nth-child(4n+1) { background: #12524b; }
.genres li:nth-child(4n+2) { background: #3c2470; }
.genres li:nth-child(4n+3) { background: #6a1d26; }
.eq { gap: 8px; align-items: flex-end; height: 230px; }
.eq i { width: 22px; height: 100%; background: linear-gradient(var(--red) 0 16%, var(--gold-500) 16% 40%, var(--teal) 40%); -webkit-mask: repeating-linear-gradient(#000 0 14px, transparent 14px 18px); mask: repeating-linear-gradient(#000 0 14px, transparent 14px 18px); transform-origin: bottom; animation: eq .9s steps(5) infinite alternate; }
.eq i:nth-child(odd) { animation-duration: .7s; }
.eq i:nth-child(3n) { animation-duration: 1.1s; animation-delay: -.4s; }
.eq i:nth-child(4n+1) { animation-delay: -.2s; }
@keyframes eq { from { transform: scaleY(.15); } to { transform: scaleY(1); } }

.pick-art { flex-direction: column; }
.big-pick { width: 144px; animation: bob 2.4s ease-in-out infinite, glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 22px rgba(255, 233, 160, .8)); } }
.plus { font-size: 44px; font-weight: 700; color: var(--text-header); text-shadow: 3px 3px 0 var(--pick-outline); margin-top: 6px; }

.f-vip h2 { color: var(--lilac); }
.vip-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vip-items li { display: grid; place-items: center; aspect-ratio: 1; border: 9px solid transparent; border-image: url(img/ui/frame_inset.png) 9 fill / 9px stretch; animation: bob 2.2s ease-in-out infinite; }
.vip-items li:nth-child(2) { animation-delay: -.55s; }
.vip-items li:nth-child(3) { animation-delay: -1.1s; }
.vip-items li:nth-child(4) { animation-delay: -1.65s; }
.vip-items img { width: 96px; max-width: 80%; }

.duo { display: grid; gap: 20px; margin: 72px 0; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.card h3 { color: var(--text-header); font-size: 24px; margin-top: 8px; }
.card p { margin: 0; }
.card > img { display: block; width: 48px; height: 48px; }

/* --- Crowd shouts ---------------------------------------------------------- */
.shouts { margin: 80px 0; display: grid; gap: 22px; }
.shout { display: flex; align-items: flex-end; gap: 6px; }
.shout.right { justify-content: flex-end; }
.shout .fan-front { --z: 1; }
.bubble {
  position: relative; margin: 0 0 90px; max-width: 30ch;
  background: var(--text); color: var(--ink); font-size: 20px; font-weight: 700;
  padding: 12px 16px; box-shadow: 0 0 0 4px var(--ink), 6px 6px 0 4px rgba(0, 0, 0, .35);
}
.bubble::after { content: ""; position: absolute; bottom: -18px; left: 16px; width: 22px; height: 18px; background: var(--text); clip-path: polygon(0 0, 100% 0, 0 100%); filter: drop-shadow(0 4px 0 var(--ink)); }
.shout.right .bubble::after { left: auto; right: 16px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.shouts-note { text-align: center; color: var(--steel-500); font-size: 14px; margin: 0; }
@media (min-width: 760px) { .shout .fan-front { --z: 2; } .shout:nth-child(2) { margin-top: -60px; } }

/* --- Why, maker, end --------------------------------------------------- */
.why { margin: 80px 0; }
.why-grid { display: grid; gap: 16px; margin-top: 26px; }
@media (min-width: 760px) { .why-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-inline: auto; } }
.why .card h3 { font-size: 21px; }
.why .card p { font-size: 17px; }
.maker { margin: 80px auto; max-width: 640px; text-align: center; }
.maker p { color: var(--text); }
.end { position: relative; text-align: center; margin: 60px 0 0; padding: 150px 0 80px; }
.end .runners { position: absolute; left: 50%; width: 100vw; transform: translateX(-50%); top: 0; height: 150px; overflow: hidden; }
.end .runner { top: 0; }

/* --- Footer ------------------------------------------------------------ */
.site-footer { position: relative; z-index: 1; background: var(--glass-deep); box-shadow: 0 -4px 0 var(--ink), 0 -8px 0 var(--steel-700); padding: 30px var(--gutter) 40px; text-align: center; font-size: 15px; color: var(--steel-300); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 16px; font-size: 17px; }
.foot-links a { color: var(--text-label); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.foot-copy { color: var(--text); }
.copy-sign { font-family: var(--read); }
.foot-small { max-width: 64ch; margin: 0 auto .6em; font-family: var(--read); font-size: 13px; color: var(--steel-500); }

/* --- Legal pages --------------------------------------------------------- */
.legal main { padding-top: 72px; padding-bottom: 50px; max-width: calc(760px + 2 * var(--gutter)); }
.legal-logo { display: block; width: min(290px, 70%); margin: 0 auto 26px; }
.legal-logo img { display: block; width: 100%; }
.legal-card h1 { font-size: clamp(30px, 6vw, 42px); color: var(--text-header); margin-top: 6px; }
.legal-card .updated { color: var(--text-label); font-size: 15px; }
.legal-card h2 { font-size: 23px; color: var(--text-header); margin-top: 1.6em; }
.legal-card h3 { font-size: 19px; color: var(--text-value); margin-top: 1.3em; }
.legal-card p, .legal-card li { font-family: var(--read); font-size: 16.5px; line-height: 1.65; color: var(--text); }
.legal-card .lead { font-size: 18px; color: var(--text-value); }
.legal-card ul { padding-left: 1.3em; }
.legal-card li { margin-bottom: .3em; }
.legal-card li::marker { color: var(--gold-500); }
.back { text-align: center; margin-top: 30px; }

/* --- Scroll reveal ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2, .9, .3, 1.15); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .hero { padding-top: 64px; }
  .store { min-width: 200px; }
  .vs-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .v-name { font-size: 11px; }
  .v-cap { font-size: 10px; }
  .feature, .duo, .why, .shouts { margin: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.legal-card .cta { font-family: var(--pixel); margin: 18px 0 6px; }
