/* Volo Gaming showcase, rev 3 "the site is a slot". Tokens and layout from docs/DESIGN.md. Plain CSS, no build step. */

/* Fonts are self-hosted (latin + latin-ext only): no Google round trip, no 120 KB font CSS blocking first paint. */
@font-face { font-family: "Dela Gothic One"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/dela-gothic-one-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Dela Gothic One"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/dela-gothic-one-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/onest-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/onest-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #140B24;
  --white: #FFF8EC;
  --white-2: rgba(255, 248, 236, .68);
  --gold: #FFC93C;
  --spin: #FF3B5C;
  --accent: #FFC93C;                 /* per game, inline */
  --cream: #FFF8EC;
  --world-bg: #140B24;               /* per game world, animated by GSAP */
  --world-glow: #FFC93C;
  --world-ink: #FFF8EC;
  --f-display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --max: 1360px;
  --gutter: 24px;
  color-scheme: dark;
}
@media (max-width: 639px) {
  :root { --gutter: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--world-bg);
  color: var(--white);
  font: 400 18px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  position: relative;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.muted { color: var(--white-2); font-size: 16px; }

/* The world glow: a soft radial behind the content, in the current game's colour. */
.world-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(70% 55% at 50% 30%, var(--world-glow), transparent 72%);
  opacity: .32;
}
body > main, body > header, body > footer, .game-page > * { position: relative; z-index: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(20, 11, 36, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255, 248, 236, .12); }
.head-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font: 400 26px/1 var(--f-display); text-decoration: none; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 26px; font: 600 16px/1 var(--f-text); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--gold); }
.money-pill {
  padding: 8px 14px;
  border: 1px solid rgba(255, 248, 236, .28);
  border-radius: 999px;
  font: 600 13px/1 var(--f-text);
  color: var(--white-2);
}
@media (max-width: 899px) {
  .nav { gap: 20px; }
  .nav .hide-phone { display: none; }
}

/* Buttons: full pills. Spin colour only on Play / Spin. */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 16px/1 var(--f-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, transform .12s, border-color .2s;
}
.pill-spin { background: var(--spin); color: #FFF8EC; }
.pill-spin:hover { background: #E8314F; }
.pill-spin:active { transform: scale(.97); }
.pill-ghost { background: transparent; border-color: rgba(255, 248, 236, .45); color: var(--white); }
.pill-ghost:hover { border-color: var(--white); }
.pill-cream { background: var(--white); color: var(--night); min-height: 40px; padding: 0 16px; font-size: 14px; }

:root { --ease: cubic-bezier(.2, .7, .2, 1); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ---------- Home: hero, rev 4 (showreel + games first, DESIGN.md "Rev 4 hero") ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 0;
  overflow: hidden;
  background: var(--world-bg);
}
.showreel { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--world-bg); }
.sr-poster,
.sr-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-video { opacity: 0; transition: opacity .8s ease; }
.sr-video.is-on { opacity: 1; }
.sr-poster { transition: opacity .8s ease; }
.sr-poster.is-off { opacity: 0; }
/* Legibility: bottom-to-top scrim in the world background, and a left scrim on desktop. */
.sr-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Phone: a calm top zone for the copy, a dimmed middle, and a solid foot under the cards. */
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--world-bg) 92%, transparent) 0%, color-mix(in srgb, var(--world-bg) 80%, transparent) 38%, color-mix(in srgb, var(--world-bg) 35%, transparent) 60%, color-mix(in srgb, var(--world-bg) 90%, transparent) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-inline: var(--gutter);
  align-self: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  padding-block: 12px;
}
.hero-title {
  font: 400 clamp(36px, 4.2vw, 80px)/1.02 var(--f-display);
  max-width: 14ch;
  text-wrap: balance;
}
.hero-sub { font: 400 20px/1.5 var(--f-text); color: var(--white-2); max-width: 46ch; }
.hero-copy .actions { margin-top: 6px; }
.eyebrow { font: 600 15px/1.4 var(--f-text); color: var(--white-2); }
.hero-copy { z-index: 3; }
.cards-wrap { z-index: 3; }
.sr-scrim { z-index: 0; }

/* Game cards row: always in the first screen. Progress bars above it show the showreel timing. */
.cards-wrap { position: relative; z-index: 2; padding: 0 var(--gutter) 20px; }
.bars { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.bar { position: relative; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(255, 248, 236, .25); }
.bar i { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left center; }
.bar.is-done i { transform: scaleX(1); }
.bar.is-on i { animation: bar-fill 6s linear forwards; }
.hero.is-paused .bar.is-on i { animation-play-state: paused; }
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.cards {
  display: grid;
  grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  --accent: var(--gold);
  position: relative;
  background: rgba(10, 6, 18, .55);
  border: 1px solid rgba(255, 248, 236, .16);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card.is-current { border-color: var(--accent); }
.card-hit { position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
.card-media > img:not(.card-logo) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-logo { position: absolute; left: 12px; bottom: 10px; height: 44px; width: auto; max-width: 60%; object-fit: contain; transition: transform .35s var(--ease); }
.card-name { position: absolute; left: 12px; bottom: 10px; font: 400 clamp(18px, 2vw, 26px)/1 var(--f-display); color: var(--white); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.card-info .flag { position: static; justify-self: start; margin: 0; padding: 6px 12px; font-size: 13px; }
.card-info { display: grid; gap: 10px; padding: 12px 12px 14px; justify-items: start; }
.card-info p { font: 400 15px/1.35 var(--f-text); color: var(--white-2); }
.card-info b { color: var(--accent); font-weight: 600; }
.card-info .pill { justify-self: start; position: relative; z-index: 2; min-height: 40px; padding: 0 18px; font-size: 15px; margin-top: 6px; }
@media (hover: hover) and (min-width: 900px) {
  .card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 40px -18px var(--accent); }
  .card:hover .card-logo { transform: scale(1.04); }
}
.card:focus-within { border-color: var(--accent); }

/* Load sequence (JS adds js-load only when motion is allowed): H1 lines, sub and buttons, then the cards. */
.js-load .hero-title .line { display: block; overflow: hidden; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.js-load .hero-sub,
.js-load .hero-copy .actions,
.js-load .eyebrow,
.js-load .card,
.js-load .bars,
.js-load .flyers { opacity: 0; }
/* Safety net: if the load animation never runs (script error, paused tab), everything still shows after 2.5 s.
   A CSS animation outranks GSAP's inline styles, so this forces the final state. */
.js-load .hero-sub,
.js-load .hero-copy .actions,
.js-load .eyebrow,
.js-load .card,
.js-load .bars,
.js-load .flyers,
.js-load .hero-title { animation: volo-reveal-safety 0s 2.5s forwards; }
@keyframes volo-reveal-safety { to { opacity: 1; } }

/* Below 1280 px: a horizontal snap strip, about 3.3 cards visible (the rest scroll in). */
@media (max-width: 1279px) {
  .bars { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
  .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 calc((100% - 36px) / 3.3); scroll-snap-align: start; }
}
/* Phone: a horizontal snap strip, cards 64vw, the next card peeks. */
@media (max-width: 699px) {
  .hero { grid-template-rows: auto 1fr; padding-top: 0; }
  .hero-copy { align-self: start; padding-top: 28px; gap: 14px; }
  .hero-title { font-size: clamp(30px, 8.6vw, 40px); max-width: 100%; }
  .hero-sub { font-size: 16px; }
  .cards-wrap { align-self: end; }
  .bars { display: none; }
  .card { flex: 0 0 64vw; }
}
/* Desktop: the copy on the left, the cards row across the bottom; a left scrim keeps the copy legible. */
@media (min-width: 900px) {
  /* A calm text zone on the left: world.bg at 92% over the first 38% of the width, fading to nothing at 70%. */
  .sr-scrim { background:
    linear-gradient(to right, color-mix(in srgb, var(--world-bg) 95%, transparent) 0%, color-mix(in srgb, var(--world-bg) 90%, transparent) 48%, color-mix(in srgb, var(--world-bg) 30%, transparent) 78%, color-mix(in srgb, var(--world-bg) 15%, transparent) 100%),
    linear-gradient(to top, color-mix(in srgb, var(--world-bg) 92%, transparent) 0%, transparent 55%); }
  .sr-poster, .sr-video { object-position: 50% 50%; }
  .hero-copy { padding-inline: var(--gutter); max-width: 1360px; width: 100%; margin-inline: auto; }
  .cards-wrap { max-width: 1360px; width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
}
@media (min-width: 1100px) {
  /* The reels and hero art sit right of the text. */
  .sr-poster, .sr-video { object-position: 70% 50%; }
}
@media (min-width: 1920px) {
  .hero-copy, .cards-wrap, .head-in { max-width: 1500px; }
}

/* Shared numbers and placeholder styles (chapters use them). */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 28px; }
.numbers:empty { display: none; }
.numbers > div { display: flex; flex-direction: column-reverse; gap: 6px; min-width: 0; }
.numbers dd {
  margin: 0;
  overflow: hidden;
  padding-block: .12em;
  font: 400 clamp(22px, 2.4vw, 36px)/1 var(--f-display);
  color: var(--accent);
  white-space: nowrap;
}
.numbers dt { font: 400 14px/1.4 var(--f-text); color: var(--white-2); }
.numbers dd { overflow-wrap: anywhere; min-width: 0; }
.ph { position: absolute; inset: 0; background: var(--night); }

/* Reduced motion: no autoplay; the posters change every 6 s, no load animation. */
@media (prefers-reduced-motion: reduce) {
  .bar.is-on i { animation: none; }
  .sr-video { display: none; }
  .kb { animation: none !important; }
  .fly, .fly img { animation: none !important; }
}

/* ---------- Bonus buys (chapters and game pages) ---------- */
.buys-title { margin: 14px 0 6px; font: 600 15px/1.3 var(--f-text); color: var(--white); }
.buys { list-style: none; margin: 0; padding: 0; font: 400 15px/1.4 var(--f-text); color: var(--white-2); }
.buys li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255, 248, 236, .14); }
.buys li:last-child { border-bottom: 0; }
.buys .num { flex: none; font-weight: 600; color: var(--white); white-space: nowrap; }
.facts dd .buys { margin-top: 2px; }

/* Tap targets: 44px high for header links, footer links and the game-page detail link. */
.nav a, .footer a, .details-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Home: game chapters ---------- */
.chapters { position: relative; }
.chapter {
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding-block: 72px;
}
.chapter-grid { display: grid; gap: 40px; align-items: center; }
.chapter-media { min-width: 0; }
.media-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 70svh;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--night);
  box-shadow: 0 40px 120px -30px color-mix(in srgb, var(--world-glow) 45%, transparent);
  will-change: transform;
}
.media-frame video,
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter-count { font: 600 14px/1.4 var(--f-text); color: var(--white-2); }
.chapter-name { font: 400 clamp(44px, 6vw, 92px)/.95 var(--f-display); margin-top: 12px; }
.chapter-tag { margin-top: 14px; font-size: 20px; color: var(--white-2); max-width: 36ch; }
.chapter-text .numbers { margin-top: 30px; }
.chapter-text .numbers dd { font-size: clamp(22px, 2.2vw, 34px); }
.grid-line { margin-top: 18px; font: 600 18px/1.4 var(--f-text); color: var(--white-2); }
.features { margin: 22px 0 0; padding-left: 22px; color: var(--white-2); }
.features li { padding-left: 4px; }
.features li::marker { color: var(--gold); }
.chapter-text .actions { margin-top: 30px; }
.flag {
  display: inline-block;
  margin-top: 22px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--night);
  font: 600 13px/1.2 var(--f-text);
}
.flag--new { background: var(--gold); }

/* Chapter index in the left gutter (wide screens only). */
.chapter-index {
  display: none;
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 104px;
  flex-direction: column;
  gap: 12px;
  /* Shown only once the hero has scrolled out of view (set by app.js). */
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.chapter-index.is-on { opacity: 1; pointer-events: auto; }
.chapter-index a { font: 600 14px/1.3 var(--f-text); color: var(--white-2); text-decoration: none; }
.chapter-index a:hover { color: var(--white); }
.chapter-index a.is-current { color: var(--gold); }

@media (min-width: 900px) {
  .chapter-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; }
}
@media (min-width: 1600px) {
  .chapter-index { display: flex; }
}

/* ---------- Home: studio, contact, footer ---------- */
.studio { background: var(--night); padding-block: 120px 0; }
.studio h2,
.contact h2 { font: 400 clamp(32px, 4.4vw, 60px)/1.02 var(--f-display); max-width: 20ch; }
.studio-grid { display: grid; gap: 40px; margin-top: 48px; }
.studio-grid h3 { font: 600 20px/1.3 var(--f-text); color: var(--white); }
.studio-grid p { margin-top: 10px; color: var(--white-2); max-width: 36ch; }
.studio-marquee { margin-top: 80px; overflow: hidden; opacity: .4; }
.track { display: flex; width: max-content; animation: drift 60s linear infinite; }
.track-group { display: flex; gap: 16px; padding-right: 16px; }
.track-group img { width: 96px; height: 96px; flex: none; border-radius: 12px; background: var(--night); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 900px) {
  .studio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
}

.contact { padding-block: 120px; }
.contact h2 { font-size: clamp(40px, 6vw, 88px); line-height: .98; max-width: 16ch; }
.contact .actions { margin-top: 36px; }
.contact .muted { margin-top: 18px; }

.footer {
  border-top: 1px solid rgba(255, 248, 236, .12);
  padding-block: 36px 48px;
  font-size: 15px;
  color: var(--white-2);
}
.footer p + p { margin-top: 6px; }

/* ---------- Game page: header, stage, details ---------- */
.game-head { padding-block: 40px 24px; }
.game-head .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.game-title { font: 400 clamp(44px, 6vw, 88px)/.95 var(--f-display); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar .pill { min-height: 44px; padding: 0 18px; font-size: 15px; }
.seg { display: inline-flex; padding: 4px; border: 1.5px solid rgba(255, 248, 236, .45); border-radius: 999px; }
.seg button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: 600 15px/1 var(--f-text);
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--night); }

.stage {
  --s: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 86vh;
  padding: 28px 0;
  background: rgba(0, 0, 0, .28);
  border-block: 1px solid rgba(255, 248, 236, .1);
}
/* The frame is a cabinet: gold trim and a static ring of dots (the bulbs, not animated here). */
.device {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  border: 3px solid var(--gold);
  border-radius: 20px;
  outline: 3px dotted var(--gold);
  outline-offset: 9px;
}
.screen { width: 100%; height: clamp(520px, 78svh, 920px); }
.screen iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }

.stage[data-view="phone"] .device {
  width: calc(414px * var(--s));
  height: calc(868px * var(--s));
  padding: calc(12px * var(--s));
  border: 0;
  border-radius: calc(28px * var(--s));
  outline: none;
  background: #050309;
}
.stage[data-view="phone"] .screen {
  width: 390px;
  height: 844px;
  transform: scale(var(--s));
  transform-origin: 0 0;
}
.device:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  background: #000;
}
.device:fullscreen .screen { width: 100% !important; height: 100% !important; transform: none !important; }

@media (max-width: 899px) {
  .stage { min-height: 0; padding: 0; background: transparent; border: 0; }
  .device { border-width: 0 0 3px; border-radius: 0; outline: none; }
  .screen { height: 72svh; min-height: 420px; }
  .stage[data-view="phone"] .device { width: 100%; height: auto; padding: 0; border: 0; border-radius: 0; background: #000; }
  .stage[data-view="phone"] .screen { width: 100%; height: 100svh; transform: none; }
}

.details { display: grid; gap: 56px; padding-block: 72px 88px; }
.details h2 { font: 600 18px/1.3 var(--f-text); color: var(--white-2); margin-bottom: 14px; }
.lead { font: 400 clamp(24px, 2.6vw, 34px)/1.2 var(--f-display); }
.desc { margin-top: 16px; max-width: 68ch; color: var(--white-2); }
.facts { margin: 28px 0 0; display: grid; gap: 20px; }
.facts > div { display: grid; gap: 6px; }
.facts dt { font: 400 14px/1.4 var(--f-text); color: var(--white-2); }
.facts dd { margin: 0; font: 600 18px/1.45 var(--f-text); color: var(--white); }
.modes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (min-width: 900px) {
  .details { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; }
}

.strip { border-top: 1px solid rgba(255, 248, 236, .12); padding-block: 64px; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.strip-title { font: 400 clamp(32px, 4.4vw, 56px)/1.05 var(--f-display); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bulbs .bulb, .track { animation: none !important; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}


/* ---------- game pages: fit the viewport, one-line phone header, detail link ---------- */
.game-page .site-header { position: relative; }
.game-page .head-in { height: 56px; }
.game-page .game-head { padding-block: 16px 12px; }
.game-page .game-title { font-size: clamp(32px, 4vw, 56px); }
.game-page .toolbar { gap: 8px; }
.game-page .toolbar .pill, .game-page .toolbar .btn-ghost { min-height: 38px; padding: 0 14px; font-size: 14px; }
@media (min-width: 900px) {
  .game-page .stage { min-height: 0; padding: 12px 0; }
  .game-page .screen { height: clamp(420px, calc(100svh - 230px), 920px); }
}
@media (max-width: 767px) {
  .game-page .seg { display: none; }
  .game-page .money-pill, .game-page .toolbar .pill-cream { display: none; }
  .game-page .nav { gap: 14px; white-space: nowrap; }
  .game-page .nav a { font-size: 15px; }
  .game-page .game-head { padding-block: 10px 8px; }
  .game-page .game-head .wrap { gap: 10px; }
  .game-page .game-title { font-size: 30px; }
  .game-page .stage { min-height: 0; padding: 0 16px; background: transparent; border: 0; }
  .game-page .device { border: 2px solid var(--gold); border-radius: 16px; }
  .game-page .screen { height: calc(100svh - 150px); min-height: 360px; }
  .game-page .stage[data-view="phone"] .device { border: 2px solid var(--gold); border-radius: 16px; }
  .game-page .details-link { display: block; margin: 12px 16px 0; text-align: center; font: 600 15px/1.2 var(--f-text); color: var(--white); }
}
.details-link { display: none; }

/* The hero line drops out where the screen has no room for it (phones, short landscape). */
@media (max-width: 767px) { .game-page .wordmark { white-space: nowrap; font-size: 22px; } }

.cab-buys { margin: 12px 0 0; font: 400 15px/1.4 var(--f-text); color: var(--white-2); }


@media (max-width: 767px) { .game-page .wordmark { white-space: nowrap; font-size: 22px; } }

/* ---------- Phones: numbers that shrink, chapter spacing 56px ---------- */
@media (max-width: 699px) {
  .numbers dd, .f-nums dd { font-size: clamp(22px, 6.4vw, 32px); white-space: normal; overflow-wrap: anywhere; }
  .numbers > div { min-width: 0; }
  .chapter { min-height: 0; padding-block: 56px; }
}

/* ---------- Display type ----------
   Dela Gothic One has tall ascenders and descenders: roomier line-heights (1.12 for the large sizes, 1.15 for
   the small ones), and tracking is never negative. */
.hero-title, .chapter-name, .game-title, .contact h2, .strip-title, .lead { line-height: 1.12; letter-spacing: .01em; }
.wordmark, .card-name, .numbers dd { line-height: 1.15; letter-spacing: .01em; }
h1, h2, h3 { letter-spacing: .01em; }

/* ---------- Contact form (home #contact, and the compact one on game pages) ---------- */
.lead-form { margin-top: 32px; max-width: 760px; }
.lead-form .fields { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.lead-form .field { display: grid; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.lead-form .field > label,
.lead-form legend { font: 600 15px/1.3 var(--f-text); color: var(--white); padding: 0; }
.lead-form .req { color: var(--spin); }
.lead-form .opt { font-weight: 400; color: var(--white-2); }
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--white-2);
  border-radius: 12px;
  background: rgba(10, 6, 18, .6);
  color: var(--white);
  font: 400 16px/1.4 var(--f-text);   /* 16px: no zoom on iOS */
  -webkit-appearance: none;
  appearance: none;
}
.lead-form select { background-image: linear-gradient(45deg, transparent 50%, var(--white-2) 50%), linear-gradient(135deg, var(--white-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.lead-form textarea { resize: vertical; min-height: 110px; }
.lead-form input:focus-visible,
.lead-form select:focus-visible,
.lead-form textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
.lead-form [aria-invalid="true"] { border-color: #FF8A7A; }
.lead-form .err { margin: 0; font: 400 14px/1.4 var(--f-text); color: #FFB4A8; }
.lead-form .games-field { margin-top: 22px; }
.lead-form .checks { display: grid; gap: 4px 18px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
.lead-form .check { display: flex; align-items: center; gap: 12px; min-height: 44px; font: 400 16px/1.3 var(--f-text); color: var(--white); cursor: pointer; }
.lead-form .check input { width: 22px; height: 22px; margin: 0; accent-color: var(--gold); flex: none; }
.lead-form .check:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.lead-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.lead-form .send { min-width: 140px; }
.lead-form .send:disabled { opacity: .75; cursor: progress; }
.lead-form .send.is-busy::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 2px solid rgba(255, 248, 236, .4);
  border-top-color: #FFF8EC;
  border-radius: 50%;
  vertical-align: -3px;
  animation: lead-spin .8s linear infinite;
}
@keyframes lead-spin { to { transform: rotate(360deg); } }
.lead-form .form-status { margin: 0; font: 400 15px/1.4 var(--f-text); color: #FFB4A8; }
.lead-form .form-status a { color: #FFB4A8; }
.lead-form .form-fallback { margin: 18px 0 0; font: 400 14px/1.4 var(--f-text); color: var(--white-2); }
.lead-form .form-fallback a { color: var(--white); }
.thanks { margin-top: 32px; max-width: 760px; font: 400 clamp(24px, 3vw, 34px)/1.25 var(--f-display); color: var(--white); }
@media (min-width: 700px) {
  .lead-form .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-form .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .lead-form .send.is-busy::before { animation: none; } }

/* ==========================================================================
   Rev 5 (17.11): a studio that builds slots to order. DESIGN.md "Rev 5".
   ========================================================================== */

/* Header pill and the solid bar after 40 px (app.js). */
.pill-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.nav .pill { color: #FFF8EC; }
@media (max-width: 899px) { .nav .pill-sm { min-height: 40px; } }

/* Flying symbols: three depth layers over the showreel, behind the copy. The scroll fly is on .flyers, the parallax on
   each .layer, the drift on each .fly (three transforms, so GSAP never fights itself). */
.flyers { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.layer { position: absolute; inset: 0; }
.fly {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--sz);
  height: var(--sz);
  margin: 0;
  opacity: .95;
  will-change: transform;
}
.fly img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35));
}
.layer[data-depth="1"] .fly { opacity: .42; filter: blur(1.2px); }
.layer[data-depth="2"] .fly { opacity: .92; }
.layer[data-depth="3"] .fly { opacity: .96; }

/* Pointer glow over the hero and the picker (desktop only; JS adds .is-on). */
.cursor-glow {
  position: absolute;
  z-index: 0;
  width: 460px;
  height: 460px;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-230px, -230px, 0);
  background: radial-gradient(circle, color-mix(in srgb, var(--world-glow) 34%, transparent) 0%, transparent 68%);
  transition: opacity .4s ease;
}
.cursor-glow.is-on { opacity: 1; }

/* Logo marquee band under the hero. */
.band { position: relative; z-index: 2; padding-top: 56px; }
.logo-marquee { overflow: hidden; }
.logo-track { animation-duration: 40s; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track .track-group { gap: 56px; padding-right: 56px; align-items: center; }
.logo-track img { height: 52px; width: auto; max-width: none; flex: none; object-fit: contain; opacity: .9; }

/* Section headings and leads shared by the rev 5 sections. */
.section-h { font: 400 clamp(32px, 4.4vw, 60px)/1.08 var(--f-display); max-width: 22ch; letter-spacing: .01em; }
.section-lead { margin-top: 16px; font: 400 20px/1.5 var(--f-text); color: var(--white-2); max-width: 50ch; }
.games-lead { margin-top: 12px; }
.chapters { padding-top: 120px; }
.chapters > .wrap { padding-bottom: 8px; }
.studio-lead { max-width: 56ch; }

/* Available now: two panels, tilt on desktop (JS sets --tx/--ty). */
.available { padding-block: 120px 40px; position: relative; }
.avail-grid { display: grid; gap: 24px; margin-top: 44px; }
.avail {
  position: relative;
  background: color-mix(in srgb, var(--bg) 88%, #000);
  border: 1px solid rgba(255, 248, 236, .14);
  border-radius: 24px;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .35s var(--ease), border-color .35s;
}
.avail:hover { border-color: var(--accent); }
.avail-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
.avail-media video,
.avail-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avail-media .kb { animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09) translate(-1.5%, -1%); } }
.avail-media .flag { position: absolute; top: 16px; left: 16px; z-index: 2; margin: 0; }
.avail-body { display: grid; gap: 12px; padding: 24px 26px 28px; }
.avail-logo { height: 64px; width: auto; max-width: 70%; object-fit: contain; object-position: left center; }
.avail-name { font: 400 clamp(28px, 3vw, 40px)/1.1 var(--f-display); }
.avail-tag { font: 400 19px/1.45 var(--f-text); color: var(--white-2); max-width: 40ch; }
.avail-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.avail-facts li { padding: 7px 14px; border: 1px solid rgba(255, 248, 236, .28); border-radius: 999px; font: 600 14px/1.2 var(--f-text); color: var(--white); }
.avail .actions { margin-top: 10px; }
.avail--prod .avail-media { background: var(--night); }
@media (min-width: 900px) { .avail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
/* Three free games side by side on wide screens. */
@media (min-width: 1100px) { .avail-grid:has(> .avail:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } .avail-grid:has(> .avail:nth-child(3)) .avail-body { padding: 20px 22px 24px; } .avail-grid:has(> .avail:nth-child(3)) .avail-logo { height: 52px; } }

/* Flags: the pill colours of the availability states (Live, Available, Portfolio, In production). */
.flag--quiet { background: rgba(20, 11, 36, .86); color: #FFF8EC; box-shadow: inset 0 0 0 1px rgba(255, 248, 236, .3); }
.flag--prod { background: rgba(20, 11, 36, .86); color: #FFF8EC; box-shadow: inset 0 0 0 1px rgba(255, 248, 236, .3); }

/* The picker: chips (multi-select per row), a live result line and the game tiles (GSAP Flip re-sorts them). */
.picker-section { position: relative; padding-block: 120px; overflow: hidden; }
.picker-section > .wrap { position: relative; z-index: 1; }
.picker { margin-top: 40px; }
.chip-rows { display: grid; gap: 22px; }
.chip-row { display: grid; gap: 10px; }
.chip-label { font: 600 14px/1.3 var(--f-text); color: var(--white-2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid rgba(255, 248, 236, .35);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: 600 15px/1 var(--f-text);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .12s;
}
.chip:hover { border-color: var(--white); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); }
.picker-result { margin-top: 34px; min-height: 2.6em; font: 400 clamp(22px, 2.6vw, 34px)/1.25 var(--f-display); color: var(--white); }
.picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--night);
  border: 1px solid rgba(255, 248, 236, .12);
  color: var(--white);
  text-decoration: none;
  transition: opacity .4s ease, filter .4s ease, border-color .3s;
}
.tile:hover { border-color: var(--accent, var(--gold)); }
.tile.is-dim { opacity: .35; filter: saturate(.45); }
.tile-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-body { display: grid; gap: 8px; padding: 12px 14px 14px; }
.tile-name { font: 600 17px/1.3 var(--f-text); }
.tile .flag { margin: 0; padding: 5px 10px; font-size: 12px; justify-self: start; }
.tile-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tile-tags li { padding: 4px 9px; border: 1px solid rgba(255, 248, 236, .2); border-radius: 999px; font: 400 12px/1.25 var(--f-text); color: var(--white-2); }
.tile-tags li.is-hit { background: var(--gold); border-color: var(--gold); color: var(--night); }
.picker-cta { margin-top: 36px; }
@media (min-width: 1100px) { .picker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* How we work: one line that draws itself (scaleX on scroll), four steps with icons that pop on the line. */
.process { padding-block: 120px; background: var(--night); }
.steps { position: relative; list-style: none; margin: 60px 0 0; padding: 0; display: grid; gap: 40px; }
.steps-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 26px;
  height: 2px;
  background: rgba(255, 248, 236, .16);
  overflow: hidden;
}
.steps-track i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left center; }
.step { position: relative; padding: 76px 0 0 0; min-width: 0; }
.step-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--gold);
  color: var(--gold);
}
.step-icon svg { width: 28px; height: 28px; }
.step-num { display: block; font: 400 44px/1 var(--f-display); color: var(--gold); }
.step-title { font: 600 22px/1.25 var(--f-text); color: var(--white); margin-top: 6px; }
.step-text { margin-top: 10px; color: var(--white-2); max-width: 30ch; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }
@media (max-width: 699px) {
  .steps { gap: 34px; margin-top: 44px; padding-left: 0; }
  .steps-track { top: 0; bottom: 0; left: 25px; right: auto; width: 2px; height: auto; }
  .steps-track i { transform: scaleY(0); transform-origin: top center; }
  .step { padding: 0 0 0 80px; min-height: 52px; }
  .step-icon { left: 0; top: 0; }
  .step-num { font-size: 34px; }
  .step-title { margin-top: 4px; }
}

/* Contact: the choice panel, then the expanding form (GSAP height and fade; the mode buttons become a switch). */
.contact { padding-block: 120px; }
.contact-h { font: 400 clamp(40px, 6vw, 88px)/.98 var(--f-display); max-width: 16ch; letter-spacing: .01em; line-height: 1.08; }
.choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.choice-btn {
  min-height: 132px;
  padding: 22px 24px;
  border: 1.5px solid rgba(255, 248, 236, .3);
  border-radius: 24px;
  background: rgba(10, 6, 18, .45);
  color: var(--white);
  font: 400 clamp(21px, 2.3vw, 30px)/1.12 var(--f-display);
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s, min-height .3s, padding .3s;
}
.choice-btn:hover { border-color: var(--gold); }
.choice-btn[aria-pressed="true"] { background: var(--spin); border-color: var(--spin); color: #FFF8EC; }
.choice.is-open { grid-template-columns: none; display: flex; flex-wrap: wrap; gap: 8px; }
.choice.is-open .choice-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 16px/1 var(--f-text);
  opacity: .72;
}
.choice.is-open .choice-btn[aria-pressed="true"] { opacity: 1; }
.form-wrap { overflow: hidden; }
.contact .lead-form { margin-top: 32px; }
.contact .field[hidden] { display: none !important; }
@media (max-width: 699px) { .choice { grid-template-columns: minmax(0, 1fr); } .choice-btn { min-height: 92px; } .choice.is-open { display: flex; } .choice.is-open .choice-btn { min-height: 44px; } }
@media (min-width: 700px) { .contact .lead-form .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* In production: Spin Cycle's game page, no demo stage. */
.prod { display: grid; gap: 28px; align-items: center; padding-block: 48px 40px; }
.prod-media { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--night); }
.prod-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-body { display: grid; gap: 14px; justify-items: start; }
.prod-body .flag { margin-top: 0; }
.prod-h { font: 400 clamp(30px, 4vw, 56px)/1.1 var(--f-display); letter-spacing: .01em; }
.prod-text { color: var(--white-2); max-width: 46ch; }
.prod-body .actions { margin-top: 8px; }
@media (min-width: 900px) { .prod { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; } }
.game-page .prod { padding-top: 24px; }

/* Reduced motion for the rev 5 blocks: static, no tilt, no marquee, no glow. */
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none !important; }
  .avail, .tile, .choice-btn { transition: none !important; }
  .avail { transform: none !important; }
  .cursor-glow { display: none; }
}

/* Flying symbols by width. Desktop: the right of the copy (--x). Tablet: a narrower band to the right of the copy.
   Phone: the lower part of the hero, below the buttons and above the cards (--mx, --my), ten of them. */
/* Tablet portrait and landscape: the band under the buttons (--mx, --my), so no symbol crosses the copy. */
@media (min-width: 700px) and (max-width: 1099px) and (min-height: 500px) {
  .fly { left: var(--mx); top: var(--my); width: calc(var(--sz) * .7); height: calc(var(--sz) * .7); }
}
@media (max-width: 699px) {
  .fly { left: var(--mx); top: var(--my); width: calc(var(--sz) * .62); height: calc(var(--sz) * .62); opacity: .85; }
  .fly--extra { display: none; }
  .layer[data-depth="1"] .fly { opacity: .3; }
}
/* Short phones (under 820 px tall): no room between the buttons and the cards, so no flying symbols. */
@media (max-width: 699px) and (max-height: 819px) { .flyers { display: none; } }

/* Short landscape phones (844×390): the cards must start inside the first screen, so the eyebrow and the sub line
   step aside and the headline gets smaller. */
@media (max-height: 499px) and (max-width: 1279px) {
  .eyebrow { display: none; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 14px; line-height: 1.4; max-width: 70ch; }
  .hero-copy { gap: 10px; padding-block: 8px; }
  .bars { display: none; }
  .cards-wrap { padding-bottom: 12px; }
}

/* Short landscape (844x390): the sub line is narrower and the symbols sit to the right of the copy. */
@media (max-height: 499px) and (max-width: 1279px) {
  .hero-sub { max-width: 40ch; }
  .fly { left: calc(64% + (var(--x) - 52%) * 0.3); width: calc(var(--sz) * .6); height: calc(var(--sz) * .6); }
}
