/* =====================================================================
   God War Arise – theme stylesheet
   Look follows the "God War Arise" draft: near-black, gold, Cinzel caps.
   Dark is the default; light mode keeps the same structure on pale stone.
   ===================================================================== */

:root {
	--bg:        #050609;
	--bg-2:      #090b10;
	--panel:     #0c0f14;
	--panel-2:   #11151c;
	--text:      #f2efe6;
	--muted:     #a4a8af;
	--gold:      #f2c96d;
	--gold-2:    #fff0a6;
	--gold-fill: #f2c96d;
	--gold-ink:  #111111;
	--line:      rgba(242, 201, 109, .22);
	--edge:      rgba(255, 255, 255, .08);
	--glow:      rgba(242, 201, 109, .07);

	--f-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
	--f-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
	--wrap: 1240px;
	--bar-h: 82px;
	color-scheme: dark;
}
@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		--bg: #f1f2f4; --bg-2: #e6e8ec; --panel: #ffffff; --panel-2: #f7f8fa;
		--text: #15181d; --muted: #545b66; --gold: #8f6208; --gold-2: #7a5200;
		--gold-fill: #f2c96d; --gold-ink: #111111;
		--line: rgba(143, 98, 8, .32); --edge: rgba(20, 24, 29, .12); --glow: rgba(242, 201, 109, .16);
		color-scheme: light;
	}
}
:root[data-theme="light"] {
	--bg: #f1f2f4; --bg-2: #e6e8ec; --panel: #ffffff; --panel-2: #f7f8fa;
	--text: #15181d; --muted: #545b66; --gold: #8f6208; --gold-2: #7a5200;
	--gold-fill: #f2c96d; --gold-ink: #111111;
	--line: rgba(143, 98, 8, .32); --edge: rgba(20, 24, 29, .12); --glow: rgba(242, 201, 109, .16);
	color-scheme: light;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: var(--f-body); font-size: 1rem; line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.gw-skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold-fill); color: var(--gold-ink); padding: 8px 14px; }
.gw-skip:focus { top: 12px; }

.gw-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.gw-eyebrow, .gw-kicker {
	color: var(--gold); font-size: .72rem; font-weight: 800;
	letter-spacing: .32em; text-transform: uppercase; margin: 0 0 12px;
}
.gw-h2 {
	font: 700 clamp(2.1rem, 1.2rem + 3.2vw, 4rem)/1.04 var(--f-display);
	text-transform: uppercase; letter-spacing: .01em; margin: 0; color: var(--text);
}
.gw-h3 { font: 600 1.3rem/1.3 var(--f-display); margin: 0 0 8px; color: var(--text); }
.gw-lead { max-width: 62ch; color: var(--muted); margin: 18px 0 0; line-height: 1.85; }

.gw-link {
	display: inline-block; margin-top: 28px;
	color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
	text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px;
}
.gw-link:hover { color: var(--gold-2); border-bottom-color: currentColor; text-decoration: none; }

/* ---------- buttons ---------- */
.gw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 12px 18px; border: 1px solid var(--gold); border-radius: 0;
	font: 800 .7rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.gw-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 35px rgba(242, 201, 109, .16); }
.gw-btn--lg { padding: 16px 24px; font-size: .75rem; }
.gw-btn--gold { background: var(--gold-fill); color: var(--gold-ink); border-color: var(--gold-fill); }
.gw-btn--gold:hover { background: #fff0a6; border-color: #fff0a6; color: var(--gold-ink); }
.gw-btn--dark { background: rgba(0, 0, 0, .35); color: #fff0a6; border-color: #f2c96d; }
.gw-btn--dark:hover { color: #fff; }
:root[data-theme="light"] .gw-section .gw-btn--dark { background: transparent; color: var(--gold); border-color: var(--gold); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .gw-section .gw-btn--dark { background: transparent; color: var(--gold); border-color: var(--gold); } }
.gw-download .gw-btn--dark, .gw-hero .gw-btn--dark { background: rgba(0, 0, 0, .35) !important; color: #fff0a6 !important; border-color: #f2c96d !important; }
.gw-btn--quiet { border-color: transparent; background: transparent; color: inherit; padding-left: 8px; padding-right: 8px; }
.gw-btn--quiet:hover { color: var(--gold-2); box-shadow: none; }
.gw-btn--discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.gw-btn--discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; box-shadow: 0 12px 35px rgba(88, 101, 242, .25); }

.gw-iconbtn {
	display: inline-grid; place-items: center; width: 38px; height: 38px;
	border: 1px solid var(--edge); background: transparent; color: inherit; cursor: pointer;
}
.gw-iconbtn:hover { color: var(--gold); border-color: var(--gold); }

.gw-theme-toggle__sun { display: none; }
.gw-theme-toggle__moon { display: block; }
:root:not([data-theme="light"]) .gw-theme-toggle__sun { display: block; }
:root:not([data-theme="light"]) .gw-theme-toggle__moon { display: none; }
@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) .gw-theme-toggle__sun { display: none; }
	:root:not([data-theme="dark"]) .gw-theme-toggle__moon { display: block; }
}

/* ---------- top bar (always dark, like the draft) ---------- */
.gw-bar {
	position: sticky; top: 0; z-index: 100;
	background: linear-gradient(180deg, rgba(2, 3, 5, .96), rgba(2, 3, 5, .82));
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, .05);
	color: #f2efe6;
}
.gw-home .gw-bar { position: fixed; left: 0; right: 0; }
.gw-bar .gw-iconbtn { border-color: rgba(255, 255, 255, .14); }
.gw-bar__inner { max-width: 1680px; margin: 0 auto; padding: 0 3vw; height: var(--bar-h); display: flex; align-items: center; gap: 28px; }
.gw-bar__logo { flex: none; }
.gw-bar__logo img { display: block; height: 58px; width: auto; }
.gw-bar__burger { display: none; margin-left: auto; color: #f2c96d; }

.gw-nav { flex: 1; display: flex; align-items: center; gap: 16px; }
.gw-nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.gw-nav__item { position: relative; }
.gw-nav__link {
	display: inline-flex; align-items: center; gap: 4px; padding: 10px 11px;
	font: 700 .72rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
	color: inherit; opacity: .8; background: none; border: 0; cursor: pointer; text-decoration: none;
}
.gw-nav__link:hover, .gw-nav__link[aria-expanded="true"] { opacity: 1; color: #fff0a6; text-decoration: none; }
.gw-nav__link svg { transition: transform .15s; }
.gw-nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.gw-nav__sub {
	position: absolute; top: 100%; left: 0; min-width: 210px; list-style: none; margin: 8px 0 0; padding: 6px;
	background: #0c0f14; border: 1px solid rgba(242, 201, 109, .22); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); display: none;
}
.gw-nav__item--sub:hover .gw-nav__sub, .gw-nav__link[aria-expanded="true"] + .gw-nav__sub { display: block; }
.gw-nav__item--sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.gw-nav__sub a { display: block; padding: 10px 12px; color: #f2efe6; font-size: .9rem; font-weight: 500; text-decoration: none; }
.gw-nav__sub a:hover { background: #11151c; color: #fff0a6; }

.gw-nav__side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.gw-status { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; margin-right: 4px; }
.gw-status__dot { width: 8px; height: 8px; border-radius: 50%; background: #55d17a; box-shadow: 0 0 12px #55d17a; }
.gw-status.is-down .gw-status__dot { background: #d04a3c; box-shadow: 0 0 12px #d04a3c; }

@media (min-width: 1301px) and (max-width: 1580px) {
	.gw-bar__inner { gap: 18px; }
	.gw-nav__link { padding: 10px 8px; }
}
@media (max-width: 1300px) {
	.gw-bar__burger { display: inline-grid; }
	.gw-nav {
		position: fixed; top: var(--bar-h); left: 0; right: 0; bottom: 0;
		flex-direction: column; align-items: stretch; gap: 20px; padding: 16px 6vw 40px;
		background: #050609; overflow-y: auto; display: none;
	}
	.gw-bar.is-open .gw-nav { display: flex; }
	.gw-nav__list { flex-direction: column; }
	.gw-nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: .85rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
	.gw-nav__item--sub:hover .gw-nav__sub { display: none; }
	.gw-nav__link[aria-expanded="true"] + .gw-nav__sub { display: block; position: static; box-shadow: none; margin: 6px 0; }
	.gw-nav__side { margin: 0; flex-wrap: wrap; }
	.gw-status { width: 100%; margin-bottom: 6px; }
}

/* ---------- hero ---------- */
.gw-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 100vh; display: flex; align-items: center;
	padding: calc(var(--bar-h) + 40px) 0 120px;
	background: #050609; color: #f2efe6;
}
.gw-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.gw-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(circle at 76% 40%, rgba(255, 220, 100, .14), transparent 25%),
		linear-gradient(90deg, rgba(2, 3, 5, .96) 0%, rgba(2, 3, 5, .72) 33%, rgba(2, 3, 5, .18) 68%, rgba(2, 3, 5, .4)),
		linear-gradient(0deg, #050609 0%, transparent 30%);
}
.gw-hero__inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.gw-hero__inner > * { max-width: 760px; }
.gw-hero__title {
	margin: 0; font: 800 clamp(3.3rem, 1.5rem + 7vw, 7rem)/.86 var(--f-display);
	text-transform: uppercase; letter-spacing: .02em; color: #f2efe6; text-shadow: 0 12px 50px #000;
}
.gw-hero__title span { display: block; color: #fff0a6; }
.gw-hero__text { max-width: 650px; color: #d1d2cf; margin: 26px 0 32px; font-size: 1.06rem; line-height: 1.85; }
.gw-hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }

.gw-statusbar {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	display: flex; flex-wrap: wrap; gap: 12px 36px; align-items: center;
	padding: 16px max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
	background: rgba(3, 4, 6, .8); border-top: 1px solid rgba(242, 201, 109, .22);
	font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #e9e8e2;
}
.gw-statusbar__live i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #55d17a; box-shadow: 0 0 12px #55d17a; }
.gw-statusbar__live.is-down i { background: #d04a3c; box-shadow: 0 0 12px #d04a3c; }

@media (prefers-reduced-motion: no-preference) {
	.gw-hero__inner > * { animation: gw-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
	.gw-hero__inner > :nth-child(2) { animation-delay: .08s; }
	.gw-hero__inner > :nth-child(3) { animation-delay: .18s; }
	.gw-hero__inner > :nth-child(4) { animation-delay: .28s; }
}
@keyframes gw-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
	/* phones: artwork as a band on top, text below */
	.gw-hero { min-height: 0; align-items: flex-start; padding: calc(var(--bar-h) + 46vw) 0 0; flex-direction: column; }
	.gw-hero__bg { height: auto; aspect-ratio: 1344 / 768; top: var(--bar-h); bottom: auto; }
	.gw-hero::after { top: var(--bar-h); bottom: auto; height: calc(100vw * 768 / 1344 + 2px); background: linear-gradient(0deg, #050609 0%, rgba(5, 6, 9, 0) 50%); }
	.gw-hero__inner { padding: 0 6vw 40px; }
	.gw-statusbar { position: static; padding: 14px 6vw; gap: 10px 20px; }
}

/* ---------- sections ---------- */
.gw-section { padding: clamp(72px, 9vw, 110px) 0; }
.gw-about    { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.gw-features { background: var(--bg-2); }
.gw-server   { background: var(--bg); }
.gw-pantheon { background: var(--bg-2); }
.gw-war      { background: var(--bg); }
.gw-classes  { background: var(--bg-2); }
.gw-donate   { background: var(--bg-2); }
.gw-community{ background: var(--bg); border-top: 1px solid var(--edge); }
.gw-gallery  { background: var(--bg-2); }

/* about */
.gw-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.gw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0 0; }
.gw-stat { display: flex; flex-direction: column; gap: 4px; padding: 22px; border: 1px solid var(--edge); background: var(--panel); }
.gw-stat dd { margin: 0; font: 700 1.45rem/1.2 var(--f-display); color: var(--gold-2); }
.gw-stat dt { color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.gw-quote { margin: 0; border-left: 2px solid var(--gold); padding: 20px 0 20px 28px; color: var(--text); font: 500 1.45rem/1.6 var(--f-display); }

/* features */
.gw-cards { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.gw-card {
	padding: 28px; border: 1px solid var(--edge);
	background: linear-gradient(145deg, var(--panel-2), var(--panel));
	transition: transform .25s, border-color .25s;
}
.gw-card:hover { transform: translateY(-5px); border-color: var(--line); }
.gw-card__symbol { display: block; font-size: 1.7rem; line-height: 1; color: var(--gold); margin-bottom: 18px; }
.gw-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.gw-card .gw-link { margin-top: 14px; }

/* server info */
.gw-rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 45px 0 0; }
.gw-rate { display: flex; flex-direction: column; gap: 4px; padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.gw-rate dd { margin: 0; font: 700 2.1rem/1.15 var(--f-display); color: var(--gold-2); }
.gw-rate dt { color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.gw-infoboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.gw-infobox { padding: 28px; border: 1px solid var(--edge); background: var(--panel); }
.gw-infobox .gw-h3 { font-size: 1.45rem; margin-bottom: 14px; }
.gw-infobox dl { margin: 0; }
.gw-infobox dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--edge); font-size: .88rem; }
.gw-infobox dl div:last-child { border-bottom: 0; }
.gw-infobox dt { color: var(--muted); font-weight: 400; }
.gw-infobox dd { margin: 0; font-weight: 700; text-align: right; color: var(--text); }
.gw-infobox p { color: var(--muted); font-size: .92rem; margin: 0 0 20px; }
.gw-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: .92rem; line-height: 1.9; }

/* pantheon */
.gw-pantheon__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 44px; }
.gw-tabs { display: inline-flex; border: 1px solid var(--edge); padding: 3px; background: var(--panel); }
.gw-tabs button {
	font: 800 .7rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
	padding: 12px 16px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.gw-tabs button:hover { color: var(--text); }
.gw-tabs button[aria-selected="true"] { background: var(--gold-fill); color: var(--gold-ink); }
.gw-tabs__count { opacity: .7; margin-left: 2px; }

.gw-shrines__row, .gw-bosslist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gw-shrine {
	text-align: center; padding: 18px 14px 20px; border: 1px solid var(--edge);
	background: radial-gradient(circle at 50% 35%, var(--glow), transparent 70%), var(--panel);
	transition: border-color .25s;
}
.gw-shrine:hover { border-color: var(--line); }
.gw-shrine__niche {
	aspect-ratio: 164 / 200; overflow: hidden; margin: 0 auto 14px; max-width: 150px;
	border-radius: 999px 999px 0 0; border: 1px solid var(--gold); padding: 4px; background: var(--bg);
}
.gw-shrine__niche img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: 999px 999px 0 0; filter: saturate(.85); transition: filter .25s, transform .4s; }
.gw-shrine:hover .gw-shrine__niche img { filter: saturate(1.1); transform: scale(1.04); }
.gw-shrine__name { font: 600 1.1rem/1.25 var(--f-display); margin: 0; }
.gw-shrine__map { margin: 4px 0 0; color: var(--gold); font-weight: 700; font-size: .82rem; }
.gw-shrine__id { margin: 0; color: var(--muted); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 900px) {
	.gw-shrines__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
	.gw-shrine { scroll-snap-align: start; }
	.gw-bosslist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 560px) and (max-width: 900px) { .gw-shrines__row { grid-auto-columns: 30%; } }

/* war */
.gw-war__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.gw-holder { display: flex; gap: 18px; align-items: center; padding: 22px; margin: 32px 0 0; border: 1px solid var(--line); background: var(--panel); }
.gw-holder__emblem { width: 48px; height: 48px; image-rendering: pixelated; }
.gw-holder p { margin: 0; }
.gw-holder__label { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.gw-holder__name { font: 700 1.5rem/1.2 var(--f-display); color: var(--gold-2); }
.gw-holder__meta { color: var(--muted); font-size: .9rem; }
.gw-war__links { display: flex; gap: 28px; flex-wrap: wrap; margin: 0; }
.gw-ladder { padding: 28px; border: 1px solid var(--edge); background: var(--panel); }
.gw-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gw-table th { text-align: left; color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--edge); }
.gw-table td { padding: 10px 6px; border-bottom: 1px solid var(--edge); }
.gw-table tr:last-child td { border-bottom: 0; }
.gw-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.gw-table tr.is-top td:first-child, .gw-table tr.is-top td:nth-child(2) { color: var(--gold-2); font-weight: 700; }
.gw-empty { color: var(--muted); margin: 8px 0 0; }

/* classes */
.gw-classes__grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; margin-top: 45px; align-items: start; }
.gw-classes__picker { display: flex; flex-direction: column; border-left: 1px solid var(--edge); }
.gw-classes__picker button {
	text-align: left; padding: 9px 16px; margin-left: -1px; border: 0; border-left: 2px solid transparent;
	background: none; color: var(--muted); cursor: pointer; font: 600 .78rem/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase;
}
.gw-classes__picker button:hover { color: var(--text); }
.gw-classes__picker button[aria-selected="true"] { color: var(--gold-2); border-left-color: var(--gold); }
.gw-class {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
	min-height: 420px; padding: 32px; border: 1px solid var(--edge);
	background: radial-gradient(circle at 30% 50%, var(--glow), transparent 60%), linear-gradient(145deg, var(--panel-2), var(--panel));
}
.gw-class img { width: 100%; max-width: 360px; justify-self: center; }
.gw-class__name { font: 700 clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem)/1.1 var(--f-display); text-transform: uppercase; color: var(--gold-2); margin: 0 0 14px; }
.gw-class p { margin: 0; color: var(--muted); max-width: 44ch; }
@media (max-width: 900px) {
	.gw-classes__grid { grid-template-columns: 1fr; gap: 20px; }
	.gw-classes__picker { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--edge); }
	.gw-classes__picker button { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; padding: 12px; }
	.gw-classes__picker button[aria-selected="true"] { border-bottom-color: var(--gold); }
	.gw-class { grid-template-columns: 1fr; text-align: center; min-height: 0; padding: 24px; }
	.gw-class p { margin: 0 auto; }
	.gw-class img { max-width: 240px; }
}

/* download (always dark, artwork behind) */
.gw-download { position: relative; isolation: isolate; overflow: hidden; text-align: center; background: #050609; color: #f2efe6; }
.gw-download__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.gw-download::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 6, 9, .88), rgba(5, 6, 9, .95)); }
.gw-download .gw-eyebrow { color: #f2c96d; }
.gw-download .gw-h2 { color: #f2efe6; }
.gw-download .gw-lead { color: #a4a8af; margin: 18px auto 0; }
.gw-download__box {
	max-width: 850px; margin: 36px auto 0; padding: 32px;
	border: 1px solid rgba(242, 201, 109, .22); background: rgba(0, 0, 0, .48);
	display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
}

/* community */
.gw-community__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.gw-community__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* gallery */
.gw-gallery__grid { list-style: none; padding: 0; margin: 45px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.gw-gallery__item { display: block; width: 100%; padding: 0; border: 1px solid var(--edge); background: var(--panel); cursor: zoom-in; overflow: hidden; }
.gw-gallery__item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.gw-gallery__item:hover img { transform: scale(1.05); }
.gw-lightbox { max-width: min(1200px, 94vw); padding: 0; border: 0; background: transparent; }
.gw-lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.gw-lightbox img { display: block; max-height: 82vh; margin: 0 auto 12px; }
.gw-lightbox .gw-btn { margin: 0 auto; display: flex; }

/* footer */
.gw-footer { background: #030405; color: #969aa1; border-top: 1px solid rgba(255, 255, 255, .07); padding: 50px 0 28px; font-size: .85rem; }
:root[data-theme="light"] .gw-footer { background: var(--bg-2); color: var(--muted); border-top-color: var(--edge); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .gw-footer { background: var(--bg-2); color: var(--muted); border-top-color: var(--edge); } }
.gw-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; }
.gw-footer__brand { display: flex; gap: 18px; align-items: flex-start; }
.gw-footer__brand img { height: 58px; width: auto; }
.gw-footer__brand p { margin: 0; max-width: 44ch; }
.gw-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.gw-footer__links a { color: inherit; text-decoration: none; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gw-footer__links a:hover { color: var(--gold); }
.gw-footer__social { display: flex; gap: 8px; }
.gw-footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--edge); color: inherit; }
.gw-footer__social a:hover { color: var(--gold); border-color: var(--gold); }
.gw-footer__copy { max-width: var(--wrap); margin: 32px auto 0; padding: 16px 28px 0; font-size: .75rem; opacity: .75; }

/* responsive grids */
@media (max-width: 1000px) {
	.gw-cards { grid-template-columns: repeat(2, 1fr); }
	.gw-split, .gw-infoboxes, .gw-war__grid { grid-template-columns: 1fr; gap: 36px; }
	.gw-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
	.gw-wrap { padding: 0 6vw; }
	.gw-cards, .gw-rates, .gw-download__box { grid-template-columns: 1fr; }
	.gw-stats { grid-template-columns: 1fr 1fr; }
	.gw-infobox dl div { flex-direction: column; gap: 2px; }
	.gw-infobox dd { text-align: left; }
}

/* =====================================================================
   Sub pages (account, rankings, admin…) – Bootstrap/Flux markup
   ===================================================================== */
.gw-page { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 80px; }
.gw-page__card {
	background: var(--panel); border: 1px solid var(--line); 
	padding: clamp(20px, 4vw, 44px); 
	overflow-x: auto;
}
.gw-page h2, .gw-page h1 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; color: var(--text); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin: 0 0 .7em; }
.gw-page h3 { font-family: var(--f-display); font-weight: 600; color: var(--text); font-size: 1.3rem; }
.gw-page p, .gw-page td, .gw-page th, .gw-page label, .gw-page li { color: var(--text); }
.gw-page .text-white { color: var(--text) !important; }
.gw-page b[style*="Yellow"], .gw-page b[style*="yellow"] { color: var(--gold) !important; }
.gw-page b[style*="Silver"], .gw-page b[style*="silver"] { color: var(--muted) !important; }

.gw-notice { background: var(--bg-2); border-left: 3px solid var(--gold); padding: 12px 16px; margin-bottom: 24px;  }

.gw-page table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.gw-page table th, .gw-page table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; background: transparent; }
.gw-page table th { color: var(--muted); font-weight: 700; text-align: left; }
.gw-page .table { color: var(--text); }
.gw-page .table td, .gw-page .table th { border-color: var(--line); }
.gw-page .table-striped tbody tr:nth-of-type(odd) { background: var(--bg-2); }
.gw-page .table-hover tbody tr:hover { background: var(--bg-2); color: var(--text); }

.gw-page .form-control, .gw-page input[type=text], .gw-page input[type=password], .gw-page input[type=email],
.gw-page input[type=number], .gw-page input[type=date], .gw-page select, .gw-page textarea {
	background: var(--bg); color: var(--text); border: 1px solid var(--line); 
	font-family: var(--f-body); font-size: 1.05rem; padding: 8px 12px; height: auto;
}
.gw-page .form-control:focus, .gw-page input:focus, .gw-page select:focus, .gw-page textarea:focus {
	background: var(--bg); color: var(--text); border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); outline: none;
}
.gw-page .form-control::placeholder { color: var(--muted); }

.gw-page .btn, .gw-page input[type=submit], .gw-page button[type=submit] {
	font-family: var(--f-body); font-weight: 700; 
}
.gw-page .btn-primary, .gw-page .btn-warning, .gw-page .btn-secondarys, .gw-page input[type=submit], .gw-page button[type=submit]:not(.btn) {
	background: var(--gold-fill); border: 1px solid var(--gold-fill); color: var(--gold-ink); padding: .6em 1.2em;
}
.gw-page .btn-primary:hover, .gw-page input[type=submit]:hover { background: #f0c566; border-color: #f0c566; color: var(--gold-ink); }
.gw-page .btn-secondary, .gw-page .btn-default { background: transparent; border: 1px solid var(--line); color: var(--text); }

.gw-page .alert {  }
.gw-page .red, .gw-page .error { color: #e0674c; }
.gw-page .green { color: #5cc07a; }
.gw-page .card, .gw-page .modal-content { background: var(--panel); border-color: var(--line); color: var(--text); }
.gw-page .pagination .page-link { background: var(--panel); border-color: var(--line); color: var(--gold); }
.gw-page .pagination .active .page-link { background: var(--gold-fill); border-color: var(--gold-fill); color: var(--gold-ink); }
.gw-page code { color: var(--gold); }

/* ---------- a11y ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.gw-download__note { font-size: .78rem !important; margin-top: 20px !important; }
.gw-btn svg { flex: none; margin: -4px 0; }

/* ---------- players online badge (top left, next to the logo) ---------- */
.gw-players {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	padding: 8px 14px; border: 1px solid rgba(85, 209, 122, .55);
	background: rgba(85, 209, 122, .12); color: #7ee89b; text-decoration: none;
	font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.gw-players:hover { background: rgba(85, 209, 122, .2); color: #a6f5bb; text-decoration: none; }
.gw-players strong { font: 800 1.15rem/1 var(--f-display); color: #fff; letter-spacing: 0; }
.gw-players__dot { width: 9px; height: 9px; border-radius: 50%; background: #55d17a; box-shadow: 0 0 12px #55d17a; }
@media (prefers-reduced-motion: no-preference) { .gw-players__dot { animation: gw-pulse 2s ease-in-out infinite; } }
@keyframes gw-pulse { 50% { box-shadow: 0 0 2px #55d17a; opacity: .6; } }
.gw-players.is-down { border-color: rgba(208, 74, 60, .6); background: rgba(208, 74, 60, .14); color: #f08a7e; }
.gw-players.is-down .gw-players__dot { background: #d04a3c; box-shadow: 0 0 12px #d04a3c; animation: none; }
@media (max-width: 1580px) and (min-width: 1301px) { .gw-players__long { display: none; } }
@media (max-width: 1400px) and (min-width: 1301px) { .gw-nav__link { padding: 10px 6px; letter-spacing: .08em; } .gw-bar__inner { gap: 14px; } .gw-nav__side { gap: 6px; } .gw-nav__side .gw-btn--quiet { padding-left: 4px; padding-right: 4px; } }
@media (max-width: 420px) { .gw-players__label { display: none; } .gw-bar__logo img { height: 48px; } }

/* badge sits at the far right; on small screens between logo and menu button */
.gw-players { order: 3; }
.gw-bar__burger { order: 4; }
@media (max-width: 1300px) {
	.gw-players { margin-left: auto; }
	.gw-bar__burger { margin-left: 0; }
}
