/* sheshbesh.ir: one stylesheet for every page. Dark walnut, felt green and gold, like the game. */

@font-face {
	font-family: Vazirmatn;
	src: url("/fonts/vazirmatn.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

@property --spin {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

:root {
	--bg: #120c08;
	--bg-2: #1a120c;
	--bg-3: #22170f;
	--text: #f4ead8;
	--muted: #c2b5a0;
	--dim: #988c78;
	--gold: #e6b85c;
	--gold-hi: #ffd98a;
	--gold-lo: #a87a33;
	--felt: #164a39;
	--crimson: #9c2430;
	--ivory: #f2e8d2;
	--line: rgba(230, 184, 92, 0.2);
	--line-soft: rgba(244, 234, 216, 0.09);
	--glass: rgba(26, 18, 12, 0.72);
	--r: 20px;
	--r-lg: 28px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--header: 72px;
	color-scheme: dark;
	interpolate-size: allow-keywords;
}

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

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

body {
	margin: 0;
	min-height: 100dvh;
	color: var(--text);
	background:
		radial-gradient(1200px 700px at 85% -10%, rgba(230, 184, 92, 0.1), transparent 60%),
		radial-gradient(900px 600px at 0% 30%, rgba(22, 74, 57, 0.28), transparent 60%),
		var(--bg);
	font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.9;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background: url("/img/girih.svg") center / 160px;
	opacity: 0.045;
	pointer-events: none;
}

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

a {
	color: var(--gold-hi);
	text-underline-offset: 4px;
}

h1,
h2,
h3 {
	line-height: 1.35;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

:focus-visible {
	outline: 2px solid var(--gold-hi);
	outline-offset: 3px;
	border-radius: 8px;
}

.wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}

.narrow {
	max-width: 880px;
}

.center {
	text-align: center;
}

.skip {
	position: fixed;
	top: 8px;
	right: 8px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--gold);
	color: #2a1a08;
	font-weight: 700;
	transform: translateY(-150%);
	transition: transform 0.2s;
}

.skip:focus {
	transform: none;
}

.progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 60;
	height: 3px;
	pointer-events: none;
}

.progress span {
	display: block;
	height: 100%;
	background: linear-gradient(270deg, var(--gold-lo), var(--gold-hi));
	transform: scaleX(var(--p, 0));
	transform-origin: right;
}

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

.top {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
	border-bottom: 1px solid transparent;
}

.top.scrolled,
.top.open {
	background: var(--glass);
	border-bottom-color: var(--line-soft);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
}

.top-in {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1240px;
	height: var(--header);
	margin-inline: auto;
	padding-inline: 20px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-size: 22px;
	font-weight: 900;
	text-decoration: none;
	white-space: nowrap;
}

.brand img {
	width: 40px;
	height: 40px;
	transition: transform 0.5s var(--ease);
}

.brand:hover img {
	transform: rotate(-12deg) scale(1.06);
}

.menu {
	display: flex;
	gap: 2px;
	margin-inline-start: auto;
}

.menu a {
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s;
}

.menu a:hover,
.menu a[aria-current="page"] {
	color: var(--text);
	background: rgba(244, 234, 216, 0.07);
}

.top-cta {
	margin-inline-start: 8px;
}

.burger {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line-soft);
	border-radius: 14px;
	background: rgba(244, 234, 216, 0.05);
	color: var(--text);
	cursor: pointer;
	place-items: center;
	align-content: center;
	gap: 6px;
}

.burger span {
	display: block;
	width: 18px;
	height: 2px;
	margin-inline: auto;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.3s var(--ease);
}

.top.open .burger span:first-child {
	transform: translateY(4px) rotate(45deg);
}

.top.open .burger span:last-child {
	transform: translateY(-4px) rotate(-45deg);
}

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

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	touch-action: manipulation;
	transition: transform 0.25s var(--ease), box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
}

.btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

.btn:active {
	transform: scale(0.97);
}

.btn-gold {
	color: #2a1a08;
	background: linear-gradient(180deg, #ffe3a3 0%, var(--gold) 55%, #c99640 100%);
	box-shadow: 0 12px 32px -10px rgba(230, 184, 92, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-gold::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
	transform: translateX(120%);
	transition: transform 0.8s var(--ease);
}

.btn-gold:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 40px -12px rgba(230, 184, 92, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-gold:hover::after {
	transform: translateX(-120%);
}

.btn-ghost {
	color: var(--text);
	background: rgba(244, 234, 216, 0.04);
	border-color: var(--line);
}

.btn-ghost:hover {
	border-color: var(--gold);
	background: rgba(230, 184, 92, 0.1);
	transform: translateY(-2px);
}

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

.btn[disabled] {
	opacity: 0.5;
	cursor: default;
	transform: none;
}

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

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100svh;
	padding: calc(var(--header) + 48px) 0 72px;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.glow {
	position: absolute;
	border-radius: 50%;
	animation: drift 18s ease-in-out infinite alternate;
}

.g1 {
	width: 760px;
	height: 760px;
	top: -280px;
	left: -120px;
	background: radial-gradient(circle, rgba(230, 184, 92, 0.2), transparent 65%);
}

.g2 {
	width: 680px;
	height: 680px;
	bottom: -320px;
	right: -160px;
	background: radial-gradient(circle, rgba(31, 122, 92, 0.32), transparent 65%);
	animation-duration: 22s;
	animation-direction: alternate-reverse;
}

@keyframes drift {
	to {
		translate: 60px 40px;
		scale: 1.12;
	}
}

.float-chk {
	position: absolute;
	width: var(--s, 64px);
	aspect-ratio: 1;
	border-radius: 50%;
	animation: bob var(--t, 7s) ease-in-out infinite alternate;
	will-change: transform;
}

.float-chk::after {
	content: "";
	position: absolute;
	inset: 17%;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.18);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.float-chk.w {
	background: radial-gradient(circle at 35% 30%, #fffaf0, #e9dcc3 45%, #b49a6a 100%);
	box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.7), inset 0 -4px 8px rgba(0, 0, 0, 0.2);
}

.float-chk.b {
	background: radial-gradient(circle at 35% 30%, #6a605a, #2c2725 50%, #0d0b0a 100%);
	box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.8), inset 0 -4px 8px rgba(0, 0, 0, 0.5);
}

.float-chk.b::after {
	border-color: rgba(255, 255, 255, 0.08);
}

.c1 { --s: 74px; --t: 7s; top: 16%; left: 5%; }
.c2 { --s: 52px; --t: 9s; top: 70%; left: 2%; filter: blur(1.5px); }
.c3 { --s: 38px; --t: 6s; top: 12%; left: 45%; filter: blur(2.5px); opacity: 0.7; }
.c4 { --s: 96px; --t: 10s; bottom: -30px; left: 38%; filter: blur(4px); opacity: 0.55; }
.c5 { --s: 44px; --t: 8s; top: 24%; right: 3%; filter: blur(1px); }

@keyframes bob {
	from {
		translate: 0 -10px;
		rotate: -8deg;
	}
	to {
		translate: 0 14px;
		rotate: 10deg;
	}
}

.hero-in {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 6px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(230, 184, 92, 0.08);
	color: var(--gold-hi);
	font-size: 14px;
	font-weight: 600;
}

.dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #5fd39a;
}

.dot::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1px solid #5fd39a;
	animation: ping 2s var(--ease) infinite;
}

@keyframes ping {
	from {
		transform: scale(0.6);
		opacity: 1;
	}
	to {
		transform: scale(2);
		opacity: 0;
	}
}

.hero-title {
	margin: 14px 0 0;
	font-size: clamp(76px, 11vw, 150px);
	font-weight: 900;
	line-height: 1.15;
}

.shine {
	display: inline-block;
	padding-bottom: 0.08em;
	background: linear-gradient(100deg, #a87a33 0%, #ffe4a3 22%, #e6b85c 40%, #fff3d1 50%, #c99640 62%, #ffd98a 80%, #a87a33 100%);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 12px 40px rgba(230, 184, 92, 0.22));
	animation: shine 7s linear infinite;
}

@keyframes shine {
	from {
		background-position: 0% 0;
	}
	to {
		background-position: -250% 0;
	}
}

.hero-sub {
	margin: 0 0 14px;
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 800;
}

.hero-lead {
	max-width: 34em;
	margin: 0;
	color: var(--muted);
	font-size: 18px;
	line-height: 2;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 32px 0 24px;
}

.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 15px;
}

.hero-trust li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hero-trust svg,
.checks svg,
.mode-icon svg,
.round svg {
	fill: none;
	stroke: var(--gold-hi);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hero-trust svg {
	width: 18px;
	height: 18px;
}

/* The live board: a picture of the board, the checker layer on top, 3D dice. */

.stage {
	position: relative;
	container-type: inline-size;
	perspective: 1800px;
	perspective-origin: 50% 30%;
}

.board-wrap {
	position: relative;
	aspect-ratio: 1000 / 640;
	transform-style: preserve-3d;
	transform: rotateX(var(--tx, 14deg)) rotateY(var(--ty, 0deg));
	transition: transform 0.8s var(--ease);
}

.board-wrap::before {
	content: "";
	position: absolute;
	inset: 8% 5% -5%;
	border-radius: 40px;
	background: rgba(0, 0, 0, 0.75);
	filter: blur(40px);
	transform: translateZ(-60px);
}

.board-img,
.board-layer {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 2.6cqi;
}

.board-img {
	box-shadow: 0 0 0 1px rgba(255, 220, 160, 0.12), 0 2px 0 rgba(255, 220, 160, 0.15);
}

.board-layer {
	overflow: visible;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.chk {
	will-change: transform;
}

.dice {
	--d: 7.2cqi;
	position: absolute;
	top: 50%;
	left: var(--dx, 75%);
	display: flex;
	gap: 2.2cqi;
	direction: ltr;
	transform: translate(-50%, -50%) translateZ(4cqi);
	transform-style: preserve-3d;
	transition: left 0.6s var(--ease);
	pointer-events: none;
}

.die {
	width: var(--d);
	height: var(--d);
	transform-style: preserve-3d;
}

.cube {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 1.15s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.face,
.core {
	position: absolute;
	inset: 0;
	border-radius: 20%;
	background: linear-gradient(145deg, #fffdf7, #eadcbc);
}

.core {
	inset: 3%;
	border-radius: 8%;
	background: #e2d3b0;
}

.cx { transform: rotateY(90deg); }
.cy { transform: rotateX(90deg); }

.face {
	display: grid;
	grid-template: repeat(3, 1fr) / repeat(3, 1fr);
	padding: 15%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), inset 0 -0.4cqi 0.8cqi rgba(120, 90, 40, 0.25);
	backface-visibility: hidden;
}

.face i {
	width: 100%;
	aspect-ratio: 1;
	align-self: center;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 35%, #3a2a24, #0d0807);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6);
	transform: scale(0.82);
}

.face .tl { grid-area: 1 / 1; }
.face .tr { grid-area: 1 / 3; }
.face .ml { grid-area: 2 / 1; }
.face .c { grid-area: 2 / 2; }
.face .mr { grid-area: 2 / 3; }
.face .bl { grid-area: 3 / 1; }
.face .br { grid-area: 3 / 3; }

.f1 .c {
	background: radial-gradient(circle at 40% 35%, #c73a46, #6e151d);
	transform: scale(1.15);
}

.f1 { transform: translateZ(calc(var(--d) / 2)); }
.f6 { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.f2 { transform: rotateY(90deg) translateZ(calc(var(--d) / 2)); }
.f5 { transform: rotateY(-90deg) translateZ(calc(var(--d) / 2)); }
.f3 { transform: rotateX(90deg) translateZ(calc(var(--d) / 2)); }
.f4 { transform: rotateX(-90deg) translateZ(calc(var(--d) / 2)); }

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

.turn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--muted);
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.chip-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fffaf0, #d9c9a3);
	box-shadow: 0 0 0 2px rgba(230, 184, 92, 0.35);
	transition: background 0.3s;
}

.turn.black .chip-dot {
	background: radial-gradient(circle at 35% 30%, #6a605a, #0d0b0a);
}

.board-bar .btn svg {
	stroke: var(--gold-hi);
}

/* ---------- Ribbon ---------- */

.ribbon {
	overflow: hidden;
	border-block: 1px solid var(--line-soft);
	background: linear-gradient(90deg, rgba(230, 184, 92, 0.03), rgba(230, 184, 92, 0.08), rgba(230, 184, 92, 0.03));
	padding: 18px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ribbon-track {
	display: flex;
	align-items: center;
	width: max-content;
	animation: marquee 48s linear infinite;
}

.ribbon span {
	margin-inline: 18px;
	color: var(--muted);
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
}

.ribbon i {
	width: 9px;
	height: 9px;
	margin-inline: 18px;
	background: var(--gold);
	transform: rotate(45deg);
	flex: none;
}

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

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

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding-block: clamp(56px, 8vw, 96px) 0;
}

.stat {
	display: grid;
	justify-items: center;
	gap: 2px;
	padding: 8px 12px;
	text-align: center;
}

.stat + .stat {
	border-inline-start: 1px solid var(--line-soft);
}

.stat b {
	font-size: clamp(46px, 6vw, 76px);
	font-weight: 900;
	line-height: 1.2;
	background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-variant-numeric: tabular-nums;
}

.stat span {
	color: var(--muted);
	font-size: 16px;
}

/* ---------- Sections ---------- */

.section {
	padding-block: clamp(80px, 11vw, 140px);
}

.sec-head {
	max-width: 700px;
	margin: 0 auto clamp(40px, 6vw, 64px);
	text-align: center;
}

.sec-head.left {
	margin-inline: 0;
	text-align: start;
}

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--gold);
	font-size: 15px;
	font-weight: 800;
}

.kicker::before,
.sec-head:not(.left) .kicker::after {
	content: "";
	width: 28px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold));
}

.sec-head:not(.left) .kicker::after {
	background: linear-gradient(270deg, transparent, var(--gold));
}

.sec-head h2 {
	margin: 10px 0 14px;
	font-size: clamp(32px, 4.4vw, 50px);
	font-weight: 900;
}

.sec-head p {
	margin: 0;
	color: var(--muted);
	font-size: 18px;
}

.glass {
	position: relative;
	border: 1px solid var(--line-soft);
	border-radius: var(--r-lg);
	background: linear-gradient(180deg, rgba(255, 240, 220, 0.06), rgba(255, 240, 220, 0.015));
	overflow: hidden;
}

.glass::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(230, 184, 92, 0.16), transparent 60%);
	opacity: 0;
	transition: opacity 0.4s;
	pointer-events: none;
}

.glass:hover::before {
	opacity: 1;
}

/* ---------- Modes ---------- */

.modes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.mode {
	padding: 34px 30px 30px;
	transition: transform 0.5s var(--ease), border-color 0.4s;
}

.mode:hover {
	transform: translateY(-8px);
	border-color: var(--line);
}

.mode-icon {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	margin-bottom: 22px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: linear-gradient(145deg, rgba(230, 184, 92, 0.18), rgba(230, 184, 92, 0.03));
	transition: transform 0.6s var(--ease);
}

.mode:hover .mode-icon {
	transform: rotate(-8deg) scale(1.06);
}

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

.mode h3 {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 800;
}

.mode p {
	margin: 0;
	color: var(--muted);
}

.mode .tag {
	margin-top: 20px;
	color: var(--gold);
	font-size: 14px;
	font-weight: 700;
}

/* ---------- Board gallery ---------- */

.boards-sec {
	padding-bottom: clamp(60px, 8vw, 100px);
}

.rail {
	--pad: max(20px, calc((100vw - 1200px) / 2 + 20px));
	display: flex;
	gap: 26px;
	padding: 16px var(--pad) 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--pad);
	scrollbar-width: none;
	cursor: grab;
	overscroll-behavior-x: contain;
}

.rail::-webkit-scrollbar {
	display: none;
}

.rail.dragging {
	scroll-snap-type: none;
	cursor: grabbing;
}

.rail.dragging .bcard {
	pointer-events: none;
}

.bcard {
	flex: 0 0 clamp(260px, 27vw, 340px);
	margin: 0;
	scroll-snap-align: start;
	user-select: none;
}

.bcard-img {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	aspect-ratio: 640 / 653;
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 220, 160, 0.1);
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform 0.6s var(--ease), box-shadow 0.4s;
}

.bcard-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.02);
	transition: transform 1s var(--ease);
	-webkit-user-drag: none;
}

.bcard-img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 245, 220, 0.18), transparent 50%);
	opacity: 0;
	transition: opacity 0.4s;
}

.bcard:hover .bcard-img {
	box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(230, 184, 92, 0.45);
}

.bcard:hover .bcard-img img {
	transform: scale(1.08);
}

.bcard:hover .bcard-img::after {
	opacity: 1;
}

.bcard figcaption {
	display: grid;
	gap: 2px;
	padding: 18px 6px 0;
}

.bcard b {
	font-size: 21px;
	font-weight: 800;
}

.bcard span {
	color: var(--muted);
	font-size: 15px;
}

.bcard em {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	color: var(--gold);
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
}

.coin::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff1c2, #e6b85c 55%, #a87a33);
	box-shadow: inset 0 0 0 1.5px rgba(120, 80, 20, 0.4);
}

.rail-nav {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.round {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: rgba(244, 234, 216, 0.04);
	color: var(--text);
	cursor: pointer;
	transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease), opacity 0.25s;
}

.round:hover {
	background: rgba(230, 184, 92, 0.12);
	border-color: var(--gold);
}

.round:active {
	transform: scale(0.94);
}

.round[disabled] {
	opacity: 0.35;
	cursor: default;
}

.round svg {
	width: 22px;
	height: 22px;
}

/* ---------- Fair play ---------- */

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

.checks {
	margin: 0;
	padding: 0;
	list-style: none;
}

.checks li {
	display: flex;
	gap: 18px;
	margin-bottom: 26px;
}

.checks .ic {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	flex: none;
	border: 1px solid var(--line);
	border-radius: 15px;
	background: rgba(230, 184, 92, 0.08);
}

.checks .ic svg {
	width: 24px;
	height: 24px;
}

.checks b {
	font-size: 18px;
	font-weight: 800;
}

.checks p {
	margin: 2px 0 0;
	color: var(--muted);
}

.fair-visual {
	position: relative;
	padding: 20px;
	border: 1px solid var(--line-soft);
	border-radius: 32px;
	background:
		radial-gradient(circle at 50% 40%, rgba(230, 184, 92, 0.08), transparent 60%),
		linear-gradient(180deg, rgba(255, 240, 220, 0.04), rgba(255, 240, 220, 0.01));
}

.net {
	display: block;
	width: 100%;
	height: auto;
	font-family: inherit;
}

.net .wire {
	fill: none;
	stroke-width: 2.5;
	stroke-dasharray: 2 9;
	stroke-linecap: round;
	animation: dash 1.4s linear infinite;
}

@keyframes dash {
	to {
		stroke-dashoffset: -22;
	}
}

.net .phone > rect:first-child {
	fill: #24180f;
	stroke: rgba(230, 184, 92, 0.35);
	stroke-width: 1.5;
}

.net .screen {
	fill: #164a39;
}

.net .pc.w {
	fill: #f2e8d2;
}

.net .pc.b {
	fill: #2c2725;
	stroke: #0d0b0a;
}

.net text {
	fill: var(--muted);
	font-size: 15px;
	font-weight: 700;
	text-anchor: middle;
}

.net .server > rect:first-child {
	fill: #2a1d13;
	stroke: var(--gold);
	stroke-width: 2;
}

.net .shield {
	fill: rgba(230, 184, 92, 0.14);
	stroke: var(--gold);
	stroke-width: 2;
}

.net .tick {
	fill: none;
	stroke: var(--gold-hi);
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 30;
	animation: tick 2.6s var(--ease) infinite;
}

@keyframes tick {
	0%, 15% {
		stroke-dashoffset: 30;
	}
	45%, 100% {
		stroke-dashoffset: 0;
	}
}

.net .sd {
	fill: var(--ivory);
	transform-box: fill-box;
	transform-origin: center;
	animation: roll 2.6s var(--ease) infinite;
}

.net .sd + .sd {
	animation-delay: 0.15s;
}

@keyframes roll {
	0% {
		transform: rotate(0) scale(1);
	}
	20% {
		transform: rotate(180deg) scale(0.85);
	}
	40%, 100% {
		transform: rotate(360deg) scale(1);
	}
}

.net .pip {
	fill: var(--crimson);
}

.net .cap {
	fill: var(--text);
	font-size: 22px;
	font-weight: 900;
}

.net .cap.sm {
	fill: var(--dim);
	font-size: 13.5px;
	font-weight: 500;
}

.net .packet {
	fill: var(--gold-hi);
	stroke: rgba(255, 217, 138, 0.3);
	stroke-width: 8;
}

.net .packet.back {
	fill: var(--ivory);
	stroke: rgba(242, 232, 210, 0.25);
}

.net .pulse {
	transform-box: fill-box;
	transform-origin: center;
	animation: breathe 3.2s ease-in-out infinite;
}

@keyframes breathe {
	50% {
		transform: scale(1.15);
		opacity: 0.6;
	}
}

/* ---------- Showcase ---------- */

.showcase {
	position: relative;
	background: linear-gradient(180deg, transparent, rgba(22, 74, 57, 0.16) 30%, rgba(22, 74, 57, 0.16) 70%, transparent);
}

.show-in {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
	gap: clamp(40px, 6vw, 80px);
}

.devices {
	position: relative;
	aspect-ratio: 16 / 12;
}

.device {
	position: absolute;
	width: 84%;
	aspect-ratio: 20 / 9;
	padding: 1.6%;
	border-radius: 7% / 15%;
	background: linear-gradient(160deg, #3a302a, #0d0a08 60%);
	box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.device img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 5.4% / 12%;
}

.device.back {
	top: 4%;
	left: 0;
	opacity: 0.92;
	transform: translateY(var(--p1, 0px)) rotate(-7deg);
}

.device.front {
	bottom: 4%;
	right: 0;
	transform: translateY(var(--p2, 0px)) rotate(3deg);
}

.bubble {
	position: absolute;
	top: 30%;
	right: 4%;
	z-index: 3;
	padding: 10px 20px;
	border-radius: 20px 20px 6px 20px;
	background: var(--ivory);
	color: #2a1a08;
	font-size: 16px;
	font-weight: 800;
	box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6);
	transform-origin: 85% 100%;
	opacity: 0;
}

.bubble.pop {
	animation: pop 2.6s var(--ease) both;
}

@keyframes pop {
	0% {
		opacity: 0;
		transform: translateY(10px) scale(0.6);
	}
	14%, 80% {
		opacity: 1;
		transform: none;
	}
	100% {
		opacity: 0;
		transform: translateY(-8px) scale(0.96);
	}
}

.clock {
	position: absolute;
	bottom: 2%;
	left: 6%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--glass);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.7);
}

.clock svg {
	position: absolute;
	inset: 6px;
	width: calc(100% - 12px);
	height: calc(100% - 12px);
	transform: rotate(-90deg);
}

.clock circle {
	fill: none;
	stroke-width: 3.5;
}

.clock .track {
	stroke: rgba(244, 234, 216, 0.1);
}

.clock .run {
	stroke: var(--gold);
	stroke-linecap: round;
	stroke-dasharray: 113.1;
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 1s linear, stroke 0.3s;
}

.clock.low .run {
	stroke: #e2584f;
}

.clock span {
	font-size: 22px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
}

.cube-chip {
	position: absolute;
	top: 0;
	left: 44%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border-radius: 16px;
	background: linear-gradient(145deg, #fffdf7, #e2d1aa);
	color: #2a1a08;
	font-size: 30px;
	font-weight: 900;
	box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.7), inset 0 -3px 6px rgba(120, 90, 40, 0.3);
	animation: cubefloat 6s ease-in-out infinite;
}

@keyframes cubefloat {
	50% {
		translate: 0 -14px;
		rotate: 10deg;
	}
}

.feats {
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.feats li {
	display: grid;
	gap: 2px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line-soft);
}

.feats li:last-child {
	border-bottom: 0;
}

.feats b {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 800;
}

.feats b::before {
	content: "";
	width: 8px;
	height: 8px;
	background: var(--gold);
	transform: rotate(45deg);
}

.feats span {
	padding-inline-start: 20px;
	color: var(--muted);
	font-size: 16px;
}

/* ---------- Steps ---------- */

.steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	margin: 0 0 48px;
	padding: 0;
	list-style: none;
}

.steps::before,
.steps::after {
	content: "";
	position: absolute;
	top: 34px;
	right: 12.5%;
	left: 12.5%;
	height: 2px;
	background: var(--line-soft);
}

.steps::after {
	background: linear-gradient(270deg, var(--gold-hi), var(--gold-lo));
	transform: scaleX(var(--fill, 0));
	transform-origin: right;
}

.steps li {
	position: relative;
	z-index: 1;
	text-align: center;
}

.num {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	margin: 0 auto 20px;
	border: 1px solid var(--gold);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #2c1e13, var(--bg-2));
	color: var(--gold-hi);
	font-size: 28px;
	font-weight: 900;
	box-shadow: 0 0 0 8px var(--bg), 0 0 30px rgba(230, 184, 92, 0.25);
}

.steps h3 {
	margin: 0 0 8px;
	font-size: 21px;
	font-weight: 800;
}

.steps p {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
}

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

.faq details {
	margin-bottom: 12px;
	border: 1px solid var(--line-soft);
	border-radius: 18px;
	background: rgba(255, 240, 220, 0.03);
	transition: border-color 0.3s, background-color 0.3s;
}

.faq details[open] {
	border-color: var(--line);
	background: rgba(230, 184, 92, 0.05);
}

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding: 14px 24px;
	font-size: 18px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

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

.faq summary::after {
	content: "";
	width: 10px;
	height: 10px;
	flex: none;
	border-bottom: 2px solid var(--gold);
	border-left: 2px solid var(--gold);
	transform: translateY(-3px) rotate(-45deg);
	transition: transform 0.35s var(--ease);
}

.faq details[open] summary::after {
	transform: translateY(3px) rotate(135deg);
}

.faq details::details-content {
	block-size: 0;
	overflow: clip;
	transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}

.faq details[open]::details-content {
	block-size: auto;
}

.faq details > div {
	padding: 0 24px 20px;
	color: var(--muted);
}

.faq details p {
	margin: 0;
}

/* ---------- Download ---------- */

.cta-card {
	position: relative;
	padding: clamp(52px, 8vw, 96px) 24px;
	border-radius: 36px;
	text-align: center;
	background:
		radial-gradient(ellipse 70% 60% at 50% 0%, rgba(230, 184, 92, 0.2), transparent 70%),
		linear-gradient(180deg, #20160e, #140d08);
	isolation: isolate;
	overflow: hidden;
}

.cta-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	padding: 1.5px;
	border-radius: inherit;
	background: conic-gradient(from var(--spin), rgba(230, 184, 92, 0.15) 0 60%, var(--gold-hi) 75%, rgba(230, 184, 92, 0.15) 90%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: spin 7s linear infinite;
	pointer-events: none;
}

@keyframes spin {
	to {
		--spin: 360deg;
	}
}

.cta-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("/img/girih.svg") center / 140px;
	opacity: 0.09;
	-webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 75%);
	mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 75%);
}

.cta-icon {
	width: 88px;
	height: 88px;
	filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
	animation: cubefloat 7s ease-in-out infinite;
}

.cta-card h2 {
	margin: 18px 0 10px;
	font-size: clamp(30px, 4.4vw, 50px);
	font-weight: 900;
}

.cta-card > p {
	max-width: 520px;
	margin: 0 auto;
	color: var(--muted);
	font-size: 18px;
}

.stores {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 32px;
}

.store {
	display: grid;
	min-width: 180px;
	padding: 12px 26px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(244, 234, 216, 0.05);
	line-height: 1.5;
}

.store b {
	font-size: 19px;
}

.store small {
	color: var(--gold);
	font-size: 13px;
	font-weight: 700;
}

.cta-card .contact {
	margin-top: 32px;
	font-size: 15px;
}

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

.foot {
	border-top: 1px solid var(--line-soft);
	padding: 36px 0 44px;
	color: var(--dim);
	font-size: 15px;
}

.foot-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 32px;
}

.foot .brand {
	font-size: 19px;
}

.foot .brand img {
	width: 32px;
	height: 32px;
}

.foot nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
}

.foot nav a {
	color: var(--muted);
	text-decoration: none;
}

.foot nav a:hover {
	color: var(--gold-hi);
}

.foot p {
	margin: 0;
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: var(--d, 0s);
}

.js .reveal.in {
	opacity: 1;
	transform: none;
}

.js .mode.reveal.in {
	transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.5s var(--ease), border-color 0.4s;
}

/* ---------- Document pages: the tutorial and the privacy policy ---------- */

.doc-hero {
	position: relative;
	padding: calc(var(--header) + 64px) 0 56px;
	text-align: center;
	overflow: hidden;
}

.doc-hero::before {
	content: "";
	position: absolute;
	top: -300px;
	left: 50%;
	width: 900px;
	height: 700px;
	translate: -50% 0;
	background: radial-gradient(circle, rgba(230, 184, 92, 0.16), transparent 62%);
	pointer-events: none;
}

.doc-hero h1 {
	position: relative;
	margin: 14px 0 12px;
	font-size: clamp(42px, 6.4vw, 76px);
	font-weight: 900;
}

.doc-hero p {
	position: relative;
	max-width: 640px;
	margin: 0 auto;
	color: var(--muted);
	font-size: 19px;
}

.doc-hero .chips {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 26px;
	padding: 0;
	list-style: none;
}

.doc-hero .chips li {
	padding: 6px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(230, 184, 92, 0.06);
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
}

.doc-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
	padding-bottom: 96px;
}

.toc {
	position: sticky;
	top: calc(var(--header) + 24px);
	max-height: calc(100dvh - var(--header) - 48px);
	overflow: auto;
	padding: 18px 10px;
	border: 1px solid var(--line-soft);
	border-radius: 22px;
	background: rgba(255, 240, 220, 0.03);
	scrollbar-width: thin;
}

.toc p {
	margin: 0 10px 6px;
	color: var(--dim);
	font-size: 13px;
	font-weight: 700;
}

.toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.toc a {
	display: block;
	padding: 6px 12px;
	border-radius: 10px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s;
}

.toc a:hover {
	color: var(--text);
}

.toc a.active {
	color: var(--gold-hi);
	background: rgba(230, 184, 92, 0.1);
}

.toc .part {
	margin: 12px 10px 4px;
	color: var(--gold);
	font-size: 12.5px;
	font-weight: 800;
}

.prose {
	max-width: 780px;
	font-size: 17.5px;
	line-height: 2.05;
}

.prose > :first-child {
	margin-top: 0;
}

.prose .part-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 80px 0 0;
	color: var(--gold);
	font-size: 15px;
	font-weight: 800;
}

.prose .part-title:first-child {
	margin-top: 0;
}

.prose .part-title::after {
	content: "";
	height: 1px;
	flex: 1;
	background: linear-gradient(270deg, transparent, var(--line));
}

.prose h2 {
	margin: 56px 0 14px;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 900;
}

.prose .part-title + h2 {
	margin-top: 10px;
}

.prose h3 {
	margin: 32px 0 8px;
	color: var(--gold-hi);
	font-size: 20px;
	font-weight: 800;
}

.prose p {
	margin: 0 0 16px;
}

.prose ul,
.prose ol {
	margin: 0 0 18px;
	padding-inline-start: 24px;
}

.prose li {
	margin: 8px 0;
}

.prose li::marker {
	color: var(--gold);
}

.prose strong {
	color: #fff4dc;
}

.prose .muted {
	color: var(--muted);
}

.mv {
	display: inline-block;
	padding: 0 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(230, 184, 92, 0.08);
	color: var(--gold-hi);
	font-size: 0.92em;
	font-weight: 700;
	line-height: 1.7;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.note {
	margin: 24px 0;
	padding: 18px 22px;
	border: 1px solid var(--line-soft);
	border-inline-start: 3px solid var(--gold);
	border-radius: 16px;
	background: rgba(230, 184, 92, 0.06);
}

.note > :last-child {
	margin-bottom: 0;
}

.note.warn {
	border-inline-start-color: #e2584f;
	background: rgba(226, 88, 79, 0.07);
}

.note b:first-child {
	color: var(--gold-hi);
}

.figure {
	margin: 28px 0;
}

.figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
	box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8);
}

.figure figcaption {
	margin-top: 10px;
	color: var(--dim);
	font-size: 15px;
	line-height: 1.8;
}

.cards-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 24px 0;
}

.mini {
	padding: 20px 22px;
}

.mini h3 {
	margin: 0 0 6px;
	font-size: 18px;
}

.mini p {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.95;
}

.table-wrap {
	margin: 24px 0;
	overflow-x: auto;
	border: 1px solid var(--line-soft);
	border-radius: 18px;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

th,
td {
	padding: 12px 18px;
	text-align: start;
	border-bottom: 1px solid var(--line-soft);
}

th {
	color: var(--gold);
	font-size: 14px;
	font-weight: 800;
	background: rgba(230, 184, 92, 0.06);
}

tr:last-child td {
	border-bottom: 0;
}

/* The practice board on the tutorial page: pick an opening roll and watch it played. */

.lab {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	margin: 28px 0;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 26px;
	background: linear-gradient(180deg, rgba(255, 240, 220, 0.05), rgba(255, 240, 220, 0.01));
}

.lab .stage {
	perspective: none;
}

.lab .board-wrap {
	transform: none;
}

.lab .board-wrap::before {
	display: none;
}

.lab-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 44px;
}

.lab-info p {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
}

.lab-info strong {
	color: var(--gold-hi);
}

.rolls {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 8px;
}

.rolls button {
	min-height: 48px;
	padding: 0 8px;
	border: 1px solid var(--line-soft);
	border-radius: 14px;
	background: rgba(244, 234, 216, 0.04);
	color: var(--text);
	font: inherit;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.rolls button:hover {
	border-color: var(--gold);
}

.rolls button:active {
	transform: scale(0.96);
}

.rolls button[aria-pressed="true"] {
	border-color: var(--gold);
	background: rgba(230, 184, 92, 0.16);
	color: var(--gold-hi);
}

.rolls-label {
	margin: 4px 0 -6px;
	color: var(--dim);
	font-size: 14px;
	font-weight: 700;
}

/* Shot odds: one bar per distance, in the same gold. */

.odds {
	display: grid;
	gap: 6px;
	margin: 24px 0;
	padding: 22px;
	border: 1px solid var(--line-soft);
	border-radius: 22px;
	background: rgba(255, 240, 220, 0.03);
}

.odds-row {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) 56px;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.odds-row span:first-child {
	color: var(--muted);
}

.odds-row b {
	text-align: end;
	font-weight: 800;
}

.odds-bar {
	height: 14px;
	border-radius: 0 7px 7px 0;
	background: rgba(244, 234, 216, 0.06);
	overflow: hidden;
}

.odds-bar i {
	display: block;
	height: 100%;
	width: 100%;
	border-radius: 7px 0 0 7px;
	background: linear-gradient(270deg, var(--gold-lo), var(--gold-hi));
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 1.1s var(--ease);
}

.odds-row.indirect .odds-bar i {
	background: linear-gradient(270deg, #6b5a3f, #a8916a);
}

.odds.in .odds-bar i {
	transform: scaleX(var(--v));
}

.odds-key {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin-top: 10px;
	color: var(--dim);
	font-size: 14px;
}

.odds-key span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.odds-key span::before {
	content: "";
	width: 14px;
	height: 8px;
	border-radius: 4px;
	background: var(--gold);
}

.odds-key span.ind::before {
	background: #a8916a;
}

.doc-end {
	margin-top: 72px;
}

.prose .cta-card h2 {
	margin: 0 0 10px;
}

.prose .cta-card > p {
	margin: 0 auto;
}

.lab .board-layer {
	cursor: default;
}

.privacy h2 {
	margin-top: 44px;
	font-size: clamp(22px, 2.6vw, 28px);
}

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

@media (max-width: 1020px) {
	.menu {
		position: absolute;
		top: calc(var(--header) - 4px);
		right: 12px;
		left: 12px;
		flex-direction: column;
		gap: 2px;
		margin: 0;
		padding: 10px;
		border: 1px solid var(--line-soft);
		border-radius: 22px;
		background: #1a120c;
		box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px) scale(0.98);
		transform-origin: top;
		transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.35s;
	}

	.top.open .menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 0.25s, transform 0.35s var(--ease);
	}

	.menu a {
		padding: 12px 16px;
		border-radius: 14px;
		font-size: 17px;
	}

	.top-cta {
		margin-inline-start: auto;
	}

	.burger {
		display: grid;
	}
}

@media (max-width: 980px) {
	.hero {
		min-height: 0;
	}

	.hero-in,
	.fair,
	.show-in {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero-copy {
		text-align: center;
	}

	.hero-lead {
		margin-inline: auto;
	}

	.hero-cta,
	.hero-trust {
		justify-content: center;
	}

	.hero-visual {
		max-width: 680px;
		width: 100%;
		margin-inline: auto;
	}

	.modes {
		grid-template-columns: minmax(0, 1fr);
		max-width: 620px;
		margin-inline: auto;
	}

	.fair-visual {
		order: -1;
		max-width: 620px;
		width: 100%;
		margin-inline: auto;
	}

	.devices {
		max-width: 640px;
		width: 100%;
		margin-inline: auto;
	}

	.steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
		max-width: 620px;
		margin-inline: auto;
	}

	.steps::before,
	.steps::after {
		top: 0;
		bottom: 0;
		right: 33px;
		left: auto;
		width: 2px;
		height: auto;
	}

	.steps::after {
		transform: scaleY(var(--fill, 0));
		transform-origin: top;
	}

	.steps li {
		display: flex;
		gap: 20px;
		text-align: start;
	}

	.num {
		flex: none;
		margin: 0;
	}

	.doc-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.toc {
		position: static;
		max-height: none;
	}

	.toc ol {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
	}

	.toc .part {
		width: 100%;
	}

	.toc a {
		border: 1px solid var(--line-soft);
		font-size: 14px;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16.5px;
	}

	.stats {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 28px;
	}

	.stat:nth-child(3) {
		border-inline-start: 0;
	}

	.hero-cta .btn {
		width: 100%;
	}

	.board-bar {
		margin-top: 18px;
	}

	.turn {
		font-size: 14px;
	}

	.clock {
		width: 60px;
		height: 60px;
	}

	.clock span {
		font-size: 18px;
	}

	.cube-chip {
		width: 48px;
		height: 48px;
		font-size: 24px;
		border-radius: 12px;
	}

	.bubble {
		font-size: 14px;
		padding: 8px 14px;
	}

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

	.c1,
	.c3,
	.c5,
	.net .cap.sm {
		display: none;
	}

	.odds {
		padding: 16px;
	}

	.odds-row {
		grid-template-columns: 64px minmax(0, 1fr) 48px;
		gap: 8px;
		font-size: 14px;
	}

	th,
	td {
		padding: 10px 12px;
		font-size: 15px;
	}

	.lab {
		padding: 12px;
		border-radius: 20px;
	}

	.foot-in {
		flex-direction: column;
		text-align: center;
	}

	.foot nav {
		justify-content: center;
	}
}

@media (max-width: 340px) {
	.brand span {
		display: none;
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}

	.ribbon-track {
		animation: none;
	}
}
