/* Gamers United website. Fonts are the game's own 2K Stratum / 2K Franklin (rebuilt from the
   game data for the control center). Everything is themed from the tokens below. */
@font-face { font-family: "2K Stratum"; src: url("../fonts/stratum2_regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "2K Stratum"; src: url("../fonts/stratum2_medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "2K Stratum"; src: url("../fonts/stratum2_bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "2K Stratum"; src: url("../fonts/stratum2_black.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "2K Franklin"; src: url("../fonts/franklin_book_regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "2K Franklin"; src: url("../fonts/franklin_medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "2K Franklin"; src: url("../fonts/franklin_demi_medium.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-2: #0d0e11;
  --surface: #121317;
  --surface-2: #17191e;
  --surface-3: #1e2027;
  --line: #24272e;
  --line-strong: #343842;
  --text: #f2f3f5;
  --text-2: #c9ccd3;
  --muted: #8b909b;
  --dim: #5d626c;
  --red: #e4262c;
  --red-hi: #ff3b41;
  --red-deep: #9c0f16;
  --red-glow: rgba(228, 38, 44, 0.42);
  --red-soft: rgba(228, 38, 44, 0.12);
  --gold: #f2b134;
  --green: #3ccf6e;
  --green-soft: rgba(60, 207, 110, 0.12);
  --amber: #f59e0b;
  --blue: #3fa9f5;
  --discord: #5865f2;
  --bronze: #c98b56;
  --silver: #c7ccd6;
  --hof: #a15cf2;
  --legend: #ff3b41;
  --display: "2K Stratum", "Bahnschrift", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "2K Franklin", "Franklin Gothic Book", "Segoe UI", system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
  --slant: 10px;
  --shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1320px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
svg { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 48px); margin: 0 auto; }
main { flex: 1; }
.hidden { display: none !important; }

/* ------------------------------------------------------------------ type */
.display, h1, h2, h3, h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; margin: 0; }
h1 { font-weight: 900; font-size: clamp(40px, 6vw, 76px); }
h2 { font-weight: 900; font-size: clamp(26px, 3vw, 36px); }
h3 { font-weight: 700; font-size: 20px; }
h4 { font-weight: 700; font-size: 16px; letter-spacing: .03em; }
p { margin: 0 0 1em; }
.lead { font-size: 17px; color: var(--text-2); max-width: 620px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.red { color: var(--red); }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .5em; text-transform: uppercase; color: var(--text-2); }
.eyebrow b { color: var(--red); font-weight: 700; }
.kicker { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; }
.num { font-family: var(--display); font-weight: 900; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --b: var(--red); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 24px;
  border: 0; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--b); clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: transform .15s var(--ease), background .15s, box-shadow .15s, opacity .15s; white-space: nowrap; position: relative;
}
.btn:hover { background: var(--red-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); clip-path: none; border-radius: 3px; }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px #fff; }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--red); clip-path: none; border-radius: 3px; }
.btn-outline:hover { background: var(--red-soft); }
.btn-dark { background: var(--surface-3); }
.btn-dark:hover { background: var(--line-strong); }
.btn-discord { background: var(--discord); }
.btn-discord:hover { background: #6d78ff; }
.btn-steam { background: #1b2838; box-shadow: inset 0 0 0 1px #2a475e; }
.btn-steam:hover { background: #2a475e; }
.btn-green { background: #1f9d4f; }
.btn-green:hover { background: #24b85c; }
.btn-sm { min-height: 34px; padding: 6px 16px; font-size: 12px; --slant: 7px; }
.btn-lg { min-height: 54px; padding: 14px 34px; font-size: 15px; --slant: 12px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link { color: var(--red-hi); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; }
.link svg { width: 14px; height: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; color: var(--text-2); transition: .15s; }
.icon-btn:hover { color: #fff; border-color: var(--red); background: var(--red-soft); }
.icon-btn svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------------ nav */
.site-banner { background: var(--red-deep); color: #fff; text-align: center; font-size: 13.5px; padding: 8px 16px; font-weight: 500; }
.site-banner.warn { background: #7a4a05; }
.site-banner.locked { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; background: #7a4a05; }
.site-banner.locked svg { width: 16px; height: 16px; }
.site-banner.live { background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-deep)); }
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(8, 9, 11, .82); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 4px 14px rgba(228, 38, 44, .25)); }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-links a { position: relative; padding: 24px 16px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 14px; height: 3px; background: var(--red); box-shadow: 0 0 14px var(--red-glow); }
.nav-right { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-toggle { display: none; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: .15s; }
.user-chip:hover { border-color: var(--red); }
.user-chip img, .user-chip .avatar-fallback { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.user-chip span { font-weight: 600; font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 6px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 14px; color: var(--text-2); }
.menu a:hover, .menu button:hover { background: var(--surface-3); color: #fff; }
.menu svg { width: 16px; height: 16px; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.rel { position: relative; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: #050506 url("../img/hero.jpg") no-repeat right center / cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(8, 9, 11, .97) 0%, rgba(8, 9, 11, .88) 34%, rgba(8, 9, 11, .25) 62%, rgba(8, 9, 11, .1) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(8, 9, 11, 0) 30%), radial-gradient(60% 80% at 75% 40%, rgba(228, 38, 44, .18), transparent 70%); }
.hero .wrap { padding: 90px 0 120px; }
.hero h1 { margin: 18px 0 6px; text-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.hero h1 .l2 { display: block; color: var(--red); font-size: .72em; margin-top: .08em; text-shadow: 0 0 40px var(--red-glow); }
.hero .lead { margin: 22px 0 34px; }
.hero .lead strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-badges { display: flex; gap: 18px; margin-top: 40px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 16px; height: 16px; color: var(--red); }
.hero-mark { position: absolute; right: 4%; bottom: 60px; width: 150px; opacity: .9; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .7)); }
.page-hero { position: relative; padding: 70px 0 48px; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 140% at 85% 0%, rgba(228, 38, 44, .18), transparent 60%), linear-gradient(180deg, #0d0e11, var(--bg)); }
.page-hero::after { content: ""; position: absolute; right: -40px; top: -30px; width: 420px; height: 420px; background: url("../img/emblem-transparent.png") no-repeat center / contain; opacity: .07; pointer-events: none; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); margin: 10px 0 12px; }
.page-hero .lead { margin: 0; }
.page-hero.compact { padding: 48px 0 32px; }

/* ------------------------------------------------------------------ cards / panels */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head .title { display: flex; align-items: center; gap: 14px; }
.section-head .title svg { width: 34px; height: 34px; color: var(--red); flex: none; }
.section-head h2 { font-size: 26px; }
.section-head p { margin: 2px 0 0; color: var(--muted); }
.panel { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel-pad { padding: 24px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; }

.feature-cards { margin-top: -78px; position: relative; z-index: 2; }
.fcard { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 12px; min-height: 112px; background: linear-gradient(135deg, rgba(23, 25, 30, .96), rgba(13, 14, 17, .96));
  border: 1px solid var(--line-strong); border-radius: var(--radius); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.fcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transition: transform .25s var(--ease); }
.fcard:hover { transform: translateY(-3px); border-color: rgba(228, 38, 44, .6); box-shadow: 0 18px 40px -20px var(--red-glow); }
.fcard:hover::before { transform: scaleY(1); }
.fcard .thumb { width: 78px; height: 78px; flex: none; border-radius: 4px; background: var(--surface-3) center / cover no-repeat; position: relative; overflow: hidden; }
.fcard .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(228, 38, 44, .25), transparent 60%); }
.fcard .thumb svg { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; color: #fff; z-index: 1; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .8)); }
.fcard h3 { font-size: 16px; margin-bottom: 5px; }
.fcard p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.fcard .go { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: .2s; }
.fcard .go svg { width: 16px; height: 16px; }
.fcard:hover .go { border-color: var(--red); background: var(--red); }

/* ------------------------------------------------------------------ status bits */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pill.online { background: var(--green-soft); color: var(--green); }
.pill.degraded { background: rgba(245, 158, 11, .12); color: var(--amber); }
.pill.offline, .pill.unknown { background: rgba(239, 68, 68, .12); color: #f87171; }
.pill.online .dot { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.tag { display: inline-block; padding: 3px 9px; border-radius: 3px; background: var(--red); color: #fff; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.tag.dark { background: rgba(10, 10, 12, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.tag.green { background: #178a43; }
.tag.gold { background: #a77510; }
.tag.blue { background: #1f6fb2; }
.tag.purple { background: #6d34c9; }
.tag.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; background: var(--surface-3); font-size: 12.5px; color: var(--text-2); }
.chip svg { width: 14px; height: 14px; }

/* servers */
.server-row { display: grid; grid-template-columns: minmax(170px, 1.7fr) minmax(70px, .8fr) auto minmax(80px, .9fr) minmax(70px, .8fr); align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(90deg, rgba(23, 25, 30, .9), rgba(13, 14, 17, .9)); position: relative; overflow: hidden; }
.server-row + .server-row { margin-top: 12px; }
.server-row::after { content: ""; position: absolute; left: 28%; top: 0; bottom: 0; width: 26%; background: url("../img/shots/ante-up-2.thumb.jpg") center / cover; opacity: .14; mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); pointer-events: none; }
.server-row > * { position: relative; z-index: 1; }
.server-name { display: flex; align-items: center; gap: 12px; }
.server-name svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.server-name b { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.2; }
.server-name b .tag { font-size: 10px; padding: 2px 7px; }
.server-name small { color: var(--muted); font-size: 12.5px; }
.metric { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.metric svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.metric b { color: #fff; font-family: var(--display); font-size: 17px; font-weight: 700; }
.metric small { color: var(--muted); display: block; font-size: 11.5px; line-height: 1.1; white-space: nowrap; }
.join-mini { margin-top: 16px; padding: 20px; }
.join-mini .steps { margin-top: 12px; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 3px; background: var(--dim); border-radius: 1px; }
.bars i:nth-child(1) { height: 30%; } .bars i:nth-child(2) { height: 55%; } .bars i:nth-child(3) { height: 80%; } .bars i:nth-child(4) { height: 100%; }
.bars.q4 i, .bars.q3 i:nth-child(-n+3), .bars.q2 i:nth-child(-n+2), .bars.q1 i:nth-child(1) { background: var(--green); }
.bars.q2 i:nth-child(-n+2) { background: var(--amber); }
.bars.q1 i:nth-child(1) { background: #f87171; }
.server-card { padding: 24px; position: relative; overflow: hidden; }
.server-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.server-card h3 { font-size: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat-box small { display: block; color: var(--muted); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--display); font-weight: 700; }
.stat-box b { display: block; font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1.15; margin-top: 4px; }
.stat-box b small { display: inline; font-size: 14px; color: var(--muted); letter-spacing: 0; }
.meter { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-deep), var(--red-hi)); border-radius: inherit; transition: width .6s var(--ease); }
.meter.green > i { background: linear-gradient(90deg, #178a43, var(--green)); }

/* news cards */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ncard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s var(--ease), border-color .2s; }
.ncard:hover { transform: translateY(-3px); border-color: rgba(228, 38, 44, .55); }
.ncard .img { aspect-ratio: 16 / 9; background: var(--surface-3) center / cover no-repeat; position: relative; }
.ncard .img .tag { position: absolute; left: 10px; top: 10px; }
.ncard .img.noimg { background: radial-gradient(circle at 70% 30%, rgba(228, 38, 44, .35), transparent 60%), url("../img/emblem-transparent.png") center / 40% no-repeat, var(--surface-2); }
.ncard .body { padding: 12px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.ncard time { color: var(--muted); font-size: 12.5px; }
.ncard h3 { font-size: 17px; margin: 4px 0 6px; line-height: 1.15; }
.ncard p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; flex: 1; }

/* stats band */
.stats-band { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(8, 9, 11, .96), rgba(20, 8, 9, .9) 50%, rgba(8, 9, 11, .96)), url("../img/hero.jpg") center 30% / cover; overflow: hidden; }
.stats-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 0; }
.bigstat { display: flex; align-items: center; gap: 16px; }
.bigstat > svg { width: 46px; height: 46px; color: var(--red); flex: none; }
.bigstat.discord > svg { color: var(--discord); }
.bigstat b { display: block; font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.bigstat span { display: block; font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--text-2); margin-top: 4px; }
.bigstat small { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }

/* footer */
.footer { background: #060607; border-top: 1px solid var(--line); margin-top: auto; }
.footer .wrap { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 36px; padding: 44px 0 26px; }
.footer .logo { height: 70px; width: auto; margin-bottom: 14px; }
.footer h4 { font-size: 13px; letter-spacing: .14em; margin-bottom: 12px; color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; }
.footer-cols a:hover { color: #fff; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); transition: .15s; }
.socials a:hover { color: #fff; border-color: var(--red); background: var(--red-soft); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.footer-end { text-align: right; }
.footer-end .socials { justify-content: flex-end; }
.footer-end .slogan { font-family: var(--display); font-weight: 700; letter-spacing: .1em; color: var(--muted); font-size: 14px; }
.footer-end .slogan b { display: block; color: var(--red); font-size: 22px; font-weight: 900; }
.disclaimer { border-top: 1px solid var(--line); padding: 18px 0 26px; color: var(--dim); font-size: 12.5px; line-height: 1.6; }
.disclaimer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.disclaimer p { margin: 0; max-width: 860px; }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.field .hint { color: var(--dim); font-size: 12.5px; }
.field .err { color: #f87171; font-size: 12.5px; min-height: 0; }
.input, select.input, textarea.input { width: 100%; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.input.bad { border-color: #f87171; }
textarea.input { min-height: 110px; resize: vertical; }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; background: var(--surface-3); border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); color: var(--muted); }
.input-group .addon svg { width: 16px; height: 16px; }
.input-group .input { border-radius: 0 var(--radius) var(--radius) 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; letter-spacing: .2em; margin: 18px 0; font-family: var(--display); font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-shell { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; background: #050506 url("../img/hero.jpg") center / cover; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 11, .2), var(--bg)), linear-gradient(0deg, rgba(8, 9, 11, .8), transparent 50%); }
.auth-art .copy { position: absolute; left: 48px; bottom: 56px; right: 48px; z-index: 1; }
.auth-art .copy h2 { font-size: 40px; }
.auth-card { width: min(440px, 100%); margin: auto; padding: 48px 0; }
.auth-card .logo { height: 80px; width: auto; margin: 0 auto 18px; }
.auth-card h1 { font-size: 32px; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 26px; }
.auth-card .btn + .btn { margin-top: 10px; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ tabs, tables */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 12px 18px; border: 0; background: none; cursor: pointer; color: var(--muted); font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13.5px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: #fff; }
.tabs .active { color: #fff; border-bottom-color: var(--red); }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; cursor: pointer; padding: 7px 18px; border-radius: 999px; color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.seg button.active { background: var(--red); color: #fff; box-shadow: 0 6px 18px -6px var(--red-glow); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-2); position: sticky; top: 0; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: #fff; }
.table th.sorted { color: var(--red-hi); }
.table th.num, .table td.num { text-align: right; }
.table td { padding: 11px 14px; border-bottom: 1px solid rgba(36, 39, 46, .6); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.hl { color: #fff; font-weight: 700; font-family: var(--display); font-size: 16px; }
.rank { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--muted); width: 48px; }
.rank.r1 { color: var(--gold); } .rank.r2 { color: var(--silver); } .rank.r3 { color: var(--bronze); }
.who { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.who b { display: block; font-weight: 600; line-height: 1.2; }
.who small { color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------------ player / builds */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.avatar-fallback { display: grid; place-items: center; font-family: var(--display); font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--red-deep), var(--red)); }
.builds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.build { position: relative; padding: 18px; border-radius: var(--radius-lg); background: linear-gradient(160deg, #1b1d23, #0e0f12 60%); border: 1px solid var(--line-strong); overflow: hidden; }
.build::before { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; background: url("../img/emblem-transparent.png") center / contain no-repeat; opacity: .06; }
.build.active { border-color: rgba(228, 38, 44, .7); box-shadow: 0 16px 40px -24px var(--red-glow); }
.build .ovr { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ovr-badge { width: 64px; height: 70px; flex: none; display: grid; place-items: center; background: linear-gradient(180deg, var(--red), var(--red-deep)); clip-path: polygon(50% 0, 100% 18%, 100% 78%, 50% 100%, 0 78%, 0 18%); font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.ovr-badge small { display: block; font-size: 10px; letter-spacing: .14em; margin-top: -8px; opacity: .85; }
.ovr-badge.unknown { background: linear-gradient(180deg, var(--line-strong), var(--surface-3)); font-size: 22px; }
.build h4 { font-size: 17px; }
.build .meta { color: var(--muted); font-size: 13px; }
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 4px; }
.tier { text-align: center; padding: 8px 4px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.tier b { display: block; font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 1; }
.tier span { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-family: var(--display); font-weight: 700; }
.tier.bronze b { color: var(--bronze); } .tier.silver b { color: var(--silver); } .tier.gold b { color: var(--gold); } .tier.hof b { color: var(--hof); } .tier.legend b { color: var(--legend); }
.tier.legend { border-color: rgba(255, 59, 65, .35); background: linear-gradient(180deg, rgba(228, 38, 44, .12), var(--bg-2)); }
.badge-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge-list .chip { font-size: 11.5px; padding: 3px 8px; }

.game { display: grid; grid-template-columns: 110px 1fr auto 1fr; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.game + .game { margin-top: 10px; }
.game .when { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.game .when b { display: block; color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.team { display: flex; flex-direction: column; gap: 6px; }
.team.away { align-items: flex-end; text-align: right; }
.team .p { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.team.away .p { flex-direction: row-reverse; }
.team .p img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.team .p small { color: var(--muted); font-size: 12px; }
.team .p.me b { color: var(--red-hi); }
.score { text-align: center; font-family: var(--display); font-weight: 900; font-size: 28px; white-space: nowrap; }
.score .w { color: #fff; } .score .l { color: var(--dim); }
.score small { display: block; font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.result { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; font-family: var(--display); font-weight: 900; font-size: 14px; }
.result.W { background: var(--green-soft); color: var(--green); } .result.L { background: rgba(239, 68, 68, .12); color: #f87171; } .result.D, .result.Q { background: var(--surface-3); color: var(--muted); }

.profile-head { position: relative; padding: 46px 0 30px; border-bottom: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(70% 120% at 20% 0%, rgba(228, 38, 44, .22), transparent 60%), linear-gradient(180deg, #121317, var(--bg)); }
.profile-head .wrap { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.headshot { position: relative; width: 170px; height: 170px; flex: none; }
.headshot .main { width: 100%; height: 100%; border-radius: 18px; object-fit: cover; background: radial-gradient(circle at 50% 30%, #2a2c33, #111216); border: 2px solid var(--line-strong); box-shadow: 0 20px 50px -20px #000; }
.headshot .discord-av { position: absolute; right: -10px; bottom: -10px; width: 58px; height: 58px; border-radius: 50%; border: 4px solid var(--bg); background: var(--discord); object-fit: cover; }
.profile-id h1 { font-size: clamp(34px, 4.6vw, 54px); }
.profile-id .handle { color: var(--muted); font-size: 15px; margin-top: 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rep-box { margin-left: auto; min-width: 280px; padding: 16px 18px; }
.rep-box .tier-name { font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--red-hi); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.kv div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.kv small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--display); font-weight: 700; }
.kv b { font-family: var(--display); font-weight: 900; font-size: 22px; }

/* ------------------------------------------------------------------ features page */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.feature:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.feature:nth-child(even) .shot { order: 2; }
.shot { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); cursor: zoom-in; background: #000; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot .cap { position: absolute; left: 10px; bottom: 10px; }
.shots-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.shots-strip .shot img { aspect-ratio: 16 / 9; }
.feature ul { padding-left: 0; list-style: none; margin: 16px 0 0; display: grid; gap: 8px; }
.feature li { display: flex; gap: 10px; color: var(--text-2); }
.feature li svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 3px; }
.feature h2 { margin: 8px 0 12px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 30px; cursor: zoom-out; animation: fade .2s; }
.lightbox img { max-width: min(1600px, 100%); max-height: 88vh; border-radius: 8px; box-shadow: 0 30px 80px #000; }
.lightbox p { color: var(--text-2); text-align: center; margin-top: 12px; }
@keyframes fade { from { opacity: 0; } }

.post { scroll-margin-top: calc(var(--nav-h) + 20px); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.post .side time { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .04em; color: var(--text-2); text-transform: uppercase; }
.post .side .tag { margin-top: 8px; }
.post h2 { font-size: 28px; margin-bottom: 14px; }
.post .img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; max-width: 760px; }
.post.flash { animation: flash 2.4s var(--ease); }
@keyframes flash { 0%, 30% { background: linear-gradient(90deg, var(--red-soft), transparent); box-shadow: inset 3px 0 0 var(--red); } 100% { background: transparent; } }
.md { color: var(--text-2); max-width: 760px; }
.md h3, .md h4 { color: #fff; margin: 18px 0 8px; }
.md ul { padding-left: 20px; margin: 0 0 1em; }
.md li { margin: 4px 0; }
.md li::marker { color: var(--red); }
.md code { background: var(--surface-3); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.md a { color: var(--red-hi); text-decoration: underline; }
.md strong { color: #fff; }
.md blockquote { margin: 0 0 1em; padding: 4px 16px; border-left: 3px solid var(--red); color: var(--muted); }

/* ------------------------------------------------------------------ downloads */
.dl-hero-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; }
.dl-hero-card .art { background: center / cover no-repeat; min-height: 300px; position: relative; }
.dl-hero-card .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, var(--surface)); }
.dl-hero-card .content { padding: 32px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--text-2); }
.steps li::before { content: counter(step); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red-hi); font-family: var(--display); font-weight: 900; border: 1px solid rgba(228, 38, 44, .4); }
.product { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.product .art { aspect-ratio: 16 / 8; background: center / cover no-repeat; position: relative; }
.product .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 2%, transparent 60%); }
.product .art .tag { position: absolute; left: 14px; top: 14px; z-index: 1; }
.product .content { padding: 4px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 23px; }
.product .price { font-family: var(--display); font-weight: 900; font-size: 34px; margin: 6px 0 10px; }
.product .price small { font-size: 14px; color: var(--muted); letter-spacing: .06em; }
.product ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; flex: 1; align-content: start; }
.product li { display: flex; gap: 8px; font-size: 14px; color: var(--text-2); }
.product li svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 3px; }
.product.featured { border-color: rgba(228, 38, 44, .65); box-shadow: 0 30px 60px -30px var(--red-glow); }
.file-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.file-meta span { display: inline-flex; align-items: center; gap: 5px; }
.file-meta svg { width: 13px; height: 13px; }
.bundle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--red-soft); border: 1px dashed rgba(228, 38, 44, .5); font-size: 13.5px; margin-bottom: 14px; }
.bundle svg { width: 18px; height: 18px; color: var(--red-hi); flex: none; }

/* ------------------------------------------------------------------ community */
.discord-cta { position: relative; overflow: hidden; padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  background: radial-gradient(60% 140% at 100% 50%, rgba(88, 101, 242, .35), transparent 60%), linear-gradient(135deg, #15172a, #0d0e11); border: 1px solid rgba(88, 101, 242, .35); border-radius: var(--radius-lg); }
.discord-cta .mark { position: absolute; right: -40px; bottom: -60px; width: 300px; height: 300px; color: rgba(88, 101, 242, .12); }
.discord-cta h2 { font-size: 34px; }
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.counter { padding: 22px; text-align: left; position: relative; overflow: hidden; }
.counter > svg { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; color: var(--red); opacity: .85; }
.counter b { display: block; font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; margin-top: 14px; font-variant-numeric: tabular-nums; }
.counter span { font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--text-2); }
.counter small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.locked { position: relative; }
.locked .veil { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, rgba(8, 9, 11, .55), rgba(8, 9, 11, .95)); backdrop-filter: blur(5px); border-radius: var(--radius-lg); padding: 24px; }
.locked .veil svg { width: 40px; height: 40px; color: var(--red); margin: 0 auto 10px; }
.board-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.board-tabs button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); padding: 8px 14px; border-radius: 4px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.board-tabs button:hover { color: #fff; border-color: var(--red); }
.board-tabs button.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ------------------------------------------------------------------ support */
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq + .faq { margin-top: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; margin-left: auto; color: var(--muted); transition: transform .2s; flex: none; }
.faq[open] summary svg { transform: rotate(45deg); color: var(--red); }
.faq[open] { border-color: rgba(228, 38, 44, .45); }
.faq .a { padding: 0 20px 18px; color: var(--text-2); }
.faq .a ol, .faq .a ul { padding-left: 20px; margin: 6px 0 10px; }
.faq .a li { margin: 4px 0; }
.faq .a a { color: var(--red-hi); text-decoration: underline; }
.help-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.help-card > svg { width: 30px; height: 30px; color: var(--red); flex: none; }

/* ------------------------------------------------------------------ account / admin layout */
.side-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 2px; padding: 8px; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 6px; color: var(--text-2); font-weight: 600; font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left; }
.side-nav a:hover, .side-nav button:hover { background: var(--surface-3); color: #fff; }
.side-nav .active { background: var(--red-soft); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.side-nav svg { width: 18px; height: 18px; }
.side-nav .group { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .16em; color: var(--dim); padding: 14px 14px 6px; text-transform: uppercase; }
.link-card { display: flex; align-items: center; gap: 16px; padding: 20px; }
.link-card .logo-circle { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.link-card .logo-circle svg { width: 30px; height: 30px; color: #fff; }
.link-card .logo-circle.discord { background: var(--discord); }
.link-card .logo-circle.steam { background: #1b2838; box-shadow: inset 0 0 0 1px #2a475e; }
.link-card .info { flex: 1; min-width: 0; }
.link-card .info b { display: block; font-size: 16px; }
.link-card .info span { color: var(--muted); font-size: 13.5px; }
.onboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.onboard .step { padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); position: relative; }
.onboard .step.done { border-color: rgba(60, 207, 110, .45); }
.onboard .step .n { font-family: var(--display); font-weight: 900; font-size: 36px; color: var(--red); line-height: 1; }
.onboard .step.done .n { color: var(--green); }
.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.hcard { padding: 18px; }
.hcard small { display: block; color: var(--muted); font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; }
.hcard b { display: block; font-family: var(--display); font-weight: 900; font-size: 26px; margin-top: 6px; line-height: 1.1; }
.hcard .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.hcard.bad { border-color: rgba(239, 68, 68, .5); background: linear-gradient(180deg, rgba(239, 68, 68, .1), var(--bg-2)); }
.hcard.good b { color: var(--green); }
.spark { width: 100%; height: 110px; display: block; }
.spark .area { fill: rgba(228, 38, 44, .14); }
.spark .line { fill: none; stroke: var(--red-hi); stroke-width: 2; }
.spark .down { fill: rgba(239, 68, 68, .35); }
.spark .axis { stroke: var(--line); }
.spark text { fill: var(--muted); font-size: 10px; font-family: var(--body); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; }
.check-list { display: grid; gap: 8px; }
.check-list div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check-list svg { width: 18px; height: 18px; flex: none; }
.check-list .ok svg { color: var(--green); }
.check-list .no svg { color: var(--amber); }
.log { max-height: 380px; overflow: auto; font-size: 13px; }
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }

/* ------------------------------------------------------------------ toast / modal / misc */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: slidein .25s var(--ease); font-size: 14px; }
.toast svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.toast.ok { border-color: rgba(60, 207, 110, .5); } .toast.ok svg { color: var(--green); }
.toast.err { border-color: rgba(239, 68, 68, .55); } .toast.err svg { color: #f87171; }
.toast.info svg { color: var(--blue); }
.toast b { display: block; }
@keyframes slidein { from { opacity: 0; transform: translateY(10px); } }
.modal-back { position: fixed; inset: 0; z-index: 250; background: rgba(0, 0, 0, .75); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); padding: 28px; position: relative; }
.modal h3 { font-size: 24px; margin-bottom: 8px; }
.modal .x { position: absolute; right: 14px; top: 14px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.modal.wide { width: min(880px, 100%); }

/* admin: store item photos */
.admin-product .small-path { font-size: 12px; word-break: break-all; color: var(--muted); }
.admin-product .row { margin-top: auto; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.img-pick { position: relative; }
.img-pick > button[data-use] { display: block; width: 100%; aspect-ratio: 16 / 8; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface-3) center / cover no-repeat; cursor: pointer; }
.img-pick > button[data-use]:hover, .img-pick > button[data-use]:focus-visible { border-color: var(--red-hi); }
.img-pick.current > button[data-use] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.img-pick .icon-btn { position: absolute; right: 6px; top: 6px; background: rgba(0, 0, 0, .7); }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: var(--line-strong); margin: 0 auto 12px; }
.empty h4 { color: var(--text-2); margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 14px; color: var(--text-2); }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--blue); }
.notice.warn { border-color: rgba(245, 158, 11, .45); } .notice.warn svg { color: var(--amber); }
.notice.red { border-color: rgba(228, 38, 44, .5); background: var(--red-soft); } .notice.red svg { color: var(--red-hi); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 24px; } .mt4 { margin-top: 40px; }
.mb0 { margin-bottom: 0; } .mb1 { margin-bottom: 8px; } .mb2 { margin-bottom: 16px; } .mb3 { margin-bottom: 24px; }
.grow { flex: 1; }
.right { margin-left: auto; }
.center { text-align: center; }
.copy-btn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 4px; }
.copy-btn:hover { color: #fff; }
.fade-in { animation: fadeup .35s var(--ease) both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }
.not-found { text-align: center; padding: 120px 20px; }
.not-found h1 { font-size: 120px; color: var(--red); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1280px) {
  .nav-links a { padding: 24px 10px; font-size: 13px; white-space: nowrap; }
  .nav .wrap { gap: 16px; }
}
@media (max-width: 1180px) {
  .g4, .feature-cards.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band .wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(8, 9, 11, .98); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 8px; }
  .nav-links a.active::after { left: 0; right: auto; width: 3px; top: 10px; bottom: 10px; height: auto; }
  .nav-toggle { display: inline-grid; }
  .nav .wrap { gap: 14px; }
  .nav-right { margin-left: auto; }
  .brand img { height: 38px; }
  .hero { min-height: 560px; }
  .hero-bg { background-position: 70% center; }
  .hero::before { background: linear-gradient(90deg, rgba(8, 9, 11, .95), rgba(8, 9, 11, .6)), linear-gradient(0deg, var(--bg), transparent 40%); }
  .hero-mark { display: none; }
  .news-grid, .g3 { grid-template-columns: 1fr 1fr; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .feature:nth-child(even) .shot { order: 0; }
  .server-row { grid-template-columns: 1fr 1fr; }
  .server-row .server-name { grid-column: 1 / -1; }
  .footer .wrap { grid-template-columns: 1fr; }
  .footer-end { text-align: left; }
  .footer-end .socials { justify-content: flex-start; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .side-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; grid-auto-flow: column; overflow-x: auto; justify-content: start; }
  .side-nav .group { display: none; }
  .dl-hero-card { grid-template-columns: 1fr; }
  .dl-hero-card .art::after { background: linear-gradient(0deg, var(--surface), transparent 60%); }
  .discord-cta { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; gap: 10px; }
  .game { grid-template-columns: 1fr auto 1fr; }
  .game .when { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; }
  .rep-box { margin-left: 0; width: 100%; }
  .onboard { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .g2, .g3, .g4, .feature-cards.g4, .news-grid, .counter-grid, .form-row { grid-template-columns: 1fr; }
  .stats-band .wrap { grid-template-columns: 1fr 1fr; gap: 18px; }
  .bigstat b { font-size: 28px; } .bigstat > svg { width: 34px; height: 34px; }
  .feature-cards { margin-top: -50px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 40px; }
  .user-chip span { display: none; }
  .nav-right .btn-outline span { display: none; }
  .tiers { grid-template-columns: repeat(5, 1fr); }
  .game { grid-template-columns: 1fr; text-align: left; }
  .team.away { align-items: flex-start; text-align: left; }
  .team.away .p { flex-direction: row; }
  .score { text-align: left; }
  .discord-cta { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* free-to-play perks */
.f2p { position: relative; overflow: hidden; }
.perks { gap: 14px; }
.perk { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.perk > svg { width: 26px; height: 26px; color: var(--red-hi); }
.perk b { font-family: var(--display); font-weight: 900; font-size: 19px; text-transform: uppercase; letter-spacing: .02em; }
.perk span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

.site-banner.view-as { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; background: #1f3a5f; }
.site-banner.view-as svg { width: 16px; height: 16px; }
.staff-login summary { cursor: pointer; color: var(--muted); font-size: 13px; text-align: center; list-style: none; }
.staff-login summary::-webkit-details-marker { display: none; }
.staff-login summary:hover { color: #fff; }
