/* Cerberus Games — site design system (homepage, and shared chrome for new pages).
   The old one-page design lives on in styles.css, used by cerbcade.html. */

:root {
  --bg: #08070a;
  --bg-2: #0e0c10;
  --panel: rgba(14, 12, 16, 0.86);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2eeea;
  --muted: #a9a3a0;
  --dim: #77716f;
  --red: #e0141e;
  --red-hot: #ff2b2b;
  --red-deep: #7a0a0f;

  --font-display: "Anton", "Oswald", Impact, sans-serif;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brush: "Permanent Marker", "Oswald", cursive;

  --shell: 1440px;
  --gutter: clamp(16px, 3vw, 40px);
  --radius: 4px;
  --nav-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--red); color: #fff; padding: 8px 14px; font-weight: 600;
}
.skip:focus { left: 8px; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- type helpers ---------- */

.eyebrow {
  font: 500 13px/1 var(--font-head);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text);
}
.eyebrow .dot { color: var(--red-hot); margin: 0 0.6em; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 14px/1 var(--font-head);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-hot);
}

/* Chrome-metal wordmark (CERBERUS, CERBCADE, CERBERUS RP) */
.chrome {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.9;
  transform: skewX(-9deg);
  background: linear-gradient(180deg, #ffffff 0%, #e9e9e9 30%, #9b9b9b 48%, #f4f4f4 60%, #b7b7b7 78%, #6d6d6d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #1a1a1a) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
}
/* Red brush script (GAMES) */
.brush {
  display: inline-block;
  font-family: var(--font-brush);
  color: var(--red);
  transform: rotate(-4deg);
  text-shadow: 0 3px 0 #2a0003, 0 0 24px rgba(224, 20, 30, 0.45);
  line-height: 1;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 0 22px;
  font: 600 14px/1 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 0 0 1px rgba(255, 60, 60, 0.35) inset, 0 8px 26px rgba(224, 20, 30, 0.35); }
.btn-red:hover { background: var(--red-hot); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: rgba(0, 0, 0, 0.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-outline-red { border-color: var(--red); color: var(--red-hot); background: rgba(0, 0, 0, 0.35); }
.btn-outline-red:hover { background: rgba(224, 20, 30, 0.12); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13px; }

/* ---------- header / nav ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid var(--line);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block for the fixed-position mobile menu, squashing the
   full-screen menu into the 66px header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 7, 10, 0.92), rgba(8, 7, 10, 0.72));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .shell { height: 100%; display: flex; align-items: center; gap: 28px; }

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { width: 74px; height: auto; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word .chrome { font-size: 30px; }
.logo-word .games {
  font: 600 13px/1 var(--font-head); letter-spacing: 0.62em; color: var(--red);
  text-transform: uppercase; margin: 4px 0 0 6px;
}

.nav { margin-left: auto; margin-right: auto; }
.nav .mobile-only { display: none; } /* Account + Discord, shown in the mobile menu only */
.nav > ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--nav-h); padding: 0 14px;
  font: 500 14px/1 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase;
  color: #e6e1dd; position: relative;
}
.nav-link .icon { width: 14px; height: 14px; transition: transform 0.18s; }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 22px; height: 2px;
  background: var(--red-hot); transform: scaleX(0); transition: transform 0.2s;
}
.nav-link:hover, .nav-item.open > .nav-link { color: #fff; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--red-hot); }

.menu {
  position: absolute; top: calc(var(--nav-h) - 10px); left: 0; min-width: 230px;
  padding: 8px; list-style: none; margin: 0;
  background: rgba(12, 10, 13, 0.97); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}
.menu-right { left: auto; right: 0; }
/* No :focus-within here: it kept a menu visible after Escape (focus returns to
   its button). Keyboard users open menus with Enter/Space via main.js. */
.has-menu:hover > .menu, .has-menu.open > .menu {
  opacity: 1; visibility: visible; transform: none;
}
.has-menu:hover > .nav-link .icon, .has-menu.open > .nav-link .icon,
.has-menu.open > .account-btn .chev { transform: rotate(180deg); }
.menu a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 3px;
  font-size: 14px; color: #ddd8d4;
}
.menu a:hover { background: rgba(224, 20, 30, 0.12); color: #fff; }
.menu a .icon { color: var(--muted); }
.menu a:hover .icon { color: var(--red-hot); }
.menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu .menu-note { padding: 6px 12px 4px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.account-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 500 14px/1 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}
.account-btn:hover { border-color: rgba(255, 255, 255, 0.4); }
.account-btn .chev { width: 14px; height: 14px; transition: transform 0.18s; }
.account .menu { top: 54px; }

.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius); }
.menu-toggle .icon { width: 22px; height: 22px; }

/* ---------- hero ---------- */

.hero {
  position: relative; isolation: isolate;
  min-height: min(92vh, 820px);
  padding: calc(var(--nav-h) + 40px) 0 60px;
  display: flex; align-items: center; text-align: center;
  overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0; z-index: -2;
  background: url("assets/home/hero.jpg") center 30% / cover no-repeat;
  transform: scale(1.04);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, rgba(8, 7, 10, 0.72), rgba(8, 7, 10, 0.25) 70%, transparent),
    linear-gradient(180deg, rgba(8, 7, 10, 0.55) 0%, rgba(8, 7, 10, 0) 30%, rgba(8, 7, 10, 0.2) 70%, var(--bg) 100%);
}
.hero-inner { max-width: 980px; margin: 0 auto; }
.hero-title { margin: 22px 0 0; line-height: 0.82; }
.hero-title .chrome { font-size: clamp(64px, 13vw, 176px); }
.hero-title .brush { display: block; font-size: clamp(52px, 9vw, 124px); margin-top: -0.32em; }
.hero-tag {
  margin: 26px 0 0; font: 500 clamp(14px, 1.6vw, 19px)/1 var(--font-head);
  letter-spacing: 0.5em; text-transform: uppercase;
}
.hero-copy { max-width: 560px; margin: 16px auto 0; color: #d6d1cd; font-size: 16px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero-ctas .btn { min-height: 52px; padding: 0 26px; }

/* ---------- feature cards ---------- */

.features { position: relative; margin-top: -40px; }
.features .shell { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 280px; padding: 30px 34px 32px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: rgba(255, 60, 60, 0.55); transform: translateY(-2px); }
.feature-art {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  transition: transform 0.6s;
}
.feature:hover .feature-art { transform: scale(1.04); }
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 7, 10, 0.94) 0%, rgba(8, 7, 10, 0.8) 38%, rgba(8, 7, 10, 0.15) 75%, rgba(8, 7, 10, 0.05) 100%);
}
.feature .chrome { font-size: clamp(44px, 5vw, 70px); margin: 10px 0 8px; }
.feature-sub { margin: 4px 0 0; font: 600 13px/1.5 var(--font-head); letter-spacing: 0.32em; text-transform: uppercase; }
.feature-sub .red { color: var(--red-hot); display: block; }
.feature p { max-width: 380px; margin: 12px 0 18px; color: #ddd8d4; font-size: 14px; }
.feature .btn { align-self: flex-start; }

/* ---------- news + quick links ---------- */

.hub { padding: 46px 0 50px; }
.hub .shell { display: grid; grid-template-columns: 1.08fr 1fr; gap: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font: 500 24px/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase;
}
.section-title .icon { width: 24px; height: 24px; }
.section-link {
  display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-head);
  letter-spacing: 0.14em; text-transform: uppercase; color: #ddd;
}
.section-link:hover { color: var(--red-hot); }
.section-link .icon { width: 14px; height: 14px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news-card {
  display: flex; flex-direction: column; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.news-card:hover { border-color: rgba(255, 60, 60, 0.45); transform: translateY(-2px); }
.news-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chip {
  position: absolute; right: 10px; bottom: 10px;
  padding: 4px 8px; font: 600 10px/1 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase;
  color: #ff5a5a; border: 1px solid rgba(255, 60, 60, 0.7); background: rgba(8, 7, 10, 0.8); border-radius: 2px;
}
.chip-neutral { color: #e6e1dd; border-color: rgba(255, 255, 255, 0.4); }
.news-body { padding: 14px 16px 18px; }
.news-body time { display: block; font: 500 12px/1 var(--font-head); letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.news-body h3 { margin: 0 0 8px; font: 600 17px/1.25 var(--font-body); }
.news-body p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick {
  display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 16px 18px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.quick:hover { border-color: rgba(255, 60, 60, 0.5); background: #140e11; }
.quick > .icon { width: 34px; height: 34px; color: var(--red-hot); stroke-width: 1.5; }
.quick strong { display: block; font: 600 15px/1.1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; }
.quick span { display: block; margin-top: 5px; font: 500 11px/1.35 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.quick .go { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform 0.2s, color 0.2s; }
.quick:hover .go { transform: translateX(3px); color: #fff; }

/* ---------- community band ---------- */

.pack {
  position: relative; isolation: isolate; padding: 34px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 120% at 15% 100%, rgba(224, 20, 30, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 120% at 85% 100%, rgba(224, 20, 30, 0.14), transparent 60%),
    #0a0809;
}
.pack .shell { display: flex; align-items: center; gap: 28px; }
.stats { display: flex; align-items: center; flex: 1; flex-wrap: wrap; gap: 8px 0; }
.stat { display: flex; align-items: center; gap: 14px; padding: 8px 22px; border-left: 1px solid var(--line-strong); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat > .icon { width: 40px; height: 40px; color: #fff; stroke-width: 1.4; }
.stat .badge { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); }
.stat .badge .icon { width: 30px; height: 30px; }
.stat strong { display: block; font: 600 22px/1 var(--font-head); letter-spacing: 0.04em; text-transform: uppercase; }
.stat span { display: block; margin-top: 6px; font: 500 11px/1.3 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stat[data-live][hidden] { display: none; }

.cta-box {
  display: flex; align-items: center; gap: 24px; flex: none; max-width: 470px;
  padding: 20px 22px 20px 26px; border: 1px solid rgba(255, 60, 60, 0.7); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(122, 10, 15, 0.45), rgba(8, 7, 10, 0.85));
  box-shadow: 0 0 40px rgba(224, 20, 30, 0.18);
}
.cta-box h2 { margin: 0; font: 600 20px/1.1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; }
.cta-box p { margin: 8px 0 0; font: 500 12px/1.5 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: #cfc8c4; }
.cta-arrow { flex: none; margin-left: auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); background: var(--red); color: #fff; transition: background 0.18s, transform 0.18s; }
.cta-arrow:hover { background: var(--red-hot); transform: translateX(2px); }

/* ---------- inner pages (privacy, terms, 404) ---------- */

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + 56px) 0 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 140% at 12% 100%, rgba(224, 20, 30, 0.2), transparent 65%),
    linear-gradient(180deg, #0d0a0c, var(--bg));
}
.page-hero::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; z-index: -1;
  width: 420px; height: 220px; opacity: 0.07;
  background: url("assets/cerberus-crest.png") center / contain no-repeat;
}
.page-title {
  margin: 14px 0 0;
  font: 400 clamp(44px, 7vw, 84px)/0.95 var(--font-display);
  text-transform: uppercase; letter-spacing: 0.01em;
}
.page-hero .eyebrow { color: var(--muted); letter-spacing: 0.3em; }

.legal { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 64px; padding-top: 48px; padding-bottom: 80px; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.legal-toc p { margin: 0 0 12px; font: 600 12px/1 var(--font-head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-toc a {
  display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 14px; color: var(--muted); line-height: 1.35;
}
.legal-toc a:hover { color: #fff; border-left-color: var(--red-hot); }

.legal-body section { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 20px); }
.legal-body h2 {
  margin: 0 0 12px; font: 600 22px/1.2 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase;
}
.legal-body h2::before { content: ""; display: inline-block; width: 18px; height: 2px; margin: 0 12px 0.35em 0; background: var(--red-hot); vertical-align: middle; }
.legal-body p { margin: 0 0 14px; color: #d4cfcb; font-size: 16px; line-height: 1.75; max-width: 70ch; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body a, .legal-contact a { color: #ff5a5a; text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: #fff; }
.legal-contact { color: var(--muted); }
.legal-body, .page-hero { overflow-wrap: anywhere; } /* long URLs/emails must wrap on narrow phones */
.page-lede { margin: 14px 0 0; max-width: 640px; color: var(--muted); font-size: 16px; }
.legal-body h3 { margin: 22px 0 8px; font: 600 16px/1.3 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.legal-body ul { margin: 0 0 14px; padding: 0; list-style: none; max-width: 70ch; }
.legal-body li { position: relative; padding-left: 22px; margin-bottom: 9px; color: #d4cfcb; font-size: 16px; line-height: 1.65; }
.legal-body li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; background: var(--red-hot); transform: rotate(45deg); }
.legal-body strong { color: #fff; }
.callout, .legal-note {
  margin: 16px 0 0; padding: 14px 18px; max-width: 70ch;
  border-left: 3px solid var(--red-hot); background: rgba(224, 20, 30, 0.08);
  color: #e6e1dd; font-size: 15px; line-height: 1.65; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout-warn { background: rgba(224, 20, 30, 0.16); border-left-color: #ff3b3b; }
.legal-note { margin: 0 0 34px; border-left-color: var(--line-strong); background: var(--bg-2); color: var(--muted); }
.legal-note a { color: #ff5a5a; text-decoration: underline; text-underline-offset: 3px; }
.legal-note a:hover { color: #fff; }
.legal-body code { padding: 1px 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); font: 13px/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; color: #fff; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.legal-tabs a {
  padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 500 13px/1 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; color: #ddd8d4;
  background: rgba(8, 7, 10, 0.5);
}
.legal-tabs a:hover { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.legal-tabs a[aria-current="page"] { border-color: var(--red); background: rgba(224, 20, 30, 0.16); color: #fff; }
@media (max-width: 560px) { .legal-body li { font-size: 15px; } }

.notfound { min-height: 100vh; display: flex; align-items: center; text-align: center; padding: calc(var(--nav-h) + 30px) 0 70px; }
.notfound img { width: min(640px, 100%); height: auto; margin: 0 auto 18px; border-radius: var(--radius);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%); }
.notfound .eyebrow { color: var(--red-hot); }
.notfound-copy { margin: 14px auto 0; max-width: 460px; color: var(--muted); font-size: 16px; }
.notfound-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

@media (max-width: 1024px) {
  .legal { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .legal-toc { position: static; padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
  .legal-toc ol { columns: 2; column-gap: 24px; border-left: 0; }
  .legal-toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .legal-toc ol { columns: 1; }
  .legal-body p { font-size: 15px; }
  .notfound-ctas .btn { width: 100%; }
}

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: #060507; padding: 44px 0 28px; color: var(--muted); font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-brand img { width: 150px; height: auto; margin-bottom: 14px; }
.foot-brand p { margin: 0 0 10px; max-width: 300px; }
.site-footer h2 { margin: 0 0 12px; font: 600 13px/1 var(--font-head); letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* ---------- responsive ---------- */

/* The stats row + CTA box only fit side by side on wide screens. */
@media (max-width: 1660px) {
  .pack .shell { flex-direction: column; align-items: stretch; }
  .cta-box { max-width: none; }
}

@media (max-width: 1400px) {
  .hub .shell { grid-template-columns: 1fr; }
  .pack .shell { flex-direction: column; align-items: stretch; }
  .cta-box { max-width: none; }
}

@media (max-width: 1280px) {
  .nav-link { padding: 0 10px; font-size: 13px; }
  .logo-word { display: none; }
}

@media (max-width: 1024px) {
  :root { --nav-h: 66px; }
  .logo img { width: 58px; }
  .logo-word { display: flex; }
  .logo-word .chrome { font-size: 24px; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .discord-btn, .header-actions .account { display: none; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 0; margin: 0; overflow-y: auto;
    background: var(--bg); padding: 12px var(--gutter) 40px;
    display: none;
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { width: 100%; height: 54px; padding: 0 4px; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-link::after { display: none; }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; display: none;
    border: 0; box-shadow: none; background: transparent; padding: 4px 0 10px 8px; min-width: 0; }
  .has-menu.open > .menu { display: block; }
  .has-menu:hover > .menu { display: none; }
  .has-menu.open:hover > .menu { display: block; }
  .nav .mobile-only { display: block; }
  .features .shell { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 48px); }
  .eyebrow { letter-spacing: 0.28em; font-size: 11px; }
  .hero-tag { letter-spacing: 0.3em; }
  .hero-ctas .btn { width: 100%; }
  .features { margin-top: 0; }
  .feature { min-height: 0; padding: 24px 20px; }
  .feature::before { background: linear-gradient(180deg, rgba(8, 7, 10, 0.55), rgba(8, 7, 10, 0.92) 55%); }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { flex-direction: row; }
  .news-thumb { width: 38%; flex: none; aspect-ratio: auto; }
  .news-body h3 { font-size: 15px; }
  .news-body p { display: none; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick { min-height: 72px; padding: 12px; gap: 10px; }
  .quick > .icon { width: 26px; height: 26px; }
  .quick .go { display: none; }
  .stat { padding: 10px 16px 10px 0; border-left: 0; width: 50%; }
  .stat .badge { width: 46px; height: 46px; }
  .cta-box { padding: 18px; gap: 16px; }
  .foot-cols { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .logo-word { display: none; }
  .quick-grid { grid-template-columns: 1fr; }
  .stat { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
