/* VOICE occasion: a studio's front door, confident and plain
   IDEA the game itself is the poster: deep space, the logo's orange, the game's cream HUD panel
   PICTURE Scorched Planets, live, full width under the headline
   COLOUR space ink #0b0f1e, logo orange #f28a1e, HUD cream #f4efe4, sand #e9e1cf, ink #1c1724
   TYPE Exo 2 (the games' own face) for headings, Inter for text
   LAYOUT headline and the waitlist across the top, the game beneath; a phone stacks them in that order */

@font-face { font-family: 'Exo 2'; src: url(fonts/exo2-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(fonts/inter-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --space: #0b0f1e;
  --space-2: #141a30;
  --line: #2c3352;
  --orange: #f28a1e;
  --orange-hi: #ffa03d;
  --cream: #f4efe4;
  --sand: #e9e1cf;
  --ink: #1c1724;
  --ink-soft: #4e4858;
  --on-dark: #c9ccd6;
  --on-dark-soft: #a7abc0;
  --head: 'Exo 2', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--space); color: var(--cream); font: 400 17px/1.55 Inter, system-ui, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }
a { color: #f5a24a; }
a:hover { color: #ffc27e; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; margin: 0; }
h2 { font-weight: 900; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(4vw, 16px, env(safe-area-inset-left, 0px)); padding-right: max(4vw, 16px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.muted { color: var(--on-dark-soft); }
.accent { color: var(--orange); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--orange); color: var(--ink); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #7cc4ff; outline-offset: 2px; }

/* Buttons: hard offset shadows, as the studio's own windows have */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 8px; background: var(--orange); color: var(--ink); font: 700 16px/1 var(--head); text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); white-space: nowrap; }
.btn:hover { background: var(--orange-hi); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-big { min-height: 60px; padding: 0 34px; font-size: 22px; box-shadow: 5px 5px 0 #000; }
.btn-ghost { background: transparent; color: var(--cream); border-color: #4a5070; box-shadow: none; }
.btn-ghost:hover { background: #1a2036; color: var(--cream); }
.btn-ink { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 #7a3d06; }
.btn-ink:hover { background: #2b2436; color: var(--cream); }

/* Header */
.top { position: relative; z-index: 2; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.logo img { display: block; height: 44px; width: auto; image-rendering: pixelated; }
.top-links { display: flex; gap: 28px; }
.top-links a { color: var(--on-dark); text-decoration: none; font-weight: 500; }
.top-links a:hover { color: #fff; }

/* Hero */
.hero { padding-top: clamp(20px, 5vw, 60px); padding-bottom: clamp(48px, 7vw, 96px); background: radial-gradient(1200px 520px at 75% 0%, #1a2148 0%, rgba(11, 15, 30, 0) 70%); }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; margin-top: 24px; }
.hero-text { flex: 1 1 480px; }
.hero h1 { font-weight: 900; font-size: clamp(42px, 7vw, 92px); line-height: 1; }
.lede { margin: 0; max-width: 600px; font-size: 19px; color: var(--on-dark); }
.lede-note { margin: 12px 0 0; max-width: 600px; font-size: 13px; line-height: 1.5; color: var(--on-dark-soft); }
.hero-join { flex: 0 1 460px; scroll-margin-top: 24px; }

/* The waitlist */
.join { display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; }
.join input[type=email], .make input { flex: 1 1 240px; min-height: 48px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 8px; background: #fffdf8; color: var(--ink); font: 500 16px/1 Inter, system-ui, sans-serif; }
.join-hint { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--on-dark-soft); }
.join-hint.error { color: #ffb4a1; }
.join-dark .join-hint { color: #3b2a14; }
.join-dark .join-hint.error { color: #7a1a00; font-weight: 600; }
.joined { padding: 18px 20px; border: 2px solid var(--orange); border-radius: 10px; background: #1a1f36; max-width: 560px; }
.join-dark + .joined, .band-orange .joined { border-color: var(--ink); background: #fffdf8; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.joined-title { margin: 0; font: 800 20px/1.2 var(--head); }
.joined-text { margin: 6px 0 0; font-size: 15px; color: var(--on-dark); }
.band-orange .joined-text { color: var(--ink-soft); }
.make { margin-top: 14px; }
.make label { display: block; font-size: 15px; margin-bottom: 6px; }
.band-orange .make label .muted { color: var(--ink-soft); }
.make-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* The game */
.game { margin: clamp(32px, 5vw, 56px) 0 0; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #05070f; box-shadow: 8px 8px 0 #000; scroll-margin-top: 16px; }
.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 10px 16px; background: var(--space-2); border-bottom: 2px solid var(--line); }
.game-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.game-name strong { font: 800 16px/1 var(--head); }
.game-name .muted { font-size: 14px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #5bd16f; box-shadow: 0 0 0 3px rgba(91, 209, 111, .2); }
.game-actions { display: flex; gap: 10px; }
.game-stage { position: relative; aspect-ratio: 16 / 9; background: #05070f; }
.game-loop, .game-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.game-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; text-align: center; background: radial-gradient(closest-side, rgba(5, 7, 15, .55), rgba(5, 7, 15, 0)); }
.game-cover-note { margin: 0; max-width: 420px; font-size: 15px; color: #e6e8f0; text-shadow: 0 1px 3px #000; }
.game-cover-touch { display: none; margin: 0; font-size: 14px; color: var(--on-dark-soft); }
@media (pointer: coarse) { .game-cover-touch { display: block; } }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.facts li { border-top: 2px solid var(--line); padding-top: 12px; }
.facts strong { display: block; font: 900 32px/1 var(--head); color: var(--orange); }
.facts span { display: block; margin-top: 6px; font-size: 15px; color: var(--on-dark); }

/* Bands */
.band { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.band-cream { background: var(--cream); color: var(--ink); }
.band-sand { background: var(--sand); color: var(--ink); }
.band-ink { background: var(--space); color: var(--cream); border-top: 2px solid var(--line); }
.band-orange { background: var(--orange); color: var(--ink); }
.sub { margin: 12px 0 0; max-width: 640px; font-size: 18px; color: var(--ink-soft); }
.band-ink .sub { color: var(--on-dark); }
.band-orange .sub { color: var(--ink); }
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.split-head .sub { max-width: 440px; font-size: 16px; }

/* The tour of the studio */
.tour { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 40px; }
.tour-tabs { display: flex; flex-direction: column; gap: 4px; }
.tour-tabs button { display: block; width: 100%; text-align: left; padding: 14px 18px; border: 2px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.tour-tabs button:hover { background: #ebe4d4; }
.tour-tabs button[aria-selected=true] { background: #fffdf8; border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.tour-tabs strong { display: block; font: 800 19px/1.25 var(--head); }
.tour-tabs span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.tour-tabs .say + .say { margin-top: 6px; }
.tour-tabs .say { display: block; margin-top: 10px; padding: 8px 12px; border-radius: 6px; background: #f1ebdd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 500 13px/1.45 ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace; color: var(--ink); quotes: '\201C' '\201D'; }
.tour-tabs button[aria-selected=false] span, .tour-tabs button[aria-selected=false] .say { display: none; }
.tour-shot { margin: 0; }
.tour-say { display: none; }
.loop-pause { position: absolute; right: 10px; top: 10px; z-index: 3; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(11, 15, 30, .72); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.has-loop:hover > .loop-pause, .loop-pause:focus-visible, .loop-reduced > .loop-pause { opacity: 1; }
.loop-pause:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (pointer: coarse) { .loop-pause { opacity: 1; } }
.window { border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 8px 8px 0 var(--ink); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #e3dccb; border-bottom: 2px solid var(--ink); }
.window-bar span { margin-left: 0; font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-body { aspect-ratio: 16 / 10; background: #f6f4ef; }
.window-body img, .window-body video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.window-body .whole { object-fit: contain; object-position: center; background: #fff; padding: 12px; box-sizing: border-box; }
.tour-shot figcaption { margin-top: 18px; font-size: 15px; color: var(--ink-soft); }

/* Playtest anywhere */
.anywhere { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.anywhere-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.clip { margin: 0; }
.clip-wide { grid-column: 1 / -1; }
.clip video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 2px solid var(--line); border-radius: 12px; background: #05070f; box-shadow: 6px 6px 0 #000; }
.clip figcaption { margin-top: 10px; font-size: 15px; color: var(--on-dark); }

/* Kinds of games */
/* Three to a row, a short last row centred */
.kinds { --per-row: 3; list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.kinds li { flex: 0 0 calc((100% - (var(--per-row) - 1) * 24px) / var(--per-row)); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fffdf8; box-shadow: 5px 5px 0 var(--ink); }
.kinds video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--ink); background: #05070f; }
.kinds p { margin: 0; padding: 12px 16px 14px; font: 800 19px/1.25 var(--head); }

/* Closing and footer */
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.closing > div { flex: 1 1 480px; }
.closing h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; }
.closing .join { flex: 0 1 460px; }
.foot { color: var(--on-dark-soft); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }
.foot img { height: 30px; width: auto; image-rendering: pixelated; }

@media (max-width: 900px) {
  .top-links { display: none; }
  .tour { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tour-tabs { flex-direction: row; overflow-x: auto; padding: 4px 8px 10px 4px; gap: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .tour-tabs button { width: auto; flex: 0 0 auto; scroll-snap-align: start; scroll-margin-left: 4px; }
  .tour-tabs button span, .tour-tabs button .say { display: none !important; }
  .tour-say { display: block; margin-top: -8px; }
  .tour-say span { display: block; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
  .tour-say .say { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 6px; background: #ebe4d4; font: 500 13px/1.45 ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace; color: var(--ink); quotes: '\201C' '\201D'; }
  .anywhere { grid-template-columns: minmax(0, 1fr); }
  .kinds { --per-row: 2; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .anywhere-media { grid-template-columns: minmax(0, 1fr); }
  .kinds { --per-row: 1; gap: 20px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tour { gap: 20px; }
  .top-row .btn-sm { padding: 0 12px; font-size: 14px; }
  .join .btn { width: 100%; }
  .btn-big { min-height: 54px; font-size: 19px; }
  .game-actions { display: none; }
}
.slides { position: relative; width: 100%; height: 100%; }
.slides img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.slides img.on { opacity: 1; }
.slide-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(11, 15, 30, .55); }
.slide-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .45); cursor: pointer; }
.slide-dots button[aria-current="true"] { background: #fff; }
.slide-dots button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .slides img { transition: none; } }
