/* SATORU GAMES - the site.
 *
 * A publisher's front page in the same build as verlanis.net (one static page,
 * no framework, served by Caddy as committed) with its own identity: near-black,
 * paper-white type, one acid lime for Satoru, and each game keeping its own
 * colour inside its own panel (VERLANIS cyan, PIXIREELS gold).
 *
 * CORPORATE TYPE, ONE LOUD MARK. Everything you read is Mona Sans - a little
 * wide for headings, sentence case, tight - so the page reads like a company
 * you can send your game to. The personality is in one place: the wordmark,
 * spray-painted with its drips (tools/build-logo.py), plus the lime, the cut
 * corners and the HUD brackets. JetBrains Mono for labels. All served from
 * here (tools/build-fonts.py).
 *
 * Dark only, on purpose: every picture on the page is a night scene or a lit
 * screen.
 */

/* FONTS: tools/build-fonts.py writes this block */
@font-face {
	font-family: "Mona Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/mona-400.89ed473e5a.woff2") format("woff2");
	unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2197, U+2212, U+2215;
}
@font-face {
	font-family: "Mona Sans";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/mona-500.f82fb40c3c.woff2") format("woff2");
	unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2197, U+2212, U+2215;
}
@font-face {
	font-family: "Mona Sans";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/mona-600.394d949570.woff2") format("woff2");
	unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2197, U+2212, U+2215;
}
@font-face {
	font-family: "Mona Sans Wide";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/mona-wide-600.6e90d4ef69.woff2") format("woff2");
	unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2197, U+2212, U+2215;
}
@font-face {
	font-family: "Mona Sans Wide";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/mona-wide-700.aa441a207d.woff2") format("woff2");
	unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2197, U+2212, U+2215;
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/jetbrains-mono-500.dc3ab6ffde.woff2") format("woff2");
	unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2197, U+2212, U+2215;
}
/* /FONTS */

:root {
	--void: #060709;
	--deep: #0b0d11;
	--panel: #101318;
	--panel-2: #161a21;
	--ink: #f4f4ee;
	--text: #b9bcc4;
	--dim: #7c818c;
	--hair: rgba(244, 244, 238, 0.09);
	--hair-2: rgba(244, 244, 238, 0.18);
	--hair-3: rgba(244, 244, 238, 0.32);
	--lime: #c8ff3d;
	--lime-ink: #0d1400;
	--cyan: #59f2ff;
	--gold: #ffc94a;
	--pink: #ff5fa2;
	--red: #ff5c6b;

	--disp: "Mona Sans Wide", "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--body: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

	--wrap: 1320px;
	--gutter: clamp(16px, 4vw, 48px);
	--cut: 12px;
	--top-h: 72px;
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	--ease-io: cubic-bezier(0.7, 0, 0.2, 1);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top-h); background: var(--void); }
body {
	margin: 0;
	background: var(--void);
	color: var(--text);
	font: 400 17px/1.6 var(--body);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
/* FILM GRAIN over everything, under the header: one small noise tile, fixed,
   so it reads as the screen rather than the pictures. */
body::after {
	content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--disp); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: normal; color: var(--lime); }
.mono { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.pixel, .pixel img { image-rendering: pixelated; }
::selection { background: var(--lime); color: var(--lime-ink); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--lime); color: var(--lime-ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------------------------------------------------------------- buttons
   Cut corners, the HUD shape both games share. --c is the button's colour. */

.btn {
	--c: var(--lime);
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	padding: 17px 26px; border: 0; cursor: pointer;
	font: 600 12px/1 var(--disp); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
	color: var(--c); background: transparent;
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
	transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; flex: none; transition: transform 0.3s var(--ease); }
.btn svg .fill { fill: currentColor; stroke: none; }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn-lime, .btn-cyan, .btn-gold { background: var(--c); color: #050608; }
.btn-cyan { --c: var(--cyan); }
.btn-gold { --c: var(--gold); }
.btn-lime:hover, .btn-cyan:hover, .btn-gold:hover { background: #fff; box-shadow: 0 0 48px color-mix(in srgb, var(--c) 50%, transparent); }
/* a sheen that crosses the solid buttons on hover */
.btn-lime::after, .btn-cyan::after, .btn-gold::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.7) 50%, transparent 65%);
	transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-ghost { --c: var(--ink); background: rgba(244, 244, 238, 0.06); box-shadow: inset 0 0 0 1px var(--hair-3); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(244, 244, 238, 0.14); }
.btn-ghost:hover svg { transform: none; }
.btn-sm { padding: 12px 18px; font-size: 11px; --cut: 9px; }

/* ---------------------------------------------------------------- header */

.top {
	position: fixed; inset: 0 0 auto; z-index: 100; height: var(--top-h);
	display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter);
	transition: background 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}
/* solid, not glass: a blurred backdrop pulled the lime band in under it and turned the bar green */
.top.is-solid { background: rgba(6, 7, 9, 0.97); box-shadow: 0 1px 0 var(--hair), 0 10px 30px rgba(0, 0, 0, 0.35); }
/* The painted wordmark: the letters fill the top of the picture and the drips
   the rest, so it sits low and lets the paint run down past the bar. */
.brand { display: block; align-self: flex-start; margin-top: 19px; line-height: 0; }
.brand img { width: 230px; height: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5)); transition: filter 0.4s; }
.brand:hover img { filter: drop-shadow(0 0 18px rgba(244, 244, 238, 0.25)); }
.top-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lime); transform: scaleX(var(--sp, 0)); transform-origin: left; opacity: 0.8; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
	position: relative; padding: 10px 14px; text-decoration: none;
	font: 500 14px/1 var(--body); letter-spacing: 0; color: var(--text);
	transition: color 0.25s;
}
.nav a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--lime);
	transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
}
.nav a:hover, .nav a.is-on { color: var(--ink); }
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); transform-origin: left; }
.menu { display: none; }
/* the bar has its own button for it; the phone menu, which hides that button, lists it */
.nav .nav-submit { display: none; }
.top.is-open .nav .nav-submit { display: block; color: var(--lime); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--void); isolation: isolate; }
.slides, .slide, .slide-media { position: absolute; inset: 0; }
.slide { visibility: hidden; opacity: 0; transition: opacity 1.1s var(--ease-io), visibility 0s 1.1s; }
.slide.is-on { visibility: visible; opacity: 1; transition: opacity 1.1s var(--ease-io), visibility 0s; z-index: 1; }
.slide-media { overflow: hidden; }
.slide-media > video, .slide-media > img:not(.pixi-machine) {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	transform: scale(1.12); transition: transform 9s linear;
}
.slide.is-on .slide-media > video, .slide.is-on .slide-media > img:not(.pixi-machine) { transform: scale(1.02); }
/* the scrims: dark from the left for the copy, from the foot for the rail */
.slide-media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(6, 7, 9, 0.92) 0%, rgba(6, 7, 9, 0.6) 38%, rgba(6, 7, 9, 0) 70%),
		linear-gradient(0deg, var(--void) 0%, rgba(6, 7, 9, 0.5) 22%, rgba(6, 7, 9, 0) 45%),
		linear-gradient(180deg, rgba(6, 7, 9, 0.7) 0%, rgba(6, 7, 9, 0) 18%);
}
/* scanlines, faint, on the moving picture only */
.slide-media::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.35;
	background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px);
}

/* PIXIREELS: the street through the day, one backdrop fading into the next;
   the machine leans in from the right. */
.pixi-sky > img:not(.pixi-machine) { image-rendering: pixelated; opacity: 0; transition: opacity 2.4s linear, transform 9s linear; }
.pixi-sky > img.is-on { opacity: 1; }
.pixi-machine {
	position: absolute; z-index: 2; right: max(4vw, calc((100vw - var(--wrap)) / 2)); bottom: 15%;
	width: min(34vw, 470px); height: auto;
	filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
	transform: translateY(30px) rotate(3deg); opacity: 0;
	transition: transform 1.4s var(--ease) 0.25s, opacity 1s 0.25s;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.slide.is-on .pixi-machine { transform: translateY(0) rotate(2deg); opacity: 1; animation: float 7s ease-in-out 1.6s infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(1deg); } }
.slide-pixi .slide-media::after {
	background:
		linear-gradient(90deg, rgba(10, 6, 20, 0.92) 0%, rgba(10, 6, 20, 0.55) 40%, rgba(10, 6, 20, 0) 65%),
		linear-gradient(0deg, var(--void) 0%, rgba(6, 7, 9, 0.4) 22%, rgba(6, 7, 9, 0) 45%);
}

.slide-body {
	position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(150px, 22vh, 220px);
	width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
}
.slide-body > * { max-width: 620px; }
.kicker {
	display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
	font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.dot.live { background: var(--cyan); box-shadow: 0 0 0 0 rgba(89, 242, 255, 0.7); animation: ping 2s infinite; }
.dot.dev { background: var(--gold); }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(89, 242, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(89, 242, 255, 0); } }
.slide-logo { margin: 0 0 26px; line-height: 0; }
.slide-logo img { width: min(440px, 72vw); height: auto; filter: drop-shadow(0 8px 40px rgba(0, 0, 0, 0.6)); }
.slide-logo.pixel img { width: min(560px, 84vw); }
.slide-tag { font: 600 clamp(24px, 2.7vw, 40px)/1.06 var(--disp); color: var(--ink); letter-spacing: -0.03em; margin-bottom: 16px; text-wrap: balance; }
.slide-lede { font-size: clamp(16px, 1.25vw, 19px); color: #d3d5da; max-width: 540px; margin-bottom: 30px; }
.slide-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* the copy steps in, one line after another, each time its slide arrives */
.slide-body > * { opacity: 0; transform: translateY(26px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.slide.is-on .slide-body > * { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.slide.is-on .slide-body > :nth-child(1) { transition-delay: 0.25s; }
.slide.is-on .slide-body > :nth-child(2) { transition-delay: 0.38s; }
.slide.is-on .slide-body > :nth-child(3) { transition-delay: 0.5s; }
.slide.is-on .slide-body > :nth-child(4) { transition-delay: 0.6s; }
.slide.is-on .slide-body > :nth-child(5) { transition-delay: 0.7s; }

/* THE RAIL: one tab per game, its bar filling for as long as it is shown */
.hero-rail {
	position: absolute; z-index: 5; left: 0; right: 0; bottom: 34px;
	display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 20px;
	width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
}
.rail-tab {
	display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 6px; align-items: baseline;
	padding: 14px 0 0; text-decoration: none; color: var(--dim); transition: color 0.3s;
}
.rail-tab:hover, .rail-tab.is-on { color: var(--ink); }
.rail-n { font: 500 11px/1 var(--mono); color: var(--dim); grid-row: span 2; }
.rail-tab.is-on .rail-n { color: var(--lime); }
.rail-name { font: 600 13px/1.1 var(--disp); letter-spacing: 0.04em; }
.rail-state { font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.rail-bar { grid-column: 1 / -1; order: -1; height: 2px; background: var(--hair-2); margin-bottom: 12px; overflow: hidden; }
.rail-bar i { display: block; height: 100%; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.rail-tab.is-on .rail-bar i { transform: scaleX(var(--p, 1)); }
.rail-tab.is-done .rail-bar i { transform: scaleX(1); background: var(--hair-3); }

.hero-scroll { position: absolute; z-index: 5; right: var(--gutter); bottom: 40px; width: 26px; height: 42px; border: 1.5px solid var(--hair-3); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--lime); border-radius: 2px; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- band */

.band-clip { position: relative; z-index: 2; overflow: hidden; margin: -44px 0 -30px; padding: 30px 0 60px; }
.band { overflow: hidden; background: var(--lime); color: var(--lime-ink); transform: rotate(-1.2deg) scale(1.03); padding: 14px 0; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.band-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 34s linear infinite; }
.band-track span { font: 600 clamp(14px, 1.4vw, 19px)/1 var(--disp); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.band-track b { font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */

.sec { position: relative; padding: clamp(96px, 13vw, 180px) 0; }
/* A section opens on a rail, not a headline: its number and name on the left,
   plain facts on the right, a hairline under both. */
.rail { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-bottom: 18px; margin-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--hair-2); }
.rail-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--dim); font-size: 11px; }
.rail-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; background: var(--hair-3); vertical-align: 1px; }
.rail-meta span:first-child::before { background: var(--lime); }
.sec-n { display: flex; align-items: center; gap: 12px; margin: 0; font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.sec-n i { display: block; width: 40px; height: 1px; background: currentColor; }

/* ---------------------------------------------------------------- games */

.game { --accent: var(--cyan); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.game + .game { margin-top: clamp(96px, 12vw, 170px); }
.game.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.game.flip .game-stage { order: 2; }
.game-pixi { --accent: var(--gold); }
.game-stage { position: relative; isolation: isolate; }
/* the game's own colour, as light spilling from behind its screen */
.game-stage::before { content: ""; position: absolute; z-index: -1; inset: -8% -6%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); filter: blur(30px); pointer-events: none; }

.frame { position: relative; overflow: hidden; background: var(--panel); aspect-ratio: 16 / 9; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--hair); }
.frame-main { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s, transform 1.2s var(--ease); }
.frame:hover .frame-main { transform: scale(1.03); }
.frame-main.is-out { opacity: 0; }
.frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(6, 7, 9, 0.75), transparent 34%); }
.frame-corner { position: absolute; z-index: 2; width: 26px; height: 26px; border: 2px solid var(--accent); pointer-events: none; }
.frame-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.frame-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.frame-cap { position: absolute; z-index: 2; left: 22px; bottom: 20px; color: var(--ink); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.thumb { position: relative; padding: 0; border: 0; background: var(--panel); cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; opacity: 0.5; transition: opacity 0.3s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 0.3s; }
.thumb:hover { opacity: 0.85; }
.thumb.is-on { opacity: 1; }
.thumb.is-on::after { box-shadow: inset 0 0 0 2px var(--accent); }

.game-n { color: var(--accent); margin-bottom: 22px; }
.game-logo { width: min(300px, 70%); height: auto; margin-bottom: 18px; }
.game-logo.pixel { width: min(380px, 92%); }
.game-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { padding: 7px 11px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-2); }
.chip-live { color: #031316; background: var(--cyan); box-shadow: none; }
.chip-dev { color: #1a1200; background: var(--gold); box-shadow: none; }
.game-lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink); margin-bottom: 30px; }
.points { display: grid; gap: 0; margin-bottom: 34px; border-top: 1px solid var(--hair); }
.points li { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.points b { font: 600 14px/1.5 var(--disp); letter-spacing: -0.01em; color: var(--accent); }
.game-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.game-note { color: var(--dim); font-size: 11px; }

/* ---------------------------------------------------------------- trailer */

.trailer { position: relative; }
.trailer-card { position: relative; display: block; height: min(86vh, 56.25vw); min-height: 420px; overflow: hidden; text-decoration: none; color: var(--ink); isolation: isolate; }
.trailer-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.trailer-card:hover > img { transform: scale(1.01); }
.trailer-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 7, 9, 0.95) 0%, rgba(6, 7, 9, 0.2) 50%, rgba(6, 7, 9, 0.6) 100%), linear-gradient(180deg, var(--void), transparent 12%); }
.trailer-body { position: absolute; left: 0; right: 0; bottom: clamp(36px, 6vw, 80px); margin: 0 auto; display: grid; gap: 16px; }
.trailer-title { font: 700 clamp(34px, 5.6vw, 88px)/0.95 var(--disp); letter-spacing: -0.02em; }
.trailer-title small { display: block; margin-top: 14px; font: 500 clamp(16px, 1.4vw, 20px)/1.3 var(--body); letter-spacing: 0; color: var(--text); }
.trailer-meta { color: var(--text); }
.trailer-play {
	position: absolute; left: 50%; top: 45%; width: clamp(84px, 9vw, 128px); aspect-ratio: 1; margin-left: calc(clamp(84px, 9vw, 128px) / -2);
	display: grid; place-items: center; transform: translateY(-50%); border-radius: 50%;
	background: rgba(6, 7, 9, 0.35); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1.5px rgba(244, 244, 238, 0.6);
	transition: transform 0.5s var(--ease), background 0.4s, box-shadow 0.4s;
}
.trailer-play::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair-2); animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.trailer-play svg { width: 34%; fill: var(--ink); margin-left: 6%; transition: fill 0.3s; }
.trailer-card:hover .trailer-play { transform: translateY(-50%) scale(1.08); background: var(--cyan); box-shadow: 0 0 80px rgba(89, 242, 255, 0.5); }
.trailer-card:hover .trailer-play svg { fill: #031316; }

/* ---------------------------------------------------------------- company */

.company { background: radial-gradient(70% 60% at 90% 10%, rgba(200, 255, 61, 0.05), transparent 60%); }
.company-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.statement { font: 600 clamp(28px, 3.3vw, 52px)/1.12 var(--disp); letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.company-side { display: grid; gap: 30px; padding-top: 10px; font-size: 17px; }
.facts { display: grid; border-top: 1px solid var(--hair-2); }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.facts dt { color: var(--dim); font-size: 10.5px; }
.facts dd { font: 600 14px/1.25 var(--disp); color: var(--ink); text-align: right; }
.facts a { color: var(--lime); text-decoration: none; }

/* ---------------------------------------------------------------- submit */

.submit { background: linear-gradient(180deg, transparent, var(--deep) 30%); border-top: 1px solid var(--hair); }
.submit-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.submit-intro { position: sticky; top: calc(var(--top-h) + 40px); }
.submit-intro .sec-n { margin-bottom: 24px; }
.submit-intro h2 { font-size: clamp(40px, 5vw, 76px); margin-bottom: 28px; }
.submit-lede { font-size: 19px; color: var(--ink); margin-bottom: 34px; max-width: 460px; }
.steps { display: grid; gap: 0; border-top: 1px solid var(--hair); margin-bottom: 26px; max-width: 480px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.steps b { font: 500 12px/1.6 var(--mono); color: var(--lime); }
.submit-small { color: var(--dim); font-size: 14px; }
.submit-small i { font-style: normal; color: var(--text); }

.form {
	position: relative; display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 48px);
	background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 0 0 1px var(--hair), 0 50px 120px rgba(0, 0, 0, 0.5);
	clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.form::before { content: ""; position: absolute; top: 0; right: 0; width: 40px; height: 40px; background: linear-gradient(225deg, var(--lime) 50%, transparent 50%); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span, .field legend > span, .field legend { font: 500 11px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); padding: 0; }
.field i { font-style: normal; color: var(--lime); }
.field small { text-transform: none; letter-spacing: 0; font: 400 12px var(--body); color: var(--dim); margin-left: 6px; }
.field b { font-weight: 500; }
input, select, textarea {
	width: 100%; padding: 14px 15px; border: 0; border-radius: 0; outline: 0;
	font: 400 16px/1.4 var(--body); color: var(--ink);
	background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--hair-2);
	transition: box-shadow 0.2s, background 0.2s;
}
textarea { resize: vertical; min-height: 52px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--panel); }
input:hover, select:hover, textarea:hover { box-shadow: inset 0 0 0 1px var(--hair-3); }
input:focus, select:focus, textarea:focus { box-shadow: inset 0 0 0 1px var(--lime), 0 0 0 3px rgba(200, 255, 61, 0.15); background: rgba(0, 0, 0, 0.5); }
.field.is-bad input, .field.is-bad textarea { box-shadow: inset 0 0 0 1px var(--red); }
::placeholder { color: #50555f; }

.kind { display: flex; gap: 0; box-shadow: inset 0 0 0 1px var(--hair-2); width: max-content; max-width: 100%; }
.kind label, .plats label { position: relative; cursor: pointer; }
.kind input, .plats input, .consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind span { display: block; padding: 12px 18px; font: 600 11px/1 var(--disp); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); transition: background 0.2s, color 0.2s; }
.kind input:checked + span { background: var(--lime); color: var(--lime-ink); }
.kind input:focus-visible + span, .plats input:focus-visible + span, .consent input:focus-visible + span::before { outline: 2px solid var(--lime); outline-offset: 2px; }
.plats { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.plats legend { margin-bottom: 8px; width: 100%; float: left; }
.plats label span { display: block; padding: 13px 14px; font: 500 12px/1 var(--mono); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-2); transition: all 0.2s; }
.plats input:checked + span { color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); background: rgba(200, 255, 61, 0.08); }
.form.is-other .only-game { display: none; }
.when-other { display: none; }
.form.is-other .when-game { display: none; }
.form.is-other .when-other { display: inline; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: block; cursor: pointer; font-size: 14px; color: var(--text); }
.consent span { position: relative; display: block; padding-left: 32px; }
.consent span::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; box-shadow: inset 0 0 0 1px var(--hair-3); }
.consent input:checked + span::before { background: var(--lime); box-shadow: none; }
.consent input:checked + span::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid var(--lime-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent.is-bad span::before { box-shadow: inset 0 0 0 1px var(--red); }
.consent a { color: var(--ink); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.form-foot .btn { min-width: 160px; }
.form-foot .btn[disabled] { opacity: 0.6; pointer-events: none; }
.form-status { font-size: 14px; color: var(--text); min-height: 1.4em; flex: 1 1 200px; }
.form-status.ok { color: var(--lime); }
.form-status.bad { color: var(--red); }
.form.is-sent > :not(.form-done) { display: none; }
.form-done { display: grid; gap: 14px; padding: 30px 0; }
.form-done h3 { font-size: clamp(28px, 3vw, 44px); }
.form-done p { font-size: 17px; }

/* ---------------------------------------------------------------- footer */

.foot { position: relative; padding: clamp(72px, 9vw, 120px) 0 30px; border-top: 1px solid var(--hair); overflow: hidden; background: linear-gradient(180deg, var(--deep), var(--void)); }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand { display: grid; gap: 18px; justify-items: start; align-content: start; }
.foot-brand img { width: 220px; height: auto; }
.foot-brand p { color: var(--dim); font-size: 15px; }
.foot-col { display: grid; gap: 12px; align-content: start; }
.foot-col .mono { color: var(--dim); font-size: 11px; margin-bottom: 6px; }
.foot-col a { text-decoration: none; color: var(--text); font-size: 15px; transition: color 0.2s; }
.foot-col a:hover { color: var(--lime); }
/* the sign-off: the lime wordmark across the whole width */
.foot-paint { margin: clamp(56px, 8vw, 110px) 0 clamp(24px, 3vw, 40px); }
.foot-paint img { width: 100%; height: auto; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 24px; border-top: 1px solid var(--hair); color: var(--dim); }
.foot-bottom a { text-decoration: none; }
.foot-bottom a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- player */

.player { width: min(1280px, 94vw); max-width: none; max-height: 92vh; padding: 0; border: 0; background: #000; overflow: visible; box-shadow: 0 0 0 1px var(--hair-2), 0 40px 160px rgba(0, 0, 0, 0.9); }
.player::backdrop { background: rgba(3, 4, 6, 0.88); backdrop-filter: blur(10px); }
.player video { width: 100%; max-height: 92vh; aspect-ratio: 16 / 9; background: #000; }
.player.is-tall { width: auto; }
.player.is-tall video { width: auto; height: 88vh; aspect-ratio: 9 / 16; }
.player-close { position: absolute; top: -52px; right: -4px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.player-close i { position: absolute; left: 10px; right: 10px; top: 21px; height: 2px; background: var(--ink); transform: rotate(45deg); }
.player-close i + i { transform: rotate(-45deg); }
.player[open] { animation: pop 0.45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }

/* ---------------------------------------------------------------- reveal
   Only once main.js has said it is running (html.js), so nothing is ever
   hidden from a page without scripts. */

.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .game-stage.reveal .frame { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-io) 0.1s; }
.js .game.flip .game-stage.reveal .frame { clip-path: inset(0 0 0 100%); }
.js .game-stage.reveal.is-in .frame, .js .game.flip .game-stage.reveal.is-in .frame { clip-path: inset(0 0 0 0); }
/* the footer's wordmark is sprayed on: a soft-edged mask sweeps left to right,
   the way a can moves along a wall */
.js .foot-paint.reveal { transform: none; opacity: 1; }
.js .foot-paint.reveal img {
	-webkit-mask-image: linear-gradient(90deg, #000 40%, rgba(0, 0, 0, 0.4) 47%, transparent 55%); mask-image: linear-gradient(90deg, #000 40%, rgba(0, 0, 0, 0.4) 47%, transparent 55%);
	-webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0;
	transition: -webkit-mask-position 2.2s var(--ease-io) 0.2s, mask-position 2.2s var(--ease-io) 0.2s;
}
.js .foot-paint.reveal.is-in img { -webkit-mask-position: 0 0; mask-position: 0 0; }

/* ---------------------------------------------------------------- page (privacy, 404) */

.page { padding: calc(var(--top-h) + clamp(60px, 9vw, 120px)) 0 clamp(80px, 10vw, 140px); }
.page h1 { font-size: clamp(44px, 7vw, 100px); margin: 24px 0 40px; }
.prose { max-width: 720px; display: grid; gap: 18px; }
.prose h2 { font-size: 20px; margin-top: 20px; }
.prose a { color: var(--lime); }
.prose ul { list-style: square; padding-left: 20px; display: grid; gap: 6px; }
.lost { min-height: 100svh; display: grid; place-content: center; text-align: center; gap: 22px; padding: var(--gutter); }
.lost h1 { font-size: clamp(36px, 5vw, 64px); }
.lost-mark { justify-self: center; width: min(640px, 86vw); margin-bottom: 30px; }
.lost-mark img { width: 100%; height: auto; }
.lost .btn { justify-self: center; }
.lost .sec-n { justify-content: center; }

/* ---------------------------------------------------------------- narrow */

@media (max-width: 1080px) {
	.nav, .top-cta { display: none; }
	.menu { display: block; position: relative; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
	.menu i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s; }
	.menu i:first-child { top: 17px; }
	.menu i + i { top: 25px; }
	.top.is-open .menu i:first-child { top: 21px; transform: rotate(45deg); }
	.top.is-open .menu i + i { top: 21px; transform: rotate(-45deg); }
	.top.is-open { background: var(--void); }
	.top.is-open .nav {
		display: flex; flex-direction: column; position: fixed; inset: var(--top-h) 0 auto; height: calc(100svh - var(--top-h));
		padding: 30px var(--gutter); gap: 0; background: var(--void); margin: 0;
	}
	.top.is-open .nav a { padding: 22px 0; font: 600 26px/1 var(--disp); letter-spacing: -0.02em; border-bottom: 1px solid var(--hair); }
	.top.is-open .nav a::after { display: none; }

	.game, .game.flip { grid-template-columns: minmax(0, 1fr); }
	.game.flip .game-stage { order: 0; }
	.company-grid, .submit-grid { grid-template-columns: minmax(0, 1fr); }
	.foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.foot-brand { grid-column: 1 / -1; }
	.submit-intro { position: static; }
	.brand img { width: 170px; }
}

@media (max-width: 720px) {
	:root { --top-h: 64px; }
	body { font-size: 16px; }
	.hero { min-height: 600px; }
	.slide-body { bottom: 150px; }
	.slide-media::after {
		background: linear-gradient(0deg, var(--void) 0%, rgba(6, 7, 9, 0.85) 38%, rgba(6, 7, 9, 0.2) 70%), linear-gradient(180deg, rgba(6, 7, 9, 0.7) 0%, rgba(6, 7, 9, 0) 20%);
	}
	.slide-pixi .slide-media::after { background: linear-gradient(0deg, var(--void) 0%, rgba(10, 6, 20, 0.85) 42%, rgba(10, 6, 20, 0.1) 75%); }
	.pixi-machine { width: 52vw; right: -6vw; bottom: auto; top: 12%; }
	.slide-lede { font-size: 15px; margin-bottom: 22px; }
	.kicker { margin-bottom: 16px; font-size: 10.5px; }
	.slide-logo { margin-bottom: 16px; }
	.slide-logo img { width: min(300px, 72vw); }
	.hero-rail { grid-template-columns: 1fr 1fr; gap: 14px; bottom: 22px; }
	.rail-name { font-size: 11px; }
	.rail-state { display: none; }
	.hero-scroll { display: none; }
	.btn { padding: 16px 20px; }

	.submit-intro h2 { font-size: min(10.4vw, 52px); }
	.rail-meta { display: none; }
	.statement { font-size: 26px; }
	.brand img { width: 150px; }
	.brand { margin-top: 18px; }
	.foot-cols { grid-template-columns: 1fr 1fr; }
	.kind { width: 100%; }
	.kind label { flex: 1; text-align: center; }
	.kind span { padding: 12px 8px; }
	.sec-side { padding: 0; }
	.points li { grid-template-columns: 1fr; gap: 4px; }
	.thumbs { gap: 6px; }
	.frame-corner { width: 18px; height: 18px; }
	.row { grid-template-columns: 1fr; }
	.trailer-card { height: 70svh; }
	.foot-bottom { justify-content: flex-start; gap: 14px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
	.js .reveal, .js .game-stage.reveal .frame { opacity: 1; transform: none; clip-path: none; }
	.js .foot-paint.reveal img { -webkit-mask-image: none; mask-image: none; }
}
