/* Mistworld — Lineage II inspired theme: dark stone, aged gold, cold mist. */

:root {
	--bg: #07090d;
	--bg-raised: #0d1118;
	--panel: rgba(16, 20, 28, 0.88);
	--panel-solid: #111620;
	--panel-hover: #161c28;
	--line: rgba(203, 168, 95, 0.28);
	--line-strong: rgba(203, 168, 95, 0.55);
	--gold: #cba85f;
	--gold-bright: #f0d48a;
	--gold-dim: #8a6d3b;
	--mist: #9fc2d6;
	--mist-dim: #5f7f92;
	--text: #ddd6c6;
	--text-bright: #f3eee2;
	--muted: #8e897d;
	--green: #7cc480;
	--red: #d0614f;
	--amber: #e0a94e;
	--radius: 4px;
	--shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
	/* two families only, both with full Cyrillic: Philosopher for titles, Golos Text for everything people read */
	--font-display: "Philosopher", Georgia, serif;
	--font-heading: "Philosopher", Georgia, serif;
	--font-body: "Golos Text", "Segoe UI", system-ui, sans-serif;
	--wrap: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(1200px 600px at 15% -10%, rgba(95, 127, 146, 0.12), transparent 60%),
		radial-gradient(900px 500px at 100% 0%, rgba(203, 168, 95, 0.06), transparent 60%),
		var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--gold-bright); text-decoration: none; transition: color .15s; }
a:hover { color: #fff3cf; }

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

code { font-family: Consolas, "Courier New", monospace; font-size: .9em; padding: 1px 6px; border-radius: 3px; background: rgba(159, 194, 214, .1); color: var(--mist); }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-bright); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

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

.center { text-align: center; margin-inline: auto; }
p.center:last-child { margin-bottom: 0; }

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

/* ---------- top status bar ---------- */
.topbar {
	background: #05070a;
	border-bottom: 1px solid rgba(203, 168, 95, 0.15);
	font-size: .85rem;
	color: var(--muted);
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; padding: 7px 0; }
.topbar-group { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.topbar strong { color: var(--text); font-weight: 500; }

.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; margin-left: 4px; }
.lang-switch a { padding: 2px 11px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.lang-switch a + a { border-left: 1px solid var(--line-strong); }
.lang-switch a:hover { color: var(--gold-bright); }
.lang-switch a.active { background: rgba(203, 168, 95, .18); color: var(--gold-bright); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--muted); }
.dot.on { background: var(--green); box-shadow: 0 0 8px rgba(124, 196, 128, .8); }
.dot.off { background: var(--red); box-shadow: 0 0 8px rgba(208, 97, 79, .6); }

/* ---------- header / navigation ---------- */
.site-header {
	position: sticky; top: 0; z-index: 20;
	background: linear-gradient(180deg, rgba(10, 13, 19, .97), rgba(10, 13, 19, .9));
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text-bright); flex-shrink: 0; }
.brand img { width: auto; height: 52px; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .08em; background: linear-gradient(180deg, #f6e3a6, #cba85f 55%, #8a6d3b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand:hover { color: var(--text-bright); }

.nav { display: flex; gap: 4px; margin-left: 18px; align-items: center; }
.nav a {
	position: relative;
	font-family: var(--font-heading);
	font-size: 1.12rem;
	font-weight: 600;
	color: var(--text);
	padding: 8px 14px;
	letter-spacing: .03em;
	white-space: nowrap;
}
.nav a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	transform: scaleX(0); transition: transform .2s;
}
.nav a:hover, .nav a.active { color: var(--gold-bright); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; margin-left: auto; }
.header-actions form { margin: 0; }
.header-top { display: block; line-height: 0; border-radius: 4px; overflow: hidden; opacity: .9; transition: opacity .2s; }
.header-top:hover { opacity: 1; }
.header-top img { height: 28px; width: auto; display: block; }
/* status bar: after RU/ENG; on wide screens in the right corner of the bar, outside the 1180px column */
.topbar { position: relative; }
.header-top--bar img { height: 40px; }
@media (min-width: 1440px) {
	.header-top--bar { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
}

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--gold); border-radius: var(--radius); padding: 7px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px 0; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; letter-spacing: .05em;
	padding: 10px 22px;
	border-radius: var(--radius);
	border: 1px solid var(--gold);
	color: #1a1309;
	background: linear-gradient(180deg, #f3dc9c 0%, #cba85f 48%, #9c7a3f 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 14px rgba(203, 168, 95, .25);
	cursor: pointer;
	transition: filter .15s, transform .15s, box-shadow .15s;
	text-align: center;
	line-height: 1.2;
}
.btn:hover { filter: brightness(1.08); color: #1a1309; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 20px rgba(203, 168, 95, .35); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: rgba(203, 168, 95, .06); color: var(--gold-bright); box-shadow: none; border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(203, 168, 95, .14); color: #fff3cf; box-shadow: none; }
.btn-discord { background: #5865f2; border-color: #7983f5; color: #fff; box-shadow: none; }
.btn-discord:hover { color: #fff; box-shadow: 0 6px 20px rgba(88, 101, 242, .4); }
.btn-discord svg { flex: none; }
.btn-telegram { background: #229ed9; border-color: #4cb3e4; color: #fff; box-shadow: none; }
.btn-telegram:hover { color: #fff; box-shadow: 0 6px 20px rgba(34, 158, 217, .4); }
.btn-telegram svg { flex: none; }
/* in the full header there is no room for their names: icons only (the name stays for screen readers and the tooltip) */
.btn-social { padding: 6px 10px; }
.btn-social .social-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-small { padding: 6px 14px; font-size: .95rem; }
.btn-large { padding: 14px 30px; font-size: 1.2rem; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; filter: grayscale(.6); }
.btn-link { background: none; border: none; color: var(--muted); padding: 0; font: inherit; cursor: pointer; }
.btn-link:hover { color: var(--gold-bright); }

/* ---------- hero ---------- */
.hero {
	position: relative;
	min-height: min(78vh, 700px);
	display: flex; align-items: center;
	overflow: hidden;
	/* painted scene (the elf and the castle on the right) + a violet shade on the left for the text,
	   a fade into the page at the bottom and golden motes / petals on top */
	background:
		linear-gradient(180deg, rgba(7, 9, 13, 0) 72%, var(--bg) 100%),
		linear-gradient(90deg, rgba(14, 9, 32, .9) 0%, rgba(14, 9, 32, .72) 28%, rgba(14, 9, 32, .3) 46%, rgba(14, 9, 32, 0) 60%),
		url("../img/hero-fx.svg") right center / cover no-repeat,
		url("../img/hero.webp") 45% 30% / cover no-repeat,
		#2a1f45;
	border-bottom: 1px solid var(--line);
}
@media (max-width: 1400px) {
	.hero { background-image:
		linear-gradient(180deg, rgba(7, 9, 13, 0) 72%, var(--bg) 100%),
		linear-gradient(90deg, rgba(14, 9, 32, .9) 0%, rgba(14, 9, 32, .72) 28%, rgba(14, 9, 32, .3) 46%, rgba(14, 9, 32, 0) 60%),
		url("../img/hero-fx.svg"), url("../img/hero-1200.webp"); }
}
.hero::before, .hero::after {
	content: ""; position: absolute; left: -20%; right: -20%; height: 180px; pointer-events: none;
	background: radial-gradient(50% 50% at 50% 50%, rgba(226, 214, 240, .14), transparent 70%);
	filter: blur(8px);
	animation: drift 38s linear infinite alternate;
}
.hero::before { bottom: 18%; }
.hero::after { bottom: 4%; animation-duration: 52s; animation-direction: alternate-reverse; opacity: .8; }
@media (max-width: 860px) {
	/* the text covers the whole width here: shade evenly instead of from the left */
	.hero {
		background:
			linear-gradient(180deg, rgba(14, 9, 32, .55), rgba(14, 9, 32, .72) 70%, var(--bg)),
			url("../img/hero-fx.svg") right center / cover no-repeat,
			url("../img/hero-mobile.webp") 25% top / cover no-repeat,
			#2a1f45;
	}
}
@keyframes drift { from { transform: translateX(-8%); } to { transform: translateX(8%); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }

.hero-content { position: relative; z-index: 1; padding: 70px 0 90px; max-width: 640px; }
.hero-emblem { width: 150px; margin: 0 0 10px -6px; filter: drop-shadow(0 6px 22px rgba(0,0,0,.55)); }
.hero-title {
	font-family: var(--font-display);
	font-size: clamp(2.8rem, 8vw, 5.4rem);
	line-height: 1;
	margin: 0 0 12px;
	letter-spacing: .06em;
	background: linear-gradient(180deg, #fff1c4 0%, #e3c27a 45%, #9a7535 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .7));
}
.hero-logo { margin: 0 0 18px -4px; line-height: 0; }
.hero-logo img { width: min(440px, 86%); height: auto; filter: drop-shadow(0 4px 18px rgba(8, 4, 24, .75)); }
.hero-slogan { font-family: var(--font-heading); font-size: clamp(1.3rem, 2.6vw, 1.75rem); color: #d3c8ee; margin-bottom: 18px; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.hero-text { font-size: 1.1rem; color: var(--text); max-width: 540px; text-shadow: 0 2px 10px rgba(0,0,0,.9); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.hero-badges .badge, .badge {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
	padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 30px;
	color: var(--gold-bright); background: rgba(7, 9, 13, .6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* opening date + countdown in the hero */
.launch {
	display: inline-block; max-width: 100%;
	margin: 0 0 22px; padding: 14px 18px 16px;
	border: 1px solid var(--line-strong); border-radius: 8px;
	background: rgba(14, 14, 32, .5); box-shadow: var(--shadow);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.launch-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text); margin-bottom: 10px; }
.launch-title strong { color: var(--gold-bright); font-weight: 600; white-space: nowrap; }
.launch-timer { display: flex; gap: 10px; }
.launch-cell {
	min-width: 72px; padding: 6px 10px 8px; text-align: center;
	border: 1px solid var(--line); border-radius: 6px; background: rgba(20, 20, 42, .7);
}
.launch-num { display: block; font-size: 2.1rem; font-weight: 700; line-height: 1.15; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.launch-unit { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.launch [hidden] { display: none; }
.launch-done { font-family: var(--font-heading); font-size: 1.4rem; color: var(--green); }
.launch-cta { margin-top: 14px; }
.launch-cta p { margin: 8px 0 0; font-size: .92rem; color: var(--muted); max-width: 420px; }
@media (max-width: 520px) {
	.launch { display: block; padding: 12px; margin-bottom: 18px; }
	.launch-title { font-size: 1.05rem; margin-bottom: 8px; }
	.launch-cta { margin-top: 12px; }
	.launch-cta .btn { display: block; width: 100%; text-align: center; }
	/* ad visitors come on phones: logo, slogan, countdown and the sign-up button must fit the first screen */
	.hero-logo { margin-bottom: 10px; }
	.hero-logo img { width: min(250px, 70%); }
	.hero-slogan { font-size: 1.15rem; margin-bottom: 12px; }
	.launch-timer { gap: 6px; }
	.launch-cell { min-width: 0; flex: 1; padding: 6px 4px; }
	.launch-num { font-size: 1.6rem; }
}

/* ---------- page heading (inner pages) ---------- */
.page-head {
	position: relative;
	padding: 56px 0 40px;
	background:
		linear-gradient(180deg, rgba(14, 9, 32, .62), rgba(7, 9, 13, .85) 75%, var(--bg)),
		url("../img/hero-1200.webp") center 25% / cover no-repeat;
	border-bottom: 1px solid var(--line);
	text-align: center;
}
.page-head h1 { margin-bottom: 10px; text-shadow: 0 3px 18px rgba(0,0,0,.8); }
.page-head p { color: var(--mist); margin: 0 auto; max-width: 640px; font-size: 1.1rem; }

.ornament { height: 24px; background: url("../img/ornament.svg") center / contain no-repeat; margin: 14px auto; max-width: 400px; }

/* ---------- sections & panels ---------- */
.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 34px; }
.section-title h2 { margin-bottom: 4px; }
.section-title p { color: var(--muted); margin: 0; }

.panel {
	position: relative;
	background: linear-gradient(180deg, rgba(22, 27, 37, .92), rgba(13, 17, 24, .92));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
}
.panel::before {
	/* gilded corners */
	content: ""; position: absolute; inset: -1px; pointer-events: none; border-radius: var(--radius);
	background:
		linear-gradient(var(--gold), var(--gold)) top left / 18px 2px no-repeat,
		linear-gradient(var(--gold), var(--gold)) top left / 2px 18px no-repeat,
		linear-gradient(var(--gold), var(--gold)) top right / 18px 2px no-repeat,
		linear-gradient(var(--gold), var(--gold)) top right / 2px 18px no-repeat,
		linear-gradient(var(--gold), var(--gold)) bottom left / 18px 2px no-repeat,
		linear-gradient(var(--gold), var(--gold)) bottom left / 2px 18px no-repeat,
		linear-gradient(var(--gold), var(--gold)) bottom right / 18px 2px no-repeat,
		linear-gradient(var(--gold), var(--gold)) bottom right / 2px 18px no-repeat;
	opacity: .8;
}
.panel-title {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	font-family: var(--font-heading); font-size: 1.35rem; color: var(--gold-bright);
	margin: -4px 0 16px; padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}
.panel-title small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-weight: 400; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

/* ---------- stat counters ---------- */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.counter {
	text-align: center;
	padding: 20px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: radial-gradient(120% 120% at 50% 0%, rgba(203, 168, 95, .1), rgba(13, 17, 24, .9) 60%);
}
.counter-value { font-family: var(--font-heading); font-size: 2.3rem; font-weight: 700; color: var(--gold-bright); line-height: 1.1; }
.counter-label { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.counter.live .counter-value { color: var(--green); }

.strip { margin-top: -48px; position: relative; z-index: 2; }

/* ---------- rates ---------- */
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.rate {
	text-align: center; padding: 14px 8px;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: rgba(7, 9, 13, .5);
}
.rate-value { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; color: var(--gold-bright); line-height: 1.1; }
.rate-label { color: var(--muted); font-size: .9rem; }

/* ---------- news ---------- */
.news-item { padding: 20px 0; border-bottom: 1px solid rgba(203, 168, 95, .14); }
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: 2px 9px; border-radius: 2px; background: rgba(159, 194, 214, .12); color: var(--mist); border: 1px solid rgba(159, 194, 214, .3); }
.news-item h3 { margin-bottom: 6px; }
.news-item p { margin: 0; color: var(--text); }
.news-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.news-list li { position: relative; padding-left: 20px; color: var(--text); line-height: 1.5; }
.news-list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 6px rgba(203, 168, 95, .5); }

/* ---------- features ---------- */
.feature { text-align: center; padding: 28px 22px; }
.feature-icon { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--gold); }
.feature h3 { color: var(--gold-bright); margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th { font-family: var(--font-heading); font-size: 1.02rem; color: var(--gold); font-weight: 600; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid rgba(203, 168, 95, .1); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(203, 168, 95, .05); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.rank { width: 38px; color: var(--muted); font-family: var(--font-heading); font-weight: 700; }
tr:nth-child(1) td.rank { color: #f3d27a; }
tr:nth-child(2) td.rank { color: #cfd6dc; }
tr:nth-child(3) td.rank { color: #d39a62; }
.name { color: var(--text-bright); font-weight: 500; }
.sub { color: var(--muted); font-size: .88rem; }
.empty { color: var(--muted); text-align: center; padding: 18px 0; margin: 0; }

/* ---------- small elements ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; white-space: nowrap; }
.status.alive, .status.online { color: var(--green); }
.status.dead, .status.offline, .status.banned { color: var(--red); }
.status.unknown { color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(203, 168, 95, .1); }
.list li:last-child { border-bottom: 0; }

.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-size: .95rem; }
.bar { height: 10px; background: rgba(255, 255, 255, .05); border-radius: 5px; overflow: hidden; border: 1px solid rgba(203, 168, 95, .15); }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright)); border-radius: 5px; }
.bar-row .num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.castles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.castle { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: rgba(7, 9, 13, .45); }
.castle h4 { font-size: 1.25rem; margin-bottom: 6px; color: var(--gold-bright); }
.castle .owner { color: var(--text-bright); }
.castle .owner.none { color: var(--muted); font-style: italic; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs button {
	font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem;
	padding: 6px 14px; border-radius: var(--radius);
	border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
}
.tabs button[aria-pressed="true"], .tabs button:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(203, 168, 95, .08); }
.js [data-tab-panel][hidden] { display: none; }

/* ---------- files ---------- */
.file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(203, 168, 95, .12); }
.file:last-child { border-bottom: 0; padding-bottom: 0; }
.file:first-child { padding-top: 0; }
.file h3 { margin-bottom: 4px; font-size: 1.3rem; }
.file p { margin: 0 0 6px; color: var(--muted); }
.file-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--mist); }
.file-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 170px; }
.mirrors { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; font-size: .88rem; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { position: relative; padding-left: 74px; min-height: 56px; }
/* the number and the rotated diamond behind it are separate layers, so the digit stays upright */
.step::before {
	counter-increment: step; content: counter(step);
	position: absolute; left: 0; top: 0; width: 54px; height: 54px; z-index: 1;
	display: grid; place-items: center;
	font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--gold-bright);
	font-variant-numeric: lining-nums;
}
.step::after {
	content: ""; position: absolute; left: 0; top: 0; width: 54px; height: 54px;
	border: 1px solid var(--gold); transform: rotate(45deg) scale(.82);
	background: rgba(203, 168, 95, .08);
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0 0 8px; color: var(--text); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid rgba(203, 168, 95, .14); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 12px 30px 12px 0; position: relative; font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-bright); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; color: var(--gold); font-size: 1.5rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text); margin: 0 0 14px; }

/* ---------- forms ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-size: .92rem; color: var(--gold); letter-spacing: .03em; }
.field small { color: var(--muted); font-size: .85rem; }
input[type=text], input[type=password], input[type=email], input[type=number], textarea {
	width: 100%;
	font: inherit; font-size: 1rem;
	color: var(--text-bright);
	background: rgba(4, 6, 9, .75);
	border: 1px solid rgba(203, 168, 95, .3);
	border-radius: var(--radius);
	padding: 10px 12px;
	transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(203, 168, 95, .15); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.checkbox input { margin-top: 5px; accent-color: var(--gold); }
.checkbox input:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.btn:focus-visible, .tabs button:focus-visible, .nav a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 4px; }
.captcha { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.captcha-question { font-family: var(--font-body); font-variant-numeric: lining-nums tabular-nums; font-weight: 700; font-size: 1.3rem; color: var(--gold-bright); padding: 4px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); white-space: nowrap; }
.field[hidden] { display: none; }
.captcha-switch { justify-self: start; font-size: .85rem; text-decoration: underline; }

.alert { padding: 12px 16px; border-radius: var(--radius); border: 1px solid; margin-bottom: 18px; font-size: .97rem; }
.alert-error { border-color: rgba(208, 97, 79, .6); background: rgba(208, 97, 79, .1); color: #f2b6aa; }
.alert-success { border-color: rgba(124, 196, 128, .55); background: rgba(124, 196, 128, .09); color: #bfe6c1; }
.alert-info { border-color: rgba(159, 194, 214, .45); background: rgba(159, 194, 214, .08); color: #cfe1eb; }

/* ---------- cabinet ---------- */
.cabinet-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.cabinet-head h1 { margin: 0; }
.cabinet-head .sub { font-size: 1rem; }
.cabinet-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.drawer { margin-bottom: 18px; }
.drawer > summary { list-style: none; cursor: pointer; display: inline-flex; }
.drawer > summary::-webkit-details-marker { display: none; }
.drawer-body { margin-top: 14px; }
.drawer-row { margin-bottom: 24px; }
.drawer-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.drawer-buttons .btn[aria-expanded="true"] { outline: 1px solid var(--gold-bright); outline-offset: 2px; }
.drawer-panel { margin-bottom: 16px; }
.drawer-panel .sub { margin: 12px 0 0; }
.js .drawer-panel:not(.open) { display: none; }
.recovery-channel { padding: 14px 0 4px; }
.recovery-channel + .recovery-channel { border-top: 1px solid var(--line); margin-top: 14px; }
.recovery-channel > div:first-child { margin-bottom: 12px; }
.recovery-channel > div:first-child .sub { margin: 0 0 0 6px; }
.recovery-channel > .btn { margin-top: 12px; }

.account { margin-bottom: 22px; }
.account-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; justify-content: space-between; margin-bottom: 14px; }
.account-login { font-family: var(--font-heading); font-size: 1.6rem; color: var(--gold-bright); font-weight: 700; }
.account-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: .92rem; }
.account-facts strong { color: var(--text); font-weight: 500; }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }

.limit-meter { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.limit-meter .bar { width: 120px; }

/* ---------- forum ---------- */
textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.crumbs span:last-child:not([aria-hidden]) { color: var(--text); }
.forum-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.forum-head h1 { margin-bottom: 6px; overflow-wrap: anywhere; }
.forum-head h1 .tag { vertical-align: middle; font-family: var(--font-body); }
.forum-head p { margin: 0 0 4px; }
.forum-narrow { max-width: 860px; }
.forum-signed { margin: 14px 0 0; }
.forum-table td { padding-top: 12px; padding-bottom: 12px; }
.forum-name { font-family: var(--font-heading); font-size: 1.22rem; font-weight: 600; overflow-wrap: anywhere; }
.forum-table .tag { margin-right: 6px; vertical-align: 2px; }
.forum-last { width: 240px; font-size: .95rem; }
.forum-last a { overflow-wrap: anywhere; }
.forum-latest li { display: block; }
.forum-latest a { overflow-wrap: anywhere; }
tr.pinned { background: rgba(203, 168, 95, .04); }
.tag-muted { background: rgba(142, 137, 125, .12); color: var(--muted); border-color: rgba(142, 137, 125, .35); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 18px 0; }
.pager a, .pager .gap { min-width: 36px; padding: 4px 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.pager .gap { border-color: transparent; color: var(--muted); }
.pager a:hover, .pager a.current { border-color: var(--gold); color: var(--gold-bright); background: rgba(203, 168, 95, .1); }

.post { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; margin-bottom: 16px; scroll-margin-top: 90px; }
.post:target { border-color: var(--gold); }
.post-author { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-right: 18px; border-right: 1px solid rgba(203, 168, 95, .14); }
.post-author .name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--gold-bright); overflow-wrap: anywhere; }
.post-author .status { white-space: normal; }
.post-main { display: flex; flex-direction: column; min-width: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.post-number { margin-left: auto; color: var(--muted); }
.post-body { flex: 1; overflow-wrap: anywhere; }
.post-body blockquote { margin: 6px 0; padding: 6px 14px; border-left: 3px solid var(--gold-dim); background: rgba(203, 168, 95, .05); color: var(--muted); }
.post-body .post-img { display: inline-block; margin: 6px 0; }
.post-body .post-img img { max-width: 100%; max-height: 560px; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.post-video { position: relative; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; margin: 8px 0; }
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); background: #000; }
.editor-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 2px; }
.editor-tools .error { color: #f2b6aa; }
.post-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 14px; font-size: .92rem; }
.post-actions form { margin: 0; }
.post-actions .btn-link, .post-actions a { color: var(--muted); }
.post-actions .btn-link:hover, .post-actions a:hover { color: var(--gold-bright); }
.forum-head form { margin: 0; }
.btn-danger.btn-ghost { border-color: rgba(208, 97, 79, .55); color: #f2b6aa; background: rgba(208, 97, 79, .06); }
.post-actions .btn-danger:hover { color: var(--red); }

@media (max-width: 680px) {
	.post { grid-template-columns: 1fr; gap: 12px; }
	.post-author { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 0 0 10px; border-right: 0; border-bottom: 1px solid rgba(203, 168, 95, .14); }
}

/* ---------- site statistics (moderators) ---------- */
.stats-periods { margin: 0; }
.stats-block { margin-top: 24px; }
.stats-chart { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding: 6px 0 2px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.stats-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 2px; }
.stats-bar span { display: block; width: 100%; background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim)); border-radius: 2px 2px 0 0; }
.stats-bar:hover span { background: var(--mist); }
.stats-key { overflow-wrap: anywhere; min-width: 0; }

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

/* ---------- donation ---------- */
select {
	width: 100%; font: inherit; font-size: 1rem; color: var(--text-bright);
	background: rgba(4, 6, 9, .75); border: 1px solid rgba(203, 168, 95, .3); border-radius: var(--radius); padding: 10px 12px;
}
select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(203, 168, 95, .15); }
select option, select optgroup { background: var(--panel-solid); color: var(--text-bright); }
.donate-currencies { border: 0; padding: 0; margin: 0; }
.donate-bonuses { margin: 0; }
.donate-summary { font-size: 1.1rem; color: var(--gold-bright); min-height: 1.6em; margin: 0; }
.donate-summary.error { color: #f2b6aa; }

/* ---------- footer ---------- */
.site-footer {
	margin-top: 40px;
	border-top: 1px solid var(--line);
	background: linear-gradient(180deg, #090c11, #05070a);
	color: var(--muted);
	font-size: .92rem;
}
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; padding: 36px 0 20px; }
.site-footer h4 { color: var(--gold); font-size: 1.15rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--gold-bright); }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.footer-brand img { width: auto; height: 36px; }
/* toplist buttons: same height whatever size each toplist hands out */
.site-footer .footer-tops { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 4px 0 18px; }
.footer-tops-title { color: var(--muted); font-size: .85rem; }
.footer-tops img { height: 31px; width: auto; display: block; opacity: .85; }
.footer-tops a:hover img { opacity: 1; }
.footer-tops .top-pixel { width: 1px; height: 1px; opacity: 0; }
/* l2go.top "vercel-rainbow" button, same look as their embed.js draws */
.l2go-btn {
	position: relative; display: flex; width: 120px; height: 42px; padding: 1.5px; overflow: hidden; box-sizing: border-box;
	border-radius: 9px; background: #08090d; box-shadow: 0 0 16px rgba(0, 0, 0, .85); text-decoration: none; transition: transform .15s ease;
}
.l2go-btn:hover { transform: scale(1.04); }
.l2go-beam {
	position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
	background: conic-gradient(from 0deg, #ff0080, #7928ca, #0070f3, #00dfd8, #ff4b4b, #ff0080);
	animation: l2go-spin 3s linear infinite;
}
@keyframes l2go-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .l2go-beam { animation: none; } }
.l2go-face {
	position: relative; z-index: 1; width: 100%; height: 100%; box-sizing: border-box; padding: 2px 6px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: #090a10; border-radius: 7.5px; font-family: "Segoe UI", Roboto, Arial, sans-serif;
}
.l2go-title { font-size: 13px; font-weight: 900; color: #fff; letter-spacing: 1.5px; line-height: 1.1; }
.l2go-title span, .l2go-sub span { color: #00dfd8; }
.l2go-sub { font-size: 6.8px; font-weight: 800; color: #94a3b8; margin-top: 3px; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
.site-footer .footer-bottom { display: block; border-top: 1px solid rgba(203, 168, 95, .12); padding: 14px 0 22px; font-size: .82rem; text-align: center; color: var(--muted); }

/* ---------- prose (about / rules) ---------- */
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.quote { font-family: var(--font-heading); font-size: 1.45rem; color: var(--mist); text-align: center; max-width: 760px; margin: 0 auto; line-height: 1.4; }

/* ---------- error page ---------- */
.error-page { text-align: center; padding: 90px 0; }
.error-code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; background: linear-gradient(180deg, #fff1c4, #9a7535); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- responsive ---------- */
/* the full menu needs about 1160px: below that the header collapses into the burger */
@media (max-width: 1180px) {
	.js .nav-toggle { display: block; }
	.site-header .wrap { flex-wrap: wrap; min-height: 60px; }
	.js .nav, .js .header-actions { display: none; }
	.js .site-header.open .nav, .js .site-header.open .header-actions { display: flex; }
	.nav { flex-direction: column; align-items: stretch; width: 100%; margin: 0; padding-bottom: 8px; }
	.nav a { padding: 10px 4px; border-bottom: 1px solid rgba(203, 168, 95, .1); }
	.nav a::after { display: none; }
	.header-actions { width: 100%; padding-bottom: 14px; flex-wrap: wrap; }
	.btn-social { padding: 6px 14px; }
	.btn-social .social-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

@media (max-width: 1020px) {
	.layout-main { grid-template-columns: 1fr; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-2, .grid-3 { grid-template-columns: 1fr; }
	.site-footer .wrap { grid-template-columns: 1fr; }
	.file { grid-template-columns: 1fr; }
	.file-actions { min-width: 0; }
	.mirrors { justify-content: flex-start; }
}

@media (max-width: 520px) {
	body { font-size: 16px; }
	.grid-4 { grid-template-columns: 1fr; }
	.panel { padding: 18px 16px; }
	.hero-content { padding: 22px 0 70px; }
	.bar-row { grid-template-columns: 110px minmax(0, 1fr) 54px; gap: 8px; }
	.topbar .wrap { justify-content: center; }
	.counter-value { font-size: 1.9rem; }
	.hide-sm { display: none; }
}

/* ---- donation bonuses, starter packs, admin pages ---- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(208, 97, 79, .18); color: #f19a8a; border: 1px solid rgba(208, 97, 79, .45); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.muted-row { opacity: .55; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.row-actions form { margin: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 16px; }
.admin-form .field { margin-bottom: 0; }
.admin-form .checkbox { margin: 14px 0; }
.form-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.preview-result { font-size: 1.15rem; margin: 18px 0 6px; }
.preview-result strong { color: var(--gold-bright); }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92rem; }

.donate-bonuses { margin: 4px 0 14px; }
.donate-bonuses .news-list { margin: 6px 0; }
.donate-bonuses small { display: block; margin-top: 4px; }
.donate-breakdown { margin: -6px 0 14px; padding-left: 20px; color: var(--green); font-size: .92rem; }

.packs { margin: 8px 0 26px; }
.packs-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--gold-bright); margin: 0 0 12px; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pack-card { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.pack-image { margin: -4px -4px 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel-solid); }
.pack-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pack-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pack-head h3 { margin: 0; font-family: var(--font-heading); font-size: 1.2rem; color: var(--text); }
.pack-card .sub { margin: 0; }
.pack-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .95rem; }
.pack-items li::before { content: "◆"; color: var(--gold-dim); font-size: .7rem; margin-right: 8px; vertical-align: 2px; }
.pack-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.pack-price strong { font-size: 1.5rem; color: var(--gold-bright); }
.pack-sold { color: var(--green); margin: 0; }
.pack-buy { display: grid; gap: 8px; }
.pack-buy select { width: 100%; }

.pack-admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pack-admin { display: flex; align-items: center; gap: 14px; margin: 0; cursor: grab; }
.pack-admin.dragging { opacity: .4; outline: 1px dashed var(--gold); }
.pack-admin-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pack-admin-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.drag-handle { color: var(--gold-dim); font-size: 1.2rem; letter-spacing: -3px; user-select: none; }
.pack-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); flex: none; }
.pack-thumb-large { width: 240px; height: 135px; display: block; margin: 6px 0 10px; }
@media (max-width: 520px) {
	.pack-admin { flex-wrap: wrap; }
	.pack-thumb { display: none; }
}

/* what signing up before the launch gives: hero countdown block and the sign-up page */
.launch-offer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); max-width: 460px; }
.launch-offer-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--text-bright); margin-bottom: 6px; }
.launch-perks { list-style: none; margin: 0; padding: 0; font-size: .95rem; line-height: 1.45; }
.launch-perks li { position: relative; padding-left: 18px; margin: 4px 0; color: var(--text); }
.launch-perks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.launch-perks strong { color: var(--gold-bright); font-weight: 600; }
.register-offer { margin-bottom: 16px; }

/* early sign-up gift in the cabinet */
.early-gift { margin: 0 0 18px; border-color: var(--gold-dim); }
.early-gift-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.early-items { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 10px 0 14px; padding: 0; }
.early-items li { padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(203, 168, 95, .08); }
.preorders .inline-form { padding: 10px 0; border-top: 1px solid var(--line); align-items: flex-end; }
.preorders .inline-form:first-of-type { border-top: 0; }

/* home: how to start in four steps, links to the community */
.start-steps { list-style: none; margin: 0; padding: 0; }
.start-steps li { position: relative; padding-top: 22px; }
.start-steps h3 { font-size: 1.15rem; color: var(--gold-bright); }
.start-steps p { margin: 0; color: var(--muted); }
.start-num {
	display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 10px;
	border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--font-heading); font-weight: 700; color: var(--gold-bright);
}
.section-more { margin: 22px 0 0; }
.community { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* account panel balance on the top-up page */
.balance { border-color: var(--gold-dim); }
.balance-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.balance-value { font-family: var(--font-heading); font-size: 1.15rem; color: var(--muted); }
.balance-value strong { font-size: 1.9rem; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.balance .inline-form { align-items: flex-end; margin: 6px 0 10px; }
.balance .drawer-body td { padding: 6px 10px; }

/* game item icons (static/img/items) in item lists: the early gift, packs, the balance */
.item-icon { width: 32px; height: 32px; flex-shrink: 0; vertical-align: middle; border: 1px solid rgba(0, 0, 0, .6); border-radius: 3px;
	box-shadow: 0 0 0 1px var(--line); image-rendering: auto; }
.early-items li, .pack-items li { display: flex; align-items: center; gap: 10px; }
.early-items li { padding: 6px 12px 6px 6px; }
.balance-value .item-icon { margin-right: 4px; vertical-align: -6px; }
.pack-items li:has(.item-icon)::before { display: none; }

/* item icons in the launch perks (home page, sign-up page) */
.perk-icons { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.launch-perks .perk-coin { width: 24px; height: 24px; margin-right: 6px; vertical-align: -6px; }

/* terms of use, privacy policy */
.legal { line-height: 1.6; }
.legal h2 { font-size: 1.3rem; color: var(--gold-bright); margin: 1.4em 0 .5em; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 .7em; }
.legal ul { margin: 0 0 .8em; padding-left: 1.3em; }
.legal li { margin: .2em 0; }
.footer-bottom a { color: var(--muted); margin-right: 14px; }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ---------- the ad landing /join: the sign-up form on the first screen ---------- */
.hero.join { align-items: flex-start; min-height: 0; }
.join-grid {
	display: grid; gap: 22px 40px; padding: 40px 0 56px; position: relative; z-index: 1;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	grid-template-areas: "head form" "info form";
	align-items: start;
}
.join-head { grid-area: head; }
.join-form { grid-area: form; background: rgba(13, 17, 24, .94); box-shadow: var(--shadow); }
.join-info { grid-area: info; max-width: 620px; }
.join-title { margin: 0 0 18px; font-family: var(--font-heading); font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: #d3c8ee;
	line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.join-title img { display: block; width: min(380px, 80%); height: auto; margin: 0 0 10px -4px;
	filter: drop-shadow(0 4px 18px rgba(8, 4, 24, .75)); }
.join .launch { margin-bottom: 0; }
.join-form h2 { margin: 0 0 6px; font-size: 1.35rem; color: var(--gold-bright); }
.join-form-lead { margin: 0 0 14px; font-size: .92rem; color: var(--muted); }
.join-form .form .btn { width: 100%; text-align: center; }
.join-offer { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(14, 14, 32, .55); max-width: none; }
.join-points { list-style: none; margin: 0 0 16px; padding: 0; }
.join-points li { margin: 0 0 10px; padding-left: 18px; position: relative; color: var(--text); text-shadow: 0 2px 10px rgba(0,0,0,.9); }
.join-points li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.join-points strong { color: var(--text-bright); margin-right: 6px; }
.join .hero-badges { margin: 0 0 14px; }
.join-more { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
	.join-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "info"; padding: 20px 0 40px; gap: 18px; }
	.join-title img { width: min(260px, 70%); }
}

/* ---------- home: two worlds ----------
   The hero is a diptych: the main world on the left (elf art, aged gold), the new one on the right (knight art, cold mist).
   The halves overlap by 8% and are cut along one slanted seam; the logo sits over the seam. Below 860px they stack. */
.worlds {
	--seam-top: 54%;
	--gutter: max(16px, calc((100vw - var(--wrap)) / 2));
	position: relative; isolation: isolate; overflow: hidden;
	display: grid;
	min-height: clamp(620px, 84vh, 800px);
	background: #0a0c13;
	border-bottom: 1px solid var(--line);
}
.world {
	grid-area: 1 / 1; position: relative;
	width: var(--seam-top);
	display: flex; align-items: flex-end;
}
.world--main { justify-self: start; clip-path: polygon(0 0, 100% 0, 85.2% 100%, 0 100%); }
.world--new { justify-self: end; clip-path: polygon(14.8% 0, 100% 0, 100% 100%, 0 100%); }

/* the painting and the shade over it that carries the text */
.world::before, .world::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.world::before { z-index: -2; background: #2a1f45 url("../img/hero.webp") 52% 30% / cover no-repeat; transition: filter .45s ease, transform 1.4s ease; }
.world::after { z-index: -1; }
.world--main::after {
	background:
		linear-gradient(0deg, rgba(7, 9, 13, .97) 0%, rgba(14, 9, 32, .8) 34%, rgba(14, 9, 32, .12) 66%, rgba(7, 9, 13, .5) 100%),
		linear-gradient(90deg, rgba(14, 9, 32, .82) 0%, rgba(14, 9, 32, 0) 62%);
}
/* the winter castle: the new world opens in winter; the traveller on the bridge stands by the seam */
.world--new::before { background: #0e1622 url("../img/world-new.webp") 50% 38% / cover no-repeat; filter: brightness(1.12); }
.world--new::after {
	background:
		linear-gradient(0deg, rgba(6, 9, 14, .96) 0%, rgba(8, 17, 29, .66) 32%, rgba(8, 17, 29, .05) 62%, rgba(6, 9, 14, .4) 100%),
		linear-gradient(270deg, rgba(7, 15, 26, .5) 0%, rgba(7, 15, 26, 0) 45%),
		rgba(90, 140, 185, .06);
}
/* pointing at a world brings it forward and quiets the other one */
@media (hover: hover) {
	.worlds:has(.world:hover) .world:not(:hover)::before { filter: brightness(.55) saturate(.55); }
	.world--main:hover::before { transform: scale(1.03); }
	.world--new:hover::before { transform: scale(1.03); filter: brightness(1.22); }
}

/* mist that still covers the new world */
.world-fog { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.world-fog::before, .world-fog::after {
	content: ""; position: absolute; left: -30%; right: -30%; height: 46%;
	background: radial-gradient(50% 50% at 50% 50%, rgba(190, 215, 232, .2), transparent 70%);
	filter: blur(14px);
	animation: drift 44s linear infinite alternate;
}
.world-fog::before { top: 16%; }
.world-fog::after { top: 44%; animation-duration: 61s; animation-direction: alternate-reverse; opacity: .85; }
@media (prefers-reduced-motion: reduce) {
	.world-fog::before, .world-fog::after { animation: none; }
	.world::before { transition: none; }
}

.world-body { position: relative; z-index: 1; width: min(440px, 39vw); padding-bottom: 54px; }
.world--main .world-body { margin-left: var(--gutter); }
.world--new .world-body { margin-left: auto; margin-right: var(--gutter); text-align: right; }

.world-status { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 6px; font-size: .95rem; color: var(--mist); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.world-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; }
.world-status.is-live { color: #a9dcab; }
.world-status.is-live::before { border: 0; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* the world's name: the word, then its rate as the largest thing on the page */
.world-name { margin: 0 0 14px; font-family: var(--font-display); letter-spacing: 0; }
.world-word { display: block; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 400; line-height: 1.1; color: var(--text-bright); text-shadow: 0 2px 12px rgba(0, 0, 0, .85); }
.world-rate {
	display: block; margin-top: -.02em;
	font-size: clamp(5.6rem, 11.5vw, 10rem); font-weight: 700; line-height: .88; letter-spacing: -.01em;
	background: linear-gradient(180deg, #fff1c4 0%, #e3c27a 46%, #9a7535 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .7));
}
.world--new .world-rate { background-image: linear-gradient(180deg, #f4fbff 0%, #a9cbdd 46%, #547689 100%); }
.world-text { margin: 0 0 16px; font-size: 1.05rem; color: var(--text); text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }

.world-rates { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.world--new .world-rates { justify-content: flex-end; border-top-color: rgba(159, 194, 214, .3); }
.world-rates div { display: flex; flex-direction: column-reverse; }
.world-rates dt { font-size: .85rem; color: var(--muted); }
.world-rates dd { margin: 0; font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700; line-height: 1.1; color: var(--gold-bright); }
.world--new .world-rates dd { color: #d6ebf7; }

.world-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.world--new .world-actions { justify-content: flex-end; }
/* the countdown inside a world: no box of its own, smaller cells */
.world .launch { display: block; margin: 0 0 18px; padding: 0; border: 0; background: none; box-shadow: none; max-width: none; }
.world .launch-timer { gap: 8px; }
.world--new .launch-timer { justify-content: flex-end; }
.world .launch-cell { min-width: 64px; padding: 6px 8px; background: rgba(7, 12, 20, .72); border-color: rgba(159, 194, 214, .35); }
.world .launch-num { font-size: 1.55rem; color: #e4f2fa; }
.world .launch-unit { font-size: .7rem; }
.btn.btn-mist { background: linear-gradient(180deg, #dcecf5, #8fb3c7); border-color: #cfe4f0; color: #0b1620; }
.btn.btn-mist:hover { color: #0b1620; background: linear-gradient(180deg, #f1f9fd, #a6c7d9); }
.btn.btn-mist-ghost { border-color: rgba(159, 194, 214, .55); color: #dcecf5; }
.btn.btn-mist-ghost:hover { border-color: #cfe4f0; color: #fff; }

/* the seam between the worlds and the knot in its middle */
.worlds-seam { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none;
	-webkit-mask-image: linear-gradient(180deg, transparent 22%, #000 36%, #000 100%); mask-image: linear-gradient(180deg, transparent 22%, #000 36%, #000 100%); }
.worlds-seam line { stroke: var(--gold); stroke-width: 1.5; opacity: .75; }
.worlds-knot { position: absolute; z-index: 2; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px; transform: rotate(45deg); background: #0a0c13; border: 1.5px solid var(--gold-bright); box-shadow: 0 0 14px rgba(240, 212, 138, .5); pointer-events: none; }

.worlds-crest { position: absolute; z-index: 3; top: 30px; left: 50%; width: min(400px, 58vw); transform: translateX(-50%); text-align: center; pointer-events: none; }
.worlds-crest::before { content: ""; position: absolute; z-index: -1; inset: -40px -90px -30px; background: radial-gradient(50% 50% at 50% 46%, rgba(9, 8, 20, .82), rgba(9, 8, 20, 0) 72%); }
.worlds-logo { margin: 0 0 8px; line-height: 0; }
.worlds-logo img { width: 100%; height: auto; filter: drop-shadow(0 4px 18px rgba(8, 4, 24, .8)); }
.worlds-slogan { margin: 0; font-family: var(--font-heading); font-size: clamp(1.1rem, 1.9vw, 1.4rem); color: #d3c8ee; text-shadow: 0 2px 12px rgba(0, 0, 0, .85); }

@media (max-width: 860px) {
	.worlds { display: block; min-height: 0; }
	.worlds-seam, .worlds-knot { display: none; }
	.worlds-crest { position: relative; top: 0; left: 0; width: 100%; padding: 20px 16px 14px; transform: none; background: #0a0812; }
	.worlds-crest::before { content: none; }
	.worlds-logo img { width: min(250px, 68%); margin-inline: auto; }
	.world { width: 100%; min-height: 0; padding-top: 170px; clip-path: none; border-top: 1px solid var(--line); }
	.world--new { border-top-color: rgba(159, 194, 214, .35); }
	.world::before { background-image: url("../img/hero-mobile.webp"); background-position: 25% top; }
	.world--new::before { background-image: url("../img/world-new.webp"); background-position: 60% 22%; }
	.world--main::after { background: linear-gradient(0deg, rgba(7, 9, 13, .98) 0%, rgba(14, 9, 32, .88) 52%, rgba(14, 9, 32, .1) 82%); }
	.world--new::after { background: linear-gradient(0deg, rgba(6, 9, 14, .98) 0%, rgba(8, 17, 29, .86) 50%, rgba(8, 17, 29, .1) 82%), rgba(90, 140, 185, .12); }
	.world-body, .world--main .world-body, .world--new .world-body { width: auto; margin: 0 16px; padding-bottom: 26px; text-align: left; }
	.world--new .world-rates, .world--new .world-actions { justify-content: flex-start; }
	.world-rate { font-size: clamp(4.6rem, 24vw, 6.5rem); }
	.world-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* status bar: which world the numbers belong to, and the new world next to them */
.topbar-world { color: var(--gold-bright); font-weight: 600; }
.topbar .topbar-world { color: var(--gold-bright); }
.topbar a.topbar-world--new { color: var(--mist); font-weight: 600; }
.topbar a.topbar-world--new:hover { color: #e4f2fa; }
.topbar-world--new span { font-weight: 400; color: var(--muted); }

/* rates under the hero: tiles of the main world, or both worlds in one table once the new one's rates are announced */
.rates-of { margin: 0 0 12px; text-align: center; font-family: var(--font-heading); font-size: 1.25rem; color: var(--gold-bright); }
.rates-note { margin: 18px 0 0; text-align: center; color: var(--mist-dim); }
.rates-table { width: min(640px, 100%); margin-inline: auto; border-collapse: collapse; font-variant-numeric: lining-nums; }
.rates-table th, .rates-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: right; }
.rates-table th[scope="row"], .rates-table thead th:first-child { text-align: left; font-weight: 400; color: var(--muted); }
.rates-table thead th { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--gold-bright); border-bottom-color: var(--line-strong); }
.rates-table td { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--gold-bright); }
.rates-table .is-new { color: #cfe4f0; }
.home-world-tag, .panel-title small { margin-left: 4px; }
/* the main world keeps the full opening block (title, offer) when its own launch is still ahead */
.world--main .launch-cell { border-color: var(--line); }
.world--main .launch-num { color: var(--gold-bright); }
.world--main .launch-title { margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }

/* ---------- account panel: world switch, tabs, accounts as an accordion, side cards ---------- */
.cab-section { padding-top: 34px; }
.cab-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.cab-head h1 { margin: 0 0 4px; font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.cab-lead { margin: 0; color: var(--mist); }
.cab-user { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.cab-user strong { display: block; color: var(--text-bright); font-weight: 600; line-height: 1.2; }
.cab-user .sub { font-size: .85rem; }
.cab-avatar, .acct-avatar {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 6px;
	background: rgba(203, 168, 95, .1); color: var(--gold-bright); font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
}

/* which world the accounts below belong to */
.cab-worlds-label { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.cab-worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.cab-world {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 14px 20px;
	border: 1px solid var(--line); border-radius: 8px; background: #0e1118;
	color: var(--text); font: inherit; text-align: left; cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.cab-world::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/hero-1200.webp") 70% 22% / cover no-repeat; opacity: .78; transition: opacity .2s; }
.cab-world::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #100b22 0%, rgba(16, 11, 34, .88) 36%, rgba(16, 11, 34, .1) 100%); }
.cab-world--new::before { background-image: url("../img/world-new.webp"); background-position: 60% 30%; filter: brightness(1.35); }
.cab-world--new::after { background: linear-gradient(90deg, #0a121c 0%, rgba(10, 18, 28, .8) 30%, rgba(10, 18, 28, 0) 75%); }
.cab-world:hover::before, .cab-world[aria-pressed="true"]::before { opacity: 1; }
.cab-world[aria-pressed="true"] { border-color: var(--gold-bright); box-shadow: 0 0 0 1px rgba(240, 212, 138, .35), 0 10px 26px rgba(0, 0, 0, .45); }
.cab-world--new[aria-pressed="true"] { border-color: #cfe4f0; box-shadow: 0 0 0 1px rgba(207, 228, 240, .3), 0 10px 26px rgba(0, 0, 0, .45); }
.cab-world:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.cab-world-rate {
	font-family: var(--font-display); font-size: 2.9rem; font-weight: 700; line-height: 1;
	background: linear-gradient(180deg, #fff1c4 0%, #e3c27a 46%, #9a7535 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.cab-world--new .cab-world-rate { background-image: linear-gradient(180deg, #f4fbff 0%, #a9cbdd 46%, #547689 100%); }
.cab-world-name strong { display: block; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; line-height: 1.15; color: var(--text-bright); }
.cab-world-name small { font-size: .85rem; color: var(--mist); }
.cab-world-check { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(7, 9, 13, .55); }
.cab-world[aria-pressed="true"] .cab-world-check { border-color: var(--gold-bright); background: rgba(7, 9, 13, .7) no-repeat center / 14px
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23f0d48a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.cab-tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.cab-tabs button {
	padding: 10px 0 12px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none;
	color: var(--muted); font: 600 1.02rem/1.2 var(--font-body); cursor: pointer;
}
.cab-tabs button:hover { color: var(--text-bright); }
.cab-tabs button[aria-pressed="true"] { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.cab-tabs button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.cab-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
.js .cab-grid[hidden] { display: none; }
.cab-main, .cab-side, .cab-stack { display: grid; gap: 16px; min-width: 0; }
.js .cab-stack[hidden] { display: none; }
.cab .panel h2 { margin: 0 0 4px; font-size: 1.5rem; }
[data-cab] [data-world-only="new"] { display: none; }
[data-cab][data-world="new"] [data-world-only="new"] { display: block; }
[data-cab][data-world="new"] [data-world-only="main"] { display: none; }

.world-tag { display: inline-block; margin-left: 6px; padding: 2px 9px; border: 1px solid var(--line-strong); border-radius: 4px; background: rgba(203, 168, 95, .1);
	color: var(--gold-bright); font: 600 .8rem/1.5 var(--font-body); vertical-align: middle; white-space: nowrap; }
.world-tag--new { border-color: rgba(159, 194, 214, .5); background: rgba(159, 194, 214, .1); color: #d6ebf7; }

.cab-panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.cab-panel-head .sub { margin: 0; }
.cab-panel-head .lower { text-transform: lowercase; }
.cab-panel-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.btn-text { padding: 0; border: 0; background: none; color: var(--gold-bright); font: 600 .95rem/1.3 var(--font-body); cursor: pointer; text-decoration: none; }
.btn-text:hover, .btn-text[aria-expanded="true"] { color: #fff3cf; text-decoration: underline; text-underline-offset: 4px; }
.btn-text:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.cab-form { margin: 0 0 16px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(203, 168, 95, .05); }
.cab-newworld p { margin: 8px 0 16px; color: var(--mist); }

/* one game account */
.acct { border: 1px solid var(--line); border-radius: 6px; background: rgba(7, 9, 13, .45); }
.acct + .acct { margin-top: 10px; }
.acct[open] { border-color: var(--line-strong); }
.acct > summary { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; cursor: pointer; list-style: none; }
.acct > summary::-webkit-details-marker { display: none; }
.acct > summary:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.acct-title { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.acct-login { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: var(--text-bright); overflow-wrap: anywhere; }
.acct-title .sub { font-size: .85rem; }
.acct-chevron { width: 9px; height: 9px; margin: 0 6px 4px 8px; border: solid var(--gold); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .15s; }
.acct[open] .acct-chevron { margin-bottom: -4px; transform: rotate(225deg); }
.acct-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.acct-body .table-wrap { margin: 0 -14px 12px; }
.acct-body table th:first-child, .acct-body table td:first-child { padding-left: 14px; }
.acct-body .empty { margin: 14px 0; }
.acct-body .account-facts { margin-bottom: 12px; }
.acct-body .drawer { margin: 0; }

/* side cards */
.cab .early-gift { margin: 0; }
.early-gift-title { margin: 8px 0 6px; font-size: 1.4rem; color: var(--gold-bright); }
.early-gift .world-tag { margin-left: 0; }
.cab-side .early-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0 14px; }
.cab-side .early-items li { font-size: .9rem; line-height: 1.25; }
.early-form { display: grid; gap: 10px; }
.early-form .btn { width: 100%; text-align: center; }
.cab-coin-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cab-coin-row strong { display: block; font-family: var(--font-heading); font-size: 1.15rem; color: var(--text-bright); line-height: 1.2; }
.cab-coin-row .sub { font-size: .85rem; }
.cab-coin-value { margin-left: auto; font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.cab-admin { display: grid; gap: 8px; justify-items: start; }

/* wallet tab */
.cab-wallet-balance { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.cab-wallet-balance .item-icon { width: 44px; height: 44px; }
.cab-wallet-balance .sub { display: block; font-size: .9rem; }
.cab-wallet-balance strong { font-family: var(--font-heading); font-size: 2.4rem; line-height: 1.1; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.cab-wallet-balance small { font-size: 1.1rem; font-weight: 400; color: var(--text); }
.cab-wallet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cab-stack .packs { margin: 6px 0 0; }

@media (max-width: 980px) {
	.cab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.cab-worlds { grid-template-columns: 1fr; gap: 10px; }
	.cab-world { min-height: 76px; }
	.cab-tabs { gap: 4px 18px; }
	.cab-tabs button { font-size: .95rem; }
	.cab-panel-actions { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; gap: 10px 18px; }
	.cab-user { width: 100%; }
}

/* ---------- the whole site in the account panel's manner ----------
   Left-aligned large page headings on the page background (no banner, no ornament), panel headings without the
   title bar, underline tabs, the world switch wherever a page shows one game world. */
.page-head { padding: 34px 0 0; background: none; border-bottom: 0; text-align: left; }
.page-head h1 { margin: 0 0 4px; font-size: clamp(2.2rem, 4.6vw, 3.2rem); text-shadow: none; overflow-wrap: anywhere; }
.page-head p { margin: 0; max-width: 760px; font-size: 1rem; color: var(--mist); }
.page-head .ornament, .section-title .ornament { display: none; }
.page-head + .section { padding-top: 26px; }

.section-title { text-align: left; margin-bottom: 20px; }
.section-title h2 { margin-bottom: 4px; }
.section-more, p.center.section-more { margin: 20px 0 0; text-align: left; }
.rates-of, .rates-note { text-align: left; }
.rates-table { margin-inline: 0; }

.panel-title { margin: 0 0 14px; padding-bottom: 0; border-bottom: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--text-bright); }
.panel-title .world-tag { margin-right: auto; }

.tabs { gap: 4px 22px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 8px 0 10px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none;
	color: var(--muted); font: 600 1rem/1.2 var(--font-body); }
.tabs button:hover { background: none; border-color: transparent; color: var(--text-bright); }
.tabs button[aria-pressed="true"] { background: none; border-bottom-color: var(--gold-bright); color: var(--gold-bright); }

.cab-switch { margin: 0; }
.cab-newworld h2 { margin: 0 0 4px; font-size: 1.5rem; }

/* ---------- navy theme (owner's reference: the account panel mock-up, 2026-11-17) ----------
   Deep navy page, flat cards with a thin cool border, bold sans headings, flat cream-gold buttons.
   Overrides the older "dark stone + gilded corners + serif titles" look for the whole site. Keep this block last. */
:root {
	--bg: #0b111b;
	--bg-raised: #101826;
	--panel: #121a28;
	--panel-solid: #121a28;
	--panel-hover: #18223a;
	--line: #222d40;
	--line-strong: #36445c;
	--gold: #e2c184;
	--gold-bright: #f1d8a6;
	--gold-dim: #a58755;
	--mist: #a7b8cf;
	--mist-dim: #70829b;
	--text: #d2d9e5;
	--text-bright: #f4f0e7;
	--muted: #8d99ae;
	--radius: 8px;
	--shadow: none;
	--font-display: "Golos Text", "Segoe UI", system-ui, sans-serif;
	--font-heading: "Golos Text", "Segoe UI", system-ui, sans-serif;
}
body { background: var(--bg); font-size: 16px; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.015em; }
h1 { font-weight: 800; letter-spacing: -.025em; }
a:hover { color: #fff1d2; }

/* status bar and header */
.topbar { background: #080d15; border-bottom-color: var(--line); font-size: .82rem; }
.lang-switch { border-color: var(--line-strong); border-radius: 6px; }
.lang-switch a + a { border-left-color: var(--line-strong); }
.lang-switch a { letter-spacing: 0; }
.lang-switch a.active { background: rgba(226, 193, 132, .16); }
.site-header { background: #0e1522; backdrop-filter: none; box-shadow: none; border-bottom-color: var(--line); }
.site-header .wrap { gap: 20px; min-height: 66px; }
.brand { gap: 10px; }
.brand img { height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--text-bright); }
.brand-text small { margin-top: 3px; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { gap: 2px; margin-left: 10px; }
.nav a { padding: 8px 11px; font: 600 .97rem/1.2 var(--font-body); letter-spacing: 0; color: var(--mist); }
.nav a::after { content: none; }
.nav a:hover { color: var(--text-bright); }
.nav a.active { color: var(--gold-bright); }
.nav-toggle { border-color: var(--line-strong); border-radius: 6px; }
.site-footer { background: #0e1522; border-top: 1px solid var(--line); }
.brand-name { background: none; color: var(--text-bright); font-weight: 800; letter-spacing: -.02em; }

/* buttons: flat */
.btn {
	padding: 10px 18px; border-radius: 6px; border-color: var(--gold);
	background: var(--gold); color: #1d160a; box-shadow: none;
	font: 700 .95rem/1.25 var(--font-body); letter-spacing: 0;
	transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { transform: none; filter: none; box-shadow: none; background: var(--gold-bright); border-color: var(--gold-bright); color: #1d160a; }
.btn-ghost { background: #162031; border-color: var(--line-strong); color: var(--text-bright); }
.btn-ghost:hover { background: #1c2940; border-color: var(--gold); color: var(--text-bright); }
.btn-small { padding: 7px 13px; font-size: .88rem; }
.btn-large { padding: 13px 24px; font-size: 1rem; }
.btn-discord, .btn-discord:hover { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-telegram, .btn-telegram:hover { background: #229ed9; border-color: #229ed9; color: #fff; }
.btn.btn-mist, .btn.btn-mist:hover { background: #cfe2ef; border-color: #cfe2ef; color: #0b1620; }
.btn.btn-mist-ghost { background: #152233; border-color: rgba(159, 194, 214, .5); color: #dcecf5; }
.btn.btn-mist-ghost:hover { background: #1b2c42; border-color: #cfe4f0; color: #fff; }

/* cards */
.panel { padding: 22px; background: var(--panel); border-color: var(--line); box-shadow: none; }
.panel::before { content: none; }
.panel-title { font-weight: 700; }
.panel-title small { font-size: .85rem; }
.section { padding: 44px 0; }
.feature { text-align: left; padding: 22px; }
.feature h3 { color: var(--text-bright); font-size: 1.2rem; }
.rate { text-align: left; }
.rate-value { font-weight: 800; letter-spacing: -.02em; }
.castle, .acct { background: #0e1522; border-color: var(--line); }
.castle h4 { color: var(--text-bright); }
.start-steps h3, .step h3 { color: var(--text-bright); }
.start-num { border-color: var(--line-strong); border-radius: 8px; background: #162031; }
.news-item, .faq details, .file { border-bottom-color: var(--line); }
.news-list li::before, .launch-perks li::before { box-shadow: none; border-radius: 2px; transform: none; width: 6px; height: 6px; top: .6em; }
.tag, .badge, .hero-badges .badge { border-radius: 5px; letter-spacing: .04em; }
.quote { font-family: var(--font-body); }

/* tables and lists */
th { padding: 9px 10px; border-bottom-color: var(--line); font: 600 .82rem/1.3 var(--font-body); letter-spacing: 0; color: var(--muted); }
td { border-bottom-color: var(--line); }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
td.rank { font-weight: 700; }
.list li { border-bottom-color: var(--line); }
.bar { border-color: var(--line); background: #0e1522; }

/* forms */
.field label, .label { color: var(--mist); letter-spacing: 0; font-weight: 500; }
input[type=text], input[type=password], input[type=email], input[type=number], textarea, select {
	background: #0c131e; border-color: var(--line-strong); border-radius: 6px; color: var(--text-bright);
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 193, 132, .14); }
.cab-form { border-color: var(--line-strong); background: #0e1522; }
.cab-user { background: var(--panel); }
.cab-avatar, .acct-avatar { border-color: var(--line-strong); background: #1a2437; font-weight: 800; }
.early-gift, .balance { border-color: #5a4d33; background: linear-gradient(160deg, #1d1c20, #131a27 70%); }
.early-items li { border-color: var(--line-strong); background: #0e1522; }
.world-tag { border-color: #5a4d33; background: rgba(226, 193, 132, .12); }
.acct-login { font-weight: 700; }
.tabs, .cab-tabs { border-bottom-color: var(--line); }

/* home: the two worlds keep their paintings; type goes sans */
.worlds { background: var(--bg); border-bottom-color: var(--line); }
.world-word { font-weight: 700; letter-spacing: -.01em; }
.world-rate, .cab-world-rate { font-weight: 800; letter-spacing: -.04em; }
.worlds-slogan { font-weight: 600; color: #dcd5ee; }
.world-rates dd { font-weight: 800; letter-spacing: -.02em; }
.worlds-knot { background: var(--bg); }
.cab-world { background: #0e1522; border-color: var(--line); }
.cab-world-name strong { font-weight: 700; }
.launch-cell { border-radius: 6px; }
.rates-table thead th { font: 700 1rem/1.3 var(--font-body); color: var(--gold-bright); }
.rates-table td { font-weight: 800; }

@media (max-width: 1180px) {
	.site-header .wrap { min-height: 60px; }
}
body { background-image: none; }

/* readability pass (owner, 2026-11-17): brighter running text and captions, calmer heading weight and tracking */
:root {
	--text: #e4e9f1;
	--text-bright: #fbf8f1;
	--muted: #aab5c7;
	--mist: #bccadd;
	--mist-dim: #8fa0b8;
}
body { -webkit-font-smoothing: auto; line-height: 1.62; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.005em; }
h1 { font-weight: 700; letter-spacing: -.01em; }
.feature p, .start-steps p, .section-title p, .step p, .news-item p, .news-list li, .faq details p { color: #cdd5e2; }
.feature p, .start-steps p { font-size: 1rem; }
.section-title p, .page-head p, .cab-lead { font-size: 1.05rem; color: #c2cee0; }
.sub { color: var(--muted); font-size: .9rem; }
.rate-label, .world-rates dt { font-size: .95rem; color: #c2cbd9; }
.rate-value, .rates-table td, .world-rates dd { font-weight: 700; letter-spacing: 0; }
.rates-note, .rates-of { font-size: 1rem; }
.rates-note { color: #b4c2d6; }
th { font-size: .86rem; color: #b3bdcd; }
.field label, .label { color: #c2cee0; }
.field small { color: var(--muted); }
.brand-text b, .brand-name { font-weight: 700; letter-spacing: -.01em; }
.brand-text small { color: #a3afc3; }
.nav a { color: #c6d2e3; }
.topbar { color: #a9b4c6; }
.world-rate, .cab-world-rate { letter-spacing: -.02em; }

/* header: "about the servers" opens a menu with the two worlds; in the burger menu the two links are listed in place */
.nav-drop { position: relative; }
.nav-drop-toggle {
	display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 0; background: none; cursor: pointer; white-space: nowrap;
	font: 600 .97rem/1.2 var(--font-body); color: #c6d2e3;
}
.nav-drop-toggle:hover, .nav-drop.open .nav-drop-toggle { color: var(--text-bright); }
.nav-drop-toggle.active { color: var(--gold-bright); }
.nav-drop-toggle:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.nav-drop-arrow { width: 7px; height: 7px; margin-top: -4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .15s; }
.nav-drop.open .nav-drop-arrow, .nav-drop:hover .nav-drop-arrow { margin-top: 3px; transform: rotate(225deg); }
.nav-drop-menu {
	display: none; position: absolute; z-index: 30; top: 100%; left: 0; min-width: 250px; padding: 6px;
	border: 1px solid var(--line-strong); border-radius: 8px; background: #121a28; box-shadow: 0 16px 34px rgba(0, 0, 0, .5);
}
/* a bridge over the gap so the menu does not close while the pointer moves down to it */
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: block; }
.nav .nav-drop-menu a { display: block; padding: 9px 12px; border-radius: 6px; white-space: nowrap; }
.nav .nav-drop-menu a:hover { background: #1a2538; }
.nav-drop-menu strong { display: block; font-size: 1rem; font-weight: 700; color: var(--gold-bright); }
.nav-drop-menu .is-new strong { color: #d6ebf7; }
.nav-drop-menu small { display: block; font-size: .82rem; font-weight: 400; color: var(--muted); }
.nav-drop-menu a.active { background: #172132; }
@media (max-width: 1180px) {
	.nav-drop-toggle { width: 100%; padding: 10px 4px 4px; justify-content: flex-start; cursor: default; color: var(--muted); font-size: .85rem; }
	.nav-drop-arrow { display: none; }
	.nav-drop-menu, .nav-drop:hover .nav-drop-menu { display: block; position: static; min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; }
	.nav-drop-menu::before { content: none; }
	.nav .nav-drop-menu a { padding: 8px 4px 8px 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* headings set apart from running text (owner, 2026-11-17): card and panel titles in gold with more air under them,
   section titles marked with a gold bar; page titles stay white */
.section-title h2 { padding-left: 14px; border-left: 4px solid var(--gold); line-height: 1.15; margin-bottom: 8px; }
.feature h3, .start-steps h3, .step h3, .news-item h3, .castle h4, .pack-head h3 { color: var(--gold-bright); }
.feature h3 { margin-bottom: 10px; font-size: 1.3rem; line-height: 1.25; }
.news-item h3 { margin-bottom: 8px; font-size: 1.25rem; }
.panel-title, .cab .panel h2, .cab-newworld h2, .prose h2, .packs-title { color: var(--gold-bright); }
.prose h2 { margin-bottom: 12px; }
.prose strong, .news-list strong { color: var(--text-bright); }
.faq summary { color: var(--text-bright); font-size: 1.1rem; }
.faq details[open] summary { color: var(--gold-bright); }
.acct-login, .cab-coin-row strong, .cab-world-name strong { color: var(--text-bright); }

/* countdown card on the new world page */
.about-launch .panel-title { font-size: 1.2rem; }
.about-launch .launch { display: block; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.about-launch .launch-timer { gap: 8px; }
.about-launch .launch-cell { flex: 1; min-width: 0; padding: 8px 4px; background: #0e1522; border-color: rgba(159, 194, 214, .35); }
.about-launch .launch-num { font-size: 1.6rem; color: #e4f2fa; }

/* the status line over a painting sits on a dark chip, so the opening date reads over snow and sky */
.world-status { padding: 4px 11px; margin-bottom: 8px; border-radius: 6px; background: rgba(6, 10, 17, .68); color: #dbe8f5; font-weight: 500; text-shadow: none; }
.world-status.is-live { color: #b9e6bb; }

/* status bar: one chip per game world (name, state, players) */
.topbar .wrap { padding: 6px 0; }
.topbar-worlds { gap: 8px; }
.world-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
	background: #0e1522; color: #c6d2e3; white-space: nowrap; transition: border-color .15s;
}
.world-chip:hover { border-color: var(--gold); color: #c6d2e3; }
.world-chip--new:hover { border-color: #9fc2d6; }
.topbar .world-chip-name { color: var(--gold-bright); font-weight: 700; }
.topbar .world-chip--new .world-chip-name { color: #d6ebf7; }
.world-chip .dot { margin: 0; }
.dot.wait { background: none; border: 1.5px solid #9fc2d6; }
.world-chip-state { color: var(--text-bright); font-weight: 500; }
.world-chip-players { padding-left: 8px; border-left: 1px solid var(--line-strong); color: #b3bdcd; }
@media (max-width: 640px) {
	.topbar .wrap { justify-content: center; }
	.topbar-worlds { justify-content: center; width: 100%; }
	.world-chip { padding: 3px 10px; gap: 6px; font-size: .78rem; }
}

/* home: the wordmark is set in the site's own type (the old ornate serif picture did not match the flat look) */
.worlds-logo { margin: 0 0 6px; line-height: 1; }
.worlds-wordmark {
	display: inline-block; padding: 0 .06em .08em;
	font: 800 clamp(3rem, 5.6vw, 4.6rem)/1 var(--font-display); letter-spacing: -.035em;
	background: linear-gradient(180deg, #fff3cf 0%, #ecd09a 48%, #b48f52 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 4px 18px rgba(6, 8, 18, .85));
}
.worlds-slogan { font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
@media (max-width: 860px) { .worlds-wordmark { font-size: 2.6rem; } }

/* home wordmark, second take: engraved capitals (Cinzel, Latin only - used for the name alone), flat gold, hairlines at the sides */
.worlds-crest { width: min(620px, 80vw); }
.worlds-logo { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 0 10px; }
.worlds-logo::before, .worlds-logo::after { content: ""; flex: 1; max-width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.worlds-logo::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.worlds-wordmark {
	padding: 0 0 0 .2em;
	font: 700 clamp(2.3rem, 4.3vw, 3.5rem)/1.1 "Cinzel", Georgia, serif; letter-spacing: .2em; text-transform: uppercase;
	background: linear-gradient(180deg, #fff6dc 0%, #efd49c 42%, #c39b58 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 2px 14px rgba(6, 8, 18, .9));
}
.worlds-slogan { font-size: clamp(.82rem, 1.15vw, .98rem); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #e6dff3; }
@media (max-width: 860px) {
	.worlds-crest { width: 100%; }
	.worlds-logo { gap: 10px; }
	.worlds-logo::before, .worlds-logo::after { max-width: 28px; }
	.worlds-wordmark { font-size: clamp(1.7rem, 8vw, 2.3rem); letter-spacing: .16em; }
	.worlds-slogan { font-size: .72rem; letter-spacing: .2em; }
}

/* a glint of light runs across the wordmark every few seconds (a bright band moving under the letter mask) */
.worlds-wordmark {
	background:
		linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .95) 50%, rgba(255, 255, 255, 0) 58%) 100% 0 / 250% 100% no-repeat,
		linear-gradient(180deg, #fff6dc 0%, #efd49c 42%, #c39b58 100%);
	-webkit-background-clip: text; background-clip: text;
	animation: wordmark-glint 7s ease-in-out infinite;
}
@keyframes wordmark-glint {
	0%, 55% { background-position: 100% 0, 0 0; }
	85%, 100% { background-position: 0% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) { .worlds-wordmark { animation: none; } }

/* the number of players online stands out: larger, bold, bright green */
.topbar .players-count { color: #8fe79a; font-weight: 800; font-size: 1.15em; font-variant-numeric: tabular-nums; }
.world-status .players-count { color: #8fe79a; font-weight: 800; font-size: 1.25em; line-height: 1; font-variant-numeric: tabular-nums; }


/* «Зал славы» (/hall-of-fame): значок уровня трофея и состояния строк */
.hof .hof-tier { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .8rem; font-weight: 700; border: 1px solid currentColor; }
.hof .hof-tier--gold { color: #f3d27a; }
.hof .hof-tier--silver { color: #cfd6dc; }
.hof .hof-tier--bronze { color: #d39a62; }
.hof tr.hof-taken td .name, .hof tr.hof-partial .hof-holder .name { color: #f3d27a; }
.hof tr.hof-excluded { opacity: .55; }
.hof .hof-holder + .hof-holder { margin-top: 4px; }
.hof .hof-state { white-space: nowrap; }

/* ---------- forum editor: toolbar over the text box, preview in its place ---------- */
.bb-editor { border: 1px solid var(--line-strong); border-radius: 8px; background: #0c131e; }
.bb-editor:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 193, 132, .14); }
.bb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding: 6px 8px; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; background: #111a28; }
.bb-group { display: inline-flex; align-items: center; gap: 2px; }
.bb-group + .bb-group { padding-left: 14px; border-left: 1px solid var(--line); }
.bb-group--history { margin-left: auto; }
.bb-toolbar button {
	display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 34px; height: 34px; padding: 0 7px;
	border: 0; border-radius: 6px; background: none; color: #9fc0e6; font: 600 1rem/1 var(--font-body); cursor: pointer;
}
.bb-toolbar button:hover, .bb-toolbar button[aria-expanded="true"] { background: #1b2740; color: #dcebff; }
.bb-toolbar button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 1px; }
.bb-toolbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bb-toolbar svg circle[r="1"], .bb-toolbar svg circle[r="1.300"], .bb-toolbar svg circle[r=".700"] { fill: currentColor; stroke: none; }
.bb-glyph { font-size: 1.12rem; }
.bb-glyph--b { font-weight: 800; }
.bb-glyph--i { font-style: italic; font-family: Georgia, "Times New Roman", serif; }
.bb-glyph--u { text-decoration: underline; text-underline-offset: 3px; }
.bb-glyph--s { text-decoration: line-through; }
.bb-caret { width: 0; height: 0; margin-left: 1px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.bb-menu { position: relative; display: inline-flex; }
.bb-pop { position: absolute; z-index: 15; top: calc(100% + 4px); left: 0; display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: #121a28; box-shadow: 0 14px 30px rgba(0, 0, 0, .55); }
.bb-pop[hidden] { display: none; }
.bb-pop button { justify-content: flex-start; width: 100%; height: auto; min-height: 32px; padding: 4px 10px; color: var(--text); white-space: nowrap; }
.bb-pop--colors { grid-template-columns: repeat(5, 26px); gap: 6px; }
.bb-pop--colors button { min-width: 0; width: 26px; height: 26px; min-height: 0; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.bb-pop--colors button:hover { transform: scale(1.12); }
.bb-pop--emoji { grid-template-columns: repeat(6, 34px); }
.bb-pop--emoji button { min-width: 0; padding: 0; justify-content: center; font-size: 1.2rem; }
.bb-preview-toggle { margin-left: 4px; padding: 0 12px 0 10px; gap: 7px; border-left: 1px solid var(--line); }
.bb-toolbar .bb-preview-toggle { border-radius: 6px; font-size: .92rem; font-weight: 700; }
.bb-toolbar .bb-preview-toggle[aria-pressed="true"] { background: #22314d; color: var(--gold-bright); }
.bb-editor.is-preview .bb-group { opacity: .35; pointer-events: none; }
.bb-editor textarea { display: block; min-height: 150px; border: 0; border-radius: 0 0 8px 8px; background: none; box-shadow: none; }
.bb-editor textarea:focus { border: 0; box-shadow: none; }
.bb-editor textarea[hidden] { display: none; }
.bb-preview { padding: 12px 14px; }
.bb-preview.is-empty { color: var(--muted); }
.bb-attach { gap: 7px; }
.bb-attach svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* what the editor's tags look like in a post */
.post-body .bb-size-1, .bb-pop .bb-size-1 { font-size: .75em; }
.post-body .bb-size-2, .bb-pop .bb-size-2 { font-size: .86em; }
.post-body .bb-size-3 { font-size: 1em; }
.post-body .bb-size-4, .bb-pop .bb-size-4 { font-size: 1.2em; }
.post-body .bb-size-5, .bb-pop .bb-size-5 { font-size: 1.45em; line-height: 1.35; }
.post-body .bb-size-6 { font-size: 1.8em; line-height: 1.3; }
.post-body .bb-size-7, .bb-pop .bb-size-7 { font-size: 2.2em; line-height: 1.2; }
.bb-pop .bb-size-7 { font-size: 1.6em; }
.post-body .bb-center { text-align: center; }
.post-body .bb-right { text-align: right; }
.post-body .bb-list { margin: 6px 0; padding-left: 24px; }
.post-body .bb-list li { margin: 2px 0; }
.post-body .bb-code { margin: 6px 0; padding: 10px 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #0a1019; color: #cfe2ef; font: .9rem/1.5 Consolas, "Courier New", monospace; white-space: pre-wrap; }
.post-body .bb-spoiler { margin: 6px 0; border: 1px solid var(--line-strong); border-radius: 6px; background: #0e1522; }
.post-body .bb-spoiler > summary { padding: 7px 12px; cursor: pointer; color: var(--gold-bright); font-weight: 600; }
.post-body .bb-spoiler-label:empty::before { content: "Спойлер"; }
body[data-lang="en"] .post-body .bb-spoiler-label:empty::before { content: "Spoiler"; }
.post-body .bb-spoiler-body { padding: 8px 12px 10px; border-top: 1px solid var(--line); }
.post-body strong { color: var(--text-bright); }
@media (max-width: 640px) {
	.bb-toolbar { gap: 2px 8px; padding: 5px; }
	.bb-group + .bb-group { padding-left: 8px; }
	.bb-group--history { margin-left: 0; }
	.bb-preview-toggle span { display: none; }
	.bb-pop--emoji { grid-template-columns: repeat(6, 32px); }
}
.hof tr td.rank { color: var(--muted); }

/* home: news is the only block under the two worlds; lines stay readable on a wide panel */
.home-news .news-item > p, .home-news .news-list { max-width: 900px; }

/* ---------- avatars: the cabinet picture in the cabinet and next to forum posts ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; object-fit: cover; border: 1px solid var(--line-strong); border-radius: 10px; background: #1a2437; }
.avatar--letter { color: var(--gold-bright); font-weight: 800; }
.avatar--lg { width: 72px; height: 72px; font-size: 2rem; }
.avatar--post { width: 64px; height: 64px; margin-bottom: 8px; font-size: 1.7rem; }
img.cab-avatar { object-fit: cover; padding: 0; }
.cab-profile-row { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.cab-profile-actions { display: grid; gap: 8px; justify-items: start; }
.cab-profile-actions form { margin: 0; }
.cab-file { position: relative; overflow: hidden; cursor: pointer; }
.cab-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cab-file:focus-within { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.post-author .avatar--post { display: flex; }
@media (max-width: 680px) {
	.post-author { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
	.post-author .avatar--post { grid-row: span 4; width: 48px; height: 48px; margin: 0; font-size: 1.3rem; }
}

/* ready-made avatars in the cabinet: a grid of picture buttons, the chosen one outlined */
.cab-presets-title { margin: 12px 0 8px; font-size: .92rem; color: #c2cee0; }
.cab-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 0 0 12px; }
.cab-presets button { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; line-height: 0; transition: border-color .15s, transform .15s; }
.cab-presets button img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; }
.cab-presets button:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.cab-presets button.is-chosen { border-color: var(--gold-bright); }
.cab-presets button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* cabinet settings tab: the avatar card is not stretched over the whole width */
.cab-settings .cab-profile { max-width: 560px; }
.cab-settings .cab-presets { grid-template-columns: repeat(9, 1fr); }
@media (max-width: 640px) { .cab-settings .cab-presets { grid-template-columns: repeat(6, 1fr); } }

/* forum: a larger author picture (owner, 2026-11-18); the stored picture is 160 px, so it stays sharp */
.avatar--post { width: 120px; height: 120px; margin-bottom: 10px; border-radius: 12px; font-size: 3rem; }
@media (max-width: 680px) {
	.post-author .avatar--post { width: 64px; height: 64px; font-size: 1.7rem; }
}

/* site statistics for admins: the blocks are split into tabs under the counters */
.stats-tabs { margin-top: 22px; }
.stats-tab > .stats-block:first-child { margin-top: 0; }
.js .stats-tab[hidden] { display: none; }

/* ---------- start bonus of the new world: what is given, the condition, the cabinet's state ---------- */
.start-bonus-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.start-bonus-list li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #0e1522; color: var(--text); }
.start-bonus-list b { color: var(--gold-bright); font-weight: 700; }
.start-bonus-hats { display: inline-flex; flex-shrink: 0; }
.start-bonus-hats .item-icon + .item-icon { margin-left: -10px; }
.item-icon--none { display: inline-block; width: 32px; height: 32px; flex-shrink: 0; border: 1px dashed var(--line-strong); border-radius: 3px; box-shadow: none; background: #121a28 no-repeat center / 16px
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 6h12v8H2zM1 3.500h14V6H1zM8 3.500V14M8 3.500C6 3.500 4.500 1 6 1s2 2.500 2 2.500S8.500 1 10 1s0 2.500-2 2.500' fill='none' stroke='%23e2c184' stroke-width='1.200'/%3E%3C/svg%3E"); }
.start-bonus-rule, .start-bonus-state { margin: 0; color: #c2cee0; }
.start-bonus-state { padding: 9px 12px; border-left: 3px solid var(--line-strong); border-radius: 0 6px 6px 0; background: #0e1522; }
.start-bonus-state.is-earned { border-left-color: var(--green); color: #b9e6bb; }
.start-bonus-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cab-start-bonus { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.cab-start-bonus h3 { margin: 0 0 10px; font-size: 1.2rem; color: var(--gold-bright); }
.world-bonus-link { flex-basis: 100%; color: #dcecf5; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.world-bonus-link:hover { color: #fff; }
.world--new .world-bonus-link { text-align: right; }
@media (max-width: 860px) { .world--new .world-bonus-link { text-align: left; } }

/* home: the start bonus as a band of big icon tiles right under the two worlds */
.start-band { padding: 34px 0 6px; background: linear-gradient(180deg, #0f1a2a, var(--bg)); border-bottom: 0; scroll-margin-top: 80px; }
.start-band-head { margin-bottom: 18px; }
.start-band-head h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.start-band-head h2 span { color: #cfe4f0; }
.start-band-head p { margin: 0; max-width: 760px; font-size: 1.08rem; color: #dbe6f3; }
.start-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.start-tiles li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px 16px; border: 1px solid #2c3d57; border-radius: 12px; background: #121c2d; text-align: center; }
.start-tile-icon { position: relative; display: inline-flex; }
.start-tile-icon img { width: 64px; height: 64px; border: 2px solid #3d5273; border-radius: 10px; background: #0b111b; image-rendering: pixelated; }
.start-tile-icon b { position: absolute; right: -12px; bottom: -8px; min-width: 30px; padding: 2px 7px; border-radius: 999px; background: var(--gold); color: #1d160a; font-size: .95rem; font-weight: 800; line-height: 1.35; box-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.start-tile-name { font-weight: 600; line-height: 1.3; color: var(--text-bright); }
.start-band-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }
.start-band-more { font-weight: 600; }
@media (max-width: 640px) {
	.start-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.start-tiles li { padding: 14px 8px 12px; }
	.start-tile-name { font-size: .92rem; }
	.start-band-cta .btn { flex: 1 1 100%; }
}

/* home, the new world's half: the start bonus in place of the buttons - a row of game icons with short captions */
.world-bonus { margin-top: 2px; }
.world-bonus-title { margin: 0 0 10px; font-weight: 600; color: #eaf3fb; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.world-bonus-icons { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.world--new .world-bonus-icons { justify-content: flex-end; }
.world-bonus-icons li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 68px; padding: 7px 2px 6px; border: 1px solid rgba(159, 194, 214, .32); border-radius: 10px; background: rgba(7, 12, 20, .78); text-align: center; }
.world-bonus-icons img { width: 48px; height: 48px; border-radius: 7px; image-rendering: pixelated; }
.world-bonus-icons b { position: absolute; top: 40px; right: 1px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #1d160a; font-size: .78rem; font-weight: 800; line-height: 1.5; box-shadow: 0 1px 5px rgba(0, 0, 0, .7); }
.world-bonus-icons span { font-size: .7rem; font-weight: 600; line-height: 1.2; color: #dbe6f3; }
.world-bonus .world-actions { align-items: center; gap: 10px 16px; }
.world-bonus .world-bonus-link { flex-basis: auto; }
@media (max-width: 860px) {
	.world--new .world-bonus-icons { justify-content: flex-start; }
	.world-bonus .world-actions .btn { flex: 1 1 100%; }
}
/* six tiles (with the +30% one) fit one row of the half; on phones the row shares the width evenly */
.world-bonus-icons { gap: 6px; }
.world-bonus-icons li { width: 66px; }
@media (max-width: 860px) {
	.world-bonus-icons { flex-wrap: nowrap; }
	.world-bonus-icons li { flex: 1 1 0; width: auto; min-width: 0; }
	.world-bonus-icons img { width: 40px; height: 40px; }
	.world-bonus-icons b { top: 33px; }
	.world-bonus-icons span { font-size: .64rem; overflow-wrap: anywhere; }
}

/* the bonus tiles use 96 px copies of the game icons (items/big), shown at 56 px: smooth scaling, not blocky */
.world-bonus-icons li { width: 70px; padding-top: 6px; }
.world-bonus-icons img { width: 56px; height: 56px; image-rendering: auto; border: 1px solid rgba(0, 0, 0, .6); box-shadow: 0 0 0 1px rgba(159, 194, 214, .35); }
.world-bonus-icons b { top: 46px; }
.world-bonus-icons { gap: 4px; }
@media (max-width: 860px) {
	.world-bonus-icons img { width: 48px; height: 48px; }
	.world-bonus-icons b { top: 39px; }
}

/* bonus icons are vector drawings now: no frame of their own in CSS, the picture carries it */
.world-bonus-icons img { border: 0; box-shadow: none; border-radius: 9px; image-rendering: auto; }
.start-bonus-list .item-icon { width: 36px; height: 36px; border: 0; box-shadow: none; border-radius: 7px; }

/* original game icons, sharp: shown at a whole multiple of device pixels (--game-icon from site.js; 64 px without scripts)
   and never smoothed - every icon pixel becomes an exact square block */
.world-bonus-icons img, .start-bonus-list .item-icon {
	width: var(--game-icon, 64px); height: var(--game-icon, 64px);
	image-rendering: pixelated; image-rendering: crisp-edges; image-rendering: pixelated;
	border: 1px solid #05080d; border-radius: 4px; box-shadow: 0 0 0 1px rgba(159, 194, 214, .4);
}
.world-bonus-icons li { width: auto; min-width: calc(var(--game-icon, 64px) + 10px); max-width: calc(var(--game-icon, 64px) + 18px); padding: 6px 4px; }
.world-bonus-icons b { top: calc(var(--game-icon, 64px) - 10px); right: 0; }
@media (max-width: 860px) {
	.world-bonus-icons { flex-wrap: wrap; }
	.world-bonus-icons li { flex: 0 0 auto; }
	.world-bonus-icons img { width: var(--game-icon, 64px); height: var(--game-icon, 64px); }
	.world-bonus-icons b { top: calc(var(--game-icon, 64px) - 10px); }
}
@media (max-width: 860px) {
	/* five tiles in one row on a phone */
	.world-bonus-icons li { max-width: calc(var(--game-icon, 64px) + 12px); min-width: 0; padding: 5px 2px; }
}

/* bonus icons are high-resolution redraws now (items/hd, 192 px, with their own gold frame): normal smooth scaling,
   no pixel-exact sizing and no extra frame from CSS */
.world-bonus-icons img, .start-bonus-list .item-icon {
	width: 60px; height: 60px; image-rendering: auto; border: 0; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .55);
}
.start-bonus-list .item-icon { width: 44px; height: 44px; border-radius: 5px; }
.world-bonus-icons li { min-width: 0; width: 68px; max-width: none; padding: 5px 2px 6px; }
.world-bonus-icons b { top: 50px; right: -1px; }
@media (max-width: 860px) {
	.world-bonus-icons { flex-wrap: nowrap; }
	.world-bonus-icons li { flex: 1 1 0; width: auto; max-width: none; padding: 5px 1px; }
	.world-bonus-icons img { width: 52px; height: 52px; }
	.world-bonus-icons b { top: 43px; }
}
