/* ChestNetwork site. Same identity as the promo video (chestnetwork-promo/src/theme.ts): Cinzel and Inter, gold and
   cyan on dark wood, embers, gold keycaps. */

@font-face {
	font-family: 'Cinzel';
	font-style: normal;
	font-weight: 700 900;
	font-display: swap;
	src: url(fonts/cinzel-latin.woff2) format('woff2');
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url(fonts/inter-latin.woff2) format('woff2');
}

:root {
	--gold: #f2c25b;
	--gold-deep: #b7832f;
	--cyan: #5cf2ea;
	--ink: #0c0a08;
	--wood: #2a1d12;
	--wood-2: #3b2716;
	--text: #f6ebd6;
	--muted: #cdbfa6;
	--card: rgba(42, 29, 18, 0.62);
	--line: rgba(242, 194, 91, 0.28);
	--display: 'Cinzel', 'Trajan Pro', Georgia, serif;
	--body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--gutter: 16px;
	--max: 1120px;
	color-scheme: dark;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 76px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--ink);
	background-image: radial-gradient(rgba(246, 235, 214, 0.07) 1.4px, transparent 1.6px),
		radial-gradient(ellipse at 50% 0%, var(--wood-2) 0%, var(--wood) 32%, var(--ink) 78%);
	background-size: 40px 40px, 100% 1400px;
	background-repeat: repeat, no-repeat;
	color: var(--text);
	font: 400 1.0625rem/1.65 var(--body);
	overflow-x: hidden;
}

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

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

a:hover {
	color: #a8fff9;
}

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

.wrap {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip {
	position: absolute;
	left: var(--gutter);
	top: -60px;
	z-index: 100;
	background: var(--gold);
	color: var(--ink);
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 800;
}

.skip:focus {
	top: 10px;
}

/* Headings */

h1,
h2,
h3 {
	font-family: var(--display);
	color: var(--gold);
	line-height: 1.15;
	letter-spacing: 0.03em;
	margin: 0 0 0.6em;
}

h1 {
	font-weight: 900;
	font-size: clamp(2rem, 6.2vw, 3.6rem);
}

h2 {
	font-weight: 900;
	font-size: clamp(1.6rem, 4.6vw, 2.5rem);
}

h3 {
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: 0.02em;
}

.kicker {
	display: inline-block;
	font: 800 0.8rem/1.4 var(--body);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--cyan);
	margin: 0 0 14px;
}

.lead {
	font-size: 1.15rem;
	color: var(--text);
	max-width: 62ch;
}

.rule {
	height: 3px;
	width: min(420px, 70%);
	background: linear-gradient(90deg, transparent, var(--cyan), transparent);
	box-shadow: 0 0 14px var(--cyan);
	border: 0;
	margin: 18px 0 24px;
}

.center {
	text-align: center;
}

.center .rule,
.center .lead {
	margin-left: auto;
	margin-right: auto;
}

/* Keycaps, as in the video */

kbd {
	display: inline-block;
	min-width: 1.9em;
	padding: 0.05em 0.5em 0.1em;
	margin: 0 0.1em;
	font: 800 0.85em/1.5 var(--body);
	color: var(--text);
	text-align: center;
	background: linear-gradient(180deg, #3a2a1a 0%, #1d140c 100%);
	border: 2px solid var(--gold);
	border-radius: 7px;
	box-shadow: 0 3px 0 var(--gold-deep), 0 5px 10px rgba(0, 0, 0, 0.5);
	vertical-align: 0.08em;
}

code {
	font: 600 0.9em/1.4 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	background: rgba(12, 10, 8, 0.7);
	border: 1px solid rgba(92, 242, 234, 0.35);
	color: var(--cyan);
	border-radius: 6px;
	padding: 0.1em 0.4em;
	overflow-wrap: anywhere;
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 12px;
	font: 800 0.95rem/1.2 var(--body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-gold {
	color: var(--ink);
	background: linear-gradient(180deg, var(--gold), var(--gold-deep));
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 26px rgba(242, 194, 91, 0.35);
}

.btn-gold:hover {
	color: var(--ink);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 36px rgba(242, 194, 91, 0.55);
}

.btn-ghost {
	color: var(--cyan);
	border: 2px solid rgba(92, 242, 234, 0.6);
	background: rgba(12, 10, 8, 0.6);
}

.btn-ghost:hover {
	color: var(--ink);
	background: var(--cyan);
}

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

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(12, 10, 8, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 64px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 900 1.15rem/1 var(--display);
	color: var(--gold);
	text-decoration: none;
	letter-spacing: 0.04em;
	margin-right: auto;
	min-height: 44px;
}

.brand img {
	width: 38px;
	height: 38px;
	border-radius: 14%;
}

.brand:hover {
	color: var(--gold);
}

.site-nav ul {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a,
.lang {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 8px;
}

.site-nav a:hover,
.lang:hover {
	color: var(--gold);
	background: rgba(242, 194, 91, 0.08);
}

.lang {
	border: 1px solid var(--line);
}

.discord-link {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	color: #fff;
	background: #4752c4;
}

.discord-link:hover {
	color: #fff;
	background: #3c45a5;
}

.discord-link svg {
	width: 24px;
	height: 24px;
}

.site-header .btn {
	min-height: 44px;
	padding: 8px 16px;
	font-size: 0.8rem;
}

@media (max-width: 900px) {
	.site-nav {
		display: none;
	}
}

.brand img,
.discord-link,
.lang,
.site-header .btn {
	flex: none;
}

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

	.site-header .wrap {
		gap: 8px;
	}

	.lang {
		padding: 0 10px;
	}

	.site-header .btn {
		padding: 8px 12px;
	}
}

/* Sections */

section {
	padding: 72px 0;
	position: relative;
}

.band {
	background: linear-gradient(180deg, rgba(42, 29, 18, 0) 0%, rgba(42, 29, 18, 0.55) 18%, rgba(42, 29, 18, 0.55) 82%, rgba(42, 29, 18, 0) 100%);
}

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

.diamonds li {
	position: relative;
	padding-left: 30px;
	margin: 0 0 12px;
}

.diamonds li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 0.55em;
	width: 11px;
	height: 11px;
	background: var(--cyan);
	transform: rotate(45deg);
	box-shadow: 0 0 10px var(--cyan);
}

/* Hero */

.hero {
	padding: 56px 0 64px;
	overflow: hidden;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 48px;
	align-items: center;
}

.hero .sub {
	font-size: 1.2rem;
	max-width: 58ch;
	margin: 0 0 28px;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

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

.proof li {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text);
	border: 1px solid rgba(92, 242, 234, 0.4);
	background: rgba(12, 10, 8, 0.55);
	border-radius: 999px;
	padding: 6px 14px;
}

.proof strong {
	color: var(--gold);
}

.hero-art {
	position: relative;
	justify-self: center;
	text-align: center;
}

.hero-art img {
	width: min(320px, 70vw);
	border-radius: 14%;
	box-shadow: 0 0 60px rgba(92, 242, 234, 0.35), 0 24px 50px rgba(0, 0, 0, 0.7);
}

.promise {
	font: 700 1.05rem/1.4 var(--display);
	color: var(--text);
	margin: 18px auto 0;
	max-width: 30ch;
}

.embers {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.embers i {
	position: absolute;
	bottom: -20px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 16px var(--gold);
	opacity: 0;
	animation: ember 9s linear infinite;
}

.embers i:nth-child(3n) {
	background: var(--cyan);
	box-shadow: 0 0 16px var(--cyan);
}

@keyframes ember {
	0% { transform: translate(0, 0); opacity: 0; }
	10% { opacity: 0.6; }
	50% { transform: translate(18px, -45vh); }
	90% { opacity: 0.45; }
	100% { transform: translate(-12px, -95vh); opacity: 0; }
}

@media (max-width: 860px) {
	.hero-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.hero-art {
		order: -1;
	}

	.hero-art img {
		width: 148px;
	}

	.promise {
		display: none;
	}
}

/* Author quote */

.quote {
	margin: 0;
	padding: 48px 28px 40px;
	text-align: center;
	position: relative;
	border-image: none;
}

.quote::before {
	content: '\201C';
	position: absolute;
	top: -18px;
	left: 50%;
	transform: translateX(-50%);
	font: 900 7rem/1 var(--display);
	color: var(--gold);
	opacity: 0.85;
	text-shadow: 0 0 30px rgba(242, 194, 91, 0.45);
}

.quote p {
	font: 700 clamp(1.4rem, 3.8vw, 2.2rem)/1.4 var(--display);
	color: var(--text);
	letter-spacing: 0.01em;
	margin: 0 auto;
	max-width: 30ch;
}

.quote footer {
	margin-top: 26px;
	font-weight: 600;
	color: var(--muted);
}

.quote cite {
	font-style: normal;
	font: 900 1.15rem/1 var(--display);
	color: var(--gold);
	letter-spacing: 0.06em;
}

/* Video */

.video {
	max-width: 900px;
	margin: 0 auto;
}

.yt {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	overflow: hidden;
	border: 3px solid var(--gold);
	box-shadow: 0 0 50px rgba(92, 242, 234, 0.22), 0 24px 50px rgba(0, 0, 0, 0.7);
	background: #000;
}

.yt img {
	color: transparent;
}

.yt img,
.yt iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}

.yt .play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 88px;
	height: 88px;
	margin: -44px 0 0 -44px;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--gold), var(--gold-deep));
	box-shadow: 0 0 0 6px rgba(12, 10, 8, 0.55), 0 0 40px rgba(242, 194, 91, 0.6);
	display: grid;
	place-items: center;
	transition: transform 0.15s ease;
}

.yt .play svg {
	width: 34px;
	height: 34px;
	margin-left: 6px;
}

.yt:hover .play {
	transform: scale(1.08);
}

.chapters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 22px 0 0;
}

.chapters a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 14px;
	border-radius: 10px;
	border: 1px solid rgba(92, 242, 234, 0.45);
	background: rgba(12, 10, 8, 0.6);
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
}

.chapters a:hover {
	border-color: var(--cyan);
	color: var(--cyan);
}

.chapters time {
	color: var(--gold);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

/* Quick stack */

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

@media (max-width: 860px) {
	.split {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

.stack-fig {
	margin: 0;
	padding: 22px;
}

.stack-flow {
	display: grid;
	grid-template-columns: 1fr auto 1.25fr;
	align-items: center;
	gap: 14px;
}

.panel-title {
	font: 700 0.78rem/1.3 var(--body);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 8px;
}

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

.slot {
	aspect-ratio: 1;
	border-radius: 8px;
	background: rgba(12, 10, 8, 0.7);
	border: 1px solid rgba(246, 235, 214, 0.15);
	display: grid;
	place-items: center;
}

.slot svg {
	width: 72%;
	height: 72%;
}

.keys {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--gold);
	font-weight: 800;
}

.keys .arrow {
	width: 34px;
	height: 18px;
	color: var(--cyan);
}

.chests {
	display: grid;
	gap: 8px;
}

.box {
	display: grid;
	grid-template-columns: 40px 1fr;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 10px;
	border: 1px solid rgba(92, 242, 234, 0.4);
	background: rgba(12, 10, 8, 0.55);
}

.box > svg {
	width: 40px;
	height: 32px;
}

.box .row {
	display: flex;
	gap: 4px;
}

.box .row svg {
	width: 22px;
	height: 22px;
}

.box .label {
	grid-column: 1 / -1;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--muted);
	margin: -2px 0 0;
}

.anim .inv .it {
	animation: leave 6s ease-in-out infinite both;
}

.anim .box .row .it {
	animation: arrive 6s ease-in-out infinite both;
}

.anim .keys kbd {
	animation: press 6s ease-in-out infinite both;
}

@keyframes leave {
	0%, 30% { opacity: 1; transform: none; }
	42%, 92% { opacity: 0.12; transform: scale(0.6); }
	100% { opacity: 1; transform: none; }
}

@keyframes arrive {
	0%, 38% { opacity: 0; transform: translateY(-8px) scale(0.6); }
	50%, 92% { opacity: 1; transform: none; }
	100% { opacity: 0; }
}

@keyframes press {
	0%, 24% { transform: none; box-shadow: 0 3px 0 var(--gold-deep), 0 5px 10px rgba(0, 0, 0, 0.5); }
	28%, 34% { transform: translateY(3px); box-shadow: 0 0 0 var(--gold-deep), 0 0 18px rgba(242, 194, 91, 0.8); }
	40%, 100% { transform: none; box-shadow: 0 3px 0 var(--gold-deep), 0 5px 10px rgba(0, 0, 0, 0.5); }
}

@media (max-width: 420px) {
	.stack-fig {
		padding: 14px;
	}

	.stack-flow {
		grid-template-columns: 1fr;
	}

	.keys {
		flex-direction: row;
		justify-content: center;
	}

	.keys .arrow {
		transform: rotate(90deg);
	}
}

/* Features */

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 36px;
}

@media (max-width: 960px) {
	.grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	.grid-3 {
		grid-template-columns: 1fr;
	}
}

.feature {
	padding: 24px;
}

.feature .icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	border: 2px solid var(--gold);
	background: linear-gradient(180deg, #3a2a1a 0%, #1d140c 100%);
	box-shadow: 0 0 18px rgba(242, 194, 91, 0.25);
	margin-bottom: 16px;
}

.feature .icon svg {
	width: 28px;
	height: 28px;
	color: var(--gold);
}

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

/* Balance */

.guarantees {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 28px;
	margin-top: 28px;
	padding: 28px;
}

.guarantees li {
	margin: 0;
}

@media (max-width: 700px) {
	.guarantees {
		grid-template-columns: 1fr;
		padding: 22px;
	}
}

/* Network */

.steps {
	counter-reset: step;
	list-style: none;
	padding: 0;
	margin: 28px 0 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.steps li {
	counter-increment: step;
	position: relative;
	padding: 52px 18px 18px;
}

.steps li::before {
	content: counter(step);
	position: absolute;
	top: 14px;
	left: 18px;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	font: 900 1rem/1 var(--display);
	color: var(--ink);
	background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}

@media (max-width: 900px) {
	.steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.steps {
		grid-template-columns: 1fr;
	}
}

.versus {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 36px;
}

@media (max-width: 860px) {
	.versus {
		grid-template-columns: 1fr;
	}
}

.versus figure {
	margin: 0;
	padding: 18px;
}

.versus figure.win {
	border-color: rgba(92, 242, 234, 0.55);
	box-shadow: 0 0 40px rgba(92, 242, 234, 0.12), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.versus figcaption h3 {
	margin-bottom: 6px;
}

.versus figure:not(.win) figcaption h3 {
	color: var(--muted);
}

.versus figcaption p {
	margin: 0 0 14px;
	color: var(--muted);
}

.diagram {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	background: radial-gradient(ellipse at 50% 50%, #2e2113 0%, var(--wood) 45%, var(--ink) 100%);
}

.diagram text {
	font: 700 13px var(--body);
	fill: var(--text);
}

/* Network animation (8 s loop). Default styles are the final state, used as is with reduced motion. */

.net .zone,
.net .bench,
.net .link,
.net .lit {
	transform-box: fill-box;
	transform-origin: center;
}

.net .link {
	stroke-dasharray: 9 7;
}

.net .runner {
	opacity: 0;
}

.anim .net .zone,
.anim .net .bench,
.anim .net .lit,
.anim .net .link,
.anim .net .runner,
.anim .rad .lit {
	animation-duration: 8s;
	animation-iteration-count: infinite;
	animation-timing-function: ease-out;
	animation-fill-mode: both;
}

.anim .net .z1 { animation-name: z1; }
.anim .net .z2 { animation-name: z2; }
.anim .net .z3 { animation-name: z3; }
.anim .net .z4 { animation-name: z4; }
.anim .net .l2 { animation-name: l2, flow; animation-duration: 8s, 1s; animation-timing-function: ease-out, linear; }
.anim .net .l3 { animation-name: l3, flow; animation-duration: 8s, 1s; animation-timing-function: ease-out, linear; }
.anim .net .l4 { animation-name: l4, flow; animation-duration: 8s, 1s; animation-timing-function: ease-out, linear; }
.anim .net .c1 { animation-name: c1; }
.anim .net .c2 { animation-name: c2; }
.anim .net .c3 { animation-name: c3; }
.anim .net .c4 { animation-name: c4; }
.anim .net .c5 { animation-name: c4; }
.anim .net .runner { animation-name: run; animation-timing-function: ease-in-out; }
.anim .rad .lit { animation-name: radlit; }
.anim .rad .ring { animation: ring 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

@keyframes z1 { 0% { opacity: 0; transform: scale(0.4); } 8%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes z2 { 0%, 12% { opacity: 0; transform: scale(0.4); } 20%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes z3 { 0%, 24% { opacity: 0; transform: scale(0.4); } 32%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes z4 { 0%, 36% { opacity: 0; transform: scale(0.4); } 44%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes l2 { 0%, 18% { opacity: 0; } 24%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes l3 { 0%, 30% { opacity: 0; } 36%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes l4 { 0%, 42% { opacity: 0; } 48%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -16; } }
@keyframes c1 { 0%, 8% { opacity: 0; } 12%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes c2 { 0%, 20% { opacity: 0; } 24%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes c3 { 0%, 32% { opacity: 0; } 36%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes c4 { 0%, 44% { opacity: 0; } 48%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes radlit { 0%, 10% { opacity: 0; } 18%, 100% { opacity: 1; } }
@keyframes ring { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.03); opacity: 0.6; } }
@keyframes run {
	0%, 52% { opacity: 0; transform: translate(365px, 110px); }
	55% { opacity: 1; transform: translate(365px, 110px); }
	63% { transform: translate(330px, 140px); }
	72% { transform: translate(255px, 170px); }
	81% { transform: translate(170px, 120px); }
	89% { opacity: 1; transform: translate(112px, 128px); }
	92%, 100% { opacity: 0; transform: translate(112px, 128px); }
}

/* Multiplayer */

.install {
	padding: 26px;
}

.install ol {
	margin: 0 0 18px;
	padding-left: 1.4em;
}

.install li {
	margin-bottom: 10px;
}

.install li::marker {
	color: var(--gold);
	font-family: var(--display);
	font-weight: 900;
}

/* Comparison */

.table-wrap {
	margin-top: 28px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: var(--card);
	scrollbar-color: var(--gold-deep) rgba(12, 10, 8, 0.8);
}

table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	font-size: 0.95rem;
}

caption {
	text-align: left;
	padding: 14px 18px 0;
	color: var(--muted);
	font-size: 0.85rem;
}

th,
td {
	padding: 12px 14px;
	border-bottom: 1px solid rgba(242, 194, 91, 0.14);
	text-align: center;
	vertical-align: middle;
}

thead th {
	font: 700 0.85rem/1.3 var(--display);
	color: var(--gold);
	letter-spacing: 0.03em;
}

thead th a {
	color: var(--gold);
}

tbody th {
	text-align: left;
	font-weight: 600;
	color: var(--text);
	position: sticky;
	left: 0;
	background: #1f160e;
	min-width: 190px;
}

thead th:first-child {
	text-align: left;
	position: sticky;
	left: 0;
	background: #1f160e;
}

.us {
	background: rgba(92, 242, 234, 0.07);
}

thead .us {
	color: var(--cyan);
}

.yes {
	color: var(--cyan);
	font-weight: 800;
	font-size: 1.15rem;
}

.unk {
	color: var(--muted);
	font-weight: 700;
}

.tag {
	display: inline-block;
	margin-left: 6px;
	font: 800 0.65rem/1 var(--body);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink);
	background: var(--gold);
	border-radius: 4px;
	padding: 3px 5px;
	vertical-align: 0.15em;
}

.legend,
.source {
	color: var(--muted);
	font-size: 0.9rem;
	margin: 12px 0 0;
}

/* FAQ */

.faq {
	max-width: 860px;
	margin: 28px auto 0;
	display: grid;
	gap: 12px;
}

.faq details {
	padding: 0;
}

.faq summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 14px 20px;
	font-weight: 700;
	color: var(--text);
}

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

.faq summary::after {
	content: '';
	flex: none;
	width: 12px;
	height: 12px;
	border-right: 3px solid var(--gold);
	border-bottom: 3px solid var(--gold);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-top: -6px;
}

.faq details[open] summary::after {
	transform: rotate(225deg);
	margin-top: 6px;
}

.faq details[open] summary {
	color: var(--gold);
}

.faq details p {
	margin: 0;
	padding: 0 20px 18px;
	color: var(--muted);
}

/* Final call */

.final {
	text-align: center;
	padding: 56px 24px;
	background: radial-gradient(ellipse at 50% 40%, #3b2716 0%, var(--wood) 55%, rgba(12, 10, 8, 0.9) 100%);
	border: 2px solid var(--gold);
	border-radius: 20px;
	box-shadow: 0 0 60px rgba(242, 194, 91, 0.18), 0 24px 50px rgba(0, 0, 0, 0.6);
}

.final img {
	width: 104px;
	height: 104px;
	border-radius: 14%;
	margin-bottom: 18px;
}

.final p {
	font-size: 1.15rem;
	margin: 0 0 26px;
}

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

.btn-discord {
	color: #fff;
	background: #4752c4;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.btn-discord:hover {
	color: #fff;
	background: #3c45a5;
	transform: translateY(-2px);
}

.discord-text {
	margin: 22px auto 0 !important;
	max-width: 52ch;
	font-size: 0.98rem !important;
	color: var(--muted);
}

/* Footer */

.site-footer {
	border-top: 1px solid var(--line);
	padding: 32px 0 40px;
	color: var(--muted);
	font-size: 0.92rem;
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	align-items: center;
	justify-content: space-between;
}

.site-footer p {
	margin: 0;
}

.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-footer a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Changelog page */

.changelog {
	max-width: 860px;
	margin: 0 auto;
	padding: 48px 0 24px;
}

.release {
	padding: 26px 26px 12px;
	margin: 0 0 22px;
}

.release h2 {
	font-size: clamp(1.4rem, 4vw, 1.9rem);
	margin-bottom: 4px;
}

.release time {
	display: block;
	color: var(--cyan);
	font-weight: 700;
	margin-bottom: 14px;
}

.release h3 {
	font: 800 0.8rem/1.4 var(--body);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--cyan);
	text-shadow: none;
	margin: 18px 0 8px;
}

.release ul {
	padding-left: 1.2em;
	margin: 0 0 12px;
}

.release li {
	margin-bottom: 10px;
	color: var(--muted);
}

.release li strong {
	color: var(--text);
}

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

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

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

	.embers {
		display: none;
	}
}

.nowrap {
	white-space: nowrap;
}
