/* ===========================================================================
   site.css - SROCraft public site: black lacquer, cinnabar seal, gold leaf

   The owner's commissioned design (2026-11): Cinzel display type, Alegreya
   Sans body and small caps, cinnabar red calls to action and gold rules on
   near-black. Three layers:
     1. tokens, shell (top bar, header, footer) and buttons, every page
     2. the home page's sections (hero, caravan road, ledger, paths,
        calendar, rankings, news, join) - classes used only by home.html
     3. the inner pages' components in the same language: .wrap, .section,
        .section-head, .card, .grid, .table, .tabs, .form, .notice, .badge,
        .list, .kv, .pager, .stat, .pill
     4. the browser-play landing page, breadcrumbs and the Arabic
        (right-to-left) overrides
   The design's art lives in static/design/ (the owner's images), each
   as JPEG and as a smaller WebP that browsers with image-set() take.
   Text-flow spacing uses logical properties (margin-inline-start, ...)
   so the Arabic pages mirror without a second rule.
   =========================================================================== */

@supports (background-image: image-set(url("x.webp") type("image/webp") 1x)) {
	html:root {
		--img-hero: image-set(url("/static/design/hero.webp") type("image/webp") 1x, url("/static/design/hero.jpg") type("image/jpeg") 1x);
		--img-trader: image-set(url("/static/design/trader.webp") type("image/webp") 1x, url("/static/design/trader.jpg") type("image/jpeg") 1x);
		--img-hunter: image-set(url("/static/design/hunter.webp") type("image/webp") 1x, url("/static/design/hunter.jpg") type("image/jpeg") 1x);
		--img-thief: image-set(url("/static/design/thief.webp") type("image/webp") 1x, url("/static/design/thief.jpg") type("image/jpeg") 1x);
		--img-news: image-set(url("/static/design/news.webp") type("image/webp") 1x, url("/static/design/news.jpg") type("image/jpeg") 1x);
		--img-join: image-set(url("/static/design/join.webp") type("image/webp") 1x, url("/static/design/join.jpg") type("image/jpeg") 1x);
	}
}

:root {
	--img-hero: url("/static/design/hero.jpg");
	--img-trader: url("/static/design/trader.jpg");
	--img-hunter: url("/static/design/hunter.jpg");
	--img-thief: url("/static/design/thief.jpg");
	--img-news: url("/static/design/news.jpg");
	--img-join: url("/static/design/join.jpg");

	--ink: #0b0907;
	--ink-2: #14100c;
	--ink-3: #1d1711;
	--line: rgba(201, 163, 91, .18);
	--line-2: rgba(201, 163, 91, .34);
	--paper: #ecdfc4;
	--paper-dim: #b7a98d;
	--mute: #8a7f6b;
	--gold: #c9a35b;
	--gold-hi: #f3dc9a;
	--red: #c8281c;
	--red-deep: #7e1510;
	--jade: #4f8a72;
	--ok: #6fcf97;
	--bad: #ef6a5a;

	--serif: "Cinzel", "Trajan Pro", Georgia, serif;
	--sans: "Alegreya Sans", system-ui, sans-serif;
	--mono: "Alegreya Sans SC", "Alegreya Sans", sans-serif;
	--code: ui-monospace, "Cascadia Code", Consolas, monospace;

	--pad: clamp(16px, 5vw, 72px);
	--ease: cubic-bezier(.2, .7, .1, 1);
	color-scheme: dark;
}

/* ===========================================================================
   1. Base, shell, buttons
   =========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
body {
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	min-height: 100vh;
}
/* film grain */
body::after {
	content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--gold-hi); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img, svg { max-width: 100%; }
em { font-style: normal; font-family: var(--serif); font-weight: inherit; color: var(--gold-hi); }
::selection { background: var(--red); color: var(--paper); }
.mono { font-family: var(--mono); font-weight: 500; font-size: .82em; letter-spacing: .18em; text-transform: lowercase; }
.svgdefs { position: absolute; width: 0; height: 0; }
[hidden] { display: none !important; }

/* Top bar: online count, server clock, next event */
.topbar { position: relative; z-index: 60; border-bottom: 1px solid var(--line); background: #080605; font-size: 12px; color: var(--paper-dim); }
.topbar__in { display: flex; align-items: center; gap: 10px; padding: 7px var(--pad); white-space: nowrap; overflow: hidden; }
.topbar b { color: var(--paper); font-weight: 700; letter-spacing: .12em; font-size: 11px; text-transform: uppercase; }
.topbar .mono { color: var(--gold-hi); font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.topbar .sep { width: 1px; height: 12px; background: var(--line-2); margin: 0 6px; flex: none; }
.topbar__end { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; }
.topbar__end a { color: var(--paper-dim); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.topbar__end a:hover, .topbar__end a.active { color: var(--gold-hi); }
.lang { display: flex; gap: 6px; align-items: center; }
.lang i { font-style: normal; color: var(--line-2); }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #4fd18b; box-shadow: 0 0 0 0 rgba(79, 209, 139, .6); animation: ping 2s infinite; display: inline-block; }
.dot--off, .is-down .dot, .dot.is-down { background: var(--bad); animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(79, 209, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 209, 139, 0); } }

/* Header: links, hanging crest, calls to action */
.nav {
	position: sticky; top: 0; z-index: 50;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
	height: 68px; padding: 0 var(--pad);
	background: linear-gradient(180deg, rgba(30, 22, 14, .94), rgba(12, 9, 6, .94));
	backdrop-filter: blur(12px) saturate(1.3);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
	transition: height .4s var(--ease), box-shadow .4s;
}
.nav::before, .nav::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.nav::before { bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-hi) 50%, var(--gold) 80%, transparent); }
.nav::after { bottom: -4px; height: 1px; background: linear-gradient(90deg, transparent 10%, rgba(201, 163, 91, .35) 50%, transparent 90%); }
.nav.is-solid { height: 60px; box-shadow: 0 12px 34px rgba(0, 0, 0, .6); }

.nav__links { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 28px); justify-self: start; height: 100%; }
.nav__links a {
	position: relative; display: flex; align-items: center; height: 100%;
	font-family: var(--serif); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
	color: #e6d8bc; text-shadow: 0 1px 2px #000; transition: color .25s, text-shadow .25s;
}
.nav__links a::after {
	content: ""; position: absolute; left: 50%; bottom: -1px; width: 100%; height: 2px;
	background: linear-gradient(90deg, transparent, var(--red), var(--gold-hi), var(--red), transparent);
	transform: translateX(-50%) scaleX(0); transition: transform .35s var(--ease);
}
.nav__links a::before {
	content: ""; position: absolute; left: 50%; bottom: -5px; width: 7px; height: 7px; margin-left: -3.5px;
	background: var(--red); border: 1px solid var(--gold-hi); transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); z-index: 1;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--gold-hi); text-shadow: 0 0 14px rgba(243, 200, 120, .55), 0 1px 2px #000; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: translateX(-50%) scaleX(1); }
.nav__links a.is-active::before { transform: rotate(45deg) scale(1); }
.nav__links .nav__mobile-only { display: none; }

/* the hanging crest */
.brand { position: relative; justify-self: center; width: 170px; height: 100%; display: block; transition: opacity .45s, transform .55s var(--ease); }
.brand::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 112px;
	background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, #7d5a24);
	clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
	filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .7));
}
.brand::after {
	content: ""; position: absolute; left: 3px; right: 3px; top: 0; height: 107px;
	background: radial-gradient(120% 80% at 50% 0%, #3b1810, #170c07 70%);
	clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
}
.brand__logo {
	position: absolute; z-index: 1; left: 50%; top: 4px; width: 150px; height: auto; transform: translateX(-50%);
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .8)); transition: transform .4s var(--ease);
}
.brand:hover .brand__logo { transform: translateX(-50%) scale(1.06) rotate(-2deg); }
.nav:not(.show-brand) .brand { opacity: 0; transform: translateY(-110%); pointer-events: none; }

.nav__cta { display: flex; align-items: center; gap: 10px; justify-self: end; }
.nav__cta .btn { padding: 10px 16px; font-size: 12px; }
.nav__discord { display: grid; place-items: center; width: 40px; height: 40px; color: #e6d8bc; border: 1px solid var(--line-2); transform: rotate(45deg) scale(.82); transition: all .3s; flex: none; }
.nav__discord svg { width: 20px; height: 20px; transform: rotate(-45deg); }
.nav__discord:hover { color: #fff; background: #5865f2; border-color: #5865f2; }
.nav__cta .btn--red { box-shadow: 0 0 0 1px rgba(243, 220, 154, .35), 0 0 22px rgba(200, 40, 28, .45); }
.burger { display: none; justify-self: end; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--paper); margin: 7px 8px; transition: transform .3s; }

/* Buttons: the design's cut-corner shapes; .btn-primary/-sm/-lg are the
   pages' older names for the same buttons. */
.btn {
	--c: 8px;
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 11px 20px; border: 0; background: transparent; color: var(--paper);
	font: 700 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
	box-shadow: inset 0 0 0 1px var(--line-2);
	clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
	transition: color .3s, background-color .3s;
	overflow: hidden; isolation: isolate; cursor: pointer;
}
.btn:hover { background: rgba(201, 163, 91, .1); color: var(--gold-hi); }
.btn svg { width: 16px; height: 16px; }
.btn--lg, .btn-lg { padding: 16px 28px; font-size: 14px; --c: 11px; }
.btn-sm { padding: 8px 14px; font-size: 11.5px; --c: 6px; }
.btn--red, .btn-primary { background: var(--red); color: #fff3e2; box-shadow: none; }
.btn--red::before, .btn-primary::before, .btn--gold::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 236, 190, .55) 50%, transparent 70%);
	transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--red:hover::before, .btn-primary:hover::before, .btn--gold:hover::before { transform: translateX(120%); }
.btn--red:hover, .btn-primary:hover { background: #dd3324; color: #fff; }
.btn--ghost { color: var(--paper); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--goldline { color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(243, 220, 154, .55); }
.btn--gold, .btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #9c7a3c); color: #1a1209; box-shadow: none; }
.btn--gold:hover, .btn-gold:hover { color: #000; }
.btn--ghost-light { color: #fff3e2; box-shadow: inset 0 0 0 1px rgba(255, 236, 210, .45); }
.btn--ghost-light:hover { background: rgba(255, 236, 210, .1); color: #fff; }

/* Footer */
.foot { padding: 60px var(--pad) 36px; border-top: 1px solid var(--line); overflow: hidden; margin-top: 40px; }
.is-home .foot { margin-top: 0; }
.foot__mark {
	font-family: var(--serif); font-weight: 900; font-size: clamp(56px, 19vw, 320px); line-height: .8; letter-spacing: .01em;
	color: transparent; -webkit-text-stroke: 1px var(--line-2); text-align: center; user-select: none; white-space: nowrap;
}
.foot__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 40px; font-size: 13px; color: var(--mute); }
.foot__brand { display: flex; gap: 18px; align-items: center; max-width: 620px; }
.foot__brand img { width: 96px; height: auto; flex: none; }
.foot__row nav { display: flex; gap: 12px 26px; flex-wrap: wrap; }
.foot__row nav a { letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--paper-dim); }
.foot__row nav a:hover { color: var(--gold-hi); }

/* Reveal on scroll: only when site.js runs (it sets html.js) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ===========================================================================
   2. Home page
   =========================================================================== */

/* Hero */
.hero {
	position: relative; min-height: calc(100vh - 100px);
	display: flex; flex-direction: column; overflow: hidden;
	background:
		radial-gradient(120% 70% at 70% 110%, rgba(200, 40, 28, .22), transparent 60%),
		radial-gradient(60% 50% at 20% 0%, rgba(201, 163, 91, .09), transparent 70%),
		var(--ink);
}
.hero__bg { position: absolute; inset: 0; background: var(--img-hero) 70% 40% / cover no-repeat; filter: saturate(1.05) contrast(1.05) brightness(.9); transform: scale(1.06); animation: slowzoom 30s ease-out forwards; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 9, 7, .55) 0%, transparent 22%, transparent 70%, rgba(11, 9, 7, .9) 96%), linear-gradient(90deg, rgba(11, 9, 7, .6) 0%, rgba(11, 9, 7, .1) 45%, transparent); }
@keyframes slowzoom { to { transform: scale(1); } }
#sand { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__sun {
	position: absolute; right: 12%; bottom: 22%; pointer-events: none;
	width: min(46vw, 620px); aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle at 50% 50%, #d23a22 0%, #a01c12 45%, rgba(126, 21, 16, 0) 70%);
	opacity: .32; filter: blur(2px); mix-blend-mode: screen;
}
.hero__inner { position: relative; z-index: 3; flex: 1; padding: clamp(28px, 6vh, 80px) var(--pad) 0; }

.logo-hero { margin: 0; line-height: 0; }
.logo-hero img { width: min(540px, 84vw); height: auto; filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .75)) drop-shadow(0 0 40px rgba(201, 140, 50, .22)); animation: logoIn 1.3s var(--ease) both, hover 7s 1.3s ease-in-out infinite; }
@keyframes logoIn { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes hover { 50% { transform: translateY(-8px); } }

.herocrest { position: relative; width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 10px; }
.herocrest::before {
	content: ""; position: absolute; z-index: -1; left: -18%; right: -18%; top: 22%; bottom: -12%;
	background: radial-gradient(closest-side, rgba(8, 6, 4, .78), rgba(8, 6, 4, .45) 55%, transparent); pointer-events: none;
}
.herocrest .ornament { display: flex; align-items: center; gap: 8px; width: min(360px, 80%); margin: -6px 0 14px; }
.herocrest .ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.herocrest .ornament span:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.herocrest .ornament i { width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }
.herocrest .ornament b { width: 11px; height: 11px; transform: rotate(45deg); border: 1.5px solid var(--gold-hi); box-shadow: 0 0 10px rgba(243, 220, 154, .6); background: var(--red); }
.herocrest__tag {
	font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.15; letter-spacing: .04em;
	background: linear-gradient(180deg, #fff3d2 10%, var(--gold-hi) 45%, var(--gold) 75%, #8d6a2f);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .9));
}
.herocrest__lede { max-width: 460px; margin-top: 10px; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: #e9dcc2; text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 14px rgba(0, 0, 0, .8); }
.herocrest__facts {
	list-style: none; display: flex; flex-wrap: wrap; justify-content: center; margin: 22px 0 24px;
	border-block: 1px solid rgba(201, 163, 91, .35);
	background: linear-gradient(90deg, transparent, rgba(11, 9, 7, .55) 15%, rgba(11, 9, 7, .55) 85%, transparent);
}
.herocrest__facts li { position: relative; padding: 10px clamp(12px, 1.8vw, 24px); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.herocrest__facts li + li::before { content: ""; position: absolute; left: -3px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; transform: rotate(45deg); background: var(--red); }
.herocrest__facts b { font-family: var(--serif); font-weight: 800; font-size: clamp(20px, 1.8vw, 26px); line-height: 1; color: var(--gold-hi); text-shadow: 0 0 14px rgba(243, 200, 120, .35); }
.herocrest__facts span { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-dim); }
.herocrest__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.herocrest__cta .btn--ghost { background: rgba(11, 9, 7, .55); backdrop-filter: blur(4px); }
.herocrest__live { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--paper-dim); text-shadow: 0 1px 3px #000; }
.herocrest__live b { color: var(--paper); font-variant-numeric: tabular-nums; }

.scrollcue {
	position: relative; z-index: 3; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
	margin: clamp(20px, 5vh, 50px) 0 -30px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--paper-dim);
}
.scrollcue span { width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scrollcue span::after { content: ""; position: absolute; left: -2px; top: -10px; width: 5px; height: 10px; background: var(--gold-hi); border-radius: 3px; animation: drip 1.8s ease-in infinite; }
@keyframes drip { to { transform: translateY(70px); } }
.mountains { position: relative; z-index: 1; display: block; width: 100%; height: clamp(90px, 16vh, 200px); margin-top: -40px; }
.m1 { fill: #17110c; }
.m2 { fill: var(--ink); }

/* World announcement ticker */
.killfeed { position: relative; border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.killfeed__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.killfeed__dup { display: flex; }
.killfeed:hover .killfeed__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.kill { display: flex; align-items: center; gap: 10px; padding: 13px 28px; font-size: 13px; white-space: nowrap; color: var(--paper-dim); }
.kill small { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: .06em; }
.kill::after { content: ""; width: 4px; height: 4px; background: var(--line-2); transform: rotate(45deg); margin-inline-start: 18px; }

/* Section heads (home) */
.hsec { padding: clamp(72px, 12vh, 150px) var(--pad); position: relative; }
.hsec--tight { padding-bottom: clamp(60px, 9vh, 100px); }
.shead { position: relative; display: flex; align-items: flex-end; gap: clamp(16px, 2.5vw, 32px); margin-bottom: clamp(36px, 6vh, 72px); border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.shead__num { font-family: var(--serif); font-weight: 900; font-size: clamp(44px, 6vw, 92px); line-height: .85; color: var(--red); text-shadow: 0 0 40px rgba(200, 40, 28, .45); min-width: 1.2em; }
.shead__eyebrow { color: var(--gold); margin-bottom: 8px; }
.shead h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 5.2vw, 76px); line-height: .95; letter-spacing: .01em; }
.shead::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
	background: linear-gradient(90deg, transparent, var(--red) 20%, var(--gold-hi) 60%, #fff 66%, transparent 70%);
	transform: scaleX(0); transform-origin: left; opacity: 0;
}
.shead.in::after { animation: slash 1.1s .25s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes slash { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.shead.in .shead__num { animation: numIn .8s var(--ease) both; }
@keyframes numIn { from { transform: translateX(-30px) skewX(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Caravan road: vertical scroll drives a horizontal journey */
.journey { position: relative; height: 420vh; background: var(--ink); }
.journey__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.journey__bg { position: absolute; inset: -5%; background: var(--img-trader) center / cover no-repeat; filter: sepia(.4) saturate(.7) brightness(.32); transform: scale(1.15); will-change: transform; }
.journey__sticky::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 9, 7, .2) 25%, rgba(11, 9, 7, .25) 70%, var(--ink) 100%); }
.journey__head { position: absolute; z-index: 3; top: clamp(80px, 13vh, 130px); left: var(--pad); right: var(--pad); }
.journey__head .mono { color: var(--gold); }
.journey__head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4.4vw, 64px); line-height: 1; margin-top: 10px; }
.journey__track { position: absolute; z-index: 2; left: 0; top: 26vh; height: 62vh; width: max(300vw, 2400px); will-change: transform; }
.journey__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.journey__line { fill: none; stroke: rgba(236, 223, 196, .22); stroke-width: 2; stroke-dasharray: 2 10; }
.journey__done { fill: none; stroke: var(--gold); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(243, 220, 154, .6)); stroke-dasharray: 1; stroke-dashoffset: 1; }
.stop { position: absolute; width: 0; height: 0; }
/* the stops' places on the path, refined by site.js */
.stop--1 { left: 6.67%; top: 57.5%; }
.stop--2 { left: 26.67%; top: 67.5%; }
.stop--3 { left: 46.67%; top: 42.5%; }
.stop--4 { left: 66.67%; top: 63.75%; }
.stop--5 { left: 86.67%; top: 40%; }
.stop__pin { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; transform: rotate(45deg); background: var(--ink); border: 2px solid var(--line-2); transition: background .5s, border-color .5s, box-shadow .5s; }
.stop.is-reached .stop__pin { background: var(--red); border-color: var(--gold-hi); box-shadow: 0 0 0 6px rgba(200, 40, 28, .25), 0 0 30px rgba(200, 40, 28, .8); }
.stop__card {
	position: absolute; left: -30px; bottom: 36px; width: min(340px, 70vw);
	padding: 20px 22px 22px; border-left: 2px solid var(--line-2);
	background: linear-gradient(90deg, rgba(11, 9, 7, .85), rgba(11, 9, 7, .35));
	opacity: .35; transform: translateY(16px); filter: blur(1px);
	transition: opacity .6s, transform .7s var(--ease), filter .6s, border-color .6s;
}
.stop--down .stop__card { bottom: auto; top: 36px; }
.stop.is-reached .stop__card { opacity: 1; transform: none; filter: none; border-color: var(--red); }
.stop__city { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.stop__city i { font-style: normal; color: var(--mute); letter-spacing: .08em; text-transform: none; margin-inline-start: 8px; }
.stop h3 { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 3.6vw, 56px); line-height: 1; margin: 8px 0 10px; color: var(--paper); }
.stop.is-reached h3 { background: linear-gradient(180deg, #fff2cf, var(--gold) 70%, #8d6a2f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stop__card p:last-child { color: var(--paper-dim); font-size: 15px; line-height: 1.5; }
.caravan { position: absolute; left: 0; top: 0; z-index: 4; width: 64px; color: var(--gold-hi); filter: drop-shadow(0 0 12px rgba(243, 180, 90, .8)); will-change: transform; opacity: 0; }
.js .caravan { opacity: 1; }
.caravan svg { display: block; width: 100%; animation: trot .5s ease-in-out infinite alternate; }
@keyframes trot { to { transform: translateY(-3px); } }
.journey__bar { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 34px; height: 2px; background: var(--line); }
.journey__bar span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--red), var(--gold-hi)); transform-origin: left; transform: scaleX(0); }

/* Server ledger */
.ledger { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); }
.dropcap { font-size: clamp(17px, 1.4vw, 20px); color: var(--paper-dim); max-width: 560px; }
.dropcap::first-letter { float: left; font-family: var(--serif); font-weight: 900; font-size: 5.2em; line-height: .78; margin: .06em .1em 0 0; color: var(--red); }
.bigstats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.bigstats div { padding: 22px 0 0 22px; border-right: 1px solid var(--line); min-width: 0; }
.bigstats div:first-child { padding-left: 0; }
.bigstats div:last-child { border-right: 0; }
.bigstats b { display: block; font-family: var(--serif); font-weight: 800; font-size: clamp(36px, 5vw, 78px); line-height: 1; letter-spacing: .01em; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.bigstats span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ledger__list { align-self: start; }
.ledger__list div { display: flex; align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease), background .35s; }
.ledger__list div:hover { padding-inline: 12px; background: linear-gradient(90deg, rgba(200, 40, 28, .12), transparent); }
.ledger__list dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-dim); white-space: nowrap; }
.ledger__list div::before { content: ""; order: 1; flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.ledger__list dd { order: 2; font-family: var(--serif); font-size: 18px; font-weight: 600; text-align: end; }
.ledger__more { margin-top: 28px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }

/* Job paths */
.paths { display: flex; gap: 10px; height: clamp(440px, 62vh, 560px); perspective: 1200px; }
.path {
	--tone: var(--gold);
	position: relative; flex: 1; overflow: hidden; cursor: pointer;
	background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line);
	transition: flex-grow .8s var(--ease), border-color .5s, transform .25s ease-out;
	display: flex; align-items: flex-end;
	transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.path::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 230, 170, .16), transparent 60%); }
.path:hover::after { opacity: 1; }
.path--trader { --img: var(--img-trader); }
.path--hunter { --tone: var(--jade); --img: var(--img-hunter); }
.path--thief { --tone: var(--red); --img: var(--img-thief); }
.path::before { content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: color; background: radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--tone) 38%, transparent), transparent 70%); opacity: .35; transition: opacity .6s; }
.path:hover, .path.is-open, .path:focus-visible { flex-grow: 2.4; border-color: color-mix(in srgb, var(--tone) 60%, transparent); outline: none; }
.path:hover::before, .path.is-open::before { opacity: 1; }
.path__img { position: absolute; inset: 0; z-index: 0; background: var(--img) center / cover no-repeat; filter: grayscale(.7) sepia(.3) brightness(.42); transform: scale(1.1); transition: transform 1.2s var(--ease), filter .8s; }
.path__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(11, 9, 7, .6) 55%, rgba(11, 9, 7, .97)); }
.path:hover .path__img, .path.is-open .path__img { transform: scale(1); filter: grayscale(0) sepia(.15) brightness(.72); }
.path__body { position: relative; z-index: 2; padding: clamp(20px, 2.5vw, 36px); max-width: 440px; }
.path__tag { color: var(--tone); margin-bottom: 10px; }
.path h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.6vw, 54px); line-height: 1; letter-spacing: .01em; margin-bottom: 14px; }
.path__body > p:not(.path__tag) { color: var(--paper-dim); font-size: 15px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s .1s; }
.path:hover .path__body > p, .path.is-open .path__body > p, .path:focus-visible .path__body > p { max-height: 160px; opacity: 1; }
.path__meta { list-style: none; display: flex; gap: 24px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); letter-spacing: .06em; }
.path__meta b { display: block; font-family: var(--serif); font-size: 22px; color: var(--paper); letter-spacing: 0; overflow-wrap: anywhere; }

/* Calendar */
.schedule { display: grid; grid-template-columns: minmax(300px, .8fr) 1.6fr; gap: clamp(30px, 4vw, 64px); align-items: start; }
.next { position: sticky; top: 110px; padding: 34px; border: 1px solid var(--line-2); background: linear-gradient(135deg, rgba(200, 40, 28, .2), transparent 55%), var(--ink-2); }
.next::before, .next::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--gold); }
.next::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.next::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.next__label { color: var(--bad); }
.next h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 44px); font-weight: 700; line-height: 1.05; margin: 12px 0 6px; }
.next__when { color: var(--paper-dim); font-size: 14px; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 28px 0 30px; }
.cd div { text-align: center; padding: 14px 0 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.cd b { display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(22px, 2.2vw, 32px); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.cd span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.events { list-style: none; border-top: 1px solid var(--line); }
.event { position: relative; display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .3s, padding .4s var(--ease); }
.event:hover { background: rgba(201, 163, 91, .05); padding-inline: 14px; }
.event__time { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.event__name { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.15; }
.event__desc { color: var(--mute); font-size: 13.5px; margin-top: 2px; }
.days { display: flex; gap: 4px; }
.days span { width: 26px; height: 26px; display: grid; place-items: center; font-size: 10.5px; font-family: var(--mono); color: var(--mute); border: 1px solid var(--line); }
.days span.on { color: var(--paper); border-color: var(--line-2); background: rgba(201, 163, 91, .08); }
.days span.today { border-color: var(--red); color: #fff; background: var(--red); }
.event.is-next::before { content: ""; position: absolute; left: -18px; top: 50%; width: 8px; height: 8px; background: var(--red); transform: translateY(-50%) rotate(45deg); box-shadow: 0 0 12px var(--red); }
.event.is-next .event__time { color: var(--bad); }

/* Rankings boards */
.rankboard { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 4vw, 64px); align-items: start; }
.podium { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.champ { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 22px 24px; border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; animation: fadeUp .6s var(--ease) both; }
.champ:nth-child(2) { animation-delay: .07s; }
.champ__n { font-family: var(--serif); font-weight: 900; font-size: 56px; line-height: .8; color: var(--mute); width: 52px; }
.champ--2 .champ__n { color: #cfc6b5; }
.champ--3 .champ__n { color: #b06c3e; }
.champ__name { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.champ__name a, .poster__name a, .table td.nm a { color: inherit; }
.champ__sub { font-size: 12px; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.champ__val { text-align: end; font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--gold-hi); }
.champ__val small { display: block; font-size: 10px; color: var(--mute); letter-spacing: .14em; font-weight: 400; }
.race { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 2px 6px; border: 1px solid var(--line-2); margin-inline-start: 8px; color: var(--gold); vertical-align: 2px; }
.race.eu { color: #8fb3d9; border-color: rgba(143, 179, 217, .35); }

/* The "wanted" poster for each board's leader */
.poster-wrap { display: flex; justify-content: center; padding: 10px 0 30px; }
.poster {
	position: relative; width: min(380px, 100%); padding: 34px 34px 30px; text-align: center; color: #2b1a0c;
	background:
		radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(90, 50, 15, .55) 100%),
		radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .25), transparent 40%),
		linear-gradient(170deg, #ecd9ab, #d9bd84 55%, #c39c5e);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(80, 45, 15, .3), inset 0 0 40px rgba(90, 50, 15, .45);
	transform: rotate(-2.2deg); transition: transform .6s var(--ease); animation: fadeUp .7s var(--ease) both;
}
.poster::before {
	content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: multiply; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04 .6' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
.poster:hover { transform: rotate(0deg) scale(1.02); }
.poster__nail { position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ccc, #444 60%, #111); box-shadow: 0 2px 3px rgba(0, 0, 0, .6); }
.poster__kicker { position: relative; font-family: var(--serif); font-weight: 700; font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: #7a2a12; margin-top: 6px; }
.poster__title { position: relative; font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 4.4vw, 58px); line-height: .95; letter-spacing: .02em; margin: 6px 0 16px; color: #2b1a0c; text-shadow: 0 1px 0 rgba(255, 240, 200, .5); }
.poster__portrait { position: relative; aspect-ratio: 4 / 3; margin: 0 auto 16px; border: 3px solid #3a230f; background: var(--pimg) center 30% / cover no-repeat; filter: sepia(.9) contrast(1.25) brightness(.85); box-shadow: inset 0 0 30px rgba(40, 20, 5, .7); }
.poster__portrait--level { --pimg: var(--img-hunter); }
.poster__portrait--guild { --pimg: var(--img-join); }
.poster__portrait--unique { --pimg: var(--img-news); }
.poster__portrait--job { --pimg: var(--img-thief); }
.poster__name { position: relative; font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 2.8vw, 38px); line-height: 1; letter-spacing: .04em; overflow-wrap: anywhere; }
.poster__meta { position: relative; font-size: 13px; color: #5a3a1c; margin-top: 6px; letter-spacing: .06em; }
.poster__reward { position: relative; margin-top: 18px; padding-top: 14px; border-top: 2px solid rgba(58, 35, 15, .5); display: flex; flex-direction: column; align-items: center; }
.poster__reward span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #5a3a1c; }
.poster__reward b { font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; color: #7a1a0c; font-variant-numeric: tabular-nums; }
.poster__reward small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #5a3a1c; }
.poster__seal { position: absolute; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #d8392a, #8e150d 70%); color: #f4d6b0; font-family: var(--serif); font-weight: 900; font-size: 15px; box-shadow: 0 3px 6px rgba(0, 0, 0, .4), inset 0 0 0 4px rgba(255, 200, 170, .2); transform: rotate(-12deg); filter: url(#rough); }
.poster__stamp { position: absolute; top: 44%; right: -14px; padding: 6px 14px; border: 3px solid rgba(170, 25, 15, .8); color: rgba(170, 25, 15, .85); font-family: var(--serif); font-weight: 900; font-size: 18px; letter-spacing: .18em; text-transform: uppercase; transform: rotate(14deg); mix-blend-mode: multiply; filter: url(#rough); animation: stamp .6s .4s var(--ease) both; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(24deg) scale(2.2); } 70% { opacity: 1; transform: rotate(12deg) scale(.95); } 100% { opacity: 1; transform: rotate(14deg) scale(1); } }

/* News (home) */
.news { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: repeat(3, auto); border-top: 1px solid var(--line); }
.news__item { display: block; padding: 28px 0 28px 32px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); transition: background .35s; color: var(--paper); }
.news__item:hover { background: linear-gradient(90deg, rgba(200, 40, 28, .09), transparent 70%); color: var(--paper); }
.news__item--lead { grid-row: 1 / span 3; border-left: 0; padding: 36px 48px 36px 0; display: flex; flex-direction: column; }
.news__img { display: block; height: clamp(180px, 24vw, 320px); margin-bottom: 28px; background: var(--img-news) center 40% / cover no-repeat; filter: saturate(.8) contrast(1.1) brightness(.75); transition: filter .6s; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.news__item--lead:hover .news__img { filter: saturate(1.05) contrast(1.1) brightness(.95); }
.news__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; color: var(--mute); }
.tag { font-size: 10px; padding: 3px 8px; border: 1px solid var(--line-2); color: var(--gold); letter-spacing: .14em; }
.tag--red { background: var(--red); border-color: var(--red); color: #fff; }
.news__item h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.2; margin: 14px 0 10px; transition: color .25s; overflow-wrap: anywhere; }
.news__item--lead h3 { font-size: clamp(28px, 3.3vw, 50px); line-height: 1.04; letter-spacing: .01em; margin: 22px 0 20px; }
.news__item--lead p { color: var(--paper-dim); max-width: 520px; margin-bottom: 28px; }
.news__item:hover h3 { color: var(--gold-hi); }
.news__more { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim); margin-top: auto; }
.news__more i { font-style: normal; display: inline-block; transition: transform .3s var(--ease); }
.news__item:hover .news__more i { transform: translateX(6px); }

/* Join */
.join { position: relative; overflow: hidden; background: radial-gradient(80% 120% at 50% 0%, #b3231a, var(--red-deep) 60%, #3d0a07); padding: clamp(90px, 15vh, 170px) var(--pad); text-align: center; color: #fff3e2; }
.join__bg { position: absolute; inset: 0; background: var(--img-join) center / cover no-repeat; mix-blend-mode: luminosity; opacity: .38; }
.join__lattice {
	position: absolute; inset: -2px; opacity: .16;
	background:
		repeating-linear-gradient(0deg, transparent 0 46px, var(--gold-hi) 46px 47px),
		repeating-linear-gradient(90deg, transparent 0 46px, var(--gold-hi) 46px 47px),
		repeating-linear-gradient(45deg, transparent 0 32px, rgba(243, 220, 154, .5) 32px 33px);
	mask-image: radial-gradient(70% 70% at 50% 50%, transparent 25%, #000 85%);
}
.join__inner { position: relative; max-width: 900px; margin: 0 auto; }
.join__eyebrow { color: var(--gold-hi); letter-spacing: .24em; }
.join__title { font-family: var(--serif); font-weight: 900; font-size: clamp(52px, 11vw, 170px); line-height: .88; letter-spacing: .01em; margin: 20px 0 22px; }
.join__title em { font-weight: 400; color: var(--gold-hi); }
.join__lede { font-size: 18px; color: rgba(255, 243, 226, .85); margin-bottom: 40px; }
.join__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.reqs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-top: 56px; color: rgba(255, 243, 226, .7); }
.reqs div { display: flex; gap: 8px; }
.reqs dt { color: var(--gold-hi); }

/* Click sparks (site.js) */
.sparks { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 99; }

/* ===========================================================================
   3. Inner pages
   =========================================================================== */
.wrap { width: min(1240px, 100% - 2 * var(--pad)); margin-inline: auto; }
.section { padding: clamp(48px, 8vh, 88px) 0; position: relative; }
.section-tight { padding: 0 0 48px; }
.is-page main > .section:first-child {
	padding-top: clamp(56px, 10vh, 110px);
	background:
		linear-gradient(180deg, rgba(11, 9, 7, .55), var(--ink) 340px),
		radial-gradient(70% 300px at 80% 0, rgba(200, 40, 28, .22), transparent 70%),
		var(--img-hero) 70% 30% / cover no-repeat;
	background-size: auto, auto, 100% 420px;
	background-repeat: no-repeat;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .02em; line-height: 1.12; margin: 0 0 .5em; overflow-wrap: anywhere; }
h1 { font-size: clamp(32px, 5vw, 62px); font-weight: 600; }
h2 { font-size: clamp(24px, 3.2vw, 38px); font-weight: 600; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.muted { color: var(--paper-dim); }
.gold { color: var(--gold-hi); }
.center { text-align: center; }
.small { font-size: 12.5px; }
.narrow { max-width: 820px; }
.subhead { margin-top: 36px; }
.lead { font-size: 18px; }

.section-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-head h1, .section-head h2 { margin: 0; }
.section-head h1 { background: linear-gradient(180deg, #fff3d2 10%, var(--gold-hi) 45%, var(--gold) 80%, #8d6a2f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .8)); }
.section-head .ornament { display: block; width: 96px; height: 2px; margin: 12px 0 0; background: linear-gradient(90deg, var(--red), var(--gold-hi), transparent); }
.section-head > a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.section-head .facts { display: flex; gap: 8px; flex-wrap: wrap; }

/* Cards and grids */
.grid { display: grid; gap: 16px; }
.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)); }
.card { position: relative; padding: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(200, 40, 28, .06), transparent 45%), var(--ink-2); min-width: 0; }
.card::before, .card::after { content: ""; position: absolute; width: 12px; height: 12px; border: 1.5px solid var(--gold); pointer-events: none; }
.card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.card h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--paper); }
.card.link { display: block; color: var(--paper); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.card.link:hover { border-color: var(--line-2); background: linear-gradient(160deg, rgba(200, 40, 28, .14), transparent 55%), var(--ink-2); transform: translateY(-3px); }
.card.link:hover h3 { color: var(--gold-hi); }
.stat { text-align: center; padding: 22px 12px; }
.stat .value { font: 800 30px/1.2 var(--serif); color: var(--gold-hi); overflow-wrap: anywhere; }
.stat .value-sm { font-size: 20px; line-height: 1.5; }
.stat .label { color: var(--mute); font-size: 11px; text-transform: uppercase; letter-spacing: .2em; margin-top: 4px; }
.news-item .date { color: var(--mute); font-family: var(--mono); font-size: 13px; letter-spacing: .1em; }
.news-item h3 { margin: 10px 0 12px; font-size: 20px; }

/* Badges and pills */
.badge { display: inline-block; padding: 2px 9px; font: 700 11px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--gold); background: rgba(201, 163, 91, .05); white-space: nowrap; }
.badge.alive, .badge.ok { color: var(--ok); border-color: rgba(111, 207, 151, .45); background: rgba(111, 207, 151, .06); }
.badge.dead, .badge.bad { color: #fff; border-color: var(--red); background: var(--red); }
.badge.gold { color: #1a1209; border-color: var(--gold); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.pill { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border: 1px solid var(--line-2); background: rgba(11, 9, 7, .55); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); }

/* Tables */
.table-wrap { overflow-x: auto; }
.card.table-wrap { padding: 8px 18px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: start; font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); padding: 12px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--paper-dim); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(201, 163, 91, .05); color: var(--paper); }
.table td strong, .table td.nm { color: var(--paper); font-weight: 700; }
.table td.rank { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--mute); width: 56px; }
.table tbody tr:nth-child(1) td.rank { color: var(--gold-hi); text-shadow: 0 0 12px rgba(243, 220, 154, .4); }
.table tbody tr:nth-child(2) td.rank { color: #cfc6b5; }
.table tbody tr:nth-child(3) td.rank { color: #b06c3e; }
.rankboard .table tbody tr td.rank { color: var(--mute); text-shadow: none; }
.table .num { text-align: end; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }

/* Tabs: the design's underlined tabs; sub-tabs are small chips */
.tabs { display: flex; gap: 0; margin-bottom: 30px; border-bottom: 1px solid var(--line); max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; background: none; border: 0; color: var(--mute); cursor: pointer; font: 700 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 14px 20px; position: relative; transition: color .25s; }
.tabs a::after, .tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .4s var(--ease); }
.tabs a:hover { color: var(--paper); }
.tabs a.active, .tabs a.is-on { color: var(--paper); }
.tabs a.active::after, .tabs a.is-on::after { transform: scaleX(1); }
.tabs-sub { border-bottom: 0; gap: 6px; flex-wrap: wrap; margin: -14px 0 18px; }
.tabs-sub a { padding: 7px 12px; font-size: 11px; border: 1px solid var(--line); }
.tabs-sub a::after { display: none; }
.tabs-sub a.active { color: var(--gold-hi); border-color: var(--gold); background: rgba(201, 163, 91, .08); }

/* Lists and key/value pairs */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--paper-dim); }
.list li:last-child { border-bottom: 0; }
.list li strong { color: var(--paper); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--mute); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.kv dd { margin: 0; text-align: end; font-weight: 700; }
.kv-stack { grid-template-columns: 1fr; }
.kv-stack dd { text-align: start; font-weight: 400; color: var(--paper-dim); margin-bottom: 8px; }

/* Pager and search */
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 24px; font-family: var(--mono); }
.search-inline { display: flex; gap: 8px; }
.search-inline input, .form input, .form select, .form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 0; background: rgba(0, 0, 0, .35); color: var(--paper);
	font: 16px var(--sans); min-width: 0; transition: border-color .2s, box-shadow .2s;
}
.search-inline input:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 163, 91, .15); }
.search-inline input { padding: 9px 12px; font-size: 15px; }
.search-wide { margin-bottom: 22px; }
.search-wide input { flex: 1; }

/* Forms and notices */
.form { display: grid; gap: 16px; max-width: 460px; }
.form label { display: grid; gap: 7px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim); }
.form .hint { font-size: 12.5px; color: var(--mute); text-transform: none; letter-spacing: normal; }
.form .check { display: flex; gap: 10px; align-items: flex-start; color: var(--paper); text-transform: none; letter-spacing: normal; font-size: 14.5px; }
.form .check input { width: auto; margin-top: 5px; accent-color: var(--red); }
.form input.mono, .list .mono { font-family: var(--code); text-transform: none; letter-spacing: .04em; font-size: 15px; }
.notice { padding: 13px 16px; border: 1px solid var(--line-2); border-inline-start: 3px solid var(--gold); background: var(--ink-2); margin-bottom: 16px; color: var(--paper); }
.notice.ok { border-color: rgba(111, 207, 151, .45); border-inline-start-color: var(--ok); color: #b6ecc9; }
.notice.err { border-color: rgba(200, 40, 28, .55); border-inline-start-color: var(--red); color: #f7b3a8; background: linear-gradient(90deg, rgba(200, 40, 28, .14), var(--ink-2)); }

/* Account forms */
.auth { display: grid; place-items: center; }
.auth-card { width: min(500px, 100%); padding: clamp(24px, 4vw, 40px); }
.auth-card h1 { font-size: clamp(28px, 4vw, 38px); color: var(--gold-hi); }
.auth-card .form { max-width: none; }
.auth-alt { margin: 20px 0 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Google sign-in (site_google.go): Google's light button, per its branding
   rules - white fill, #747775 1px stroke, #1F1F1F Roboto Medium 14px text,
   the full-colour G at 20px, 12px padding. */
.gsi-wrap { margin: 18px 0 4px; }
.gsi-or { display: flex; align-items: center; gap: 12px; color: var(--muted, #9a9a9a); font-size: 13px; margin-bottom: 14px; }
.gsi-or::before, .gsi-or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.gsi-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 40px; padding: 10px 12px; box-sizing: border-box;
	background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; border-radius: 4px; font: 500 14px/20px Roboto, Arial, sans-serif; letter-spacing: .25px; text-decoration: none; cursor: pointer; }
.gsi-btn:hover { background: #F8F9FA; box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); color: #1F1F1F; }
.gsi-btn:focus-visible { outline: 2px solid #0B57D0; outline-offset: 2px; }
.inline-form .gsi-btn { width: auto; }
.gsi-icon { display: inline-flex; width: 20px; height: 20px; flex: none; }
.cf-turnstile { min-height: 65px; }
.epin-history { margin-top: 26px; }

/* Character profile */
.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.profile-head h1 { margin: 0 0 10px; color: var(--gold-hi); }
.profile-head .facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.crest { flex: 0 0 72px; height: 72px; background: url("/static/site-crest-european.svg") center / contain no-repeat; }
.crest-chinese { background-image: url("/static/site-crest-chinese.svg"); }

/* World pages */
.fortress-card h3, .event-card h3 { font-size: 18px; }
.event-card.running { border-color: rgba(111, 207, 151, .45); }
.countdown { font: 700 18px var(--mono); color: var(--gold-hi); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.countdown-line { margin: 12px 0 0; color: var(--mute); font-size: 13px; }
.info-text { margin-top: 18px; }
.rule h3 { font-size: 16px; }
details.fold { margin-top: 20px; }
details.fold summary { cursor: pointer; font-family: var(--serif); font-weight: 700; color: var(--gold-hi); }
details.fold[open] summary { margin-bottom: 12px; }

/* Guide, articles and legal text */
.article { max-width: 820px; }
.article .body p, .legal .body p { color: var(--paper-dim); font-size: 17px; }
.article .lead { font-size: 18px; }
ol.guide { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step, .card.step { position: relative; padding-inline-start: 86px; }
.step::after { counter-increment: step; content: counter(step, upper-roman); position: absolute; inset-inline-start: 24px; top: 20px; font: 900 30px/1 var(--serif); color: var(--red); text-shadow: 0 0 24px rgba(200, 40, 28, .45); }
.guide .step h2 { font-size: 21px; }
.step .btn { margin-top: 4px; }
.legal h2 { font-size: 21px; margin-top: 30px; }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 1400px) {
	.nav__links { gap: 14px; }
	.nav__links a { font-size: 11.5px; letter-spacing: .08em; }
	.nav__cta .btn { padding: 9px 12px; font-size: 11px; letter-spacing: .06em; }
	.nav__discord { display: none; }
}
/* ten menu links: tighter between the burger breakpoint and 1400px */
@media (max-width: 1400px) and (min-width: 1241px) {
	.nav__links { gap: 10px; }
	.nav__links a { font-size: 11px; letter-spacing: .04em; }
}
@media (max-width: 1080px) {
	.ledger, .schedule, .rankboard { grid-template-columns: 1fr; }
	.next { position: relative; top: 0; }
	.news { grid-template-columns: 1fr; }
	.news__item--lead { grid-row: auto; padding-right: 0; }
	.news__item { border-left: 0; padding-left: 0; }
	.grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
	.nav__links, .nav__cta { display: none; }
	.burger { display: block; grid-column: 3; grid-row: 1; }
	.nav { grid-template-columns: auto 1fr auto; }
	.nav .brand, .nav:not(.show-brand) .brand { grid-column: 1; grid-row: 1; justify-self: start; opacity: 1; transform: none; pointer-events: auto; width: auto; }
	.brand::before, .brand::after { display: none; }
	.brand__logo { position: static; transform: none; width: auto; height: 46px; margin-top: 11px; }
	.brand:hover .brand__logo { transform: none; }
	.nav.menu-open { height: auto; padding-bottom: 18px; align-content: start; }
	.nav.menu-open .nav__links, .nav.menu-open .nav__cta { grid-column: 1 / -1; height: auto; display: flex; width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; margin: 8px 0 0; }
	.nav.menu-open .nav__links a { height: auto; padding: 6px 0; font-size: 13px; }
	.nav.menu-open .nav__links .nav__mobile-only { display: flex; }
	.nav.menu-open .nav__cta { flex-direction: row; flex-wrap: wrap; }
	.nav.menu-open .nav__discord { display: grid; }
	.nav.menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
	.nav.menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
}
@media (max-width: 860px) {
	.journey { height: 520vh; }
	.journey__track { top: 30vh; height: 52vh; }
	.stop__card { width: min(280px, 72vw); }
	.stop h3 { font-size: 30px; }
	.poster__stamp { right: 4px; }
	.hide-sm { display: none !important; }
	.paths { flex-direction: column; height: auto; }
	.path { min-height: 150px; }
	.path:hover, .path.is-open { flex-grow: 1; }
	.path__body > p:not(.path__tag) { max-height: none; opacity: 1; }
	.event { grid-template-columns: 70px 1fr; gap: 6px 16px; }
	.event__time { font-size: 19px; }
	.event__name { font-size: 19px; }
	.days { grid-column: 2; }
	.event.is-next::before { left: -12px; }
	.bigstats div { padding-left: 14px; }
	.rankboard .table th:nth-child(3), .rankboard .table td:nth-child(3) { display: none; }
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
	.profile-head { flex-direction: column; align-items: flex-start; }
	.search-inline { width: 100%; }
	.search-inline input { flex: 1; }
	.kv dd { text-align: start; }
	.step, .card.step { padding-inline-start: 64px; }
	.step::after { inset-inline-start: 18px; font-size: 24px; }
	.foot__brand { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
	.hide-xs { display: none; }
	.topbar__in { gap: 8px; }
	.next { padding: 24px 18px; }
	.champ { gap: 12px; padding: 16px; }
	.champ__n { font-size: 40px; width: 36px; }
	.champ__name { font-size: 18px; }
	.ledger__list dt { white-space: normal; }
	.ledger__list dd { font-size: 16px; }
	.poster { padding: 28px 22px 24px; }
	.card { padding: 18px; }
	.card.step { padding-inline-start: 58px; }
	.step::after { inset-inline-start: 14px; }
	.card.table-wrap { padding: 4px 8px; }
	.table th, .table td { padding: 10px 8px; }
	.join__lede { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
	.journey { height: auto; }
	.journey__sticky { position: relative; height: auto; overflow: hidden; padding: 72px var(--pad) 60px; }
	.journey__head { position: relative; top: 0; left: 0; right: 0; margin-bottom: 28px; }
	.journey__track { position: relative; top: 0; left: 0; width: auto; height: auto; display: grid; gap: 16px; }
	.journey__svg, .caravan, .journey__bar, .stop__pin { display: none; }
	.stop { position: static; width: auto; height: auto; }
	.stop__card { position: static; width: auto; opacity: 1; transform: none; filter: none; }
}

/* ===========================================================================
   4. Landing page, breadcrumbs, right-to-left
   =========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* the home hero's H1: a quiet line under the crest, the tagline stays the voice */
.herocrest__h1 { margin: 0 0 8px; font: 700 13px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 2px rgba(0, 0, 0, .95); }
.herocrest__howto { margin: 14px 0 0; font-size: 14px; }
.herocrest__howto a { border-bottom: 1px solid var(--line-2); padding-bottom: 2px; text-shadow: 0 1px 2px rgba(0, 0, 0, .95); }
.herocrest__howto i { font-style: normal; display: inline-block; }

.crumbs { padding-top: 18px; font-size: 12.5px; color: var(--mute); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { min-width: 0; overflow-wrap: anywhere; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-2); }
.crumbs a { color: var(--paper-dim); }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs + .section { padding-top: 24px; }

.landing__eyebrow { color: var(--gold); margin-bottom: 8px; }
.landing__def { font-size: 19px; line-height: 1.65; color: var(--paper); max-width: 760px; }
.landing__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.landing__note { margin-bottom: 8px; }
.landing h2 { margin-top: 48px; }
.landing .guide h3 { font-size: 20px; }
.landing .step p { color: var(--paper-dim); }
.landing__table th[scope="row"] { text-transform: none; letter-spacing: .04em; font-size: 13.5px; color: var(--paper); white-space: normal; border-bottom-color: var(--line); }
.landing__table thead th { white-space: normal; }
.landing__table tbody tr:last-child th { border-bottom: 0; }
.landing__facts { grid-template-columns: minmax(120px, auto) 1fr; }
.landing__facts dd { text-align: start; font-weight: 500; color: var(--paper); }
.landing__faq { display: grid; gap: 14px; }
.landing__faq h3 { font-size: 18px; color: var(--gold-hi); }
.landing__faq p { margin: 0; color: var(--paper-dim); }
@media (max-width: 520px) {
	.landing__def { font-size: 17px; }
	.landing__facts { grid-template-columns: 1fr; gap: 2px; }
	.landing__facts dd { margin-bottom: 10px; }
}

/* Blog: the guides index, an article's prose and the "Guides" block on
   the home and landing pages. */
.blog__lead { font-size: 18px; color: var(--paper-dim); max-width: 760px; margin-bottom: 28px; }
.blogcard { display: flex; flex-direction: column; gap: 10px; }
.blogcard h2, .blogcard h3 { margin: 0; font-size: 20px; line-height: 1.3; color: var(--paper); }
.blogcard p { margin: 0; color: var(--paper-dim); font-size: 15px; }
.blogcard__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.blogcard__meta { color: var(--mute); font-size: 12.5px; letter-spacing: .08em; }
.guides { padding: clamp(48px, 8vh, 88px) 0; }
.guides h2 { margin: 0 0 24px; }
.guides__all { margin-top: 20px; }
.blogpost__back { margin-bottom: 12px; }
.blogpost h1 { margin-bottom: 10px; overflow-wrap: anywhere; }
.blogpost__meta { margin-bottom: 20px; }
.blogpost__cover { margin: 0 0 28px; }
.blogpost__cover img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.prose { overflow-wrap: break-word; }
.prose h2 { margin: 40px 0 14px; font-size: clamp(22px, 3.2vw, 30px); }
.prose h3 { margin: 28px 0 10px; font-size: 20px; color: var(--gold-hi); }
.prose p, .prose li { color: var(--paper-dim); font-size: 17px; line-height: 1.7; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--paper); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 20px 0; padding: 12px 18px; border-inline-start: 3px solid var(--gold); background: var(--ink-2); }
.prose blockquote p { margin: 0; }
.prose figure { margin: 24px 0; }
.prose figure img { display: block; width: 100%; height: auto; }
.prose .table-wrap { margin: 20px 0; border: 1px solid var(--line); }
.prose .table th { white-space: normal; }
.prose code { font-family: var(--mono); color: var(--gold-hi); }
.blogpost__cta { margin-top: 36px; }
.blogpost__disc { margin-top: 24px; }
@media (max-width: 520px) {
	.prose p, .prose li { font-size: 16px; }
	.blogcard h2, .blogcard h3 { font-size: 18px; }
}

/* Arabic: Noto Kufi Arabic after the Latin faces (Latin words keep the
   design's type, Arabic letters fall through to Kufi), no letter spacing
   (it breaks the joined script) and the few direction-bound effects
   mirrored. The caravan road stays a left-to-right map. */
[dir="rtl"] {
	--serif: "Cinzel", "Noto Kufi Arabic", Georgia, serif;
	--sans: "Alegreya Sans", "Noto Kufi Arabic", system-ui, sans-serif;
	--mono: "Alegreya Sans SC", "Noto Kufi Arabic", sans-serif;
}
[dir="rtl"] * { letter-spacing: normal !important; }
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; }
[dir="rtl"] .hero__bg::after { background: linear-gradient(180deg, rgba(11, 9, 7, .55) 0%, transparent 22%, transparent 70%, rgba(11, 9, 7, .9) 96%), linear-gradient(270deg, rgba(11, 9, 7, .6) 0%, rgba(11, 9, 7, .1) 45%, transparent); }
[dir="rtl"] .hero__sun { right: auto; left: 12%; }
[dir="rtl"] .section-head .ornament { background: linear-gradient(270deg, var(--red), var(--gold-hi), transparent); }
[dir="rtl"] .journey__track { direction: ltr; }
[dir="rtl"] .stop__card { direction: rtl; text-align: start; }
[dir="rtl"] .news__item { padding: 28px 32px 28px 0; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .news__item--lead { border-right: 0; padding: 36px 0 36px 48px; }
[dir="rtl"] .bigstats div { padding: 22px 22px 0 0; border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .bigstats div:first-child { padding-right: 0; }
[dir="rtl"] .bigstats div:last-child { border-left: 0; }
[dir="rtl"] .event.is-next::before { left: auto; right: -18px; }
[dir="rtl"] .dropcap::first-letter { float: right; margin: .06em 0 0 .1em; }
[dir="rtl"] .notice.err { background: linear-gradient(270deg, rgba(200, 40, 28, .14), var(--ink-2)); }
[dir="rtl"] .pager .btn, [dir="rtl"] .herocrest__howto i, [dir="rtl"] .news__more i { transform: scaleX(-1); }
[dir="rtl"] .mono { text-transform: none; }
@media (max-width: 1080px) {
	[dir="rtl"] .news__item, [dir="rtl"] .news__item--lead { border-right: 0; padding-right: 0; padding-left: 0; }
}
@media (max-width: 860px) {
	[dir="rtl"] .event.is-next::before { right: -12px; }
	[dir="rtl"] .bigstats div { padding-right: 14px; }
}

/* ---- launcher download page (/indir, site_download.go) ---- */
.download__facts { margin: 22px 0 8px; }
.download__hash { font-family: var(--code); font-size: 13px; word-break: break-all; color: var(--gold-hi); }
.download__cmd { overflow-x: auto; padding: 12px 14px; border: 1px solid var(--line-2); background: var(--ink-2); font-family: var(--code); font-size: 13px; }
.download__feats h3 { margin-top: 0; }
.download__android { margin: 12px 0 8px; }
.download__android h3 { margin-top: 22px; }
.nav__download { white-space: nowrap; }

/* ---- server presentation page (/tanitim, site_promo.go) ----
   A hero with a real screenshot, a sticky section index under the
   header (scrolls sideways on a phone) and numbered sections of text
   beside screenshots; the closing call to action reuses the home
   page's .join. */
.promo-hero { padding-bottom: 40px; }
.promo-hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.promo-hero__h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.08; margin: 0 0 18px; background: linear-gradient(180deg, #fff3d2 10%, var(--gold-hi) 45%, var(--gold) 80%, #8d6a2f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promo-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.promo-chips b { color: var(--gold-hi); }
.promo-hero__live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--paper-dim); }
.promo-hero__live b { font: 700 22px/1 var(--serif); color: var(--gold-hi); }
.promo-shot { margin: 0; }
.promo-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.promo-shot figcaption { margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.promo-shots { display: grid; gap: 18px; }
.promo-index { position: sticky; top: 60px; z-index: 40; background: rgba(11, 9, 7, .94); backdrop-filter: blur(8px); border-block: 1px solid var(--line); }
.promo-index ol { list-style: none; display: flex; gap: 2px; margin: 0; padding: 6px 0; overflow-x: auto; scrollbar-width: none; }
.promo-index ol::-webkit-scrollbar { display: none; }
.promo-index a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; white-space: nowrap; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-dim); border: 1px solid transparent; }
.promo-index a:hover, .promo-index a:focus-visible { color: var(--gold-hi); border-color: var(--line-2); }
.promo-index b { font-family: var(--serif); color: var(--gold); }
.promo-sec { padding: clamp(48px, 7vh, 80px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.promo-join { scroll-margin-top: 110px; }
.promo-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.promo-head__num { flex: none; font: 900 clamp(40px, 6vw, 64px)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--gold); }
.promo-head__eyebrow { margin: 0 0 4px; color: var(--gold); }
.promo-head h2 { margin: 0; }
.promo-lead { max-width: 780px; font-size: 18px; color: var(--paper); }
.promo-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.promo-list { list-style: none; display: grid; gap: 10px; padding: 0; margin: 18px 0; }
.promo-list li { position: relative; padding-inline-start: 22px; line-height: 1.6; color: var(--paper-dim); }
.promo-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .6em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--red); }
.promo-list strong { color: var(--paper); }
.promo-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.promo-cards { margin-top: 18px; }
.promo-cards p { margin: 0; color: var(--paper-dim); }
.promo-rates th[scope="row"] { text-transform: none; letter-spacing: .04em; font-size: 13.5px; color: var(--paper); white-space: normal; }
.promo-rates td { text-align: end; font-weight: 700; color: var(--gold-hi); }
.promo-rates tbody tr:last-child th { border-bottom: 0; }
.promo-count { font-size: 18px; margin-bottom: 4px; }
.promo-count b { margin-inline-end: 8px; font: 800 40px/1 var(--serif); color: var(--gold-hi); }
.promo-rules ul { list-style: none; padding: 0; margin: 0; columns: 2 380px; column-gap: 32px; }
.promo-rules li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--paper-dim); }
.promo-rules li strong { display: block; color: var(--paper); }
.promo-join .join__title { font-size: clamp(40px, 7vw, 104px); }
.promo-join .join__note { margin: 40px 0 0; color: rgba(255, 243, 226, .6); }
/* The header's hanging crest would cover the middle of the stuck index:
   once the header turns solid on scroll, the crest tucks away as it
   does on the home page (.nav:not(.show-brand)). Below 1241px the logo
   sits inside the header and needs nothing. */
@media (min-width: 1241px) {
	body:has(.promo-index) .nav.is-solid .brand { opacity: 0; transform: translateY(-110%); pointer-events: none; }
}
@media (max-width: 860px) {
	.promo-hero__in, .promo-body { grid-template-columns: 1fr; gap: 24px; }
	.promo-lead { font-size: 16.5px; }
}

/* Folded schedule (site_schedule.go): one row per event per day. */
.sched { display: grid; gap: 10px; }
.sched__day { border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.sched__day > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.sched__day > summary::-webkit-details-marker { display: none; }
.sched__day > summary::after { content: "+"; opacity: .6; margin-inline-start: 8px; }
.sched__day[open] > summary::after { content: "−"; }
.sched__rows { list-style: none; margin: 0; padding: 0 16px 10px; }
.sched__rows li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.sched__rows li.is-live .sched__name { color: var(--gold, #e0b35a); }
.sched__times { opacity: .8; font-size: .9em; text-align: end; }
@media (max-width: 640px) { .sched__rows li { flex-direction: column; gap: 2px; } .sched__times { text-align: start; } }

/* Account panel (site_account_panel.go): the left sidebar every /account
   page shares ("acctnav" in layout.html). On a phone it folds into one
   <details> row, which site.js closes at load. */
.acct { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.acct-main { min-width: 0; }
.acct-side { position: sticky; top: 96px; }
.acct-nav { border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); padding: 14px 10px; }
.acct-nav > summary { display: none; }
.acct-who { display: grid; gap: 2px; padding: 0 10px 12px; margin: 0 0 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.acct-who strong { color: var(--gold-hi); font-family: var(--serif); }
.acct-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acct-nav a, .acct-nav button { display: block; width: 100%; text-align: start; padding: 9px 12px; border: 0; border-inline-start: 2px solid transparent; border-radius: 4px; background: none; color: var(--paper-dim); font: 500 15px/1.3 var(--sans); cursor: pointer; text-decoration: none; transition: color .2s, background .2s; }
.acct-nav a:hover, .acct-nav button:hover { color: var(--paper); background: rgba(201, 163, 91, .06); }
.acct-nav a.is-active { color: var(--gold-hi); border-inline-start-color: var(--gold); background: rgba(201, 163, 91, .1); }
.acct-nav li:last-child { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.acct-nav button { color: var(--bad); }
.acct-cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.acct-chars li { flex-wrap: wrap; }
.acct-epin { max-width: 640px; }
@media (max-width: 860px) {
	.acct { grid-template-columns: 1fr; gap: 20px; }
	.acct-side { position: static; }
	.acct-nav { padding: 0; }
	.acct-nav > summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; color: var(--paper); font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
	.acct-nav > summary::-webkit-details-marker { display: none; }
	.acct-nav > summary::after { content: "+"; color: var(--gold); }
	.acct-nav[open] > summary::after { content: "−"; }
	.acct-nav[open] > summary { border-bottom: 1px solid var(--line); }
	.acct-who { padding: 12px 16px 10px; }
	.acct-nav nav { padding: 0 8px 10px; }
}

/* TEST copy banner (environment.go): never confuse TEST with LIVE. */
.test-banner{position:sticky;top:0;z-index:9999;background:repeating-linear-gradient(45deg,#b00020,#b00020 14px,#8a0019 14px,#8a0019 28px);color:#fff;font:700 14px/1.2 Inter,system-ui,sans-serif;letter-spacing:.08em;text-align:center;padding:8px 12px;text-transform:uppercase}

/* Closed beta popup (beta_popup.go) */
.beta-pop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 6, 4, .72); }
.beta-pop[hidden] { display: none; }
.beta-pop__card { position: relative; max-width: 460px; width: 100%; padding: 28px 24px 22px; border: 1px solid rgba(214, 170, 90, .55); border-radius: 10px; background: #1b140d; color: #f3e6cf; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); text-align: center; }
.beta-pop__card h2 { margin: 0 0 10px; font-family: Cinzel, serif; font-size: 1.45rem; color: #e8c47a; }
.beta-pop__card p { margin: 0 0 18px; line-height: 1.5; }
.beta-pop__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.beta-pop__x { position: absolute; top: 6px; inset-inline-end: 10px; border: 0; background: none; color: #f3e6cf; font-size: 1.6rem; line-height: 1; cursor: pointer; }
