/* Ibex Interactive — site styles */

:root {
	--ink: #1b1730;
	--ink-2: #2e2852;
	--ink-soft: #4a4560;
	--ink-faint: #8c87a0;
	--pink: #e72c6c;
	--pink-deep: #d11f5a;
	--yellow: #f5c800;
	--yellow-deep: #e1b105;
	--yellow-soft: #fff4c2;
	--blue: #00b1ff;
	--blue-deep: #0098e6;
	--sky: #76e1ff;
	--red: #ff4040;
	--purple: #8c1bff;
	--purple-deep: #7a10eb;
	--green: #52ce1d;
	--green-deep: #169e00;
	--cream: #fff9ec;
	--paper: #ffffff;
	--mist: #f4f0ff;

	--font-display: 'Rubik', 'Arial Black', 'Helvetica Neue', sans-serif;
	--font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--border: 3px solid var(--ink);
	--radius-lg: 32px;
	--radius: 24px;
	--radius-sm: 16px;
	--lift: 0 8px 0 var(--ink);
	--lift-sm: 0 5px 0 var(--ink);
	--container: 1200px;
	--gutter: clamp(18px, 5vw, 44px);
	--header-h: 78px;
}

/* ---------- Base ---------- */

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

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

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

h1,
h2,
h3,
p,
figure {
	margin: 0;
}

::selection {
	background: var(--yellow);
	color: var(--ink);
}

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

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--yellow);
	border: var(--border);
	border-radius: 999px;
	font-weight: 800;
}

.skip-link:focus {
	top: 12px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Sunburst backgrounds (the game's comic rays) ---------- */

.rays {
	background-color: var(--ray-a);
	background-image: repeating-conic-gradient(from 0deg at var(--ray-x, 50%) var(--ray-y, 50%), var(--ray-a) 0deg 7.5deg, var(--ray-b) 7.5deg 15deg);
}

.rays-pink {
	--ray-a: var(--pink);
	--ray-b: var(--pink-deep);
}

.rays-yellow {
	--ray-a: var(--yellow);
	--ray-b: var(--yellow-deep);
}

.rays-blue {
	--ray-a: #12b9ff;
	--ray-b: #00a3f2;
}

.rays-purple {
	--ray-a: #9a2dff;
	--ray-b: #8618f5;
}

.rays-green {
	--ray-a: #5ad426;
	--ray-b: #4abf18;
}

.rays-red {
	--ray-a: #ff4a4a;
	--ray-b: #f23535;
}

.rays-ink {
	--ray-a: #1b1730;
	--ray-b: #221d3d;
}

/* ---------- Type helpers ---------- */

.comic {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	word-spacing: 0.1em;
	line-height: 0.98;
	color: var(--paper);
	-webkit-text-stroke: 0.09em var(--ink);
	paint-order: stroke fill;
	text-shadow: 0 0.08em 0 var(--ink);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 6px 15px;
	background: var(--paper);
	border: var(--border);
	border-radius: 999px;
	box-shadow: 0 4px 0 var(--ink);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.eyebrow::before {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--pink);
	border: 2px solid var(--ink);
}

.section-title {
	margin: 20px 0 16px;
	font-family: var(--font-display);
	font-size: clamp(32px, 4.2vw, 56px);
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1.04;
}

.hl {
	padding: 0 0.14em;
	border-radius: 0.14em;
	background: var(--yellow);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.hl-pink {
	background: var(--pink);
	color: var(--paper);
}

.hl-sky {
	background: var(--sky);
}

.section-lead {
	max-width: 640px;
	color: var(--ink-soft);
	font-size: clamp(17px, 1.5vw, 19px);
	line-height: 1.65;
}

.section {
	position: relative;
	padding: clamp(72px, 10vw, 120px) 0;
}

.section-head {
	max-width: 760px;
	margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head.center {
	margin-inline: auto;
	text-align: center;
}

.section-head.center .section-lead {
	margin-inline: auto;
}

.on-dark {
	color: var(--paper);
}

.on-dark .section-lead {
	color: rgba(255, 255, 255, 0.84);
}

/* Letter tiles, like the game's answer slots. */
.tiles {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.14em;
}

.tile {
	display: grid;
	place-items: center;
	width: 1.18em;
	height: 1.3em;
	background: var(--paper);
	border: 3px solid var(--ink);
	border-radius: 0.24em;
	box-shadow: 0 0.12em 0 var(--ink);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.tile:nth-child(5n + 1) {
	background: var(--yellow);
}

.tile:nth-child(5n + 2) {
	background: var(--sky);
}

.tile:nth-child(5n + 3) {
	background: #ff8fb4;
}

.tile:nth-child(5n + 4) {
	background: #9be86f;
}

.tile:nth-child(5n) {
	background: #c79bff;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 12px 26px;
	background: var(--paper);
	border: var(--border);
	border-radius: 999px;
	box-shadow: var(--lift-sm);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.15;
	text-align: center;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		background-color 0.15s ease;
}

.btn svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 7px 0 var(--ink);
}

.btn:active {
	transform: translateY(4px);
	box-shadow: 0 1px 0 var(--ink);
}

.btn-yellow {
	background: var(--yellow);
}

.btn-pink {
	background: var(--pink);
	color: var(--paper);
}

.btn-blue {
	background: var(--blue);
}

.btn-green {
	background: var(--green);
}

.btn-ink {
	background: var(--ink);
	color: var(--paper);
	box-shadow: 0 5px 0 #000;
}

.btn-sm {
	min-height: 46px;
	padding: 8px 18px;
	font-size: 15px;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--cream);
	border-bottom: 3px solid var(--ink);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

.brand img {
	width: 50px;
	height: 50px;
	transition: transform 0.3s ease;
}

.brand:hover img {
	transform: rotate(-8deg) scale(1.05);
}

.brand-name {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.brand-name strong {
	font-family: var(--font-display);
	font-size: 27px;
	font-style: italic;
	font-weight: 900;
	letter-spacing: -0.02em;
}

.brand-name small {
	margin-top: 3px;
	font-family: var(--font-display);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.26em;
	color: var(--pink);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 2px;
}

.site-nav > a:not(.btn) {
	padding: 10px 13px;
	border-radius: 999px;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	transition: background-color 0.15s ease;
}

.site-nav > a:not(.btn):hover {
	background: var(--yellow-soft);
}

.site-nav .btn {
	margin-left: 10px;
}

.menu-toggle {
	display: none;
	width: 48px;
	height: 48px;
	place-items: center;
	padding: 0;
	background: var(--yellow);
	border: var(--border);
	border-radius: 14px;
	box-shadow: 0 4px 0 var(--ink);
}

.menu-toggle svg {
	width: 24px;
	height: 24px;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(36px, 5vw, 64px) 0 clamp(140px, 13vw, 190px);
	background:
		repeating-conic-gradient(from 0deg at 100% 52%, var(--pink) 0deg 7.5deg, var(--pink-deep) 7.5deg 15deg) left / 50% 100% no-repeat,
		repeating-conic-gradient(from 0deg at 0% 52%, var(--yellow) 0deg 7.5deg, var(--yellow-deep) 7.5deg 15deg) right / 50% 100% no-repeat;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 8px;
	margin-left: -4px;
	background: var(--ink);
}

.hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(40px, 6vw, 96px);
}

.hero-copy {
	position: relative;
	z-index: 1;
}

.hero-studio {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px 7px 8px;
	background: var(--paper);
	border: var(--border);
	border-radius: 999px;
	box-shadow: 0 4px 0 var(--ink);
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hero-studio img {
	width: 30px;
	height: 30px;
}

.hero h1 {
	margin: 26px 0 0;
	font-size: clamp(46px, 6.4vw, 92px);
}

.hero h1 span {
	display: block;
}

.game-tag {
	display: inline-block;
	margin-top: 18px;
	padding: 0.2em 0.55em 0.24em;
	background: var(--ink);
	border-radius: 14px;
	box-shadow: 0 6px 0 rgba(27, 23, 48, 0.35);
	color: var(--paper);
	font-family: var(--font-display);
	font-size: clamp(22px, 2.6vw, 34px);
	font-style: italic;
	font-weight: 900;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	transform: rotate(-2deg);
}

.hero-bubble {
	position: relative;
	max-width: 500px;
	margin-top: 30px;
	padding: 20px 24px;
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius);
	box-shadow: var(--lift-sm);
	font-size: clamp(16px, 1.4vw, 18px);
	font-weight: 600;
	line-height: 1.6;
}

.hero-bubble::before {
	content: '';
	position: absolute;
	top: -15px;
	left: 38px;
	width: 26px;
	height: 26px;
	background: var(--paper);
	border-left: var(--border);
	border-top: var(--border);
	transform: rotate(45deg);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 30px;
}

.hero-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.hero-proof li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	background: rgba(27, 23, 48, 0.82);
	border-radius: 999px;
	color: var(--paper);
	font-size: 14px;
	font-weight: 800;
}

.hero-proof svg {
	width: 17px;
	height: 17px;
	color: var(--yellow);
	fill: var(--yellow);
}

.hero-mountains {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	width: 100%;
	height: auto;
	min-width: 900px;
	pointer-events: none;
}

/* ---------- Playable demo ---------- */

.demo {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 540px;
	margin-left: auto;
	padding: clamp(16px, 2.2vw, 24px);
	background: var(--paper);
	border: 4px solid var(--ink);
	border-radius: var(--radius-lg);
	box-shadow: 0 12px 0 var(--ink);
}

.demo-badge {
	position: absolute;
	top: -22px;
	left: 50%;
	padding: 8px 18px;
	background: var(--pink);
	border: var(--border);
	border-radius: 999px;
	box-shadow: 0 4px 0 var(--ink);
	color: var(--paper);
	font-family: var(--font-display);
	font-size: 15px;
	font-style: italic;
	font-weight: 900;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	transform: translateX(-50%) rotate(-3deg);
	white-space: nowrap;
}

.demo-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
}

.demo-pack {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	background: var(--sky);
	border-radius: 8px;
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.demo-pack svg {
	width: 15px;
	height: 15px;
}

.demo-level {
	display: grid;
	overflow: hidden;
	border: var(--border);
	border-radius: 10px;
	text-align: center;
	font-family: var(--font-display);
	line-height: 1;
}

.demo-level span {
	padding: 3px 10px;
	background: var(--yellow-soft);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.demo-level strong {
	padding: 3px 10px 4px;
	background: var(--blue);
	color: var(--paper);
	font-size: 19px;
	font-style: italic;
	font-weight: 900;
}

.demo-clue {
	margin: 14px 0 16px;
	font-family: var(--font-display);
	font-size: clamp(18px, 1.9vw, 22px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	text-align: center;
}

.demo-clue small {
	display: block;
	margin-bottom: 4px;
	color: var(--pink);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.demo-equation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(8px, 1.4vw, 14px);
}

.demo-slot {
	display: grid;
	place-items: center;
	width: clamp(74px, 9vw, 104px);
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--mist);
	border: 3px dashed #c9c1e3;
	border-radius: 18px;
	color: #c9c1e3;
	font-family: var(--font-display);
	font-size: 34px;
	font-weight: 900;
}

.demo-slot.is-filled {
	border: var(--border);
	animation: pop 0.35s ease;
}

.demo-slot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.demo-op {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	background: var(--green-deep);
	border: var(--border);
	border-radius: 50%;
	color: var(--paper);
}

.demo-op svg {
	width: 20px;
	height: 20px;
	stroke-width: 3.5;
}

.demo-answer {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: clamp(3px, 0.6vw, 6px);
	margin: 18px 0;
	font-size: clamp(17px, 2.2vw, 24px);
}

.demo-answer .tile {
	width: 1.45em;
	height: 1.6em;
	background: var(--mist);
	box-shadow: 0 3px 0 var(--ink);
	color: transparent;
	border-width: 2.5px;
}

.demo-answer .tile.is-filled {
	background: var(--yellow);
	color: var(--ink);
	animation: flip 0.45s ease both;
}

.demo-answer.is-solved .tile {
	background: var(--green);
}

.demo-options {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(8px, 1.2vw, 12px);
}

.demo-option {
	position: relative;
	aspect-ratio: 1;
	padding: 0;
	overflow: hidden;
	background: var(--paper);
	border: var(--border);
	border-radius: 18px;
	box-shadow: 0 5px 0 var(--ink);
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		opacity 0.25s ease,
		outline-color 0.15s ease;
	outline: 4px solid transparent;
	outline-offset: 3px;
}

.demo-option img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.demo-option:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 0 var(--ink);
}

.demo-option[aria-pressed='true'] {
	outline-color: var(--blue);
	transform: translateY(3px);
	box-shadow: 0 2px 0 var(--ink);
}

.demo-option[aria-pressed='true']::after {
	content: attr(data-order);
	position: absolute;
	top: 6px;
	left: 6px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	background: var(--blue);
	border: 2px solid var(--ink);
	border-radius: 50%;
	color: var(--paper);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 900;
}

.demo-option.is-hidden {
	opacity: 0.2;
	filter: grayscale(1);
	pointer-events: none;
}

.demo-option.is-wrong {
	animation: shake 0.4s ease;
	outline-color: var(--red);
}

.demo-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 50px;
	margin-top: 18px;
}

.demo-status {
	font-weight: 800;
	font-size: 15px;
	line-height: 1.35;
}

.demo-status.is-good {
	color: var(--green-deep);
}

.demo-status.is-bad {
	color: var(--pink-deep);
}

.demo-actions {
	display: flex;
	flex: none;
	gap: 8px;
}

.demo-actions .btn {
	min-height: 44px;
	padding: 6px 16px;
	font-size: 14px;
	box-shadow: 0 4px 0 var(--ink);
}

.demo-actions .btn[hidden] {
	display: none;
}

.confetti {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	border-radius: inherit;
}

.confetti i {
	position: absolute;
	top: -12px;
	width: 10px;
	height: 14px;
	border-radius: 2px;
	animation: fall 1.4s ease-in forwards;
}

/* ---------- Ticker ---------- */

.ticker {
	overflow: hidden;
	background: var(--ink);
	color: var(--paper);
}

.ticker-track {
	display: flex;
	width: max-content;
	animation: marquee 34s linear infinite;
}

.ticker-group {
	display: flex;
	flex: none;
	align-items: center;
}

.ticker-group span {
	display: inline-flex;
	align-items: center;
	gap: 24px;
	padding: 18px 12px;
	font-family: var(--font-display);
	font-size: clamp(18px, 2.2vw, 26px);
	font-style: italic;
	font-weight: 900;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ticker-group svg {
	width: 22px;
	height: 22px;
	color: var(--yellow);
	fill: var(--yellow);
}

/* ---------- Meet the game ---------- */

.game-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(40px, 6vw, 80px);
}

.game-art {
	position: relative;
	padding: 0 10px 10px 0;
}

.game-art-frame {
	overflow: hidden;
	border: 4px solid var(--ink);
	border-radius: var(--radius-lg);
	box-shadow: 12px 12px 0 var(--pink);
	transform: rotate(-2deg);
}

.game-art-frame img {
	width: 100%;
	height: auto;
}

.game-icon {
	position: absolute;
	right: -14px;
	top: -30px;
	width: clamp(92px, 11vw, 132px);
	border: 4px solid var(--ink);
	border-radius: 28%;
	box-shadow: 0 7px 0 var(--ink);
	transform: rotate(8deg);
}

.burst {
	position: absolute;
	top: -34px;
	left: -24px;
	display: grid;
	place-items: center;
	width: 118px;
	height: 118px;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 22px;
	font-style: italic;
	font-weight: 900;
	line-height: 0.95;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(-12deg);
}

.burst svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.burst span {
	position: relative;
}

.facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: var(--paper);
	border: var(--border);
	border-radius: 999px;
	font-weight: 800;
	font-size: 15px;
}

.facts svg {
	width: 18px;
	height: 18px;
	color: var(--pink);
}

/* ---------- How to play ---------- */

.how {
	background: var(--paper);
	border-block: var(--border);
}

.how-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	align-items: center;
	gap: clamp(40px, 6vw, 80px);
}

.steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.step {
	overflow: hidden;
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius);
	box-shadow: var(--lift-sm);
}

.step-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: var(--border);
	--ray-x: 85%;
	--ray-y: 50%;
}

.step-num {
	font-size: 44px;
}

.step-icon {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	background: var(--paper);
	border: var(--border);
	border-radius: 50%;
}

.step-icon svg {
	width: 24px;
	height: 24px;
}

.step-body {
	padding: 18px 20px 22px;
}

.step h3 {
	margin-bottom: 6px;
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.step p {
	color: var(--ink-soft);
	font-size: 16px;
}

.equation {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: clamp(40px, 5vw, 60px);
	padding: clamp(22px, 3vw, 32px);
	background: var(--mist);
	border: var(--border);
	border-radius: var(--radius-lg);
}

.equation img {
	width: clamp(84px, 10vw, 120px);
	border: var(--border);
	border-radius: 20px;
	box-shadow: var(--lift-sm);
}

.equation .demo-op {
	width: 44px;
	height: 44px;
}

.equation .op-equals {
	background: var(--ink);
}

.equation .tiles {
	font-size: clamp(20px, 2.6vw, 32px);
}

.phones {
	position: relative;
	display: flex;
	justify-content: center;
	min-height: 520px;
}

.phone {
	position: absolute;
	width: min(230px, 48%);
	padding: 10px;
	background: var(--ink);
	border-radius: 38px;
	box-shadow: 0 10px 0 rgba(27, 23, 48, 0.25);
}

.phone img {
	width: 100%;
	height: auto;
	border-radius: 28px;
}

.phone-a {
	left: 6%;
	top: 0;
	transform: rotate(-6deg);
}

.phone-b {
	right: 6%;
	top: 60px;
	transform: rotate(5deg);
}

/* ---------- Packs ---------- */

.packs {
	--ray-y: 0%;
	border-bottom: var(--border);
}

.pack-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pack {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius);
	box-shadow: var(--lift);
	transition: transform 0.2s ease;
}

.pack:hover {
	transform: translateY(-6px) rotate(-1deg);
}

.pack-top {
	position: relative;
	display: grid;
	place-items: center;
	padding: 26px 16px 22px;
	border-bottom: var(--border);
	--ray-y: 60%;
}

.pack-icon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	background: var(--paper);
	border: var(--border);
	border-radius: 50%;
	box-shadow: var(--lift-sm);
}

.pack-icon svg {
	width: 36px;
	height: 36px;
}

.pack-count {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 9px;
	background: var(--ink);
	border-radius: 8px;
	color: var(--paper);
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pack-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 18px 18px 22px;
}

.pack h3 {
	font-family: var(--font-display);
	font-size: 20px;
	font-style: italic;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-transform: uppercase;
}

.pack p {
	color: var(--ink-soft);
	font-size: 15px;
	line-height: 1.55;
}

.pack-shots {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: clamp(40px, 5vw, 56px);
}

.pack-shot {
	overflow: hidden;
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius);
	box-shadow: var(--lift);
}

.pack-shot img {
	width: 100%;
	height: auto;
}

.pack-shot figcaption {
	padding: 14px 18px;
	border-top: var(--border);
	font-family: var(--font-display);
	font-weight: 800;
}

/* ---------- Screenshots gallery ---------- */

.screens {
	--ray-y: 30%;
}

.gallery-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
}

.gallery-tabs {
	display: inline-flex;
	padding: 5px;
	background: rgba(255, 255, 255, 0.08);
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
}

.gallery-tab {
	padding: 10px 20px;
	background: none;
	border: 0;
	border-radius: 999px;
	color: var(--paper);
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 800;
	transition: background-color 0.15s ease;
}

.gallery-tab[aria-selected='true'] {
	background: var(--yellow);
	color: var(--ink);
}

.gallery-nav {
	display: flex;
	gap: 10px;
}

.gallery-nav button {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	background: var(--paper);
	border: var(--border);
	border-radius: 50%;
	box-shadow: 0 4px 0 #000;
	color: var(--ink);
}

.gallery-nav button:active {
	transform: translateY(3px);
	box-shadow: 0 1px 0 #000;
}

.gallery-nav svg {
	width: 24px;
	height: 24px;
}

.gallery-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(560px, 82%);
	gap: 22px;
	overflow-x: auto;
	padding: 6px 4px 22px;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 4px;
	scrollbar-width: thin;
	scrollbar-color: var(--yellow) transparent;
}

.gallery-track.is-phones {
	grid-auto-columns: min(250px, 62%);
}

.shot {
	scroll-snap-align: start;
}

.shot button {
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	background: var(--paper);
	border: 4px solid var(--paper);
	border-radius: var(--radius);
	box-shadow: 0 8px 0 #000;
	transition: transform 0.2s ease;
}

.shot button:hover {
	transform: translateY(-4px);
}

.shot img {
	width: 100%;
	height: auto;
	border-radius: calc(var(--radius) - 6px);
}

.shot figcaption {
	margin-top: 16px;
	color: rgba(255, 255, 255, 0.86);
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
}

.lightbox {
	width: min(1100px, 94vw);
	max-height: 94vh;
	padding: 0;
	overflow: visible;
	background: transparent;
	border: 0;
	color: var(--paper);
}

.lightbox::backdrop {
	background: rgba(14, 11, 28, 0.88);
}

.lightbox figure {
	position: relative;
}

.lightbox img {
	width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border: 4px solid var(--paper);
	border-radius: var(--radius);
	background: var(--ink);
}

.lightbox figcaption {
	margin-top: 14px;
	font-family: var(--font-display);
	font-weight: 700;
	text-align: center;
}

.lightbox-btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	padding: 0;
	background: var(--yellow);
	border: var(--border);
	border-radius: 50%;
	box-shadow: 0 4px 0 #000;
	color: var(--ink);
}

.lightbox-btn svg {
	width: 24px;
	height: 24px;
}

.lightbox-close {
	top: -20px;
	right: -14px;
}

.lightbox-prev,
.lightbox-next {
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-prev {
	left: -16px;
}

.lightbox-next {
	right: -16px;
}

/* ---------- Platforms ---------- */

.store-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.store {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius);
	box-shadow: var(--lift);
}

.store-top {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 20px 18px;
	border-bottom: var(--border);
	--ray-x: 90%;
	--ray-y: 10%;
}

.store-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	background: var(--paper);
	border: var(--border);
	border-radius: 16px;
}

.store-icon svg {
	width: 26px;
	height: 26px;
}

.store-top h3 {
	font-size: 22px;
	line-height: 1.05;
}

.store-top small {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	background: var(--paper);
	border: 2px solid var(--ink);
	border-radius: 6px;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.store-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
}

.store-devices {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 700;
	font-size: 15px;
}

.store-devices li {
	display: flex;
	align-items: center;
	gap: 9px;
}

.store-devices svg {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--green-deep);
}

.store-proof {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	padding: 4px 11px;
	background: var(--yellow-soft);
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 800;
}

.store-proof svg {
	width: 15px;
	height: 15px;
	color: var(--yellow-deep);
	fill: var(--yellow-deep);
}

.store .btn {
	margin-top: auto;
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
}

/* ---------- Stats ---------- */

.stats {
	padding: clamp(48px, 6vw, 72px) 0;
	background: var(--ink);
	color: var(--paper);
}

.stat-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.stat strong {
	display: block;
	font-size: clamp(36px, 4.4vw, 60px);
	color: var(--yellow);
	-webkit-text-stroke: 0;
	text-shadow: 0 5px 0 var(--pink-deep);
}

.stat span {
	display: block;
	margin-top: 10px;
	color: rgba(255, 255, 255, 0.82);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
}

/* ---------- About ---------- */

.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(40px, 6vw, 88px);
}

.about-copy p + p {
	margin-top: 16px;
}

.about-copy .section-lead {
	color: var(--ink);
}

.about-copy p:not(.section-lead) {
	color: var(--ink-soft);
}

.values {
	display: grid;
	gap: 14px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}

.value {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	padding: 18px 20px;
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--lift-sm);
}

.value-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: var(--border);
	border-radius: 14px;
	background: var(--yellow);
}

.value:nth-child(2) .value-icon {
	background: var(--sky);
}

.value:nth-child(3) .value-icon {
	background: #ff8fb4;
}

.value-icon svg {
	width: 24px;
	height: 24px;
}

.value h3 {
	margin: 2px 0 4px;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 800;
}

.value p {
	color: var(--ink-soft);
	font-size: 15.5px;
}

.about-art {
	position: relative;
}

.about-art > img {
	width: 100%;
	height: auto;
	border: 4px solid var(--ink);
	border-radius: var(--radius-lg);
	box-shadow: 12px 12px 0 var(--ink);
}

.about-art .sticker {
	position: absolute;
	left: -18px;
	bottom: 30px;
	padding: 12px 18px;
	background: var(--paper);
	border: var(--border);
	border-radius: 18px;
	box-shadow: var(--lift-sm);
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.2;
	transform: rotate(-4deg);
}

.about-art .sticker small {
	display: block;
	color: var(--pink);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ---------- FAQ ---------- */

.faq {
	background: var(--paper);
	border-top: var(--border);
}

.faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	align-items: start;
	gap: clamp(36px, 6vw, 80px);
}

.faq-intro {
	position: sticky;
	top: calc(var(--header-h) + 32px);
}

.faq-intro .section-lead a,
.faq-answer a {
	color: var(--pink-deep);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.faq-list {
	display: grid;
	gap: 14px;
}

.faq-item {
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--lift-sm);
}

.faq-item[open] {
	background: var(--yellow-soft);
}

.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 20px 18px 22px;
	cursor: pointer;
	list-style: none;
	font-family: var(--font-display);
	font-size: clamp(16px, 1.5vw, 18px);
	font-weight: 800;
	line-height: 1.3;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-toggle {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	background: var(--yellow);
	border: var(--border);
	border-radius: 50%;
}

.faq-toggle svg {
	width: 18px;
	height: 18px;
	stroke-width: 3;
	transition: transform 0.25s ease;
}

.faq-item[open] .faq-toggle {
	background: var(--pink);
	color: var(--paper);
}

.faq-item[open] .faq-toggle svg {
	transform: rotate(45deg);
}

.faq-answer {
	padding: 0 22px 20px;
	color: var(--ink-soft);
}

/* ---------- Contact ---------- */

.contact {
	padding-top: 0;
	background: var(--paper);
}

.contact-panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	align-items: center;
	gap: clamp(32px, 4vw, 56px);
	overflow: hidden;
	padding: clamp(32px, 5.5vw, 64px);
	border: 4px solid var(--ink);
	border-radius: 40px;
	box-shadow: 0 12px 0 var(--ink);
	--ray-x: 10%;
	--ray-y: 100%;
}

.contact-panel .eyebrow::before {
	background: var(--blue);
}

.contact-panel h2 {
	font-size: clamp(38px, 5vw, 66px);
}

.contact-panel .section-lead {
	margin-top: 18px;
	color: var(--ink);
	font-weight: 700;
}

.email-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.email-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 12px 24px;
	background: var(--ink);
	border: var(--border);
	border-radius: 999px;
	box-shadow: 0 5px 0 #000;
	color: var(--paper);
	font-family: var(--font-display);
	font-size: clamp(15px, 1.5vw, 19px);
	font-weight: 800;
	transition: transform 0.15s ease;
}

.email-link svg {
	width: 22px;
	height: 22px;
	flex: none;
	color: var(--yellow);
}

.email-link:hover {
	transform: translateY(-2px);
}

.btn-copy {
	min-height: 60px;
}

.btn-copy.is-copied {
	background: var(--green);
}

.contact-cards {
	display: grid;
	gap: 14px;
}

.contact-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	background: var(--paper);
	border: var(--border);
	border-radius: 20px;
	box-shadow: var(--lift-sm);
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease;
}

.contact-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 7px 0 var(--ink);
}

.contact-card-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	background: var(--pink);
	border: var(--border);
	border-radius: 14px;
	color: var(--paper);
}

.contact-card:nth-child(2) .contact-card-icon {
	background: var(--blue);
}

.contact-card:nth-child(3) .contact-card-icon {
	background: var(--purple);
}

.contact-card-icon svg {
	width: 22px;
	height: 22px;
}

.contact-card strong {
	display: block;
	font-family: var(--font-display);
	font-size: 17px;
	line-height: 1.3;
}

.contact-card small {
	display: block;
	color: var(--ink-soft);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.contact-card > svg {
	width: 20px;
	height: 20px;
}

/* ---------- Footer ---------- */

.footer-ridge {
	display: block;
	width: 100%;
	height: auto;
	min-width: 900px;
	margin-bottom: -2px;
}

.footer-ridge-wrap {
	overflow: hidden;
	background: var(--paper);
}

.legal-page .footer-ridge-wrap,
.lost-page .footer-ridge-wrap {
	background: var(--cream);
}

.site-footer {
	padding: 40px 0 30px;
	background: var(--ink);
	color: var(--paper);
}

.footer-top {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.8fr)) minmax(0, 1.25fr);
	gap: 40px 28px;
}

.footer-brand p {
	max-width: 290px;
	margin: 18px 0 20px;
	color: rgba(255, 255, 255, 0.76);
	font-size: 16px;
}

.footer-brand .brand-name small {
	color: var(--yellow);
}

.footer-game {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px 8px 8px;
	background: rgba(255, 255, 255, 0.08);
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 18px;
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.2;
	transition: background-color 0.15s ease;
}

.footer-game:hover {
	background: rgba(255, 255, 255, 0.14);
}

.footer-game img {
	width: 44px;
	height: 44px;
	border-radius: 12px;
}

.footer-game small {
	display: block;
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	font-weight: 700;
}

.footer-col h3 {
	margin-bottom: 14px;
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--yellow);
}

.footer-col ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col a {
	color: rgba(255, 255, 255, 0.8);
	font-size: 15px;
	font-weight: 600;
	overflow-wrap: anywhere;
	transition: color 0.15s ease;
}

.footer-col a:hover {
	color: var(--yellow);
}

.footer-col small {
	display: block;
	color: rgba(255, 255, 255, 0.48);
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 28px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.62);
	font-size: 13px;
}

.footer-bottom p {
	max-width: 620px;
}

.footer-bottom strong {
	color: var(--paper);
	font-weight: 800;
}

.footer-bottom a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--paper);
	font-weight: 800;
}

.footer-bottom a:hover {
	color: var(--yellow);
}

.footer-bottom svg {
	width: 16px;
	height: 16px;
}

/* ---------- Legal pages ---------- */

.legal-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(44px, 6vw, 76px) 0 clamp(48px, 6vw, 72px);
	border-bottom: var(--border);
	--ray-x: 80%;
	--ray-y: 120%;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	color: var(--paper);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
}

.crumbs li + li::before {
	content: '›';
	margin-right: 10px;
	color: var(--yellow);
}

.crumbs a:hover {
	text-decoration: underline;
}

.legal-hero h1 {
	font-size: clamp(42px, 6.6vw, 88px);
}

.legal-hero .hero-bubble {
	max-width: 620px;
	margin-top: 28px;
}

.legal-switch {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 26px;
	padding: 5px;
	background: rgba(27, 23, 48, 0.35);
	border: 3px solid var(--ink);
	border-radius: 999px;
}

.legal-switch a {
	padding: 9px 20px;
	border-radius: 999px;
	color: var(--paper);
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 800;
}

.legal-switch a.is-active {
	background: var(--yellow);
	color: var(--ink);
}

.legal-body {
	padding: clamp(44px, 6vw, 76px) 0 clamp(64px, 8vw, 100px);
}

.legal-grid {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	align-items: start;
	gap: clamp(36px, 5vw, 72px);
}

.legal-aside {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: grid;
	gap: 20px;
}

.toc {
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius);
	box-shadow: var(--lift-sm);
}

.toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 12px;
	cursor: pointer;
	list-style: none;
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.toc summary::-webkit-details-marker {
	display: none;
}

.toc summary svg {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}

.toc[open] summary svg {
	transform: rotate(180deg);
}

.toc ol {
	max-height: calc(100vh - var(--header-h) - 330px);
	min-height: 160px;
	overflow: auto;
	margin: 0;
	padding: 0 10px 12px;
	list-style: none;
	counter-reset: toc;
}

.toc a {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 6px;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--ink-soft);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.4;
	transition: background-color 0.15s ease;
}

.toc a::before {
	counter-increment: toc;
	content: counter(toc, decimal-leading-zero);
	color: var(--ink-faint);
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 800;
}

.toc a:hover {
	background: var(--mist);
	color: var(--ink);
}

.toc a.is-active {
	background: var(--yellow);
	color: var(--ink);
}

.toc a.is-active::before {
	color: var(--ink);
}

.legal-help {
	padding: 22px;
	border: var(--border);
	border-radius: var(--radius);
	box-shadow: var(--lift-sm);
	--ray-x: 100%;
	--ray-y: 0%;
}

.legal-help h2 {
	margin-bottom: 8px;
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 900;
	line-height: 1.2;
}

.legal-help p {
	margin-bottom: 16px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.legal-help .btn {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font-size: 15px;
}

.legal-help-email {
	display: block;
	margin-top: 12px;
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 800;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.legal-content {
	max-width: 780px;
	color: var(--ink-soft);
	font-size: 17px;
	line-height: 1.78;
	overflow-wrap: break-word;
}

.legal-content > p {
	margin-bottom: 20px;
}

.legal-content .effective {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
	padding: 8px 16px;
	background: var(--paper);
	border: var(--border);
	border-radius: 999px;
	box-shadow: 0 4px 0 var(--ink);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
}

.legal-content .effective::before {
	content: '';
	width: 10px;
	height: 10px;
	background: var(--green);
	border: 2px solid var(--ink);
	border-radius: 50%;
}

.legal-content h2 {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 54px 0 18px;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: clamp(18px, 1.9vw, 22px);
	font-weight: 900;
	letter-spacing: -0.01em;
	line-height: 1.3;
	scroll-margin-top: calc(var(--header-h) + 20px);
}

.legal-content h2::before {
	content: '';
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 0.42em;
	background: var(--pink);
	border: 2.5px solid var(--ink);
	border-radius: 4px;
	transform: rotate(45deg);
}

.legal-content ul {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.legal-content li {
	position: relative;
	margin-bottom: 12px;
	padding-left: 28px;
}

.legal-content li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 0.62em;
	width: 10px;
	height: 10px;
	background: var(--yellow);
	border: 2px solid var(--ink);
	border-radius: 50%;
}

.legal-content a {
	color: var(--pink-deep);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.read-progress {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 60;
	height: 6px;
	background: linear-gradient(90deg, var(--pink), var(--yellow), var(--blue));
	transform: scaleX(0);
	transform-origin: left center;
	pointer-events: none;
}

.to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	padding: 0;
	background: var(--yellow);
	border: var(--border);
	border-radius: 50%;
	box-shadow: var(--lift-sm);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		visibility 0.2s;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top svg {
	width: 24px;
	height: 24px;
}

/* ---------- 404 ---------- */

.lost {
	padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 8vw, 100px);
	text-align: center;
}

.lost .tiles {
	justify-content: center;
	font-size: clamp(56px, 10vw, 110px);
}

.lost .tile {
	animation: bob 2.4s ease-in-out infinite;
}

.lost .tile:nth-child(2) {
	animation-delay: 0.2s;
}

.lost .tile:nth-child(3) {
	animation-delay: 0.4s;
}

.lost h1 {
	margin: 40px 0 0;
	font-family: var(--font-display);
	font-size: clamp(34px, 5vw, 60px);
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.lost .section-lead {
	margin: 18px auto 32px;
}

.lost .hero-actions {
	justify-content: center;
}

/* ---------- Motion ---------- */

@keyframes marquee {
	to {
		transform: translateX(-50%);
	}
}

@keyframes pop {
	0% {
		transform: scale(0.6);
	}
	70% {
		transform: scale(1.08);
	}
}

@keyframes flip {
	from {
		transform: rotateX(90deg);
	}
}

@keyframes shake {
	20%,
	60% {
		transform: translateX(-6px);
	}
	40%,
	80% {
		transform: translateX(6px);
	}
}

@keyframes fall {
	to {
		transform: translateY(560px) rotate(540deg);
		opacity: 0;
	}
}

@keyframes bob {
	50% {
		transform: translateY(-10px) rotate(-3deg);
	}
}

@keyframes slide-up {
	from {
		transform: translateY(24px);
	}
}

.hero-copy {
	animation: slide-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-game {
	animation: slide-up 0.8s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.js [data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity 0.7s ease,
		transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1140px) {
	.site-nav > a:not(.btn) {
		padding: 10px 9px;
		font-size: 14px;
	}

	.pack-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.store-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 36px;
	}

	.footer-top {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.footer-brand,
	.footer-col--email {
		grid-column: 1 / -1;
	}

	.footer-col--email ul {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
}

@media (max-width: 960px) {
	.menu-toggle {
		display: grid;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding: 14px var(--gutter) 22px;
		background: var(--cream);
		border-bottom: var(--border);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav > a:not(.btn) {
		padding: 13px 12px;
		font-size: 19px;
	}

	.site-nav .btn {
		margin: 10px 0 0;
	}

	.hero {
		background: repeating-conic-gradient(from 0deg at 50% 30%, var(--pink) 0deg 7.5deg, var(--pink-deep) 7.5deg 15deg);
	}

	.hero::before {
		display: none;
	}

	.hero-grid,
	.game-grid,
	.how-grid,
	.about-grid,
	.faq-grid,
	.contact-panel {
		grid-template-columns: minmax(0, 1fr);
	}

	.demo {
		margin: 0 auto;
	}

	.faq-intro {
		position: static;
	}

	.phones {
		min-height: 470px;
		max-width: 520px;
		width: 100%;
		margin: 0 auto;
	}

	.legal-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.legal-aside {
		position: static;
	}

	.toc ol {
		max-height: 300px;
	}
}

@media (max-width: 640px) {
	:root {
		--header-h: 70px;
	}

	body {
		font-size: 16px;
	}

	.brand img {
		width: 44px;
		height: 44px;
	}

	.brand-name strong {
		font-size: 24px;
	}

	.hero h1 {
		font-size: clamp(40px, 12vw, 56px);
	}

	.hero-actions .btn {
		flex: 1 1 100%;
	}

	.demo {
		border-width: 3px;
		box-shadow: 0 8px 0 var(--ink);
	}

	.demo-option {
		border-radius: 14px;
		border-width: 2.5px;
	}

	.demo-foot {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.demo-actions {
		justify-content: center;
	}

	.steps,
	.pack-grid,
	.store-grid,
	.pack-shots {
		grid-template-columns: minmax(0, 1fr);
	}

	.stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.phones {
		min-height: 390px;
	}

	.phone {
		width: 47%;
		border-radius: 28px;
		padding: 7px;
	}

	.phone img {
		border-radius: 22px;
	}

	.about-art .sticker {
		left: 10px;
		bottom: -18px;
	}

	.contact-panel {
		padding: 34px 22px 26px;
		border-radius: 30px;
		box-shadow: 0 8px 0 var(--ink);
	}

	.email-link,
	.btn-copy {
		width: 100%;
		justify-content: center;
	}

	.email-link {
		padding: 12px 16px;
		font-size: 16px;
	}

	.email-link svg {
		display: none;
	}

	.footer-top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-col--email ul {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.lightbox-prev {
		left: 6px;
	}

	.lightbox-next {
		right: 6px;
	}

	.lightbox-close {
		right: 4px;
	}

	.legal-content {
		font-size: 16px;
	}

	.to-top {
		right: 14px;
		bottom: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
	}
}
