/* Paper Comet Games / Sock Run — site styles. Colours come from the Paper Comet logo (night blue, the comet's orange,
   coral and gold, paper white) and Sock Run's title (sky blue). Mobile first; breakpoints 640 / 900 / 1200. */

:root {
	/* Colour tokens */
	--night-900: #070b1d;
	--night-800: #0b1026;
	--night-700: #13234d; /* the logo's circle */
	--night-600: #1a2348; /* the studio intro's night */
	--paper: #f5f7ff;
	--paper-muted: #b9c2e3; /* body text on night: 10:1 */
	--paper-faint: #8e98bf; /* small print: 6:1 */
	--orange: #ff8a3d;
	--coral: #ff5e6c;
	--gold: #ffc94a;
	--sky: #bfe6ff; /* Sock Run's title */
	--violet: #8f6bff;

	--bg: var(--night-800);
	--surface: rgba(19, 35, 77, 0.55);
	--surface-strong: rgba(19, 35, 77, 0.85);
	--border: rgba(191, 230, 255, 0.12);
	--border-strong: rgba(191, 230, 255, 0.24);
	--text: var(--paper);
	--text-muted: var(--paper-muted);
	--accent: var(--gold);
	--focus: var(--gold);
	--comet: linear-gradient(100deg, var(--gold) 0%, var(--orange) 55%, var(--coral) 100%);

	/* Type */
	--font-display: "Fredoka", "Nunito", system-ui, sans-serif;
	--font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	--step--1: 0.875rem;
	--step-0: 1rem;
	--step-1: 1.125rem;
	--step-2: 1.375rem;
	--step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
	--step-4: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
	--step-5: clamp(3.25rem, 2rem + 6vw, 6.25rem);

	/* Space (8-point) */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4rem;
	--space-9: 6rem;

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
	--glow: 0 0 0 1px var(--border), 0 30px 80px -30px rgba(255, 138, 61, 0.35);

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--dur-fast: 160ms;
	--dur: 280ms;
	--dur-slow: 700ms;

	--header-h: 68px;
	--z-stars: 0;
	--z-content: 1;
	--z-header: 50;
	--z-lightbox: 100;

	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 8px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: radial-gradient(1200px 700px at 80% -10%, rgba(143, 107, 255, 0.16), transparent 60%),
		radial-gradient(900px 600px at -10% 30%, rgba(255, 138, 61, 0.08), transparent 60%),
		var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sky); text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.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;
}

.skip-link {
	position: fixed; top: 8px; left: 8px; z-index: 200;
	padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
	background: var(--gold); color: var(--night-800); font-weight: 800; text-decoration: none;
	transform: translateY(-160%); transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: min(1200px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }

/* Stars (behind everything) */
.starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: var(--z-stars); pointer-events: none; }
main, .site-footer { position: relative; z-index: var(--z-content); }

/* Header */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
	height: var(--header-h);
	transition: background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), backdrop-filter var(--dur);
}
.site-header.is-scrolled {
	background: rgba(7, 11, 29, 0.72);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	box-shadow: 0 1px 0 var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }

.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--text); text-decoration: none; min-height: 44px; }
.brand-mark { width: 44px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; }
.brand-name span { color: var(--paper-muted); font-weight: 600; letter-spacing: 0.22em; font-size: 0.72em; margin-left: 0.15em; }

.nav-toggle {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer;
}
.site-nav {
	position: absolute; top: calc(var(--header-h) - 4px); right: clamp(16px, 4vw, 40px); left: clamp(16px, 4vw, 40px);
	display: grid; gap: var(--space-1); padding: var(--space-3);
	background: var(--surface-strong); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow);
	backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	opacity: 0; transform: translateY(-8px); visibility: hidden;
	transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
}
.site-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.site-nav a:not(.btn) {
	color: var(--text); text-decoration: none; font-weight: 700; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
	min-height: 44px; display: flex; align-items: center;
}
.site-nav a:not(.btn):hover { background: rgba(191, 230, 255, 0.08); }
.site-nav .btn { margin-top: var(--space-2); }

@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.site-nav {
		position: static; display: flex; align-items: center; gap: var(--space-1); padding: 0;
		background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
		opacity: 1; transform: none; visibility: visible;
	}
	.site-nav a:not(.btn) { color: var(--text-muted); padding: var(--space-2) var(--space-3); transition: color var(--dur-fast); }
	.site-nav a:not(.btn):hover { color: var(--text); background: none; }
	.site-nav .btn { margin: 0 0 0 var(--space-3); }
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
	min-height: 52px; padding: 0 var(--space-5); border-radius: 999px;
	font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em;
	text-decoration: none; cursor: pointer; border: 0;
	transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur), color var(--dur);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
	background: var(--comet); color: var(--night-800);
	box-shadow: 0 10px 30px -10px rgba(255, 138, 61, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(255, 138, 61, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35); transform: translateY(-1px); }
.btn-ghost { color: var(--text); background: rgba(191, 230, 255, 0.06); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn-ghost:hover { background: rgba(191, 230, 255, 0.12); }
.btn-small { min-height: 44px; padding: 0 var(--space-4); font-size: 0.98rem; }

.eyebrow {
	display: inline-flex; align-items: center; gap: var(--space-2);
	font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--gold);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral); }

/* Hero: full-width looping gameplay behind the logo */
.hero {
	position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate;
	padding: calc(var(--header-h) + var(--space-7)) 0 var(--space-9);
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--night-700); }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(11, 16, 38, 0.94) 0%, rgba(11, 16, 38, 0.78) 34%, rgba(11, 16, 38, 0.25) 64%, rgba(11, 16, 38, 0.1) 100%),
		linear-gradient(180deg, rgba(11, 16, 38, 0.55) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
}
.hero-inner { position: relative; }
.hero-copy { display: grid; gap: var(--space-5); justify-items: start; max-width: 40rem; }
.hero-logo { margin: 0; line-height: 0; width: min(600px, 100%); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)); }
.hero-logo img { width: 100%; height: auto; }
.lede { font-size: var(--step-2); line-height: 1.5; color: #dfe5fb; max-width: 30ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); color: #dfe5fb; font-size: var(--step--1); font-weight: 700; }
.facts li {
	display: inline-flex; gap: 0.35em; align-items: baseline; padding: var(--space-1) var(--space-3); border-radius: 999px;
	background: rgba(11, 16, 38, 0.55); box-shadow: inset 0 0 0 1px var(--border-strong);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.facts strong { color: var(--text); font-family: var(--font-display); font-size: 1.05rem; }

.video-toggle {
	position: absolute; right: clamp(16px, 4vw, 40px); bottom: var(--space-5); z-index: 2;
	display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-4);
	border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(7, 11, 29, 0.6); color: var(--text);
	font: 700 0.85rem/1 var(--font-body); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: inline; }
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }

.scroll-cue {
	position: absolute; left: 50%; bottom: var(--space-5); translate: -50% 0; z-index: 2;
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	color: var(--text); border: 1px solid var(--border-strong); background: rgba(7, 11, 29, 0.35); animation: bob 2.4s var(--ease-out) infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 699px) {
	.hero { align-items: end; padding-bottom: var(--space-8); }
	.hero-shade {
		background: linear-gradient(180deg, rgba(11, 16, 38, 0.35) 0%, rgba(11, 16, 38, 0.2) 25%, rgba(11, 16, 38, 0.85) 58%, var(--bg) 100%);
	}
	.lede { font-size: var(--step-1); }
	.video-toggle { bottom: auto; top: calc(var(--header-h) + var(--space-3)); }
	.scroll-cue { display: none; }
}

.btn-large { min-height: 58px; padding: 0 var(--space-6); font-size: 1.12rem; }

/* Scroll-controlled gameplay */
.trailer { position: relative; height: 620vh; }
.trailer-sticky {
	position: sticky; top: 0; height: 100svh; display: grid; align-content: center; gap: var(--space-4);
	padding-top: calc(var(--header-h) + var(--space-2)); padding-bottom: var(--space-4);
}
.trailer-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-5); }
.trailer-head h2 { font-size: var(--step-3); }
.trailer-hint { color: var(--text-muted); font-size: var(--step--1); }

.screen {
	position: relative; aspect-ratio: 16 / 9; width: min(100%, calc((100svh - var(--header-h) - 200px) * 16 / 9));
	margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden;
	background: #000; box-shadow: var(--glow), var(--shadow);
}
.screen-canvas, .screen-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen-poster { transition: opacity var(--dur) var(--ease-out); }
.screen.is-ready .screen-poster { opacity: 0; }
.screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; }

.screen-loading {
	position: absolute; right: var(--space-4); top: var(--space-4); display: inline-flex; align-items: center; gap: var(--space-2);
	padding: var(--space-1) var(--space-3); border-radius: 999px; font-size: 0.8rem; font-weight: 700;
	background: rgba(7, 11, 29, 0.7); color: var(--text-muted); transition: opacity var(--dur);
}
.screen-loading span { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gold); border-right-color: transparent; animation: spin 0.8s linear infinite; }
.screen.is-loaded .screen-loading { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.chapter-card {
	position: absolute; left: var(--space-4); bottom: var(--space-4); max-width: min(30rem, calc(100% - 2 * var(--space-4)));
	padding: var(--space-4) var(--space-5); border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(7, 11, 29, 0.55), rgba(7, 11, 29, 0.82));
	border: 1px solid var(--border);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.chapter-card.is-changing { opacity: 0; transform: translateY(6px); }
.chapter-kicker { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.chapter-name { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.2; }
.chapter-text { color: var(--text-muted); font-size: var(--step--1); margin-top: var(--space-1); }

.chapters { list-style: none; padding: 0; margin: var(--space-4) auto 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); width: min(100%, calc((100svh - var(--header-h) - 200px) * 16 / 9)); }
.chapter-btn {
	width: 100%; min-height: 44px; display: grid; gap: 6px; align-content: center; padding: var(--space-2) 0 0; text-align: left;
	background: none; border: 0; color: var(--text-muted); font: 700 0.8rem/1.2 var(--font-body); cursor: pointer;
}
.chapter-btn .bar { height: 4px; border-radius: 4px; background: rgba(191, 230, 255, 0.15); overflow: hidden; }
.chapter-btn .bar i { display: block; height: 100%; width: calc(var(--fill, 0) * 100%); background: var(--comet); border-radius: inherit; }
.chapter-btn[aria-current="step"] { color: var(--text); }
.chapter-btn:hover { color: var(--text); }

.skip-trailer {
	position: absolute; right: clamp(16px, 4vw, 40px); bottom: var(--space-4);
	padding: var(--space-2) var(--space-4); border-radius: 999px; background: var(--surface-strong); color: var(--text);
	font-weight: 700; font-size: 0.85rem; text-decoration: none;
	transform: translateY(200%); opacity: 0; transition: transform var(--dur-fast), opacity var(--dur-fast);
}
.skip-trailer:focus { transform: none; opacity: 1; }

@media (max-width: 699px) {
	/* Phones: a square screen (the footage is cropped to its middle, where the sock is), filling the width. */
	.screen, .chapters { width: 100%; }
	.screen { aspect-ratio: 1 / 1; }
}
@media (max-width: 639px) {
	.trailer { height: 520vh; }
	.chapter-card { left: var(--space-2); bottom: var(--space-2); padding: var(--space-3) var(--space-4); }
	.chapter-text { display: none; }
	.chapter-btn { font-size: 0.7rem; }
}

/* Sections */
.section { position: relative; padding: var(--space-9) 0; }
.section-tint { background: linear-gradient(180deg, transparent, rgba(19, 35, 77, 0.35) 20%, rgba(19, 35, 77, 0.35) 80%, transparent); }
.section-head { display: grid; gap: var(--space-3); max-width: 46rem; margin-bottom: var(--space-7); }
.section-lede { color: var(--text-muted); font-size: var(--step-1); }

/* Features */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature {
	position: relative; padding: var(--space-6); border-radius: var(--radius-lg);
	background: var(--surface); border: 1px solid var(--border);
	display: grid; gap: var(--space-3); align-content: start;
	transition: border-color var(--dur), transform var(--dur) var(--ease-out), background var(--dur);
}
.feature:hover { border-color: var(--border-strong); background: rgba(19, 35, 77, 0.7); }
.feature p { color: var(--text-muted); }
@media (min-width: 900px) {
	.feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-icon {
	width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
	background: radial-gradient(circle at 30% 25%, rgba(255, 201, 74, 0.25), rgba(255, 94, 108, 0.12));
	box-shadow: inset 0 0 0 1px rgba(255, 201, 74, 0.25);
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Worlds */
.world-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: world; }
.world {
	position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--night-700);
	border: 1px solid var(--border); display: grid; grid-template-rows: auto 1fr;
	transition: transform var(--dur) var(--ease-out), border-color var(--dur);
}
.world:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.world img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.world-body { padding: var(--space-4) var(--space-5) var(--space-5); display: grid; gap: var(--space-1); }
.world-num { font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.world h3 { font-size: 1.35rem; }
.world p { color: var(--text-muted); font-size: var(--step--1); }

/* Live leaderboard */
.board {
	border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
	padding: clamp(var(--space-4), 3vw, var(--space-6)); display: grid; gap: var(--space-5);
}
.board-pickers { display: grid; gap: var(--space-3); }
.segmented { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.segmented button {
	min-height: 44px; padding: 0 var(--space-4); border-radius: 999px; cursor: pointer;
	border: 1px solid var(--border); background: rgba(7, 11, 29, 0.45); color: var(--text-muted);
	font: 700 0.95rem/1 var(--font-body); transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.segmented button:hover { color: var(--text); border-color: var(--border-strong); }
.segmented button[aria-pressed="true"] { background: var(--comet); color: var(--night-800); border-color: transparent; }
.segmented-rooms button[aria-pressed="true"] { background: rgba(191, 230, 255, 0.16); color: var(--text); border-color: var(--sky); }
.segmented-rooms button .num { color: var(--gold); margin-right: 0.35em; }
.board-panel { min-height: 220px; display: grid; align-content: start; gap: var(--space-4); }
.board-status { color: var(--text-muted); }
.board-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board-table th { text-align: left; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-faint); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border); }
.board-table td { padding: var(--space-3); border-bottom: 1px solid rgba(191, 230, 255, 0.06); }
.board-table td.rank { width: 3.5rem; font-family: var(--font-display); font-weight: 600; color: var(--paper-faint); }
.board-table tr:nth-child(1) td.rank { color: var(--gold); }
.board-table td.time { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-align: right; }
.board-table th.time { text-align: right; }
.medal { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.85rem; font-weight: 800; color: var(--text-muted); }
.medal i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.medal-gold i { background: #ffc94a; } .medal-silver i { background: #cfd8ea; } .medal-bronze i { background: #e08a4f; }
.targets { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--text-muted); font-size: var(--step--1); }
.targets strong { color: var(--text); font-variant-numeric: tabular-nums; }
.board-empty { display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-5); border-radius: var(--radius); background: rgba(7, 11, 29, 0.35); border: 1px dashed var(--border-strong); }
.board-empty h3 { font-size: var(--step-2); }
.board-empty p { color: var(--text-muted); }
.board-total { color: var(--paper-faint); font-size: var(--step--1); }
.dot-live { background: #4ade80 !important; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6) !important; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@media (max-width: 639px) {
	.board-table th.medal-col, .board-table td.medal-col { display: none; }
}

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery-item {
	display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; border-radius: var(--radius); overflow: hidden;
	background: var(--night-700); box-shadow: 0 0 0 1px var(--border); aspect-ratio: 16 / 9;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out), filter var(--dur); }
.gallery-item:hover img { transform: scale(1.04); }
@media (min-width: 900px) {
	.gallery { grid-template-columns: repeat(6, 1fr); }
	.gallery li { grid-column: span 2; }
	.gallery li:nth-child(1), .gallery li:nth-child(2) { grid-column: span 3; }
}

/* Play */
.play-card {
	position: relative; overflow: hidden; display: grid; gap: var(--space-6); align-items: center;
	padding: clamp(var(--space-6), 5vw, var(--space-8)); border-radius: calc(var(--radius-lg) + 8px);
	background: radial-gradient(800px 400px at 100% 0%, rgba(255, 138, 61, 0.22), transparent 60%),
		radial-gradient(600px 400px at 0% 100%, rgba(143, 107, 255, 0.2), transparent 60%),
		var(--night-700);
	border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.play-copy { display: grid; gap: var(--space-4); justify-items: start; }
.play-copy p:not(.eyebrow) { color: var(--text-muted); font-size: var(--step-1); max-width: 40ch; }
.stores { display: grid; gap: var(--space-3); }
.stores-title { font-weight: 800; color: var(--text-muted); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; }
.store-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.store {
	display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 52px;
	padding: 0 var(--space-5); border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
	color: var(--text); text-decoration: none; background: rgba(7, 11, 29, 0.45); border: 1px solid var(--border);
	transition: border-color var(--dur), background var(--dur);
}
a.store:hover { border-color: var(--gold); background: rgba(7, 11, 29, 0.7); }
.store-note { font-family: var(--font-body); font-size: 0.8rem; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.store-soon { color: var(--paper-muted); }
.store-soon .store-note { color: var(--paper-faint); }
@media (min-width: 900px) {
	.play-card { grid-template-columns: 1.3fr 1fr; }
}

/* About */
.about { display: grid; gap: var(--space-7); align-items: center; }
.about-logo { width: min(320px, 70%); margin-inline: auto; filter: drop-shadow(0 20px 50px rgba(255, 138, 61, 0.25)); }
.about-copy { display: grid; gap: var(--space-4); max-width: 38rem; }
.about-copy p:not(.eyebrow) { color: var(--text-muted); font-size: var(--step-1); }
@media (min-width: 900px) {
	.about { grid-template-columns: 1fr 1.4fr; }
}

/* Footer */
.site-footer { padding: var(--space-7) 0 calc(var(--space-7) + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: rgba(7, 11, 29, 0.6); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); color: var(--paper-faint); font-size: var(--step--1); }
.footer-inner a:not(.brand) { color: var(--text-muted); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.play-copy p.share-note { min-height: 1.5em; color: var(--gold); font-weight: 700; font-size: var(--step--1); }
.play-copy p.download-note { margin-top: calc(-1 * var(--space-1)); max-width: 30rem; color: var(--paper-faint); font-size: var(--step--1); }
.play-copy .download-note em { color: var(--text-muted); font-style: normal; font-weight: 700; }
/* The Windows download is offered on computers only (not phones and tablets). */
@media (hover: none) and (pointer: coarse) {
	.only-computers { display: none !important; }
}

/* Cursor sparks (computers only; see site.js) */
.sparks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

/* Cards that lean toward the pointer (computers only; see site.js) */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* Subpages: press kit, privacy, 404 */
.page { padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-9); }
.page-head { display: grid; gap: var(--space-3); max-width: 46rem; margin-bottom: var(--space-7); }
.page-head h1 { font-size: var(--step-5); line-height: 1; }
.page h2 { font-size: var(--step-3); }
.page h3 { font-size: var(--step-2); margin-top: var(--space-5); }
.page a:not(.btn):not(.brand):not(.shot) { color: var(--gold); text-underline-offset: 3px; }

.press-grid { display: grid; gap: var(--space-5); margin-bottom: var(--space-8); }
.press-card { padding: clamp(var(--space-5), 4vw, var(--space-7)); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: grid; gap: var(--space-4); align-content: start; }
.press-copy p { color: var(--text-muted); }
.press-copy .press-short { color: var(--text); font-size: var(--step-1); padding: var(--space-4) var(--space-5); border-radius: var(--radius); background: rgba(255, 201, 74, 0.08); border-left: 3px solid var(--gold); }
.press-list { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); color: var(--text-muted); }
.press-list li::marker { color: var(--gold); }
.facts-list { margin: 0; display: grid; }
.facts-list div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.facts-list div:last-child { border-bottom: 0; }
.facts-list dt { font-family: var(--font-display); font-weight: 600; color: var(--paper-faint); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; padding-top: 0.2em; }
.facts-list dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 900px) {
	.press-grid { grid-template-columns: 1fr 1.5fr; }
}

.press-section { margin-bottom: var(--space-8); display: grid; gap: var(--space-4); }
.asset-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.asset { min-width: 0; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); }
.asset-preview { aspect-ratio: 16 / 10; display: block; overflow: hidden; padding: var(--space-5); background: radial-gradient(circle at 50% 40%, rgba(143, 107, 255, 0.18), transparent 70%), rgba(7, 11, 29, 0.6); }
.asset-preview img { width: 100%; height: 100%; object-fit: contain; }
.asset-name { padding: var(--space-4) var(--space-5) 0; font-family: var(--font-display); font-weight: 600; }
.asset-links { padding: var(--space-1) var(--space-5) var(--space-4); display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.asset-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.asset-grid-shots { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.shot { display: grid; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color var(--dur), transform var(--dur) var(--ease-out); }
.shot:hover { border-color: var(--gold); transform: translateY(-3px); }
.shot img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.shot span { padding: var(--space-3) var(--space-4); font-weight: 700; font-size: var(--step--1); }

.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.prose p, .prose ul { color: var(--text-muted); margin-bottom: var(--space-4); }
.prose ul { padding-left: 1.2em; display: grid; gap: var(--space-2); }
.prose strong { color: var(--text); }
.updated { margin-top: var(--space-7); font-size: var(--step--1); color: var(--paper-faint) !important; }

.lost { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: var(--space-4); text-align: center; padding: var(--space-6) var(--space-4); }
.lost img { width: 160px; height: auto; filter: drop-shadow(0 20px 50px rgba(255, 138, 61, 0.3)); animation: drift 6s ease-in-out infinite; }
.lost h1 { font-size: var(--step-4); max-width: 18ch; }
.lost .section-lede { max-width: 32rem; }
.lost .hero-actions { justify-content: center; margin-top: var(--space-3); }
@keyframes drift { 50% { transform: translateY(-10px) rotate(-3deg); } }

/* Lightbox */
.lightbox {
	position: fixed; inset: 0; z-index: var(--z-lightbox); display: grid; place-items: center;
	padding: clamp(var(--space-4), 5vw, var(--space-8));
	background: rgba(4, 7, 18, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	animation: fade-in var(--dur) var(--ease-out);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; display: grid; gap: var(--space-3); max-width: min(1400px, 100%); }
.lightbox-figure img { max-height: 80svh; width: auto; margin-inline: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.lightbox-figure figcaption { text-align: center; color: var(--text-muted); }
.lightbox-close, .lightbox-nav {
	position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid var(--border-strong); background: var(--surface-strong); color: var(--text); cursor: pointer;
}
.lightbox-close { top: var(--space-4); right: var(--space-4); }
.lightbox-prev { left: var(--space-4); top: 50%; translate: 0 -50%; }
.lightbox-next { right: var(--space-4); top: 50%; translate: 0 -50%; }
@keyframes fade-in { from { opacity: 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.reveal { opacity: 1; transform: none; }
	.scroll-cue { animation: none; }
}
