/* Fonts are served from our own webspace, not from Google, so no visitor data goes to Google. */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/manrope-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: "Manrope";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/manrope-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: "Unbounded";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("assets/fonts/unbounded-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: "Unbounded";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("assets/fonts/unbounded-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;
}

/* Performance rule for this site: it must stay smooth without graphics acceleration.
   No filter: blur, no backdrop-filter, no endless animations except the ticker and the thin slide timer. */

:root {
	--bg: #050507;
	--surface: #0e0e13;
	--surface-2: #17171f;
	--line: rgba(255, 255, 255, .1);
	--text: #f4f4f8;
	--muted: #9d9dad;
	--accent: #7c5cff;
	--accent-2: #3ec5ff;

	--display: "Unbounded", "Arial Black", sans-serif;
	--body: "Manrope", system-ui, sans-serif;
	--gutter: clamp(1.1rem, 5vw, 5rem);
	--section: clamp(4.5rem, 10vw, 8.5rem);
	--ease: cubic-bezier(.2, .8, .2, 1);
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, dl, dd, ol, ul, fieldset { margin: 0; padding: 0; }

a { color: inherit; }

button, input, select, textarea { font: inherit; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
	position: absolute;
	left: var(--gutter);
	top: -4rem;
	z-index: 30;
	padding: .6rem 1rem;
	background: #fff;
	color: #000;
	font-weight: 700;
	border-radius: 8px;
}
.skip:focus { top: .75rem; }

h2 {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(1.7rem, 4.4vw, 3.4rem);
	line-height: 1.1;
	letter-spacing: -.03em;
}
.lead { color: var(--muted); font-size: clamp(1.1rem, 1.9vw, 1.4rem); font-weight: 500; max-width: 40ch; }

/* ---------- buttons ---------- */

.button {
	position: relative;
	display: inline-block;
	padding: .95rem 1.7rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font: 700 1.02rem/1.2 var(--body);
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
/* a light sweeps across the button when it is hovered */
.button::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(124, 92, 255, .45) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform .6s var(--ease);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(124, 92, 255, .4); }
.button:hover::after { transform: translateX(120%); }
.button:active { transform: scale(.97); }

.button-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.button-ghost:hover { border-color: #fff; box-shadow: none; }

.button-small { padding: .6rem 1.1rem; font-size: .92rem; white-space: nowrap; }

/* ---------- nav ---------- */

.nav {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: clamp(.75rem, 2vw, 2rem);
	padding: .75rem var(--gutter);
	background: var(--bg);
	border-bottom: 1px solid transparent;
	transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }

.brand {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	margin-right: auto;
	font-family: var(--display);
	font-weight: 700;
	font-size: .95rem;
	letter-spacing: -.02em;
	text-decoration: none;
	white-space: nowrap;
}
.brand-mark {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.3rem;
	height: 2.3rem;
	border-radius: 9px;
	background: var(--accent);
	font-size: .8rem;
	transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }

.menu-toggle {
	padding: .55rem 1rem;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-weight: 700;
	font-size: .92rem;
	cursor: pointer;
}

.nav-links {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: none;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.1rem;
	padding: 1.25rem var(--gutter) 1.5rem;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}
.nav.open .nav-links { display: flex; animation: fade-up .3s var(--ease) both; }

.nav-links a:not(.button) { position: relative; white-space: nowrap; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:not(.button)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -.35rem;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ease);
}
.nav-links a:not(.button):hover,
.nav-links a[aria-current] { color: #fff; }
.nav-links a:not(.button):hover::after,
.nav-links a[aria-current]::after { transform: scaleX(1); }

@media (min-width: 1080px) {
	.menu-toggle { display: none; }
	.nav-links { position: static; display: flex; flex-direction: row; align-items: center; gap: 1.75rem; padding: 0; border: 0; background: none; }
}
@media (max-width: 420px) { .brand-name { font-size: .8rem; } }

/* ---------- shared entrances ---------- */

@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line span { display: inline-block; }
.js .line span { animation: rise 1s var(--ease) both; }
.js .line:nth-child(2) span { animation-delay: .1s; }
.js .line:nth-child(3) span { animation-delay: .2s; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- home: stage ---------- */

.stage {
	position: relative;
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
	overflow: hidden;
}

/* the featured game's picture, large and dim, behind everything; it changes with the slide */
.stage-bg { position: absolute; inset: 0; pointer-events: none; }
.stage-bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.stage-bg img.on { opacity: .22; }
.stage-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, var(--bg) 0%, rgba(5, 5, 7, .55) 45%, rgba(5, 5, 7, .2) 100%),
		linear-gradient(180deg, rgba(5, 5, 7, .2) 0%, rgba(5, 5, 7, 0) 40%, var(--bg) 100%);
}

.stage-copy { position: relative; z-index: 1; }
.stage h1 {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(2.7rem, 13vw, 5rem);
	line-height: 1;
	letter-spacing: -.045em;
}
.js .stage .line:nth-child(3) span {
	background: linear-gradient(100deg, #fff 10%, #b9a8ff 55%, var(--accent-2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.stage .lead { margin-top: 1.5rem; color: #c3c3d0; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }
.js .stage .lead { animation: fade-up .8s var(--ease) .45s both; }
.js .stage .actions { animation: fade-up .8s var(--ease) .6s both; }

/* the "screen": one game at a time, picked by the tabs below it */
.screen { position: relative; z-index: 1; min-width: 0; }
.js .screen { animation: fade-up 1s var(--ease) .35s both; }

.screen-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .18);
	background: var(--surface);
	box-shadow: 0 24px 50px rgba(0, 0, 0, .6);
}
.screen-frame a { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.screen-frame a.on { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.screen-frame img { width: 100%; height: 100%; object-fit: cover; }

.screen-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .8rem; }
.screen-tab {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 0 .7rem;
	padding: .6rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(14, 14, 19, .92);
	color: var(--muted);
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	transition: border-color .25s, color .25s, transform .25s var(--ease);
}
.screen-tab:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .35); }
.screen-tab.on { border-color: var(--accent); color: #fff; }
.screen-tab img { grid-row: span 2; width: 2.6rem; border-radius: 22%; }
.screen-name { align-self: end; font-weight: 700; font-size: .85rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-visits { align-self: start; font-size: .8rem; color: var(--muted); }
/* thin timer: fills while its game is shown, then the next game comes up */
.screen-tab i { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; }
.screen-tab.on.run i { animation: timer 6s linear forwards; }
.screen:hover .screen-tab i, .screen:focus-within .screen-tab i { animation-play-state: paused; }
@keyframes timer { to { transform: scaleX(1); } }

@media (max-width: 560px) {
	.screen-tab { grid-template-columns: 1fr; justify-items: center; padding: .5rem; }
	.screen-tab img { grid-row: auto; }
	.screen-name, .screen-visits { display: none; }
}

@media (min-width: 900px) {
	.stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: min(calc(100vh - 4rem), 52rem); }
	.stage h1 { font-size: clamp(3.4rem, 7vw, 7rem); }
}

/* ---------- home: numbers ---------- */

.numbers { padding: 0 var(--gutter); border-block: 1px solid var(--line); background: var(--surface); }
.numbers dl { display: grid; grid-template-columns: repeat(2, 1fr); }
.numbers div { display: flex; flex-direction: column; padding: clamp(1.25rem, 3vw, 2.25rem) 0; }
.numbers dd { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4.4vw, 3.2rem); line-height: 1.15; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.numbers dt { color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) {
	.numbers dl { grid-template-columns: repeat(4, 1fr); }
	.numbers div + div { padding-left: clamp(1rem, 3vw, 2.5rem); border-left: 1px solid var(--line); }
}

/* ---------- about ---------- */

.about { padding: var(--section) var(--gutter); }
.statement {
	max-width: 24em;
	font-family: var(--display);
	font-weight: 500;
	font-size: clamp(1.35rem, 3.6vw, 2.9rem);
	line-height: 1.3;
	letter-spacing: -.03em;
}
/* words light up as the paragraph scrolls through the screen */
.js .statement .w { color: rgba(255, 255, 255, .16); transition: color .35s; }
.js .statement .w.on { color: #fff; }

/* ---------- blocks ---------- */

.block { padding: var(--section) var(--gutter); border-top: 1px solid var(--line); }
.block-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.steps-title { margin-top: clamp(3.5rem, 8vw, 6rem); }

/* three ways we work: rows that open one at a time */
.ways { border-bottom: 1px solid var(--line); }
.way { border-top: 1px solid var(--line); }
.way h3 { font: inherit; }
.way button {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: .25rem 1.5rem;
	width: 100%;
	padding: clamp(1.1rem, 2.6vw, 2rem) 0;
	border: 0;
	background: none;
	color: inherit;
	text-align: left;
	cursor: pointer;
}
.way-word {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(2.2rem, 8vw, 6.5rem);
	line-height: 1;
	letter-spacing: -.045em;
	color: rgba(255, 255, 255, .28);
	transition: color .35s, transform .45s var(--ease);
}
.way-title { grid-column: 1; color: var(--muted); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.25rem); transition: color .35s; }
.way button:hover .way-word, .way.open .way-word { color: #fff; }
.way button:hover .way-word { transform: translateX(.6rem); }
.way.open .way-title { color: var(--accent-2); }

.way-plus { grid-column: 2; grid-row: 1 / span 2; position: relative; width: 2.6rem; height: 2.6rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; transition: transform .45s var(--ease), background-color .3s, border-color .3s; }
.way-plus::before, .way-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: 2px; margin: -1px 0 0 -.5rem; background: #fff; }
.way-plus::after { transform: rotate(90deg); }
.way.open .way-plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }

.way-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.way.open .way-body { grid-template-rows: 1fr; }
.way-body > div { overflow: hidden; }
.way-body p { max-width: 52ch; padding-bottom: clamp(1.25rem, 3vw, 2.25rem); font-size: 1.15rem; color: #d2d2dc; }

@media (min-width: 900px) {
	.way button { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; }
	.way-title { grid-column: 2; grid-row: 1; }
	.way-plus { grid-column: 3; grid-row: 1; }
	.way-body p { margin-left: calc((100% - 2.6rem - 3rem) * 1.1 / 2.1 + 1.5rem); }
}

/* steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.75rem; margin-top: clamp(1.75rem, 4vw, 3rem); }
.steps li { counter-increment: step; position: relative; display: grid; gap: .25rem; padding-top: 1.1rem; }
.steps li::before { content: "0" counter(step); font-family: var(--display); font-weight: 700; color: var(--accent); }
/* the line above each step draws itself when the step appears */
.steps li::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	transform-origin: left;
	transition: transform 1s var(--ease) .15s;
}
.js .steps li.reveal:not(.in)::after { transform: scaleX(0); }
.steps strong { font-size: 1.1rem; }
.steps span { color: var(--muted); }

/* cards (careers) */
.cards { display: grid; gap: 1rem; }
.card {
	--x: 50%;
	--y: 50%;
	position: relative;
	padding: clamp(1.4rem, 3vw, 2.2rem);
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
	overflow: hidden;
	transition: transform .35s var(--ease), border-color .35s, opacity .7s var(--ease);
}
/* a soft light follows the cursor inside the card */
.card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(22rem circle at var(--x) var(--y), rgba(124, 92, 255, .3), transparent 60%);
	opacity: 0;
	transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, .6); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card-word {
	display: block;
	margin-bottom: clamp(2rem, 6vw, 4.5rem);
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(2.2rem, 4.4vw, 3.6rem);
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--surface);
	-webkit-text-stroke: 3px rgba(255, 255, 255, .5);
	paint-order: stroke fill;
	transition: color .35s, -webkit-text-stroke-color .35s;
}
.card:hover .card-word { color: #fff; -webkit-text-stroke-color: #fff; }
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .4rem; }
.card p { color: var(--muted); }

@media (min-width: 900px) {
	.cards { grid-template-columns: repeat(3, 1fr); }
	.steps { grid-template-columns: repeat(4, 1fr); }
	.cards .card:nth-child(2), .steps li:nth-child(2) { transition-delay: .1s; }
	.cards .card:nth-child(3), .steps li:nth-child(3) { transition-delay: .2s; }
	.steps li:nth-child(4) { transition-delay: .3s; }
	.cards .card:hover { transition-delay: 0s; }
}

.note { max-width: 46rem; margin-top: clamp(2.5rem, 6vw, 4rem); padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.note h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.note p { margin: 1rem 0 1.5rem; color: var(--muted); }

.plain-steps { margin: 1.25rem 0; padding-left: 1.3rem; display: grid; gap: .5rem; }
.plain-steps li::marker { color: var(--accent); font-weight: 700; }

/* ---------- ticker ---------- */

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); }
.ticker-track { display: flex; align-items: center; gap: 2.5rem; width: max-content; padding: 1.1rem 0; animation: ticker 28s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 500; font-size: clamp(1rem, 2.2vw, 1.5rem); letter-spacing: -.02em; white-space: nowrap; }
.ticker b { width: .7rem; height: .7rem; border-radius: 2px; background: var(--accent); transform: rotate(45deg); flex: none; }
.ticker-track > :last-child { margin-right: 2.5rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- call to action ---------- */

.cta { display: grid; justify-items: center; gap: 1rem; padding: var(--section) var(--gutter); text-align: center; background: radial-gradient(50% 90% at 50% 100%, rgba(124, 92, 255, .22), transparent 70%); }
.cta .button { margin-top: .75rem; }

/* ---------- sub-page head ---------- */

.page-head {
	padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
	background: radial-gradient(60% 120% at 0% 0%, rgba(124, 92, 255, .26), transparent 70%);
}
.page-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 8vw, 5.5rem); line-height: 1.05; letter-spacing: -.045em; }
.page-head .lead { margin-top: 1.25rem; }
.js .page-head .lead { animation: fade-up .8s var(--ease) .3s both; }

/* ---------- pitch and forms ---------- */

.pitch { display: grid; gap: clamp(2rem, 5vw, 4rem); padding: var(--section) var(--gutter); border-top: 1px solid var(--line); }
.pitch-intro p { margin-top: 1.1rem; max-width: 38ch; color: var(--muted); font-size: 1.1rem; }
.pitch-alt a { color: #fff; font-weight: 700; text-underline-offset: .3em; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.form-frame { padding: 2px; border-radius: 22px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.mail-form { display: grid; gap: .5rem; padding: clamp(1.25rem, 4vw, 2.25rem); border-radius: 20px; background: var(--surface); }
.mail-form > label,
.mail-form legend { margin-top: .9rem; font-weight: 700; }
.mail-form > label:first-child { margin-top: 0; }
.optional { font-weight: 400; color: var(--muted); }

.mail-form input[type="url"],
.mail-form input[type="text"],
.mail-form textarea {
	width: 100%;
	padding: .85rem 1rem;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 12px;
	background: var(--bg);
	color: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.mail-form input:focus, .mail-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 92, 255, .25); }
.mail-form textarea { resize: vertical; }
.mail-form ::placeholder { color: #6c6c7c; }

.mail-form fieldset { border: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.mail-form legend { margin-bottom: .5rem; }

.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; padding: .55rem 1.05rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.choice:hover span { border-color: #fff; }
.choice input:checked + span { background: #fff; border-color: #fff; color: #000; }
.choice input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.field-error { font-weight: 700; color: #ff8a8a; }
.mail-form .button { justify-self: start; margin-top: 1.25rem; }
.form-status { min-height: 1.6em; color: var(--muted); }

@media (min-width: 900px) { .pitch { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ---------- game library (its own layout, like an app) ---------- */

.library-page .nav { border-bottom-color: var(--line); }

.library-bar {
	position: sticky;
	top: 3.85rem;
	z-index: 10;
	display: grid;
	gap: .9rem 1.5rem;
	align-items: center;
	padding: 1.1rem var(--gutter);
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}
.library-title h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.03em; line-height: 1.15; }
.library-title p { color: var(--muted); font-size: .92rem; }
.library-title span { color: #fff; font-weight: 700; }

.search { position: relative; display: block; }
.search svg { position: absolute; left: 1rem; top: 50%; width: 1.15rem; height: 1.15rem; margin-top: -.575rem; fill: var(--muted); pointer-events: none; }
.search input {
	width: 100%;
	padding: .8rem 1rem .8rem 2.8rem;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
	background: var(--bg);
	color: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 92, 255, .25); }
.search ::placeholder { color: #7a7a8a; }

.sort { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .92rem; white-space: nowrap; }
.sort select { padding: .7rem 1rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: var(--bg); color: #fff; cursor: pointer; }

.library-body { display: grid; gap: 1.5rem; padding: 1.5rem var(--gutter) var(--section); }

.filters { display: flex; flex-wrap: wrap; align-items: start; gap: 1.25rem 2rem; }
.filters fieldset { border: 0; display: grid; gap: .45rem; }
.filters legend { margin-bottom: .6rem; font-weight: 700; font-size: .85rem; color: var(--muted); }

.check { display: flex; align-items: center; gap: .65rem; cursor: pointer; }
.check input { appearance: none; flex: none; width: 1.25rem; height: 1.25rem; margin: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; background: var(--bg); cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input:checked { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.500l3.200 3.200L15 6.800' fill='none' stroke='%23fff' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.check span { transition: color .2s; color: #d2d2dc; }
.check:hover span { color: #fff; }
.check em { margin-left: auto; padding-left: 1rem; font-style: normal; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }

.lib-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.1rem; }

.lib-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
	overflow: hidden;
	transition: transform .35s var(--ease), border-color .35s;
}
.lib-card:hover { transform: translateY(-5px); border-color: rgba(124, 92, 255, .6); }
.lib-card[hidden] { display: none; }
.lib-card.pop { animation: fade-up .45s var(--ease) both; }

button.lib-open:not(.button) { display: block; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; }
.lib-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.lib-card:hover .lib-art { transform: scale(1.05); }

.lib-info { position: relative; display: grid; gap: .8rem; padding: 2.4rem 1.2rem 1.3rem; flex: 1; align-content: start; }
.lib-icon { position: absolute; left: 1.2rem; top: -2rem; width: 4rem; border-radius: 22%; border: 3px solid var(--surface); }
.lib-info h2 { font-family: var(--body); font-size: 1.2rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips span { padding: .15rem .7rem; border-radius: 999px; background: var(--surface-2); color: #c9c9d6; font-size: .82rem; }

.lib-stats { display: flex; gap: 2rem; }
.lib-stats div { display: flex; flex-direction: column; }
.lib-stats dd { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.lib-stats dt { color: var(--muted); font-size: .85rem; }
.lib-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .3rem; }

.lib-empty { display: grid; justify-items: center; gap: .75rem; padding: clamp(3rem, 8vw, 6rem) 1rem; border: 1px dashed rgba(255, 255, 255, .2); border-radius: 20px; text-align: center; }
.lib-empty[hidden] { display: none; }
.lib-empty h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
.lib-empty p { color: var(--muted); }

@media (min-width: 760px) {
	.library-bar { grid-template-columns: auto minmax(12rem, 1fr) auto; }
}
@media (min-width: 1000px) {
	.library-body { grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; }
	.filters { position: sticky; top: 10rem; flex-direction: column; flex-wrap: nowrap; gap: 1.75rem; }
	.filters fieldset { width: 100%; }
}

/* game details */
.sheet {
	width: min(64rem, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 22px;
	background: var(--surface);
	color: var(--text);
	overflow: auto;
}
.sheet::backdrop { background: rgba(0, 0, 0, .78); }
.sheet[open] { display: grid; animation: fade-up .35s var(--ease) both; }
.sheet-close { position: absolute; right: 1rem; top: 1rem; z-index: 2; padding: .5rem 1rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: var(--bg); color: #fff; font-weight: 700; cursor: pointer; }
.sheet-close:hover { border-color: #fff; }
.sheet-gallery { background: var(--bg); min-width: 0; }
#sheet-shot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sheet-thumbs { display: flex; gap: .5rem; padding: .7rem; overflow-x: auto; }
.sheet-thumbs:empty { display: none; }
.sheet-thumbs button { flex: none; width: 6.5rem; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; overflow: hidden; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.sheet-thumbs button:hover, .sheet-thumbs button[aria-pressed="true"] { opacity: 1; }
.sheet-thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.sheet-copy { display: grid; gap: 1rem; align-content: start; padding: clamp(1.25rem, 3vw, 2rem); }
.sheet-copy h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); padding-right: 5rem; }
.sheet-copy > p { color: #d2d2dc; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.5rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet-copy .button { justify-self: start; }
@media (min-width: 900px) { .sheet[open] { grid-template-columns: 1.35fr 1fr; } .sheet-copy h2 { padding-right: 4.5rem; } }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter); }
.footer-cols .brand { grid-column: 1 / -1; margin: 0; align-self: start; justify-self: start; }
.footer nav { display: grid; gap: .7rem; align-content: start; justify-items: start; }
.footer nav h2 { margin-bottom: .3rem; font-family: var(--body); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.footer nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer nav a:hover { color: #fff; }
.legal { padding: 1.25rem var(--gutter); border-top: 1px solid var(--line); color: #6f6f7e; font-size: .85rem; }

@media (min-width: 900px) {
	.footer-cols { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
	.footer-cols .brand { grid-column: auto; }
}

[hidden] { display: none !important; }

/* ---------- legal pages and form consent ---------- */

.prose { display: grid; gap: .9rem; max-width: 46rem; }
.prose h2 { margin-top: 1.5rem; font-family: var(--body); font-size: 1.3rem; letter-spacing: 0; }
.prose p { color: #d2d2dc; }
.prose a { color: #fff; text-underline-offset: .25em; text-decoration-color: var(--accent); }
.prose-date { margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.todo { padding: .1rem .4rem; border-radius: 6px; background: #ffd84d; color: #000; font-weight: 700; }

.agree { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.1rem; font-weight: 400; color: #d2d2dc; font-size: .95rem; cursor: pointer; }
.agree input { flex: none; width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--accent); }
.agree a { color: #fff; }

/* players online: a green dot in front of the number */
.lib-stats .live dd::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .45rem; border-radius: 50%; background: #3ddc84; vertical-align: .15em; }
.lib-stats { flex-wrap: wrap; gap: .75rem 1.75rem; }

/* ---------- page not found ---------- */

.lost { min-height: 70vh; align-content: center; }
.lost h1 { font-family: var(--display); font-weight: 700; font-size: clamp(5rem, 22vw, 14rem); line-height: 1; letter-spacing: -.05em; background: linear-gradient(100deg, #fff 10%, #b9a8ff 55%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost .actions { justify-content: center; }

/* a button inside a text page keeps its own colors (HBS Toolkit buy button) */
.prose a.button { color: #08080c; text-decoration: none; justify-self: start; }

/* Earlier work by our founder (games page): plain cards, not part of the library filters or HBS totals */
.earlier { margin-top: 2rem; }
.earlier .lead { max-width: 46rem; color: var(--muted); }
.earlier-grid { margin-top: 1.5rem; }
.earlier-grid h3 { font-size: 1.05rem; margin: .4rem 0 .2rem; }
.earlier-owner { color: var(--muted); font-size: .85rem; margin: 0; }
.earlier-role { font-size: .85rem; margin: .4rem 0 .6rem; color: #d2d2dc; }

/* ---------- /toolkit/: HBS Toolkit product page ---------- */
.tk-page { --tk-blue: #335fff; --tk-blue-2: #4c73ff; --tk-amber: #ffb02e; --tk-green: #3fd08a; }

.tk-hero {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(2rem, 5vw, 5rem);
	padding: clamp(6rem, 9vw, 7.5rem) var(--gutter) clamp(3.5rem, 7vw, 6rem);
	background: radial-gradient(60rem 30rem at 85% 40%, rgba(51, 95, 255, .16), transparent 70%);
}
.tk-app { display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1.1rem; }
.tk-app img { width: 40px; height: 40px; }
.tk-title { margin-top: 1.4rem; font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6.6vw, 5.6rem); line-height: 1.02; letter-spacing: -.045em; max-width: 11ch; }
.tk-hero .lead { margin-top: 1.4rem; max-width: 34ch; }

.tk-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2.2rem; }
.tk-page .tk-buy-btn { background: var(--tk-blue); border-color: var(--tk-blue); color: #fff; font-size: 1.15rem; padding: 1.05rem 2.1rem; }
.tk-page .tk-buy-btn:hover { background: var(--tk-blue-2); box-shadow: 0 10px 28px rgba(51, 95, 255, .45); }
.tk-price { display: flex; align-items: baseline; gap: .55rem; }
.tk-price b { font-family: var(--display); font-size: 2rem; letter-spacing: -.03em; }
.tk-price span { color: var(--muted); }
.tk-small { margin-top: 1rem; color: var(--muted); font-size: .95rem; max-width: 46ch; }
.tk-small a { color: #fff; }

.tk-tile { margin: 0; justify-self: center; width: min(100%, 26rem); }
.tk-tile-img { position: relative; aspect-ratio: 1; border-radius: 2.2rem; overflow: hidden; background: var(--surface-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); }
.tk-tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.tk-tile-img img[data-step="0"], .tk-tile-img img.on { opacity: 1; }
.js .tk-tile-img img[data-step="0"]:not(.on) { opacity: 0; }
.tk-tile figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1rem; }
.tk-tile-name { color: var(--muted); font-size: .95rem; }
.tk-clock { font-family: var(--display); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tk-clock.live { color: var(--tk-amber); }

.tk-film h2, .tk-features > h2, .tk-start h2, .tk-faq h2 { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.tk-film video { display: block; width: 100%; height: auto; max-width: 72rem; aspect-ratio: 16 / 9; border-radius: 1.2rem; background: #000; box-shadow: 0 0 0 1px var(--line); }

.tk-feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.tk-feature + .tk-feature { border-top: 1px solid var(--line); }
.tk-feature:nth-of-type(even) .tk-feature-text { order: 2; }
.tk-feature h3 { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.03em; }
.tk-feature p { margin-top: .8rem; color: #d2d2dc; max-width: 40ch; }
.tk-feature img { border-radius: 1rem; box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .45); }

.tk-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); counter-reset: tk; }
.tk-steps li { counter-increment: tk; background: var(--surface); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.2rem; }
.tk-steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .7rem; }
.tk-steps h3 { margin-top: 1.1rem; font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; }
.tk-steps h3::before { content: counter(tk); display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--tk-blue); font-size: .95rem; }
.tk-steps p { margin-top: .5rem; color: var(--muted); }

.tk-cloud { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1.5rem 4rem; align-items: end; }
.tk-cloud h2 { color: var(--tk-green); }
.tk-cloud .lead { margin-top: 1.2rem; max-width: 38ch; }
.tk-cloud-note { color: var(--muted); max-width: 40ch; }

.tk-faq details { border-top: 1px solid var(--line); max-width: 52rem; }
.tk-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.tk-faq summary { cursor: pointer; padding: 1.15rem 0; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.tk-faq summary::-webkit-details-marker { display: none; }
.tk-faq summary::after { content: "+"; color: var(--muted); font-size: 1.4rem; line-height: 1; }
.tk-faq details[open] summary::after { content: "−"; }
.tk-faq details p { padding-bottom: 1.2rem; color: #d2d2dc; max-width: 60ch; }

.tk-final { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.tk-final > img { width: clamp(8rem, 18vw, 14rem); border-radius: 1.8rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.tk-final .tk-buy { margin-top: 1.6rem; }

@media (max-width: 860px) {
	.tk-hero { grid-template-columns: 1fr; padding-top: 6.5rem; }
	.tk-tile { width: min(100%, 20rem); justify-self: start; }
	.tk-tile figcaption { flex-direction: column; gap: .2rem; }
	.tk-feature, .tk-cloud, .tk-final { grid-template-columns: 1fr; }
	.tk-feature:nth-of-type(even) .tk-feature-text { order: 0; }
	.tk-steps { grid-template-columns: 1fr; }
	.tk-final > img { width: 8rem; }
}
.tk-launch { margin-top: 1.6rem; display: inline-block; padding: .55rem 1rem; border-radius: .8rem; background: rgba(255, 176, 46, .12); border: 1px solid rgba(255, 176, 46, .45); color: #ffd28a; font-size: .98rem; }
.tk-launch b { color: #ffb02e; }
.tk-launch span { color: #d2d2dc; font-variant-numeric: tabular-nums; }
