/* The app's design language on a black canvas: soft pastel gradients (light to mid), heavy rounded
   lettering, small buttons with an inner shadow, and the app's own artwork doing the talking.
   Cards are kept to the small buttons; everything else is art, type and motion.

   Performance rules for this file: animate only transform and opacity; no filters on anything that moves or repeats
   (shadows are for devices with a mouse); nothing animates a custom property that the whole page inherits. */

:root {
  color-scheme: dark;
  --text: #fff;
  --dim: rgb(255 255 255 / .72);
  --muted: rgb(255 255 255 / .5);
  --green: #22C55E;
  --xp-light: #73D4FF;
  --xp-blue: #2B73F5;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --page: 1040px;
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: #000; color: var(--text); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
/* Images cannot be dragged out, selected, or saved from the iOS long-press menu. */
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: .96; }
h2 { font-size: clamp(32px, 8vw, 68px); }
p { margin: 0; }
section { position: relative; padding: clamp(64px, 12vw, 140px) 0; }

/* ---------- Colour wash: one layer per colour, cross-faded (opacity only) ---------- */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.glow i {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
  background:
    radial-gradient(70rem 36rem at 80% 10%, color-mix(in srgb, var(--c) 34%, transparent), transparent 70%),
    radial-gradient(60rem 32rem at 5% 90%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%);
}
.glow i.on { opacity: 1; }

/* ---------- Locked: blacked out, with a padlock ---------- */
.ic { width: 1em; height: 1em; flex: none; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--xp-light), var(--xp-blue)); }

.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .25em; color: var(--muted); margin-bottom: 14px; }
.grad { background: linear-gradient(to bottom, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.head { width: min(100% - 2 * var(--gutter), var(--page)); margin: 0 auto clamp(28px, 5vw, 56px); }

/* Sections are big shop cards: a light-to-mid gradient in the section's colour, a darker ring, and the soft inner
   shadow (dark along the foot, light along the top). Drawn once; nothing here animates. */
section[data-glow]:not(.strip) {
  --light: color-mix(in srgb, var(--sec) 72%, white); --mid: color-mix(in srgb, var(--sec) 94%, black);
  --ring: color-mix(in srgb, var(--sec) 58%, black); --ink: color-mix(in srgb, var(--sec) 30%, black);
  margin: 14px clamp(8px, 2vw, 20px); border: 5px solid var(--ring); border-radius: clamp(26px, 5vw, 44px); overflow: clip;
  background: linear-gradient(to bottom, var(--light), var(--mid));
  box-shadow: inset 0 -26px 34px -12px rgb(0 0 0 / .4), inset 0 12px 16px -4px rgb(255 255 255 / .45);
  text-shadow: 0 0 3px var(--ink), 0 0 3px var(--ink), 0 1px 0 var(--ink);
}
section[data-glow]:not(.strip) { --dim: rgb(255 255 255 / .94); --muted: rgb(255 255 255 / .85); }

/* Section opener: a thin line in the section's colour draws itself in. */
section[data-glow]::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; width: min(100% - 2 * var(--gutter), var(--page)); height: 3px; margin-inline: auto;
  border-radius: 3px; background: linear-gradient(90deg, transparent, var(--sec, #fff), transparent);
  transform: scaleX(0); transition: transform 1.3s var(--ease);
}
section.in::before { transform: scaleX(1); }

/* Nav */
.nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px; background: linear-gradient(#000a, transparent); pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; font-size: 17px; }
.brand img { border-radius: 10px; }

/* Small buttons: corner 18, ring 3.5, inner shadow. The only "cards" left. */
.btn, .chip {
  --base: #888; --light: color-mix(in srgb, var(--base) 38%, white); --mid: color-mix(in srgb, var(--base) 92%, white);
  --ring: color-mix(in srgb, var(--base) 62%, black); --ink: color-mix(in srgb, var(--base) 28%, black);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 3.5px solid var(--ring); border-radius: 18px;
  background: linear-gradient(to bottom, var(--light), var(--mid));
  box-shadow: inset 0 -7px 9px -3px rgb(0 0 0 / .45), inset 0 4px 5px -1px rgb(255 255 255 / .5);
  font: 900 15px/1 var(--font); text-transform: uppercase; letter-spacing: .02em; color: #fff;
  text-shadow: 0 0 3px var(--ink), 0 0 3px var(--ink), 0 1px 0 var(--ink);
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: transform .2s var(--ease), filter .2s;
}
.btn { min-height: 52px; padding: 0 24px; }
.btn:active { transform: translateY(1px); filter: brightness(.95); }
.btn:focus-visible, .track:focus-visible { outline: 3px solid var(--xp-light); outline-offset: 3px; }
.btn-green { --base: var(--green); }
.btn-recessed, .chip { --light: #363636; --mid: #212121; --ring: #121212; --ink: #000; color: var(--dim); }
.btn:disabled { cursor: not-allowed; opacity: .75; transform: none; filter: none; }
.chip { min-height: 32px; padding: 0 14px; font-size: 12px; cursor: default; }
.round { width: 52px; padding: 0; font-size: 22px; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - 76px); padding: 0; display: grid; align-items: center; overflow: hidden; }
.stage { position: absolute; inset: 0; z-index: 1; touch-action: manipulation; }
.stage img.item { position: absolute; left: 0; top: 0; will-change: transform; cursor: pointer; -webkit-user-drag: none; user-select: none; }
.stage .shard { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
.stage .pop { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 4px solid #fff; pointer-events: none; animation: pop .45s var(--ease) forwards; }
@keyframes pop { to { transform: scale(7); opacity: 0; } }
.hero-copy { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), var(--page)); margin: 0 auto; padding-top: 70px; pointer-events: none; will-change: transform, opacity; }
.hero-copy .btn { pointer-events: auto; }
.hero h1 { font-size: clamp(72px, 21vw, 220px); line-height: .84; }
.hero h1 .w { display: inline-block; animation: slam .9s var(--ease) both; animation-delay: calc(var(--i) * .15s + .1s); }
@keyframes slam { 0% { transform: translateY(-120%) rotate(-6deg) scale(1.3); opacity: 0; } 60% { transform: translateY(6%) rotate(1deg) scale(.98); opacity: 1; } 100% { transform: none; } }
.lead { max-width: 28rem; margin-top: 22px; font-size: clamp(18px, 2.6vw, 22px); color: var(--dim); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@keyframes bump { 50% { transform: scale(1.5); color: #FACC15; } }
.hero.shake .stage { animation: shake .4s linear; }
@keyframes shake { 20% { transform: translate(-8px, 4px); } 40% { transform: translate(8px, -4px); } 60% { transform: translate(-6px, -2px); } 80% { transform: translate(6px, 3px); } }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 14px; width: 26px; height: 42px; margin-left: -13px; border: 3px solid var(--muted); border-radius: 14px; }
.scroll-cue i { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.strip { padding: 24px 0 8px; overflow: hidden; }
.strip .row { display: flex; overflow: hidden; padding: 10px 0; }
.lane { display: flex; flex: none; gap: 30px; padding-right: 30px; animation: slide 60s linear infinite; will-change: transform; }
.row[data-dir="1"] .lane { animation-direction: reverse; animation-duration: 75s; }
.lane img { height: clamp(64px, 11vw, 110px); width: auto; }
@keyframes slide { to { transform: translateX(-100%); } }
.strip.off .lane { animation-play-state: paused; }
.strip-caption { text-align: center; margin-top: 22px; padding-inline: var(--gutter); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .25em; color: var(--muted); }

/* ---------- Arenas ---------- */
.track { display: flex; gap: clamp(14px, 3vw, 32px); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; touch-action: pan-x pan-y; scroll-padding-inline: var(--gutter); padding: 24px max(var(--gutter), calc((100vw - var(--page)) / 2)) 28px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }
.track figure { position: relative; flex: none; width: clamp(190px, 58vw, 300px); margin: 0; scroll-snap-align: center; }
.track img { width: 100%; border-radius: 28px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 55%, black); }
.track figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 16px; }
.track figcaption b { font-size: 17px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.track figcaption span { font-size: 13px; font-weight: 700; color: var(--c); white-space: nowrap; }
.track figure.locked .lock-art { display: grid; place-items: center; aspect-ratio: 420 / 913; border-radius: 28px; color: #4b4b5e; background: radial-gradient(120% 70% at 50% 28%, #16161f, #07070c); box-shadow: 0 0 0 4px #1b1b26; }
.track figure.locked .ic { width: 34%; height: auto; }
.track figure.locked figcaption b { color: var(--muted); }
.pager { display: flex; gap: 12px; justify-content: flex-end; width: min(100% - 2 * var(--gutter), var(--page)); margin: 0 auto; }

/* ---------- Power-ups ---------- */
.power-body { width: min(100% - 2 * var(--gutter), var(--page)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 6vw, 80px); }
.power-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.power-art img { position: relative; width: min(78%, 340px); animation: float 4s ease-in-out infinite; transition: opacity .25s, scale .25s; }
.power-art img.swap { opacity: 0; scale: .8; }
.halo { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--hc, #59E040) 55%, transparent), transparent 68%); animation: pulse 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .75; } }
.power-info h3 { font-size: clamp(34px, 9vw, 56px); margin-bottom: 14px; transition: opacity .25s; }
.power-info p { min-height: 5.2em; color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); transition: opacity .25s; }
.power-info.swap p, .power-info.swap h3 { opacity: 0; }
.picks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pick { min-height: 44px; padding: 0 16px; font-size: 13px; }
.pick .ic { width: 1.05em; height: 1.05em; }
.power-art .art-lock { position: absolute; width: 20%; height: auto; color: #d6d7e6; opacity: 0; transition: opacity .25s; pointer-events: none; }
.power-art.locked .art-lock { opacity: .92; }
.pick:not(.on) { --light: #363636; --mid: #212121; --ring: #121212; --ink: #000; color: var(--dim); }

/* ---------- Levels ---------- */
.meter { position: relative; width: min(100% - 2 * var(--gutter), var(--page)); height: 22px; margin: 0 auto 8px; border-radius: 14px; background: #1a1a1a; box-shadow: inset 0 3px 5px rgb(0 0 0 / .7); }
.meter i { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(to bottom, var(--xp-light), var(--xp-blue)); transform: scaleX(0); transform-origin: 0 50%; }
.meter img { position: absolute; top: 50%; left: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.badges { list-style: none; width: min(100% - 2 * var(--gutter), var(--page)); margin: 28px auto 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.badges li { position: relative; opacity: .3; scale: .86; translate: 0 18px; transition: opacity .6s, scale .7s var(--ease), translate .7s var(--ease); }
.badges li:not(.on) img { filter: grayscale(1); }
.badges li.on { opacity: 1; scale: 1; translate: 0 0; }
.badges li.locked { opacity: .6; scale: 1; translate: 0 0; }
.badges li.locked img { filter: none; }
.badges .lk { position: absolute; top: 0; left: 0; right: 0; width: 26px; height: 26px; margin: calc(min(100%, 130px) / 2 - 13px) auto 0; color: #8d8fa6; }
.badges img { width: 100%; max-width: 130px; margin: 0 auto 8px; }
.badges b { display: block; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.badges span { font-size: 12px; color: var(--muted); }

/* ---------- Bonus rounds ---------- */
.bonus { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(20px, 5vw, 70px); }
.bonus-art { position: relative; aspect-ratio: 1; }
.wheel-wrap { position: absolute; inset: 0; }
.wheel-wrap img { width: 100%; will-change: transform; }
.pointer { position: absolute; z-index: 2; top: -10px; left: 50%; width: 0; height: 0; margin-left: -16px; border: 16px solid transparent; border-top: 34px solid #fff; }
.piggy { position: absolute; z-index: 2; width: 42%; right: -4%; bottom: -6%; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-6px); } }
.coin { position: absolute; z-index: 3; animation: float 3.6s ease-in-out infinite; }
.c1 { left: -2%; top: 8%; } .c2 { left: 6%; bottom: 4%; animation-delay: -1s; } .c3 { right: 0; top: 0; animation-delay: -2s; }
.rounds { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.rounds li { padding-left: 18px; border-left: 4px solid #FACC15; }
.rounds b { display: block; font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.rounds span { color: var(--dim); font-size: 16px; }

/* ---------- Cars ---------- */
.cars { overflow-x: clip; }
.car { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 20px; width: min(100% - 2 * var(--gutter), var(--page)); margin: 0 auto; }
.car:nth-of-type(even) { grid-template-columns: 1fr 1.4fr; }
.car:nth-of-type(even) .ride { order: 2; }
.ride { position: relative; will-change: transform; }
.ride .wh { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; transform: translate(-50%, -50%) rotate(var(--spin, 0deg)); }
.car > div:not(.ride) { display: grid; gap: 2px; padding-inline: 8px; }
.car:nth-of-type(even) > div:not(.ride) { order: 1; text-align: right; }
.car.locked b { color: var(--muted); }
.car .lk-line { display: flex; background: none; color: #4b4b5e; }
.car:nth-of-type(even) .lk-line { justify-content: flex-end; }
.car .lk-line .ic { width: 1em; height: 1em; }
.car b { font-size: clamp(22px, 4vw, 38px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.car span { font-size: clamp(34px, 7vw, 72px); font-weight: 900; line-height: 1; background: linear-gradient(#FFD9A0, #F97316); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Rager ---------- */
.rager { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(20px, 6vw, 80px); }
.rager-img { justify-self: center; width: min(100%, 380px); }
.rager-copy > p:not(.eyebrow):not(.swings) { margin-top: 20px; font-size: clamp(17px, 2.2vw, 20px); color: var(--dim); max-width: 26rem; }
.swings { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.swings span { padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; background: linear-gradient(#d8d0ff33, #8b7cf622); border: 2px solid #8b7cf688; }

/* ---------- Banner and call to action ---------- */
.shots { padding-block: 40px; }
.shot { width: min(100% - 2 * var(--gutter), 1100px); margin: 0 auto; border-radius: 28px; }
.cta { text-align: center; }
.cta h2 { font-size: clamp(52px, 15vw, 150px); margin-top: 18px; }
.cta p { margin-top: 12px; font-size: 20px; color: var(--dim); }
.cta-icon { margin: 0 auto; border-radius: 28px; }
footer { padding: 28px var(--gutter) max(48px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Entrances (only when scripts run, so the page is never blank without them) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), clip-path .9s var(--ease) var(--d, 0s); }
.js .reveal[data-r="mask"] { opacity: 1; transform: translateY(45%); clip-path: inset(0 -5% 100% -5%); }
.js .reveal[data-r="zoom"] { transform: scale(.92); }
.js .reveal[data-r="right"] { transform: translateX(-26px); }
.js .reveal[data-r="rise"] { transform: translateY(46px) scale(.96); }
.js .reveal[data-r="pop"] { transform: scale(.5) rotate(-10deg); transition-timing-function: cubic-bezier(.3, 1.5, .5, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-r="mask"].in { clip-path: inset(-20% -5% -20% -5%); }
.js .hero .reveal { animation: rise 1s var(--ease) var(--d, 0s) both; opacity: 1; transform: none; transition: none; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Devices with a mouse get the shadows and hover motion; phones skip them ---------- */
@media (hover: hover) and (pointer: fine) {
  .stage img.item, .lane img, .power-art img, .wheel-wrap, .piggy, .coin, .rager-img, .ride > img:first-child, .shot { filter: drop-shadow(0 12px 16px rgb(0 0 0 / .45)); }
  .btn:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.06); }
  .lane img { transition: transform .3s var(--ease); }
  .lane img:hover { transform: scale(1.18) rotate(-6deg); }
  .track img { transition: transform .6s var(--ease), box-shadow .6s; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 55%, black), 0 24px 60px -12px color-mix(in srgb, var(--c) 55%, transparent); }
  .track figure:hover img { transform: translateY(-10px) scale(1.02); }
  .strip:hover .lane { animation-play-state: paused; }
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .power-body, .bonus, .rager { grid-template-columns: 1fr; }
  .power-art { max-width: 280px; margin: 0 auto; }
  .bonus-art { max-width: 400px; width: 100%; margin: 0 auto; }
  .badges { grid-template-columns: repeat(4, 1fr); row-gap: 18px; }
  .car, .car:nth-of-type(even) { grid-template-columns: 1fr; text-align: center; gap: 4px; margin-bottom: 18px; }
  .car:nth-of-type(even) .ride { order: 0; }
  .car:nth-of-type(even) > div:not(.ride) { text-align: center; order: 0; }
  .car .lk-line, .car:nth-of-type(even) .lk-line { justify-content: center; }
  .scroll-cue { display: none; }
  .hero-copy { padding-top: 84px; }
  .rager-copy { text-align: center; }
  .rager-copy > p:not(.eyebrow):not(.swings) { margin-inline: auto; }
  .swings { justify-content: center; }
  .pager { justify-content: center; }
}
@media (max-width: 380px) {
  .actions .btn { width: 100%; }
  .pick { padding: 0 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal[data-r="mask"] { opacity: 1; transform: none; clip-path: none; }
  section[data-glow]::before { transform: scaleX(1); }
  .badges li { opacity: 1; scale: 1; translate: 0 0; }
  .badges li.locked { opacity: .6; }
  .badges li:not(.on) img { filter: none; }
}

/* Gradient lettering is transparent, so the card's outline shadow would show through it as a dark fill. */
section[data-glow]:not(.hero) .grad { text-shadow: none; background-image: linear-gradient(to bottom, #fff, color-mix(in srgb, var(--sec) 25%, white)); filter: drop-shadow(0 2px 0 var(--ink)); }

/* .bonus and .rager are the section cards themselves: pad them in to the page width so their content sits centred. */
.bonus, .rager { padding-inline: max(var(--gutter), calc((100% - var(--page)) / 2)); }

/* ---------- Hero game: lives, combo and floating points ---------- */
.lives { display: inline-flex; gap: 5px; align-items: center; }
.lives i { width: 18px; height: 16px; background: #ff4d6d; transition: transform .25s var(--ease), opacity .25s, filter .25s;
  clip-path: path("M9 16 1.5 8.5C-.5 6.4-.5 3 1.7 1.2 3.8-.5 7 0 9 2.4 11 0 14.2-.5 16.3 1.2C18.5 3 18.5 6.4 16.5 8.5Z"); }
.lives i.gone { transform: scale(.6); opacity: .3; filter: grayscale(1); }
.combo.on { opacity: 1; transform: none; }
.combo.hot { color: #FACC15; }
.stage .fx { position: absolute; font-size: 28px; font-weight: 900; color: #fff; pointer-events: none; white-space: nowrap; will-change: transform, opacity;
  text-shadow: 0 0 3px #000, 0 0 3px #000, 0 2px 0 #000; }
.stage .fx.hot { color: #FACC15; font-size: 36px; }
.stage .fx.combo-up { color: #22C55E; font-size: 44px; }
.stage .fx.miss { color: #ff6b6b; font-size: 22px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Game bar: the hero game's tip, lives, score and combo sit directly under the hero, never over the title ---------- */
.gamebar { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 22px; min-height: 76px; padding: 14px var(--gutter);
  margin: 0 clamp(8px, 2vw, 20px); border: 4px solid #121212; border-radius: 24px; background: linear-gradient(to bottom, #363636, #212121);
  box-shadow: inset 0 -7px 9px -3px rgb(0 0 0 / .45), inset 0 4px 5px -1px rgb(255 255 255 / .2); }
.hint { flex: 1 1 18rem; font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 0 #000; }
.hint em { color: #ff8a8a; font-style: normal; }
.hud { display: flex; align-items: center; gap: 18px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .18em; color: rgb(255 255 255 / .75); }
.hud b { color: #fff; font-size: 22px; letter-spacing: 0; margin-left: 6px; display: inline-block; }
.hud b.bump { animation: bump .25s var(--ease); }
.combo { min-width: 9.5em; text-align: center; font-size: 18px; font-weight: 900; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(4px) scale(.9);
  transition: opacity .2s, transform .2s var(--ease); text-shadow: 0 0 3px #000, 0 0 3px #000, 0 2px 0 #000; white-space: pre; }
.combo.on { opacity: 1; transform: none; }
.combo.hot { color: #FACC15; }
/* The game-over word covers the bar for a second, so the title above it stays readable. */
.wasted { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border-radius: 20px; font-size: clamp(30px, 7vw, 46px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
  color: #ff5a5a; -webkit-text-stroke: 6px #4a0d0d; paint-order: stroke fill; background: rgb(18 8 8 / .88); opacity: 0; pointer-events: none; }
.wasted.on { animation: wasted 1.1s var(--ease); }
@keyframes wasted { 0% { opacity: 0; transform: scale(1.3); } 12% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Hero contrast: brighter type on a soft scrim, so the game behind never fights the words ---------- */
.hero-copy .eyebrow { color: #fff; }
.hero .lead { color: #fff; font-weight: 700; }
.hero h1 { text-shadow: 0 0 6px var(--ink), 0 0 6px var(--ink), 0 6px 0 var(--ink); }
@media (max-width: 760px) { .hero { min-height: calc(100svh - 136px); } }

/* ---------- Tooltip: "Beta coming soon" on the For iPhone chip and the Discord button ---------- */
.tip { position: relative; display: inline-flex; cursor: help; pointer-events: auto; outline: none; }
.tip > .btn { pointer-events: none; }
.tip::after { content: attr(data-tip); position: absolute; z-index: 25; left: 50%; bottom: calc(100% + 10px); translate: -50% 0; white-space: nowrap; padding: 8px 14px; border-radius: 12px;
  border: 3px solid #121212; background: linear-gradient(to bottom, #363636, #212121); color: #fff; font: 900 12px/1 var(--font); text-transform: uppercase; letter-spacing: .06em; text-shadow: 0 1px 0 #000;
  box-shadow: inset 0 -4px 6px -2px rgb(0 0 0 / .45), inset 0 3px 4px -1px rgb(255 255 255 / .25); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .18s, transform .18s var(--ease); }
.tip-down::after { bottom: auto; top: calc(100% + 10px); transform: translateY(-4px); }
.tip-end::after { left: auto; right: 0; translate: 0 0; }
.tip:hover::after, .tip:focus-visible::after, .tip.show::after { opacity: 1; transform: none; }
.tip:focus-visible { outline: 3px solid var(--xp-light); outline-offset: 3px; border-radius: 18px; }

/* The App Store badge in the nav is not a link yet: it shows the tooltip instead. */
.store img { height: 40px; width: auto; border-radius: 8px; }
.store:focus-visible { border-radius: 10px; }
