/* EvrenselKO landing page */

:root {
	--bg: #07090f;
	--bg-2: #0b0f18;
	--surface: rgba(255, 255, 255, 0.035);
	--surface-2: rgba(255, 255, 255, 0.06);
	--line: rgba(255, 255, 255, 0.08);
	--line-strong: rgba(255, 255, 255, 0.16);
	--text: #ecebe8;
	--muted: #9aa3b2;
	--faint: #6b7383;
	--gold: #e7b55e;
	--gold-hi: #f6d58a;
	--gold-lo: #c8862e;
	--karus: #e0524a;
	--elmorad: #4a92ff;
	--ok: #4cd08a;
	--radius: 16px;
	--radius-sm: 10px;
	--wrap: 1160px;
	--display: "Cinzel", "Times New Roman", serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
	color-scheme: dark;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.65 var(--body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Fine grain over everything, for depth on flat dark areas. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 100;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }

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

.skip {
	position: absolute;
	left: 16px;
	top: -48px;
	z-index: 200;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--gold);
	color: #1a1205;
	font-weight: 600;
	text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap--narrow { --wrap: 780px; }

.eyebrow {
	font: 600 12px/1 var(--body);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 50px;
	padding: 0 24px;
	border-radius: 999px;
	font: 600 15px/1 var(--body);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn--primary {
	color: #1b1206;
	background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
	box-shadow: 0 10px 30px -10px rgba(231, 181, 94, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(231, 181, 94, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(231, 181, 94, 0.5); background: rgba(231, 181, 94, 0.08); transform: translateY(-2px); }

/* Navigation */
.nav {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
	border-bottom: 1px solid transparent;
}
.nav.is-solid {
	background: rgba(7, 9, 15, 0.72);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom-color: var(--line);
}
.nav__inner {
	width: min(var(--wrap), 100% - 32px);
	margin-inline: auto;
	height: 68px;
	display: flex;
	align-items: center;
	gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 28px; height: 28px; filter: drop-shadow(0 4px 12px rgba(231, 181, 94, 0.35)); }
.brand__word { font: 700 19px/1 var(--display); letter-spacing: 0.06em; }
.brand__word span { color: var(--gold); }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a {
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__end { display: flex; align-items: center; gap: 12px; }

.status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 500;
	white-space: nowrap;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status.is-online { color: var(--text); }
.status.is-online .status__dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(76, 208, 138, 0.6); animation: ping 2s infinite; }
.status.is-soon .status__dot { background: var(--gold); }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(76, 208, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 208, 138, 0); } }

.nav__menu {
	display: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}
.nav__menu span { width: 16px; height: 1.5px; background: var(--text); transition: transform 0.25s ease; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Hero */
.hero {
	position: relative;
	min-height: 100svh;
	display: grid;
	place-items: center;
	overflow: hidden;
	isolation: isolate;
	padding: 120px 0 96px;
	background:
		radial-gradient(1200px 600px at 50% 110%, rgba(231, 181, 94, 0.14), transparent 60%),
		radial-gradient(700px 500px at 12% 20%, rgba(224, 82, 74, 0.12), transparent 60%),
		radial-gradient(700px 500px at 88% 25%, rgba(74, 146, 255, 0.12), transparent 60%),
		linear-gradient(180deg, #05070c 0%, var(--bg) 100%);
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow {
	position: absolute;
	left: 50%;
	top: 46%;
	width: min(900px, 120vw);
	aspect-ratio: 1;
	translate: -50% -50%;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(231, 181, 94, 0.12), transparent 70%);
	filter: blur(10px);
}
.hero__inner { width: min(900px, 100% - 32px); text-align: center; display: grid; justify-items: center; gap: 22px; }
.hero__title {
	font: 700 clamp(56px, 11vw, 132px)/0.95 var(--display);
	letter-spacing: 0.02em;
	background: linear-gradient(180deg, #fff 0%, #e6e1d6 55%, #9c968a 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.hero__title span {
	background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
	-webkit-background-clip: text;
	background-clip: text;
}
.hero__lead { max-width: 620px; color: #c7cbd3; font-size: clamp(16px, 2.1vw, 19px); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero__facts {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: min(720px, 100%);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.025);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.hero__facts li { padding: 16px 12px; display: grid; gap: 2px; }
.hero__facts li + li { border-left: 1px solid var(--line); }
.hero__facts strong { font: 600 20px/1.2 var(--display); color: var(--gold-hi); }
.hero__facts span { color: var(--muted); font-size: 12.5px; }
.hero__scroll {
	position: absolute;
	bottom: 28px;
	left: 50%;
	translate: -50% 0;
	width: 26px;
	height: 42px;
	border: 1.5px solid var(--line-strong);
	border-radius: 999px;
}
.hero__scroll span {
	position: absolute;
	left: 50%;
	top: 8px;
	width: 3px;
	height: 8px;
	translate: -50% 0;
	border-radius: 3px;
	background: var(--gold);
	animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Sections */
.section { position: relative; padding: clamp(80px, 11vw, 136px) 0; }
.section--tint {
	background:
		linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018) 20%, rgba(255, 255, 255, 0.018) 80%, transparent),
		var(--bg);
}
.section__head { display: grid; gap: 14px; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; justify-items: center; }
.section__head h2 { font: 600 clamp(30px, 4.6vw, 48px)/1.12 var(--display); letter-spacing: 0.01em; }
.section__lead { color: var(--muted); font-size: 17px; }
.subhead { font: 600 22px/1.2 var(--display); margin: clamp(56px, 8vw, 88px) 0 24px; text-align: center; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
	position: relative;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
	transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(231, 181, 94, 0.35); }
.card__icon {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	margin-bottom: 18px;
	border-radius: 12px;
	color: var(--gold);
	background: rgba(231, 181, 94, 0.1);
	border: 1px solid rgba(231, 181, 94, 0.22);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font: 600 18px/1.3 var(--body); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* Video */
.video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid var(--line-strong);
	background: radial-gradient(600px 300px at 50% 50%, rgba(231, 181, 94, 0.08), transparent 70%), #0a0d14;
	box-shadow: var(--shadow), 0 0 0 1px rgba(231, 181, 94, 0.06);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__empty,
.video__poster { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.video__empty svg { width: 54px; height: 54px; padding: 16px; border-radius: 50%; fill: var(--gold); background: rgba(231, 181, 94, 0.1); border: 1px solid rgba(231, 181, 94, 0.25); }
.video__poster { border: 0; padding: 0; cursor: pointer; background-size: cover; background-position: center; }
.video__poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55)); }
.video__play {
	position: relative;
	width: 84px;
	height: 84px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
	box-shadow: 0 0 0 10px rgba(231, 181, 94, 0.18), 0 20px 40px -10px rgba(0, 0, 0, 0.7);
	transition: transform 0.25s ease;
}
.video__play svg { width: 30px; height: 30px; fill: #1b1206; margin-left: 4px; }
.video__poster:hover .video__play { transform: scale(1.07); }

/* Nations */
.nations { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.nation {
	--tone: var(--karus);
	display: flex;
	gap: 20px;
	align-items: center;
	padding: 28px;
	border-radius: var(--radius);
	border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
	background:
		radial-gradient(400px 200px at 0% 0%, color-mix(in srgb, var(--tone) 18%, transparent), transparent 70%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nation:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -24px color-mix(in srgb, var(--tone) 70%, transparent); }
.nation--elmorad { --tone: var(--elmorad); }
.nation__crest { width: 76px; height: 76px; flex: none; filter: drop-shadow(0 10px 20px color-mix(in srgb, var(--tone) 45%, transparent)); }
.nation h3 { font: 600 26px/1.2 var(--display); color: color-mix(in srgb, var(--tone) 75%, #fff); margin-bottom: 6px; }
.nation p { color: var(--muted); font-size: 15px; }
.nations__vs { font: 700 18px/1 var(--display); color: var(--faint); letter-spacing: 0.1em; }

/* Classes */
.classes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.class {
	padding: 24px 22px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--surface);
	transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.class:hover { border-color: rgba(231, 181, 94, 0.35); background: rgba(231, 181, 94, 0.05); transform: translateY(-3px); }
.class svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 14px; }
.class h4 { font: 600 17px/1.3 var(--display); margin-bottom: 6px; }
.class p { color: var(--muted); font-size: 14.5px; }

/* Feature */
.feature {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 32px;
	align-items: center;
	margin-top: clamp(56px, 8vw, 88px);
	padding: clamp(28px, 4vw, 48px);
	border-radius: 24px;
	border: 1px solid var(--line);
	background:
		radial-gradient(600px 300px at 100% 100%, rgba(231, 181, 94, 0.1), transparent 70%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.feature__text { display: grid; gap: 14px; }
.feature__text h3 { font: 600 clamp(26px, 3.4vw, 36px)/1.15 var(--display); }
.feature__text p { color: var(--muted); }
.feature__art { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0b0f17; }
.feature__art svg { width: 100%; height: auto; }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: #cfd3da; font-size: 15px; }
.ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: rgba(231, 181, 94, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 6 9.5l4.5-5' fill='none' stroke='%23e7b55e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Rankings */
.board {
	border-radius: 20px;
	border: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
	overflow: hidden;
	box-shadow: var(--shadow);
}
.board__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
}
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.tabs button {
	height: 34px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font: 600 14px/1 var(--body);
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}
.tabs button[aria-selected="true"] { color: #1b1206; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); }
.board__nations { display: flex; gap: 8px; }
.pill { display: inline-flex; gap: 8px; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); }
.pill b { color: var(--text); font-weight: 600; }
.pill--karus { border-color: color-mix(in srgb, var(--karus) 40%, transparent); }
.pill--elmorad { border-color: color-mix(in srgb, var(--elmorad) 40%, transparent); }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th {
	padding: 12px 16px;
	text-align: left;
	color: var(--faint);
	font: 600 11.5px/1 var(--body);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--line);
}
.table td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.table tbody tr { transition: background 0.2s ease; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rank {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	font: 700 13px/1 var(--body);
	color: var(--muted);
	background: rgba(255, 255, 255, 0.04);
}
.rank--1 { color: #1b1206; background: linear-gradient(180deg, #ffe39b, #d29a37); }
.rank--2 { color: #14171c; background: linear-gradient(180deg, #eef1f5, #a7afba); }
.rank--3 { color: #1b0f07; background: linear-gradient(180deg, #f2c09a, #a8653a); }
.who { font-weight: 600; }
.who small { display: block; color: var(--faint); font-weight: 400; font-size: 12.5px; }
.nation-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.nation-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--karus); }
.nation-tag--elmorad::before { background: var(--elmorad); }

/* Tables only once there is data; until then the empty state stands alone. */
.board:not(.has-data) .board__panel,
.board:not(.has-data) .tabs { display: none; }
.board:not(.has-data) .board__bar { border-bottom: 0; padding: 0; }
.board__empty[hidden] { display: none; }
.board__empty { display: grid; justify-items: center; gap: 14px; padding: 56px 20px 64px; text-align: center; color: var(--muted); }
.board__empty svg { width: 52px; height: 52px; padding: 13px; color: var(--gold); border-radius: 16px; background: rgba(231, 181, 94, 0.08); border: 1px solid rgba(231, 181, 94, 0.22); }
.board__empty strong { color: var(--text); }
.board__foot { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; text-align: right; }

/* Join */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step {
	position: relative;
	padding: 26px 22px 24px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--surface);
}
.step__n {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin-bottom: 16px;
	border-radius: 50%;
	font: 700 16px/1 var(--display);
	color: var(--gold-hi);
	border: 1px solid rgba(231, 181, 94, 0.4);
	background: rgba(231, 181, 94, 0.08);
}
.step h3 { font: 600 17px/1.3 var(--body); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step p a { color: var(--gold); }
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.dl {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border-radius: var(--radius);
	border: 1px solid var(--line-strong);
	background: rgba(255, 255, 255, 0.03);
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.dl svg { width: 28px; height: 28px; flex: none; color: var(--text); }
.dl b { display: block; font-size: 16px; }
.dl small { color: var(--muted); font-size: 13px; }
.dl:not(.is-soon):hover { transform: translateY(-2px); border-color: rgba(231, 181, 94, 0.5); }
.dl--accent { border-color: rgba(231, 181, 94, 0.4); background: rgba(231, 181, 94, 0.07); }
.dl--accent svg { color: var(--gold); }
.dl.is-soon { cursor: default; opacity: 0.7; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--surface);
	transition: border-color 0.2s ease, background 0.2s ease;
}
.faq details[open] { border-color: rgba(231, 181, 94, 0.3); background: rgba(231, 181, 94, 0.035); }
.faq summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 54px 18px 20px;
	position: relative;
	font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 1.6px solid var(--gold);
	border-bottom: 1.6px solid var(--gold);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* Footer */
.footer { padding: 48px 0 56px; border-top: 1px solid var(--line); background: #05070b; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer__note { max-width: 560px; margin-top: 14px; color: var(--faint); font-size: 13px; }
.footer__note a { color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer__links a:hover { color: var(--text); }

/* Account pages (register.html, confirm.html) */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.auth {
	position: relative;
	flex: 1;
	isolation: isolate;
	overflow: hidden;
	padding: 116px 0 72px;
	background:
		radial-gradient(900px 500px at 50% 115%, rgba(231, 181, 94, 0.12), transparent 60%),
		radial-gradient(600px 420px at 8% 18%, rgba(224, 82, 74, 0.1), transparent 60%),
		radial-gradient(600px 420px at 92% 22%, rgba(74, 146, 255, 0.1), transparent 60%),
		linear-gradient(180deg, #05070c 0%, var(--bg) 100%);
}
.auth [hidden] { display: none !important; }
.auth__glow {
	position: absolute;
	left: 50%;
	top: 38%;
	width: min(760px, 120vw);
	aspect-ratio: 1;
	translate: -50% -50%;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(231, 181, 94, 0.09), transparent 70%);
	pointer-events: none;
}
.auth__inner { width: min(560px, 100% - 32px); margin-inline: auto; }
.auth__head { display: grid; gap: 12px; justify-items: center; margin-bottom: 28px; text-align: center; }
.auth__head h1 { font: 600 clamp(32px, 6vw, 44px)/1.12 var(--display); letter-spacing: 0.01em; }
.auth__lead { max-width: 440px; color: var(--muted); }
.auth__card {
	padding: clamp(20px, 5vw, 36px);
	border-radius: 20px;
	border: 1px solid var(--line-strong);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: var(--shadow), 0 0 0 1px rgba(231, 181, 94, 0.05);
}
.auth__note { margin-top: 22px; color: var(--faint); font-size: 14px; text-align: center; }
.auth__note a,
.state__small a { color: var(--gold); }

.form { display: grid; gap: 18px; }
.form--left { width: 100%; margin-top: 8px; text-align: left; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; }
.form__span { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field label { font-size: 14px; font-weight: 600; }
.field__hint { color: var(--faint); font-size: 12.5px; line-height: 1.5; }
.field__error { color: #ff9d94; font-size: 13px; line-height: 1.45; }
.input {
	width: 100%;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	border-radius: 12px;
	border: 1px solid var(--line-strong);
	background: rgba(0, 0, 0, 0.35);
	color: var(--text);
	font: 500 16px/1 var(--body); /* 16px keeps iOS from zooming in on focus */
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.input::placeholder { color: var(--faint); }
.input:hover { border-color: rgba(255, 255, 255, 0.24); }
.input:focus { outline: none; border-color: rgba(231, 181, 94, 0.7); box-shadow: 0 0 0 3px rgba(231, 181, 94, 0.16); background: rgba(0, 0, 0, 0.45); }
.input[aria-invalid="true"] { border-color: rgba(255, 107, 97, 0.75); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 107, 97, 0.16); }
.input--code { text-transform: uppercase; letter-spacing: 0.08em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.input--code::placeholder { letter-spacing: 0.04em; }
.captcha { min-height: 65px; display: flex; justify-content: center; max-width: 100%; overflow: hidden; }

.alert { padding: 12px 14px; border-radius: 12px; border: 1px solid; font-size: 14px; line-height: 1.5; text-align: left; }
.alert--error { color: #ffd6d1; background: rgba(224, 82, 74, 0.1); border-color: rgba(224, 82, 74, 0.38); }
.alert--ok { color: #d3f5e2; background: rgba(76, 208, 138, 0.08); border-color: rgba(76, 208, 138, 0.35); }

button.btn { border: 0; cursor: pointer; }
button.btn--ghost { border: 1px solid var(--line-strong); }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { cursor: progress; opacity: 0.7; transform: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(27, 18, 6, 0.25); border-top-color: #1b1206; animation: spin 0.8s linear infinite; }
.btn:not([aria-busy="true"]) .spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.state { display: grid; gap: 14px; justify-items: center; text-align: center; }
.state:focus { outline: none; }
.state p { color: var(--muted); }
.state h2,
.state__title { font: 600 clamp(24px, 5vw, 30px)/1.2 var(--display); }
.state__small { font-size: 14px; }
.state__icon { width: 64px; height: 64px; padding: 16px; border-radius: 18px; color: var(--gold); background: rgba(231, 181, 94, 0.08); border: 1px solid rgba(231, 181, 94, 0.25); }
.state__icon--warn { color: #ff9d94; background: rgba(224, 82, 74, 0.08); border-color: rgba(224, 82, 74, 0.3); }
.state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.state__actions svg { fill: none; }
.loader { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(231, 181, 94, 0.18); border-top-color: var(--gold); animation: spin 0.9s linear infinite; }

@media (max-width: 560px) {
	.auth { padding: 96px 0 56px; }
	.form__row { grid-template-columns: 1fr; gap: 7px; }
	.form__row .field + .field { margin-top: 11px; }
	.state__actions { flex-direction: column; align-items: stretch; }
	.state__actions .btn { justify-content: center; }
}

/* Scroll reveal: only hidden once the script has marked the page as able to reveal. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
	.classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.nav__menu { display: inline-flex; }
	.nav__links {
		position: fixed;
		inset: 68px 0 auto;
		flex-direction: column;
		gap: 2px;
		padding: 10px 16px 18px;
		background: rgba(7, 9, 15, 0.96);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		border-bottom: 1px solid var(--line);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}
	.nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
	.nav__links a { padding: 12px 14px; font-size: 16px; }
	.nav__end { margin-left: auto; }
	.cards { grid-template-columns: 1fr; }
	.nations { grid-template-columns: 1fr; }
	.nations__vs { justify-self: center; }
	.feature { grid-template-columns: 1fr; }
	.downloads { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.status [data-status-text] { display: none; }
	.status { padding: 0 10px; }
	.hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero__facts li:nth-child(3) { border-left: 0; }
	.hero__facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
	.classes,
	.steps { grid-template-columns: 1fr; }
	.nation { flex-direction: column; align-items: flex-start; }
	.hide-sm { display: none; }
	.table td,
	.table th { padding-inline: 12px; }
	.btn { height: 48px; padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}
