@charset "utf-8";

/* ---------- fonts ---------- */
@font-face {
	font-family: "Cinzel";
	src: url("fonts/cinzel-latin-600-normal.4112a008c86d.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: "Cinzel";
	src: url("fonts/cinzel-latin-700-normal.b26386c7ea81.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

/* ---------- tokens ---------- */
:root {
	--bg: #0d0f13;
	--bg-2: #12151b;
	--surface: #171a21;
	--surface-2: #1d212a;
	--line: #2a2f3a;
	--line-soft: #222631;
	--text: #e8e2d4;
	--text-dim: #a59f92;
	--gold: #d6a548;
	--gold-2: #f0c66e;
	--gold-deep: #8a6223;
	--ember: #c4542b;
	--green: #4fbf73;
	--red: #e0604f;
	--radius: 12px;
	--display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(1200px 600px at 50% -200px, rgba(214, 165, 72, .10), transparent 70%),
		var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff1cc; text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; }

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

/* ---------- buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
	transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold {
	background: linear-gradient(180deg, var(--gold-2), var(--gold));
	color: #1b1407;
	box-shadow: 0 6px 20px -8px rgba(214, 165, 72, .6);
}
.btn-gold:hover { color: #1b1407; background: linear-gradient(180deg, #ffd98a, var(--gold-2)); }
.btn-ghost {
	border-color: var(--line);
	color: var(--text);
	background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover { color: #fff; border-color: var(--gold-deep); background: rgba(214, 165, 72, .08); }
.btn-lg { padding: 13px 24px; font-size: 15px; }

/* ---------- header ---------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	background: linear-gradient(180deg, rgba(5, 6, 10, .75), rgba(5, 6, 10, 0));
	transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled, .site-header:has(.nav-toggle:checked) {
	background: rgba(11, 12, 16, .92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom-color: var(--line-soft);
	box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .8);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 68px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--gold-2);
	flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
	display: block;
	width: auto;
	height: 38px;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .8)) drop-shadow(0 0 14px rgba(214, 165, 72, .18));
	transition: filter .25s;
}
.brand:hover .brand-logo { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .8)) drop-shadow(0 0 18px rgba(240, 198, 110, .45)); }
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.nav-toggle { display: none; }
.nav-burger { display: none; }

.main-nav { display: flex; gap: 4px; flex: 1; }
.nav-group { position: relative; }
.nav-cat {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--text-dim);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.nav-cat svg { width: 10px; height: 10px; opacity: .7; transition: transform .15s; }
.nav-cat:hover, .nav-group:focus-within .nav-cat, .nav-group.is-open .nav-cat { color: var(--text); background: var(--surface); }
.nav-group.is-active .nav-cat { color: var(--gold-2); }
.nav-group.is-active .nav-cat::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: -6px;
	height: 2px;
	background: var(--gold);
	border-radius: 2px;
}

.nav-drop {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 220px;
	padding: 8px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-drop::before { /* bridge the gap so the hover is not lost */
	content: "";
	position: absolute;
	left: 0; right: 0; top: -10px; height: 10px;
}
.nav-group:hover .nav-drop,
.nav-group:focus-within .nav-drop,
.nav-group.is-open .nav-drop { opacity: 1; visibility: visible; transform: none; }
.nav-group:hover .nav-cat svg, .nav-group.is-open .nav-cat svg { transform: rotate(180deg); }
.nav-drop a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--text);
	font-size: 14px;
}
.nav-drop a:hover { background: var(--surface-2); color: var(--gold-2); text-decoration: none; }

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- hero ---------- */
.hero, .page-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.hero-art {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center bottom;
}
.hero { min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero .hero-art { animation: drift 40s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.hero::after { /* darken the blurred art, keep a warm glow behind the key art */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(520px 420px at 30% 52%, rgba(214, 140, 60, .14), transparent 70%),
		linear-gradient(180deg, rgba(5, 6, 10, .55), rgba(5, 6, 10, .35) 40%, rgba(13, 15, 19, .9) 92%, var(--bg)),
		radial-gradient(ellipse at center, transparent 45%, rgba(5, 6, 10, .75));
}
@keyframes drift { from { transform: scale(1.04) translateX(-1%); } to { transform: scale(1.08) translateX(1%); } }

.hero-fog {
	position: absolute;
	left: -20%;
	width: 140%;
	height: 220px;
	bottom: 6%;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(180, 150, 190, .12), transparent);
	filter: blur(10px);
	animation: fog 30s linear infinite alternate;
	pointer-events: none;
}
.hero-fog-2 { bottom: 18%; height: 160px; opacity: .7; animation-duration: 44s; animation-direction: alternate-reverse; }
@keyframes fog { from { transform: translateX(-6%); } to { transform: translateX(6%); } }

.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.embers span {
	position: absolute;
	bottom: -10px;
	width: var(--s);
	height: var(--s);
	border-radius: 50%;
	background: #ffb35a;
	box-shadow: 0 0 8px 2px rgba(255, 140, 50, .7);
	opacity: 0;
	animation: ember var(--t) linear var(--d) infinite;
}
@keyframes ember {
	0% { transform: translate(0, 0); opacity: 0; }
	10% { opacity: .9; }
	70% { opacity: .5; }
	100% { transform: translate(var(--x), -75vh); opacity: 0; }
}

.hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	padding-block: 100px 70px;
}
.hero-keyart { position: relative; animation: float 7s ease-in-out infinite; }
.hero-keyart img {
	display: block;
	width: 100%;
	max-width: min(620px, 74vh);
	height: auto;
	margin-inline: auto;
	/* melt the square edges into the blurred copy behind it */
	-webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 74%, transparent 100%);
}
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-copy { text-align: left; }
.hero-kicker {
	margin: 0 0 14px;
	color: var(--gold-2);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .28em;
	text-transform: uppercase;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}
.hero-lead {
	margin: 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(38px, 5.4vw, 72px);
	line-height: 1.02;
	letter-spacing: .03em;
	color: #f3e6c8;
	text-shadow: 0 4px 0 rgba(40, 20, 5, .5), 0 14px 40px rgba(0, 0, 0, .8);
}
.hero-lead span {
	background: linear-gradient(180deg, #fff8e2 0%, #f3d08a 38%, #c98f35 62%, #7a5320 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: none;
	filter: drop-shadow(0 4px 0 rgba(40, 20, 5, .6)) drop-shadow(0 0 24px rgba(214, 140, 60, .35));
}
.hero-text {
	margin: 20px 0 32px;
	max-width: 480px;
	color: #d9d1c1;
	font-size: 18px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { background: rgba(10, 10, 14, .55); backdrop-filter: blur(6px); }
.hero-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
	padding: 7px 16px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 999px;
	background: rgba(5, 6, 10, .6);
	backdrop-filter: blur(6px);
	color: var(--text-dim);
	font-size: 13px;
}
.hero-status strong { color: var(--text); }
.hero-scroll {
	position: absolute;
	left: 50%;
	bottom: 26px;
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border: 2px solid rgba(232, 226, 212, .4);
	border-radius: 14px;
}
.hero-scroll span {
	position: absolute;
	left: 50%;
	top: 8px;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--gold-2);
	animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.is-online .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(79, 191, 115, .15); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(79, 191, 115, 0); } }

/* interior pages: slim banner with the same landscape */
.page-hero { min-height: 260px; display: flex; align-items: flex-end; }
.page-hero .hero-art { background-position: center 38%; }
.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(5, 6, 10, .85), rgba(5, 6, 10, .25) 35%, rgba(13, 15, 19, .55) 65%, var(--bg));
}
.page-hero-inner { padding-block: 110px 26px; }
.page-hero .page-title { font-size: clamp(28px, 4vw, 42px); text-shadow: 0 4px 20px rgba(0, 0, 0, .8); }

/* ---------- home sections ---------- */
.stats-band {
	position: relative;
	border-block: 1px solid var(--line-soft);
	background: linear-gradient(180deg, #11131a, #0e1015);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat-num {
	display: block;
	font-family: var(--display);
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.1;
	color: var(--gold-2);
	font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--text-dim); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

.section { padding-block: 84px 20px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head-left { text-align: left; margin-bottom: 18px; }
.eyebrow {
	margin: 0 0 8px;
	color: var(--gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3em;
	text-transform: uppercase;
}
.section-title {
	margin: 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(26px, 3.4vw, 38px);
	letter-spacing: .03em;
	color: var(--text);
}
.section-head:not(.section-head-left) .section-title::after {
	content: "";
	display: block;
	width: 120px;
	height: 12px;
	margin: 16px auto 0;
	background:
		linear-gradient(90deg, transparent, var(--gold-deep) 40%, transparent 40% 60%, var(--gold-deep) 60%, transparent) center / 100% 1px no-repeat,
		radial-gradient(circle, var(--gold) 3px, transparent 3.5px) center / 12px 12px no-repeat;
}

.voc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.voc-card {
	position: relative;
	padding: 30px 24px 26px;
	border: 1px solid var(--line-soft);
	border-radius: 16px;
	background:
		radial-gradient(260px 160px at 50% 0%, rgba(214, 165, 72, .10), transparent 70%),
		linear-gradient(180deg, #191c24, #13151b);
	text-align: center;
	transition: transform .25s, border-color .25s, box-shadow .25s;
}
.voc-card:hover {
	transform: translateY(-6px);
	border-color: rgba(214, 165, 72, .45);
	box-shadow: 0 24px 50px -24px rgba(214, 165, 72, .35);
}
.voc-icon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin: 0 auto 18px;
	border-radius: 50%;
	border: 1px solid rgba(214, 165, 72, .4);
	background: radial-gradient(circle at 50% 35%, #3a2a14, #15110b);
	color: var(--gold-2);
	box-shadow: inset 0 0 18px rgba(214, 165, 72, .2), 0 0 0 6px rgba(214, 165, 72, .05);
}
.voc-icon svg { width: 40px; height: 40px; }
.voc-card h3 { margin: 0 0 10px; font-family: var(--display); font-size: 20px; font-weight: 700; }
.voc-card h3 span { display: block; margin-top: 2px; font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.voc-card p { margin: 0; color: var(--text-dim); font-size: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
	position: relative;
	padding: 28px 26px;
	border: 1px solid var(--line-soft);
	border-radius: 16px;
	background: var(--surface);
}
.step-num {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 12px;
	background: linear-gradient(180deg, var(--gold-2), var(--gold));
	color: #1b1407;
	font-family: var(--display);
	font-size: 20px;
	font-weight: 700;
	box-shadow: 0 8px 20px -8px rgba(214, 165, 72, .7);
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0 0 14px; color: var(--text-dim); font-size: 14px; }
.step a { font-weight: 600; font-size: 14px; }

.cta-band { padding-block: 10px 70px; }
.cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 40px 44px;
	border: 1px solid rgba(214, 165, 72, .3);
	border-radius: 20px;
	background:
		radial-gradient(500px 200px at 100% 0%, rgba(196, 84, 43, .25), transparent 70%),
		radial-gradient(400px 200px at 0% 100%, rgba(214, 165, 72, .14), transparent 70%),
		#15171e;
}
.cta-inner p { margin: 8px 0 0; color: var(--text-dim); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.embers { display: none; }
}

/* ---------- layout ---------- */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	padding-block: 40px 64px;
	flex: 1;
}

.card {
	background: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
}

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-dim); font-size: 13px; }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--gold-2); }
.page-title {
	margin: 4px 0 0;
	font-family: var(--display);
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--text);
}

.content-card { padding: 28px; overflow-x: auto; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9); }

/* ---------- sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.side-card { padding: 18px 20px; }
.side-title {
	margin: 0 0 12px;
	font-family: var(--display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--gold);
	text-transform: uppercase;
}
.status-line { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.stats { margin: 12px 0 0; display: grid; gap: 6px; }
.stats div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.stats dt { color: var(--text-dim); }
.stats dd { margin: 0; font-weight: 600; }
.side-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; }
.side-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.side-buttons .btn { flex: 1; }
.muted { color: var(--text-dim); font-size: 14px; margin: 0 0 12px; }
.top-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.top-list li {
	display: grid;
	grid-template-columns: 26px 1fr auto;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 8px;
	font-size: 14px;
}
.top-list li:nth-child(odd) { background: var(--surface-2); }
.top-list .rank {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--line);
	font-size: 12px;
	font-weight: 700;
}
.top-list li:first-child .rank { background: var(--gold); color: #1b1407; }
.top-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.top-list .lvl { color: var(--text-dim); font-size: 12px; }

/* ---------- footer ---------- */
.site-footer {
	border-top: 1px solid var(--line-soft);
	background: linear-gradient(180deg, #0f1116, #0a0b0f);
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: 32px;
	padding-block: 48px 32px;
}
.footer-about p { margin: 14px 0 0; max-width: 340px; color: var(--text-dim); font-size: 14px; }
.footer-col h4 {
	margin: 4px 0 14px;
	font-size: 12px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--gold);
}
.footer-col a { display: block; padding: 4px 0; color: var(--text-dim); font-size: 14px; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 18px 26px;
	border-top: 1px solid var(--line-soft);
	color: #7d776c;
	font-size: 12px;
}


/* ---------- news ---------- */
.news-item + .news-item { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.news-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.news-icon {
	width: 40px;
	height: 40px;
	padding: 6px;
	border-radius: 10px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	image-rendering: pixelated;
}
.news-title { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: .03em; }
.news-meta { color: var(--text-dim); font-size: 13px; }
.news-body { font-size: 15px; }
.news-comments { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; }

.tickers {
	margin-bottom: 28px;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--gold);
	border-radius: 10px;
	background: var(--surface-2);
}
.tickers-title { margin: 0 0 6px; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.tickers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tickers li { display: flex; gap: 12px; font-size: 14px; }
.ticker-date { color: var(--text-dim); flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ---------- content from MyAAC pages (legacy markup) ---------- */
#ContentHelper { font-size: 14px; }
#ContentHelper h1, #ContentHelper h2, #ContentHelper h3 {
	font-family: var(--display);
	font-weight: 700;
	color: var(--text);
	letter-spacing: .03em;
}
#ContentHelper h2 { font-size: 22px; }
#ContentHelper b, #ContentHelper strong { color: #f4eee1; }
#ContentHelper hr { border: 0; border-top: 1px solid var(--line); }
#ContentHelper small { color: var(--text-dim); }

/* plain tables used by most pages: rows get bgcolor from config.ini */
#ContentHelper table { border-collapse: separate; border-spacing: 0; max-width: 100%; }
#ContentHelper table[cellspacing="1"], #ContentHelper .myaac-table { border-spacing: 0 2px; }
#ContentHelper td, #ContentHelper th { padding: 8px 10px; vertical-align: top; }
#ContentHelper tr[bgcolor] > td, #ContentHelper tr[bgcolor] > th, .TableContent td { vertical-align: middle; }
#ContentHelper tr[bgcolor] > td:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
#ContentHelper tr[bgcolor] > td:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
#ContentHelper .white, #ContentHelper .whites { color: #fff4dc; font-weight: 600; }
#ContentHelper tr.white > td { color: #fff4dc; font-weight: 600; }

/* boxed tables (account pages, login, characters) */
.TableContainer {
	position: relative;
	width: 100%;
	margin-bottom: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface-2);
}
.TableContainer .CaptionContainer {
	position: relative;
	background: linear-gradient(180deg, #6b4719, #4d3312) !important;
	border-bottom: 1px solid var(--gold-deep);
}
.TableContainer .CaptionContainer .Text {
	padding: 10px 16px;
	color: #fff4dc;
	font-family: var(--display);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .05em;
}
.CaptionEdgeLeftTop, .CaptionEdgeRightTop, .CaptionEdgeLeftBottom, .CaptionEdgeRightBottom,
.CaptionBorderTop, .CaptionBorderBottom, .CaptionVerticalLeft, .CaptionVerticalRight,
.TableShadowContainerRightTop, .TableShadowRightTop, .TableShadowContainer,
.TableBottomShadow, .TableBottomLeftShadow, .TableBottomRightShadow { display: none !important; }
.TableContainer .Table1, .TableContainer .Table2, .TableContainer .Table3,
.TableContainer .Table4, .TableContainer .Table5 { width: 100%; border-spacing: 0; }
.TableContainer .InnerTableContainer { padding: 12px 16px; }
.TableContainer .InnerTableContainer > table { width: 100%; }
.TableContentContainer, .TableContentAndRightShadow { width: 100%; }
.TableContent { width: 100%; border-spacing: 0 2px; }
/* inline light borders from the old templates do not fit a dark theme */
#ContentHelper table[style*="#faf0d7"], #ContentHelper table[style*="#808080"], #ContentHelper td[style*="#808080"] {
	border: 1px solid var(--line) !important;
	border-radius: 10px;
}
.TableContent td { padding: 8px 10px; }
.TableContainer .Odd, .Content .BoxContent .Odd { background: var(--surface) !important; }
.TableContainer .Even, .Content .BoxContent .Even { background: #20242d !important; }

.LabelV, .LabelV120, .LabelV150, .LabelV200 { font-weight: 600; color: var(--text-dim); vertical-align: top; white-space: nowrap; }
.LabelV120 { width: 120px; } .LabelV150 { width: 150px; } .LabelV200 { width: 200px; }
.LabelH td { font-weight: 600; color: var(--text-dim); }
.InnerTableButtonRow td { padding-top: 12px; }

/* forms */
#ContentHelper input[type="text"], #ContentHelper input[type="password"], #ContentHelper input[type="email"],
#ContentHelper input[type="number"], #ContentHelper input:not([type]), #ContentHelper select, #ContentHelper textarea,
.form-control {
	max-width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #0f1217;
	color: var(--text);
	font: inherit;
	font-size: 14px;
}
#ContentHelper input:focus, #ContentHelper select:focus, #ContentHelper textarea:focus {
	outline: 2px solid rgba(214, 165, 72, .5);
	outline-offset: 1px;
	border-color: var(--gold-deep);
}
#ContentHelper input[type="submit"], #ContentHelper input[type="button"], #ContentHelper button, .btn-info, .btn-success, .btn-danger {
	padding: 9px 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--gold-2), var(--gold));
	color: #1b1407;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
#ContentHelper input[type="submit"]:hover, #ContentHelper input[type="button"]:hover, #ContentHelper button:hover { filter: brightness(1.08); }
#ContentHelper input[type="checkbox"], #ContentHelper input[type="radio"] { accent-color: var(--gold); }
.FormFieldError { color: var(--red); font-size: 13px; }

/* old image buttons */
.BigButton, .BigButtonOver { background: none !important; }
.ButtonText { display: none; }

/* message boxes */
.SmallBox { margin-bottom: 18px; }
.SmallBox .BoxFrameHorizontal, .SmallBox .BoxFrameVerticalLeft, .SmallBox .BoxFrameVerticalRight,
.SmallBox .BoxFrameEdgeLeftTop, .SmallBox .BoxFrameEdgeRightTop, .SmallBox .BoxFrameEdgeLeftBottom,
.SmallBox .BoxFrameEdgeRightBottom, .SmallBox .AttentionSign { display: none !important; }
.SmallBox .ErrorMessage, .SmallBox .Message {
	padding: 14px 18px;
	border: 1px solid rgba(224, 96, 79, .45);
	border-left: 4px solid var(--red);
	border-radius: 10px;
	background: rgba(224, 96, 79, .08);
	color: var(--text);
}
.SmallBox .ErrorMessage li { margin-left: 18px; }
.error, .success, .note, .warning {
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 14px;
	background-image: none !important;
}
.error { background-color: rgba(224, 96, 79, .1); border-color: rgba(224, 96, 79, .5); color: #ffb3a8; }
.success { background-color: rgba(79, 191, 115, .1); border-color: rgba(79, 191, 115, .45); color: #9fe6b5; }
.note { background-color: rgba(98, 160, 230, .1); border-color: rgba(98, 160, 230, .45); color: #b4d4fa; }
.warning { background-color: rgba(214, 165, 72, .1); border-color: rgba(214, 165, 72, .5); color: var(--gold-2); }

/* bootstrap-ish classes used by a few pages */
.text-center { text-align: center; }
.text-muted { color: var(--text-dim); }
.float-right { float: right; }
.table { width: 100%; }
.table-striped tr:nth-child(odd) { background: var(--surface-2); }
.card-header { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-weight: 700; }
.card-body { padding: 16px; }
.card-footer { padding: 12px 16px; border-top: 1px solid var(--line-soft); }

/* admin bar shown to admins */
#admin-bar, .admin-bar { position: relative; z-index: 60; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.header-inner { gap: 16px; }
	.nav-cat { padding: 8px 9px; }
}

@media (max-width: 960px) {
	.hero-inner { grid-template-columns: 1fr; gap: 8px; padding-block: 90px 90px; }
	.hero-keyart img { max-width: min(480px, 100%); }
	.hero-copy { text-align: center; }
	.hero-text { margin-inline: auto; }
	.hero-actions { justify-content: center; }
	.layout { grid-template-columns: 1fr; }
	.voc-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: 1fr; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
	.footer-grid { grid-template-columns: 1fr 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
	.sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

	.header-inner { flex-wrap: wrap; min-height: 60px; padding-block: 10px; }
	.nav-burger {
		display: grid;
		gap: 5px;
		order: 2;
		padding: 10px;
		cursor: pointer;
	}
	.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
	.header-actions { order: 1; margin-left: auto; }
	.main-nav {
		order: 3;
		flex-basis: 100%;
		display: none;
		flex-direction: column;
		gap: 0;
		padding-bottom: 8px;
	}
	.nav-toggle:checked ~ .main-nav { display: flex; }
	.nav-group { border-top: 1px solid var(--line-soft); }
	.nav-cat { width: 100%; justify-content: space-between; padding: 12px 4px; background: none !important; }
	.nav-group.is-active .nav-cat::after { display: none; }
	.nav-drop {
		position: static;
		display: none;
		min-width: 0;
		padding: 0 0 8px;
		border: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.nav-group.is-open .nav-drop, .nav-group:focus-within .nav-drop { display: block; }
	.nav-group:hover .nav-drop { display: none; }
	.nav-group.is-open:hover .nav-drop { display: block; }
}

@media (max-width: 560px) {
	body { font-size: 14px; }
	.wrap { padding-inline: 16px; }
	.brand-logo { height: 28px; }
	.header-actions .btn-ghost { display: none; }
	.header-actions .btn { padding: 8px 14px; font-size: 13px; }
	.header-inner { gap: 8px; }
	.content-card { padding: 16px; }
	.page-title { font-size: 23px; }
	.voc-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.hero-inner { padding-block: 84px 80px; }
	.hero-text { font-size: 16px; }
	.cta-inner { padding: 28px 24px; }
	.section { padding-block: 60px 10px; }
}

/* ---------- game systems page ---------- */
.sys { scroll-margin-top: 90px; }
.sys-intro { margin: 0 0 24px; font-size: 17px; line-height: 1.65; color: #d9d1c1; }
.sys-facts {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	margin: 0 0 22px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--line);
}
.sys-facts li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px; background: var(--surface-2); text-align: center; }
.sys-facts strong { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--gold-2); }
.sys-facts span { font-size: 12px; color: var(--text-dim); }
.sys-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sys-jump a {
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text-dim);
	font-size: 13px;
	font-weight: 600;
}
.sys-jump a:hover { border-color: var(--gold-deep); color: var(--gold-2); text-decoration: none; }
.sys-group { padding-top: 36px; scroll-margin-top: 90px; }
.sys-group + .sys-group { margin-top: 12px; border-top: 1px solid var(--line-soft); }
.sys-title { margin: 0 0 6px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: var(--text); }
.sys-lead { margin: 0 0 20px; color: var(--text-dim); }
.sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sys-card {
	display: flex;
	gap: 14px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(180deg, var(--surface-2), var(--surface));
	transition: border-color .2s, transform .2s;
}
.sys-card:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.sys-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sys-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(214, 165, 72, .35);
	border-radius: 10px;
	background: radial-gradient(circle at 50% 30%, rgba(214, 165, 72, .18), rgba(214, 165, 72, .04));
	color: var(--gold-2);
}
.sys-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sys-card h3 { margin: 2px 0 6px; font-size: 16px; color: var(--text); }
.sys-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.sys-roadmap { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.sys-roadmap li { position: relative; padding: 0 0 18px 6px; }
.sys-roadmap li::before {
	content: "";
	position: absolute;
	left: -30px;
	top: 5px;
	width: 12px;
	height: 12px;
	border: 2px solid var(--gold-deep);
	border-radius: 50%;
	background: var(--bg);
}
.sys-roadmap h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 16px; }
.sys-roadmap p { margin: 0; font-size: 14px; color: var(--text-dim); }
.sys-badge {
	padding: 2px 8px;
	border: 1px solid rgba(196, 84, 43, .5);
	border-radius: 999px;
	background: rgba(196, 84, 43, .12);
	color: #f0a07e;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.sys-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 30px;
	padding: 22px 24px;
	border: 1px solid var(--gold-deep);
	border-radius: var(--radius);
	background: radial-gradient(400px 120px at 0% 0%, rgba(214, 165, 72, .14), transparent), var(--surface-2);
}
.sys-cta p { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--gold-2); }
.sys-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) {
	.sys-facts { grid-template-columns: repeat(2, 1fr); }
	.sys-grid { grid-template-columns: 1fr; }
}

/* ---------- discord ---------- */
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 6px 20px rgba(88, 101, 242, .3); }
.btn-discord:hover { background: #6d78f5; color: #fff; }
.btn-discord svg { flex-shrink: 0; }
.btn-icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: rgba(10, 10, 14, .5);
	color: var(--text-dim);
	transition: color .15s, border-color .15s, background .15s;
}
.btn-icon svg { width: 20px; height: 20px; }
.btn-discord-icon:hover { color: #fff; border-color: #5865f2; background: #5865f2; }
.hero-status a { color: var(--gold-2); font-weight: 600; }
.side-discord { width: 100%; margin-top: 16px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-discord { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: #9ea6ff; font-weight: 600; }
.footer-discord:hover { color: #fff; text-decoration: none; }

.section-launch { padding-block: 40px 0; }
.launch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
	padding: 34px 40px;
	border: 1px solid rgba(88, 101, 242, .35);
	border-radius: 20px;
	background:
		radial-gradient(520px 220px at 0% 50%, rgba(88, 101, 242, .22), transparent 70%),
		radial-gradient(420px 200px at 100% 0%, rgba(214, 165, 72, .12), transparent 70%),
		var(--surface);
}
.launch-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 76px;
	height: 76px;
	border-radius: 22px;
	background: #5865f2;
	color: #fff;
	box-shadow: 0 10px 30px rgba(88, 101, 242, .4);
}
.launch-icon svg { width: 42px; height: 42px; }
.launch-copy { flex: 1 1 320px; }
.launch-copy .section-title { margin: 0; }
.launch-copy p:last-child { margin: 8px 0 0; color: var(--text-dim); }
@media (max-width: 560px) {
	.launch { padding: 26px 22px; gap: 18px; }
	.launch-icon { width: 60px; height: 60px; border-radius: 18px; }
	.launch .btn { width: 100%; }
	.header-actions .btn-icon { width: 34px; height: 34px; }
}
/* not open yet: amber "coming soon" instead of an error red */
.is-offline .dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(214, 165, 72, .15); }
.hero-status { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 960px) {
	.hero-status { justify-content: center; border-radius: 16px; }
}

/* ---------- philosophy band (home) ---------- */
.nav-single .nav-cat:hover { text-decoration: none; }
.section-lead { max-width: 640px; margin: 18px auto 0; color: var(--text-dim); font-size: 16px; }
.creed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.creed-card {
	padding: 28px 26px;
	border: 1px solid var(--line-soft);
	border-top: 2px solid var(--gold-deep);
	border-radius: 16px;
	background: radial-gradient(300px 140px at 0% 0%, rgba(214, 165, 72, .09), transparent 70%), linear-gradient(180deg, #191c24, #13151b);
}
.creed-mark {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border: 1px solid rgba(214, 165, 72, .4);
	border-radius: 14px;
	background: radial-gradient(circle at 50% 30%, rgba(214, 165, 72, .2), rgba(214, 165, 72, .04));
	color: var(--gold-2);
}
.creed-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.creed-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 19px; font-weight: 700; }
.creed-card p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.creed-verdict {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 32px;
	margin-top: 22px;
	padding: 22px 28px;
	border: 1px dashed rgba(214, 165, 72, .35);
	border-radius: 16px;
	background: rgba(214, 165, 72, .04);
}
.creed-verdict > div { flex: 1 1 420px; display: grid; gap: 4px; }
.creed-verdict p { margin: 0; font-family: var(--display); font-size: 17px; color: var(--text); }
.creed-verdict p span { color: var(--gold-2); }
.creed-verdict .btn { flex-shrink: 0; }
@media (max-width: 960px) {
	.creed-grid { grid-template-columns: 1fr; }
	.creed-verdict { justify-content: center; text-align: center; }
}

/* ---------- fairness block (systems page) ---------- */
.sys-fair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sys-fair > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.sys-fair h3 { margin: 0 0 10px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.sys-fair ul { margin: 0; padding: 0; list-style: none; }
.sys-fair li { position: relative; padding: 4px 0 4px 26px; color: var(--text-dim); font-size: 14px; }
.sys-fair li strong { color: var(--text); }
.sys-fair li::before { position: absolute; left: 0; top: 3px; font-weight: 700; }
.sys-fair-yes { border-color: rgba(214, 165, 72, .4) !important; }
.sys-fair-yes h3 { color: var(--gold-2); }
.sys-fair-yes li::before { content: "\2713"; color: var(--gold-2); }
.sys-fair-no h3 { color: #f0a07e; }
.sys-fair-no li::before { content: "\2715"; color: var(--red); }
@media (max-width: 720px) { .sys-fair { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.faq-item[open] { border-color: var(--gold-deep); }
.faq-item summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
	list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; font-size: 22px; line-height: 1; color: var(--gold); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 18px; color: var(--text-dim); line-height: 1.65; }
.faq-hidden { opacity: .55; }
.faq-admin { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 14px; }
.faq-admin form { margin: 0; }
.faq-admin button { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text-dim); font: inherit; font-size: 12px; cursor: pointer; }
.faq-admin button:hover { color: var(--gold-2); border-color: var(--gold-deep); }
.faq-more { margin-top: 22px; color: var(--text-dim); }

/* ---------- language switch ---------- */
.lang-switch { display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 10, 14, .5); }
.lang-switch a { padding: 4px 9px; border-radius: 999px; color: var(--text-dim); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a[aria-current] { background: var(--gold); color: #1a1206; }
@media (max-width: 560px) { .lang-switch a { padding: 3px 7px; font-size: 11px; } }

/* ---------- account / character creation ---------- */
.cf { display: grid; gap: 22px; }
.cf-head { margin-bottom: -4px; }
.cf-title { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; color: var(--text); }
.cf-section { display: grid; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.cf-step { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--display); font-size: 19px; color: var(--text); }
.cf-step span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1a1206; font-family: var(--body); font-size: 14px; font-weight: 800; }
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.cf-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.cf-label { display: block; margin-bottom: 6px; padding: 0; font-weight: 700; font-size: 14px; color: var(--text); }
.cf-input-wrap { position: relative; }
#ContentHelper .cf input[type="text"], #ContentHelper .cf input[type="email"], #ContentHelper .cf input[type="password"], #ContentHelper .cf select {
	width: 100%;
	padding: 11px 40px 11px 14px;
	border-radius: 10px;
	font-size: 15px;
}
#ContentHelper .cf select { padding-right: 14px; }
#ContentHelper .cf input[aria-invalid="true"] { border-color: rgba(224, 96, 79, .7); }
.cf-state { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; }
.cf-state.is-ok { background: var(--green); }
.cf-state.is-ok::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #0d0f13; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cf-state.is-bad { background: var(--red); }
.cf-state.is-bad::before, .cf-state.is-bad::after { content: ""; position: absolute; left: 8px; top: 4px; width: 2px; height: 10px; background: #0d0f13; transform: rotate(45deg); }
.cf-state.is-bad::after { transform: rotate(-45deg); }
.cf-hint { margin: 6px 0 0; color: var(--text-dim); font-size: 13px; }
.cf-error { min-height: 1em; margin: 4px 0 0; color: var(--red); font-size: 13px; }
.cf-error.is-ok { color: var(--green); }
.cf-error:empty { min-height: 0; }
.cf-rook { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid rgba(214, 165, 72, .35); border-radius: 12px; background: rgba(214, 165, 72, .06); }
.cf-rook svg { flex-shrink: 0; width: 26px; height: 26px; margin-top: 2px; fill: none; stroke: var(--gold-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cf-rook p { margin: 0; color: var(--text-dim); font-size: 14px; }
.cf-rook strong { color: var(--text); }
.cf-worlds, .cf-sexes { display: grid; gap: 12px; }
.cf-sexes { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; }
.cf-world input, .cf-sex input { position: absolute; opacity: 0; pointer-events: none; }
.cf-world-card, .cf-sex-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #0f1217;
	cursor: pointer;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.cf-world-card:hover, .cf-sex-card:hover { border-color: var(--gold-deep); }
.cf-world input:checked + .cf-world-card, .cf-sex input:checked + .cf-sex-card {
	border-color: var(--gold);
	background: radial-gradient(240px 100px at 0% 0%, rgba(214, 165, 72, .16), transparent), #14161c;
	box-shadow: 0 0 0 1px var(--gold) inset;
}
.cf-world input:focus-visible + .cf-world-card, .cf-sex input:focus-visible + .cf-sex-card { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.cf-world-card { flex-wrap: wrap; }
.cf-world-name { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--gold-2); }
.cf-world-tags { display: flex; gap: 6px; }
.cf-world-tags span { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-dim); font-size: 12px; font-weight: 600; }
.cf-world-status { margin-left: auto; color: var(--gold); font-size: 13px; font-weight: 600; }
.cf-sex-card { flex-direction: column; gap: 4px; padding: 14px 10px 12px; text-align: center; }
.cf-sex-card img { width: 96px; height: 96px; image-rendering: pixelated; }
.cf-sex-name { font-weight: 700; color: var(--text); }
.cf-sex-outfit { color: var(--text-dim); font-size: 12px; }
.cf-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.cf-check input { width: 18px; height: 18px; margin-top: 2px; }
.cf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#ContentHelper .cf-actions button.btn { padding: 13px 26px; font-size: 15px; }
#ContentHelper .cf-actions button[disabled] { opacity: .5; cursor: not-allowed; }
.cf-alert, .cf-rules { margin: 0; }
.cf-alert { padding: 12px 16px; border: 1px solid rgba(224, 96, 79, .5); border-radius: 10px; background: rgba(224, 96, 79, .08); color: #ffb3a8; }
.cf-rules { color: var(--text-dim); font-size: 13px; }
@media (max-width: 720px) {
	.cf-grid { grid-template-columns: 1fr; }
	.cf-section { padding: 18px 16px; }
	.cf-world-status { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
	.header-actions .btn-discord-icon { display: none; }
	.hero-kicker { letter-spacing: .14em; }
}
.lang-switch-nav { display: none; }
@media (max-width: 560px) {
	.header-actions .lang-switch { display: none; }
	.lang-switch-nav { display: inline-flex; align-self: flex-start; margin: 12px 0 4px; }
	.lang-switch-nav a { padding: 6px 14px; font-size: 13px; }
}

/* ===== Tabelas DataTables (magias, monstros, ranking, casas) no tema escuro =====
   O datatables.min.css do MyAAC pinta tudo de branco; aqui devolvemos ao tema. */
.dataTables_wrapper { color: var(--text-dim); margin-top: 6px; }
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate { color: var(--text-dim); }
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
	background: var(--surface-2); color: var(--text);
	border: 1px solid var(--line); border-radius: 8px;
	padding: 4px 8px; outline: none;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus { border-color: var(--gold-deep); }

table.dataTable { border-collapse: collapse !important; width: 100% !important; }
table.dataTable thead th,
table.dataTable thead td {
	background: var(--surface-2); color: var(--gold-2);
	font-family: var(--display); font-weight: 600;
	border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left;
}
table.dataTable tbody tr,
table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd,
table.dataTable.display tbody tr.odd > .sorting_1,
table.dataTable.display tbody tr.odd > .sorting_2,
table.dataTable.display tbody tr.odd > .sorting_3,
table.dataTable.display tbody tr > .sorting_1,
table.dataTable.display tbody tr > .sorting_2,
table.dataTable.display tbody tr > .sorting_3 { background-color: transparent !important; }
table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd { background-color: rgba(255,255,255,.02) !important; }
table.dataTable tbody td { color: var(--text); border-top: 1px solid var(--line-soft); padding: 9px 12px; }
table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover { background-color: rgba(214,165,72,.08) !important; }
table.dataTable tbody tr a { color: var(--gold); }

.dataTables_wrapper .dataTables_paginate .paginate_button {
	color: var(--text-dim) !important;
	border: 1px solid var(--line); border-radius: 8px;
	background: var(--surface-2); margin-left: 4px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	color: var(--gold-2) !important; background: var(--surface) !important;
	border-color: var(--gold-deep);
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	color: #1a1205 !important; border-color: var(--gold-deep);
	background: linear-gradient(180deg, var(--gold-2), var(--gold)) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
	color: #5a5648 !important; background: transparent !important; border-color: var(--line-soft);
}

/* ===================================================================
   Polimento premium (texturas, ornamentos, micro-interações) — v21
   =================================================================== */

/* -- rolagem suave (respeita quem desliga animação) + âncora sob o header -- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* -- scrollbar dourada -- */
* { scrollbar-width: thin; scrollbar-color: var(--gold-deep) var(--bg-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--gold-deep), #5e4218);
	border: 3px solid var(--bg-2); border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); }
::-webkit-scrollbar-corner { background: var(--bg-2); }

/* -- seleção de texto -- */
::selection { background: rgba(214, 165, 72, .32); color: #fff; }

/* -- vinheta nas bordas + textura de ruído sutil sobre o fundo -- */
body {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E") repeat,
		radial-gradient(1200px 600px at 50% -200px, rgba(214, 165, 72, .10), transparent 70%),
		radial-gradient(135% 115% at 50% 12%, transparent 56%, rgba(0, 0, 0, .55) 100%) fixed,
		var(--bg);
}

/* -- ornamento nos eyebrow centralizados (linhas douradas nas laterais) -- */
.section-head:not(.section-head-left) .eyebrow {
	display: inline-flex; align-items: center; gap: 14px;
}
.section-head:not(.section-head-left) .eyebrow::before,
.section-head:not(.section-head-left) .eyebrow::after {
	content: ""; width: 30px; height: 1px; opacity: .8;
}
.section-head:not(.section-head-left) .eyebrow::before { background: linear-gradient(90deg, transparent, var(--gold-deep)); }
.section-head:not(.section-head-left) .eyebrow::after  { background: linear-gradient(90deg, var(--gold-deep), transparent); }

/* -- brilho suave no título dourado do hero -- */
.hero-lead span { text-shadow: 0 0 28px rgba(240, 198, 110, .35); }

/* -- cards com reação ao passar o mouse -- */
.card { transition: border-color .25s, box-shadow .25s, transform .25s; }
.side-card:hover {
	border-color: rgba(214, 165, 72, .3);
	box-shadow: 0 22px 44px -30px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(214, 165, 72, .06);
}
.creed-card { transition: transform .25s, border-color .25s, box-shadow .25s; }
.creed-card:hover {
	transform: translateY(-4px);
	border-top-color: var(--gold);
	box-shadow: 0 26px 52px -30px rgba(214, 165, 72, .32);
}
.step { transition: transform .25s, border-color .25s; }
.step:hover { transform: translateY(-3px); }

/* -- sublinhado dourado animado nos links de menu/rodapé/sidebar -- */
.footer-col a, .side-link { position: relative; }
.footer-col a::after, .side-link::after {
	content: ""; position: absolute; left: 0; bottom: -1px;
	width: 0; height: 1px; background: linear-gradient(90deg, var(--gold-2), var(--gold-deep));
	transition: width .28s ease;
}
.footer-col a:hover, .side-link:hover { text-decoration: none; }
.footer-col a:hover::after, .side-link:hover::after { width: 100%; }

/* -- realce no item nº1 do Hall da Fama -- */
.top-list li:first-child {
	background: linear-gradient(90deg, rgba(214, 165, 72, .14), transparent);
	box-shadow: inset 0 0 0 1px rgba(214, 165, 72, .18);
}

/* ---------- raids page ---------- */
.sys-subtitle { margin: 28px 0 12px; font-family: var(--display); font-size: 18px; color: var(--gold-2); }
.sys-note { margin: 10px 0 0; font-size: 14px; color: var(--text-dim); }
.raid-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.raid-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.raid-table th, .raid-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; background: transparent; color: var(--text); }
.raid-table thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); background: var(--surface-2); }
.raid-table tbody th { font-weight: 600; min-width: 220px; }
.raid-table .raid-region th { padding-block: 14px 8px; font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--gold-2); background: var(--bg-2); border-bottom-color: var(--line); }
.raid-table tbody tr:not(.raid-region):hover > * { background: var(--surface-2); }
.raid-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.raid-creatures { color: var(--text-dim) !important; min-width: 220px; }
.raid-creatures strong { color: var(--gold-2); font-weight: 700; }
.raid-table .raid-interval { white-space: nowrap; font-variant-numeric: tabular-nums; }
.raid-table td.raid-interval { font-weight: 600; color: var(--gold); }
.raid-table .raid-boss { color: var(--gold-2); }

/* Sistemas: cartões clicáveis no índice e subpágina de cada sistema */
a.sys-card-link { color: inherit; text-decoration: none; }
a.sys-card-link:hover { text-decoration: none; }
.sys-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--gold-2); }
.sys-back { display: inline-block; margin-bottom: 18px; font-size: 14px; color: var(--text-dim); }
.sys-back:hover { color: var(--gold-2); text-decoration: none; }
.sys-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 8px; }
.sys-head .eyebrow { margin: 0 0 6px; }
.sys-head .sys-intro { margin: 0; }
.sys-icon-lg { width: 56px; height: 56px; flex: 0 0 56px; }
.sys-icon-lg svg { width: 30px; height: 30px; }
.sys-doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: start; }
.sys-doc-section { padding-top: 8px; }
.sys-doc-section + .sys-doc-section { margin-top: 10px; border-top: 1px solid var(--line-soft); }
.sys-doc p { line-height: 1.65; color: #d9d1c1; }
.sys-list { margin: 0 0 12px; padding: 0 0 0 20px; }
.sys-list li { padding: 3px 0; line-height: 1.6; color: #d9d1c1; }
.sys-list li::marker { color: var(--gold); }
.sys-table tbody th { min-width: 0; }
.sys-link { margin: 12px 0 0; font-weight: 600; }
.sys-side { position: sticky; top: 96px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.sys-side-title { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.sys-side ul { margin: 0; padding: 0; list-style: none; }
.sys-side li a { display: block; padding: 5px 0; font-size: 14px; color: var(--text); }
.sys-side li a:hover, .sys-side li a.is-current { color: var(--gold-2); text-decoration: none; }
.sys-side li a.is-current { font-weight: 700; }
@media (max-width: 900px) {
	.sys-doc-layout { grid-template-columns: 1fr; }
	.sys-side { position: static; }
	.sys-head { flex-direction: column; }
}

/* Sistemas ilustrados: cartões com arte, topo das páginas e galerias */
.sys-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sys-tile {
	display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: linear-gradient(180deg, var(--surface-2), var(--surface));
	transition: border-color .2s, transform .2s, box-shadow .2s;
}
.sys-tile:hover { text-decoration: none; border-color: var(--gold-deep); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.sys-tile-art {
	display: flex; align-items: center; justify-content: center; height: 150px; padding: 14px;
	background: radial-gradient(ellipse at 50% 60%, rgba(214, 165, 72, .14), transparent 70%), var(--bg-2);
	border-bottom: 1px solid var(--line-soft);
}
.sys-tile-art img { max-width: 100%; max-height: 122px; object-fit: contain; image-rendering: pixelated; }
.sys-tile-body { display: block; padding: 16px 18px 18px; }
.sys-tile-body h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.sys-tile-body p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.sys-tile:hover h3 { color: var(--gold-2); }

.sys-hero {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: 28px; align-items: center;
	margin-bottom: 18px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius);
	background: radial-gradient(ellipse at 80% 50%, rgba(214, 165, 72, .12), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface));
}
.sys-hero .eyebrow { margin: 0 0 8px; }
.sys-hero .sys-intro { margin: 0; }
.sys-hero-art { display: flex; align-items: center; justify-content: center; min-height: 140px; }
.sys-hero-art img { max-width: 100%; max-height: 220px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45)); }
.sys-hero-raids { grid-template-columns: 1fr; padding: 18px; }

.sys-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.sys-gallery figure { margin: 0; text-align: center; }
.sys-gallery figure span {
	display: flex; align-items: center; justify-content: center; height: 170px; padding: 8px;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
}
.sys-gallery img { max-width: 100%; max-height: 154px; object-fit: contain; image-rendering: pixelated; }
.sys-gallery figcaption { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--gold-2); }
.sys-subtitle .sys-badge { margin-left: 10px; vertical-align: middle; }
@media (max-width: 760px) {
	.sys-hero { grid-template-columns: 1fr; }
	.sys-hero-art { order: -1; }
}

/* THARVION house auction plugin (plugins/tharvion-house-auction) */
.tha h2, .tha h3 { color: var(--gold-2); }
.tha-table { width: 100%; border-collapse: collapse; margin: .6rem 0 1.2rem; }
.tha-table th, .tha-table td { padding: .45rem .6rem; border-bottom: 1px solid rgba(214, 165, 72, .18); text-align: left; vertical-align: top; }
.tha-table th { color: var(--text-dim); font-weight: 600; }
.tha-form { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; margin: .6rem 0; }
.tha-form input[type=text], .tha-form select { padding: .35rem .5rem; background: rgba(0, 0, 0, .35); color: var(--text); border: 1px solid var(--gold-deep); border-radius: 4px; }
.tha-form button, .tha-table form button { padding: .35rem .8rem; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1b1407; border: 0; border-radius: 4px; cursor: pointer; }
.tha-table form { display: inline; }
.tha-hint { color: var(--text-dim); width: 100%; margin: 0; }
.tha-ok { color: #8fd18f; }
.tha-error { color: #ff8a7a; }
.tha-box { border: 1px solid rgba(214, 165, 72, .25); border-radius: 6px; padding: .7rem .9rem; margin: .6rem 0; }
.tha-filter { margin: .6rem 0; display: flex; gap: .6rem; align-items: center; }
@media (max-width: 640px) { .tha-table th, .tha-table td { padding: .35rem .3rem; font-size: .9rem; } }

/* A form button that looks like the sidebar's links (the logout of the sidebar is a POST, not a link). */
.link-button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	font: inherit;
	text-align: left;
}


/* Ranking (highscores) page */
.ranking-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 20px; }
.ranking-filter { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); }
.ranking-filters select { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; min-width: 190px; }
.ranking-table .rk-pos { width: 56px; text-align: center; color: var(--text-dim); }
.ranking-table .rk-num { text-align: right; white-space: nowrap; }
.ranking-pages { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.ranking-pages .muted { color: var(--text-dim); font-size: 13px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }


/* Personagens (busca + página do char) */
.char-search { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 18px; }
.char-search input { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; min-width: 220px; }
.is-online { color: var(--green); font-weight: 600; }
