/* Blacklist launch site - same palette as the in-game ModernUI (Plugins/ModernUI/ModernUI.cs) */
:root {
  --bg: #0e1013;
  --bg-2: #14171c;
  --panel: #181c22;
  --line: rgba(255, 255, 255, 0.07);
  --text: #e8eaed;
  --muted: #8a9099;
  --accent: #ff7a1a;
  --accent-hi: #ff9447;
  --common: #a3adbd;
  --uncommon: #5cc766;
  --rare: #4d94ff;
  --epic: #a361f5;
  --legendary: #ffa829;
  --radius: 6px;
  --font: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

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

/* ---------------------------------------------------------------- wordmark */
.wordmark {
  display: inline-flex; align-items: center;
  font-weight: 700; letter-spacing: 0.02em; line-height: 1; text-decoration: none; color: #fff;
}
.wordmark::before { content: ''; width: 0.14em; height: 0.74em; margin-right: 0.3em; background: var(--accent); flex: none; }
.wordmark span { color: var(--accent); }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: absolute; inset: 0 0 auto; z-index: 5;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(rgba(14, 16, 19, 0.85), rgba(14, 16, 19, 0));
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topbar .wordmark { font-size: 26px; }
.topbar nav { display: flex; gap: 22px; align-items: center; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 600; letter-spacing: 0.08em; font-size: 14px; text-transform: uppercase; }
.topbar nav a:hover { color: #fff; }
.topbar nav a.nav-play { color: var(--accent); }
.topbar nav a.nav-play:hover { color: var(--accent-hi); }
.ico { width: 1.15em; height: 1.15em; vertical-align: -0.22em; margin-right: 0.35em; }
.topbar nav a.nav-discord { display: inline-flex; align-items: center; gap: 0.35em; }
.topbar nav a.nav-discord .ico { margin: 0; }
.topbar nav a.nav-discord:hover { color: var(--accent-hi); }
.btn-discord .ico { width: 1.25em; height: 1.25em; margin: 0; }
.btn-discord:hover { border-color: var(--accent); color: var(--accent-hi); }
.foot-discord { display: inline-flex; align-items: center; gap: 0.3em; }
.foot-discord .ico { margin: 0; }
.cta-sub { color: var(--muted); margin: 16px 0 0; font-size: 15px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 30px; border-radius: var(--radius); border: 1px solid transparent;
  font: 700 18px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px rgba(255, 122, 26, 0.25); }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-primary[aria-disabled='true'] { background: #3a3f47; color: var(--muted); box-shadow: none; pointer-events: none; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.18); color: var(--text); background: rgba(14, 16, 19, 0.4); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: min(100vh, 860px); display: flex; align-items: center;
  background: var(--bg) url('../img/backdrop.jpg') center / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 122, 26, 0.10), transparent 55%),
    linear-gradient(90deg, rgba(14, 16, 19, 0.92) 0%, rgba(14, 16, 19, 0.55) 60%, rgba(14, 16, 19, 0.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: 120px 80px; }
.kicker { color: var(--accent); font-weight: 700; letter-spacing: 0.22em; font-size: 15px; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { margin: 0; font-size: clamp(56px, 11vw, 120px); }
.hero .rule { width: 72px; height: 3px; background: var(--accent); margin: 26px 0 22px; }
.hero .lead { max-width: 520px; font-size: 21px; color: var(--text); margin: 0 0 34px; font-weight: 500; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .meta { margin-top: 22px; color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; }

.status { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: #5cdb78; box-shadow: 0 0 10px rgba(92, 219, 120, 0.6); }
.dot.off { background: var(--accent); }

/* ---------------------------------------------------------------- sections */
section.block { padding: 84px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 34px; letter-spacing: 0.04em; text-transform: uppercase; }
.section-head p { margin: 0; color: var(--muted); max-width: 520px; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden;
}
.card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); opacity: 0.85; }
.card h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; }
.card p { margin: 0; color: var(--muted); font-size: 17px; }
.card .tag { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }

/* arsenal */
.classes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.classes li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px 14px; border-bottom: 3px solid var(--c); }
.tier b { display: block; color: var(--c); letter-spacing: 0.14em; font-size: 14px; }
.tier span { color: var(--muted); font-size: 15px; }

/* maps */
.maps .card { min-height: 140px; display: flex; flex-direction: column; justify-content: flex-end; }
.maps .card::before { display: none; }
.maps .card::after {
  content: attr(data-code); position: absolute; top: 12px; right: 16px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.25);
}

/* requirements */
.reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.reqs li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.reqs svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.reqs b { display: block; font-size: 17px; }
.reqs span { color: var(--muted); font-size: 16px; }

/* final call */
.cta { text-align: center; padding: 96px 0; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(255, 122, 26, 0.12), transparent 60%); }
.cta h2 { margin: 0 0 10px; font-size: clamp(34px, 6vw, 54px); text-transform: uppercase; letter-spacing: 0.03em; }
.cta p { color: var(--muted); margin: 0 0 30px; }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .wordmark { font-size: 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: #fff; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .topbar nav a:not(.nav-play):not(.nav-keep) { display: none; }
  .hero .wrap { padding-block: 100px 60px; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  section.block { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------------------------------------------------------------- inner pages (leaderboard) */
body.page { background: var(--bg) url('../img/backdrop.jpg') center top / 100% auto no-repeat; }
body.page::before { content: ''; position: fixed; inset: 0; background: linear-gradient(rgba(14, 16, 19, 0.82), var(--bg) 520px); z-index: -1; }
.topbar nav a.active { color: #fff; }
.board { padding: 112px 0 40px; min-height: 80vh; }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.board-head h1 { margin: 0; font-size: clamp(40px, 7vw, 64px); line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.tabs button { font: 700 15px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 22px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--accent); color: #fff; }
.tabs button:not([aria-selected='true']):hover { color: #fff; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.chips button { font: 600 14px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); cursor: pointer; }
.chips button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.chips button.on { color: #fff; border-color: var(--accent); background: rgba(255, 122, 26, 0.14); }
.chip-note { color: var(--muted); font-size: 14px; margin-left: 6px; }
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.lb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lb th { text-align: left; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 14px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lb td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lb .r { text-align: right; }
.lb .n { width: 44px; text-align: center; }
.lb tr.row { cursor: pointer; }
.lb tr.row:hover td, .lb tr.row.open td { background: rgba(255, 255, 255, 0.035); }
.lb tr.row.open td { border-bottom-color: transparent; }
.lb tr.msg td { text-align: center; color: var(--muted); padding: 34px 14px; }
.lb .pos { font-weight: 700; color: var(--muted); }
.lb .pos.p1 { color: var(--legendary); } .lb .pos.p2 { color: #d6dbe3; } .lb .pos.p3 { color: #d08a52; }
.lb .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb .who .nm { overflow: hidden; text-overflow: ellipsis; }
.lb .who b { font-size: 18px; }
.lb .who .lvl b { font-size: 14px; }
.lb .hl { color: #fff; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tag { color: var(--muted); font-weight: 700; letter-spacing: 0.04em; }
.tag.big { color: #fff; font-size: 18px; }
.lvl { display: inline-flex; align-items: center; gap: 2px; flex: none; font-weight: 700; font-size: 14px; color: #fff; }
.lvl img { width: 30px; height: 30px; display: block; }
.lvl b { min-width: 18px; font-variant-numeric: tabular-nums; }
.lb tr.detail td { background: rgba(0, 0, 0, 0.18); padding: 0; }
.det { padding: 18px 20px 20px; white-space: normal; }
.det-grid { display: grid; grid-template-columns: minmax(240px, 1fr) 1.4fr; gap: 28px; }
.det-rank { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.det-rank .lvl img { width: 64px; height: 64px; }
.det-rank .lvl b { display: none; }
.det-rank b { display: block; font-size: 20px; letter-spacing: 0.03em; }
.det-title { margin: -2px 0 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 14px; color: var(--t, var(--muted)); }
.det h4.det-cards-h { margin: 18px 0 8px; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badges li { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--t, var(--common));
  background: color-mix(in srgb, var(--t, var(--common)) 14%, transparent); border: 1px solid color-mix(in srgb, var(--t, var(--common)) 45%, transparent); cursor: default; }
.badges li.none { color: var(--muted); background: none; border-color: var(--line); }
.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 16px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 0; }
.facts div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.facts dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 18px; font-weight: 700; }
.facts a { color: var(--accent); text-decoration: none; }
.det h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.games, .roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.games li { display: grid; grid-template-columns: 1.3fr 0.6fr 1fr 0.9fr 0.8fr; gap: 10px; padding: 6px 10px; background: var(--bg-2); border-radius: 4px; font-size: 16px; }
.games .map { font-weight: 700; } .games .xp { color: var(--accent); text-align: right; }
.roster li { display: grid; grid-template-columns: 56px 1.3fr 70px 1.2fr 0.9fr 0.8fr; align-items: center; gap: 10px; padding: 7px 10px; background: var(--bg-2); border-radius: 4px; }
.roster .role { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--legendary); }
.more { margin: 16px auto 0; display: flex; }
.more[hidden] { display: none; }
.board-foot { color: var(--muted); font-size: 15px; margin: 22px 0 0; max-width: 760px; }
.board-foot a { color: var(--accent); }
@media (max-width: 720px) {
  .hide-s { display: none; }
  .det-grid { grid-template-columns: 1fr; }
  .games li { grid-template-columns: 1fr auto auto; }
  .games li > :nth-child(2), .games li > :nth-child(5) { display: none; }
  .lb th, .lb td { padding-left: 8px; padding-right: 8px; }
  .lb .who b { font-size: 16px; }
  .tag { font-size: 13px; }
  .det { padding: 14px 12px 16px; }
  .roster li { grid-template-columns: 56px 1fr 60px; }
  .roster li > :nth-child(n+4) { display: none; }
  .board { padding-top: 96px; }
}
@media (max-width: 480px) { .hide-xs { display: none; } }

/* landing page: top players / clans */
.top-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; align-items: start; }
.see-all { color: var(--accent); text-decoration: none; font-weight: 700; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
@media (max-width: 900px) { .top-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- launch countdown (/countdown) */
.countdown { min-height: 100vh; }
.cd { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }
.cd-cell {
  width: 128px; padding: 16px 10px 12px; text-align: center;
  background: rgba(24, 28, 34, 0.82); border: 1px solid var(--line); border-radius: var(--radius);
  border-bottom: 3px solid var(--accent);
}
.cd-cell b { display: block; font-size: clamp(44px, 8vw, 76px); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.cd-cell span { display: block; margin-top: 8px; color: var(--muted); font-weight: 700; letter-spacing: 0.18em; font-size: 13px; text-transform: uppercase; }
@media (max-width: 520px) { .cd { gap: 8px; } .cd-cell { width: calc(50% - 4px); } }

/* ---------------------------------------------------------------- launch gate: rankings locked until the launch */
html.prelaunch [data-lock] { position: relative; overflow: hidden; }
html.prelaunch [data-lock] > * { filter: blur(7px); opacity: 0.75; pointer-events: none; user-select: none; }
html.prelaunch [data-lock]::after {
  content: 'Unlocks at launch'; position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; padding-top: 92px;
  color: #fff; font: 700 15px/1 var(--font); letter-spacing: 0.2em; text-transform: uppercase;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3Ccircle cx='12' cy='16' r='1.4' fill='%23ff7a1a'/%3E%3C/svg%3E") center calc(50% - 22px) / 56px no-repeat, rgba(14, 16, 19, 0.35);
  border-radius: var(--radius);
}
html.prelaunch .top-grid[data-lock] { min-height: 220px; }
html.prelaunch .table-wrap[data-lock] { min-height: 260px; }

/* landing page countdown (hero, only before the launch): straight under the wordmark, as large as the countdown page */
.hero-cd { display: none; margin: 0 0 40px; }
html.prelaunch .hero .lead { margin-top: 0; }
html.prelaunch .hero-cd { display: block; }
/* round 240: the Community Leader promotion, until launch only */
.leader-promo { display: none; }
html.prelaunch .leader-promo { display: block; }
.leader-banner { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(92, 199, 102, 0.35); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); transition: transform 0.15s, border-color 0.15s; }
.leader-banner:hover { transform: translateY(-2px); border-color: rgba(92, 199, 102, 0.8); }
.leader-banner img { display: block; width: 100%; height: auto; }
.leader-note { color: var(--muted); margin: 18px 0 0; max-width: 820px; }
.leader-note b { color: var(--text); }
.hero-cd .cd-label { margin: 0 0 14px; color: var(--accent); font-weight: 700; letter-spacing: 0.18em; font-size: 18px; text-transform: uppercase; }
.hero-cd .cd-label span { color: #fff; letter-spacing: 0.08em; }
.cd.cd-hero { margin: 0; gap: 12px; }
.cd.cd-hero .cd-cell {
  width: 136px; padding: 18px 8px 14px; background: rgba(24, 28, 34, 0.9);
  border-color: rgba(255, 122, 26, 0.35); box-shadow: 0 10px 40px rgba(255, 122, 26, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.cd.cd-hero .cd-cell b { font-size: clamp(48px, 8vw, 84px); text-shadow: 0 0 24px rgba(255, 122, 26, 0.35); }
.cd.cd-hero .cd-cell span { margin-top: 8px; font-size: 13px; color: var(--text); }
@media (max-width: 520px) {
  .hero-cd .cd-label { font-size: 15px; }
  .cd.cd-hero { gap: 6px; }
  .cd.cd-hero .cd-cell { width: calc(25% - 5px); padding: 12px 2px 10px; }
  .cd.cd-hero .cd-cell b { font-size: 40px; }
  .cd.cd-hero .cd-cell span { letter-spacing: 0.08em; font-size: 11px; }
}

/* ---------------------------------------------------------------- trailer (YouTube, privacy-enhanced embed) */
.video {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 122, 26, 0.08);
}
.video::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); z-index: 1; pointer-events: none; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------- website account (/account, header button) */
.topbar nav a.nav-account { display: inline-flex; align-items: center; gap: 0.4em; }
.topbar nav a.nav-account .ico { margin: 0; }
.topbar nav a.nav-account.active, .topbar nav a.nav-account.signed-in { color: #fff; }
.topbar nav a.nav-account .acc-badge { width: 24px; height: 24px; }
.topbar nav a.nav-account .acc-label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0.04em; font-size: 15px; }
@media (max-width: 720px) {
  .topbar nav { gap: 14px; }
  .topbar nav a.nav-account .acc-label { display: none; }
}
.account h1 { margin: 0; font-size: clamp(36px, 6vw, 56px); line-height: 1; letter-spacing: 0.02em; }
.account h1 .tag { font-size: 0.55em; vertical-align: middle; }
.account h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.acc-status { padding: 40px 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.head-actions .btn { height: 44px; padding: 0 22px; font-size: 16px; }
.p-title { margin: 10px 0 0; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 15px; }
.acc-grid { display: grid; grid-template-columns: minmax(280px, 1fr) 1.6fr; gap: 14px; margin-bottom: 14px; }
.acc-grid.wide { grid-template-columns: 1.4fr 1fr; align-items: start; }
.acc-h2 { margin: 40px 0 14px; font-size: 26px; letter-spacing: 0.04em; text-transform: uppercase; }
.rank-card .facts { grid-template-columns: repeat(2, 1fr); }
.facts dd.gold { color: var(--legendary); }
.games .won { color: #5cdb78; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 520px; overflow-y: auto; }
.cards li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'name tier' 'label prog'; align-items: baseline; gap: 2px 12px; padding: 8px 12px; background: var(--bg-2); border-radius: 4px; border-left: 3px solid var(--common); }
.cards .c-name { grid-area: name; font-size: 17px; letter-spacing: 0.02em; }
.cards .c-label { grid-area: label; }
.cards .c-tier { grid-area: tier; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-align: right; }
.cards .c-prog { grid-area: prog; text-align: right; }
.cards li.locked { border-left-color: rgba(255, 255, 255, 0.12); opacity: 0.6; }
.cards li.locked .c-tier { color: var(--muted); }
.panel .more { margin-top: 12px; height: 38px; padding: 0 18px; font-size: 14px; }
.t-common { --t: var(--common); } .t-uncommon { --t: var(--uncommon); } .t-rare { --t: var(--rare); }
.t-epic { --t: var(--epic); } .t-legendary { --t: var(--legendary); } .t-staff { --t: #ff4d4d; }
.cards li[class^='t-'] { border-left-color: var(--t); }
.cards li[class^='t-'] .c-tier, .p-title[class*='t-'] { color: var(--t); }
.form { display: grid; gap: 12px; align-content: start; }
.form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.form input {
  height: 46px; padding: 0 14px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-2); color: var(--text); font: 600 18px var(--font); letter-spacing: 0.02em;
}
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18); }
.form input:disabled { opacity: 0.6; }
.form .btn { justify-self: start; height: 46px; font-size: 16px; padding: 0 24px; }
.form .btn:disabled { opacity: 0.6; cursor: default; }
.form p { margin: 0; }
.form-msg { color: #ff6b5c; font-weight: 600; font-size: 16px; }
.form-msg.good { color: #5cdb78; }
.signin { display: grid; grid-template-columns: 1fr minmax(300px, 420px); gap: 40px; align-items: center; padding-top: 30px; }
.signin h1 { margin-bottom: 18px; }
.signin .muted a { color: var(--accent); }
.signin .form { padding: 26px; }
.signin .form .btn { justify-self: stretch; }
.sessions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sessions p { margin: 0; }
.sessions .btn { height: 44px; font-size: 15px; padding: 0 20px; }
[hidden] { display: none !important; }
@media (max-width: 860px) {
  .acc-grid, .acc-grid.wide, .signin { grid-template-columns: 1fr; }
  .signin { gap: 24px; padding-top: 0; }
}
/* the header with the account button has to fit a phone: Discord as an icon, a smaller wordmark */
@media (max-width: 720px) {
  .topbar nav a.nav-discord { font-size: 0; }
  .topbar nav a.nav-discord .ico { width: 20px; height: 20px; }
  .topbar nav a.nav-account .ico { width: 20px; height: 20px; }
}
@media (max-width: 420px) {
  .topbar .wordmark { font-size: 21px; }
  .topbar nav { gap: 12px; }
  .topbar nav a { font-size: 13px; letter-spacing: 0.06em; }
}
.gate-note { margin: 18px 0 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: rgba(255, 122, 26, 0.08); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); font-size: 16px; }
.gate-note b { color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; margin-right: 6px; }

/* ---------------------------------------------------------------- hero geometry (decoration, right of the text) */
.hero-geo {
  position: absolute; z-index: 1; top: 50%; right: -4%; width: min(820px, 64vw); aspect-ratio: 1;
  transform: translateY(-50%); pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
}
.hero .wrap { z-index: 2; }
.hero-geo svg { display: block; width: 100%; height: 100%; }
.hero-geo .g-dots { opacity: 0.08; }
.hero-geo .g-line { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.2; }
.hero-geo .g-faint { stroke: rgba(255, 255, 255, 0.08); }
.hero-geo .g-accent { fill: none; stroke: var(--accent); stroke-opacity: 0.6; stroke-width: 1.6; }
.hero-geo .g-fill { fill: var(--accent); }
.hero-geo .g-ticks { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 10; stroke-dasharray: 1.5 46.67; }
.hero-geo .g-dash { fill: none; stroke: rgba(255, 122, 26, 0.45); stroke-width: 2; stroke-dasharray: 3 13; }
.hero-geo .g-ring { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.2; stroke-dasharray: 60 22 8 22; }
.hero-geo .g-spin { transform-box: fill-box; transform-origin: center; animation: geo-spin 120s linear infinite; }
.hero-geo .g-rev { animation-duration: 80s; animation-direction: reverse; }
@keyframes geo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-geo .g-spin { animation: none; } }
@media (max-width: 900px) { .hero-geo { right: -30%; width: 110vw; opacity: 0.5; } }

/* ---------------------------------------------------------------- arsenal: a weapon per class */
.arsenal { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 0 0 22px; }
/* the card is lined in its tier colour (--c, set per card): border, the preview's glow, the tier label, the bar under it */
.gun { --c: var(--common); margin: 0; background: var(--panel); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: var(--radius); overflow: hidden; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.gun:hover { border-color: var(--c); transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 18%, transparent); }
.gun-img { position: relative; height: 128px; display: flex; align-items: center; justify-content: center; padding: 30px 18px 10px; background: radial-gradient(ellipse at 50% 65%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), var(--bg-2); border-bottom: 3px solid var(--c); }
.gun-tier { position: absolute; top: 9px; left: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); }
.arsenal-more { margin: 0; color: var(--muted); }
.arsenal-more b { color: var(--text); letter-spacing: 0.04em; }
.gun-img img { width: auto; height: auto; max-width: 100%; max-height: 80px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.gun figcaption { padding: 10px 14px 12px; }
.gun figcaption b { display: block; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.gun figcaption span { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- maps: in-game pictures */
.maps .card.map { padding: 0; min-height: 0; display: block; }
.card.map img { width: 100%; height: auto; aspect-ratio: 960 / 500; object-fit: cover; border-bottom: 1px solid var(--line); }
.card.map .map-body { padding: 14px 18px 18px; }
.card.map h3 { font-size: 20px; }
.card.map p { font-size: 16px; }
.card.map .map-tag {
  position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(14, 16, 19, 0.82); border: 1px solid rgba(255, 122, 26, 0.6); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------------------------------------------------------------- about / credits (/about) */
.about { padding: 112px 0 60px; }
.about h1 { margin: 0 0 18px; font-size: clamp(40px, 7vw, 64px); line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.about .intro { max-width: 760px; margin: 0 0 40px; font-size: 19px; }
.about .intro p { margin: 0 0 12px; }
.about .intro p.muted { font-size: 17px; }
.credits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.credits-grid .panel { padding: 22px 24px 10px; }
.credits-grid h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; }
.credits-grid .sub { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.credits { list-style: none; margin: 0 0 14px; padding: 0; }
.credits li { position: relative; padding: 0 0 14px 14px; }
.credits li::before { content: ''; position: absolute; left: 0; top: 5px; width: 3px; height: 15px; background: var(--accent); }
.credits b { display: block; font-size: 17px; color: #fff; letter-spacing: 0.02em; }
.credits span { display: block; font-size: 16px; }
.credits small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.credits-foot { color: var(--muted); font-size: 14px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); max-width: 900px; }
@media (max-width: 860px) { .credits-grid { grid-template-columns: 1fr; } .about { padding-top: 96px; } }
@media (max-width: 520px) {
  .arsenal { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gun-img { height: 104px; padding: 28px 10px 8px; }
  .gun-img img { max-height: 60px; }
  .gun-tier { top: 8px; left: 10px; font-size: 11px; letter-spacing: 0.12em; }
  .gun figcaption { padding: 8px 10px 10px; }
  .gun figcaption b { font-size: 13px; letter-spacing: 0.06em; }
  .gun figcaption span { font-size: 14px; }
}

/* ---------------------------------------------------------------- hero squad (round 285: characters + guns, right side) */
.hero-squad {
  position: absolute; z-index: 1; bottom: 0; pointer-events: none; user-select: none;
  right: max(-60px, calc((100vw - 1120px) / 2 - 380px));
  width: min(52vw, 860px); height: auto; max-height: 92%; object-fit: contain; object-position: right bottom;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 16%);
  mask-composite: intersect;
}
.hero-geo { opacity: 0.7; }
@media (max-width: 900px) { .hero-squad { width: 100vw; right: -18vw; opacity: 0.28; } }
