/* ============================================
   ABI GUIDE
   Palette: dark military field + amber commit
   Strategy: Committed — amber carries identity
   Seed: cobalt (hue 252) tints surfaces
============================================ */

/* --- Tokens -------------------------------- */
:root {
  /* Backgrounds */
  --bg:              oklch(0.07 0.000 0);
  --surface:         oklch(0.11 0.008 252);
  --surface-el:      oklch(0.16 0.010 252);
  --surface-raised:  oklch(0.21 0.010 252);

  /* Borders */
  --border:          oklch(0.22 0.012 252);
  --border-bright:   oklch(0.32 0.012 252);

  /* Text */
  --ink:             oklch(0.88 0.005 85);
  --ink-muted:       oklch(0.58 0.010 240);
  --ink-faint:       oklch(0.36 0.008 240);

  /* Brand — amber primary */
  --amber:           oklch(0.68 0.155 68);
  --amber-bright:    oklch(0.76 0.160 68);
  --amber-dim:       oklch(0.52 0.118 68);
  --amber-bg:        oklch(0.68 0.155 68 / 0.10);
  --amber-bg-hover:  oklch(0.68 0.155 68 / 0.18);

  /* Brand — secondary */
  --green:           oklch(0.44 0.095 148);
  --green-bright:    oklch(0.54 0.100 148);
  --green-bg:        oklch(0.44 0.095 148 / 0.12);
  --blue:            oklch(0.54 0.118 252);
  --blue-bg:         oklch(0.54 0.118 252 / 0.12);
  --red:             oklch(0.48 0.145 22);
  --red-bg:          oklch(0.48 0.145 22 / 0.12);

  /* Typography */
  --font-hd:   'Rajdhani', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  --r:    2px;
  --r-md: 4px;

  /* Z-index */
  --z-drop:    100;
  --z-sticky:  200;
  --z-modal:   400;
  --z-toast:   500;

  --s6-h: 0px;
  --nav-h: 46px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--s6-h) + var(--nav-h)); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: calc(var(--s6-h) + var(--nav-h));
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }

/* --- Global focus (WCAG AA) ---------------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--r);
}
a:focus-visible,
button:focus-visible { outline-offset: 4px; }
h1, h2, h3, h4 {
  font-family: var(--font-hd);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* --- Layout -------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.section { padding-block: var(--sp-24); }
.section--alt { background: var(--surface); }
/* First section peeks under the hero — pull its header up so it's visible.
   Blend its top from the hero's dark bg into the section surface so the
   hero→builder junction fades instead of reading as a hard separator. */
#builder {
  padding-top: var(--sp-16);
  background: linear-gradient(to bottom, var(--bg) 0, var(--surface) 320px);
}

/* --- Section Header ----------------------- */
.section-hd { margin-bottom: var(--sp-10); }

.section-hd__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.section-hd__label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--amber);
  flex-shrink: 0;
}

.section-hd__title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  color: var(--ink);
}

/* --- Buttons ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.65rem 1.4rem;
  font-family: var(--font-hd);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--r);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--amber);
  color: oklch(0.10 0 0);
  border: 1px solid var(--amber);
}
.btn--primary:hover {
  background: var(--amber-bright);
  border-color: var(--amber-bright);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-bright);
}
.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-1px);
}
.btn--sm { padding: 0.45rem 1rem; font-size: 0.78rem; }
.btn__icon { width: 14px; height: 14px; flex-shrink: 0; }

/* --- Badge --------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r);
}
.badge--update    { background: var(--amber-bg);  color: var(--amber);       border: 1px solid oklch(0.68 0.155 68 / 0.30); }
.badge--event     { background: var(--blue-bg);   color: var(--blue);        border: 1px solid oklch(0.54 0.118 252 / 0.30); }
.badge--community { background: var(--green-bg);  color: var(--green-bright);border: 1px solid oklch(0.44 0.095 148 / 0.30); }
.badge--high      { background: var(--amber-bg);  color: var(--amber);       border: 1px solid oklch(0.68 0.155 68 / 0.25); }
.badge--extreme   { background: var(--red-bg);    color: var(--red);         border: 1px solid oklch(0.48 0.145 22 / 0.30); }
.badge--medium    { background: var(--green-bg);  color: var(--green-bright);border: 1px solid oklch(0.44 0.095 148 / 0.25); }

/* --- Filter Buttons ------------------------ */
.news-filters,
.guides-filters {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.4rem 0.9rem;
  font-family: var(--font-hd);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.filter-btn:hover { color: var(--ink); border-color: var(--border-bright); }
.filter-btn.is-active { color: var(--amber); border-color: var(--amber); background: var(--amber-bg); }

.fdot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.fdot--update    { background: var(--amber); }
.fdot--event     { background: var(--blue); }
.fdot--community { background: var(--green-bright); }

/* --- Nav ----------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: var(--z-sticky);
  height: var(--nav-h);
  background: oklch(0.07 0 0 / 0.88);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--border-bright); }

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.nav__logo {
  font-family: var(--font-hd);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  justify-self: start;
  flex-shrink: 0;
}
.nav__logo-abi  { color: var(--amber); }
.nav__logo-sep  { color: var(--ink-faint); margin-inline: 2px; }
.nav__logo-guide{ color: var(--ink-muted); font-weight: 500; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__link {
  position: relative;
  font-family: var(--font-hd);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  padding: 0.35rem 0.75rem 0.55rem;
  transition: color 0.15s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0.15rem;
  left: 0.75rem;
  right: 0.75rem;
  height: 1.5px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}
.nav__link:hover,
.nav__link.is-active { color: var(--amber); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  justify-self: end;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--sp-4);
    gap: 0;
  }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 0.75rem 1rem; width: 100%; }
}

/* --- Page Header (standalone pages) -------- */
.page-hd {
  padding: calc(var(--nav-h) + var(--sp-12)) 0 var(--sp-10);
  position: relative;
  overflow: hidden;
}
.page-hd::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber) 30%, var(--amber) 70%, transparent);
  opacity: 0.3;
}
.page-hd__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}
.page-hd__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  transition: color 0.15s;
}
.page-hd__back:hover { color: var(--amber); }
.page-hd__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.page-hd__label::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--amber);
  vertical-align: middle;
  margin-right: 0.5rem;
  opacity: 0.6;
}
.page-hd__title {
  font-family: var(--font-hd);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
  text-wrap: balance;
}

/* --- Hero ---------------------------------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.68) saturate(0.85);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      oklch(0.07 0 0 / 0.92) 0%,
      oklch(0.07 0 0 / 0.68) 45%,
      oklch(0.07 0 0 / 0.55) 65%,
      oklch(0.07 0 0 / 0.82) 100%
    ),
    linear-gradient(to top,
      oklch(0.07 0 0 / 0.98) 0%,
      oklch(0.07 0 0 / 0.55) 40%,
      transparent 70%
    );
}

.hero {
  position: relative;
  min-height: calc(66svh - var(--s6-h) - var(--nav-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 7%;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
  pointer-events: none;
  z-index: 1;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.68 0.155 68 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.68 0.155 68 / 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  z-index: 0;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 50% at 28% 72%,
    oklch(0.68 0.155 68 / 0.065) 0%,
    transparent 70%);
  z-index: 0;
}

.hero__scan {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    oklch(0.68 0.155 68 / 0.22) 25%,
    oklch(0.68 0.155 68 / 0.5) 50%,
    oklch(0.68 0.155 68 / 0.22) 75%,
    transparent
  );
  z-index: 1;
  animation: scan-line 7s ease-in-out infinite;
}

@keyframes scan-line {
  0%   { top: 12%; opacity: 0; }
  4%   { opacity: 1; }
  92%  { opacity: 0.6; }
  100% { top: 88%; opacity: 0; }
}

.hero__layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  flex: 1;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
  padding-top: clamp(2rem, 5vh, 4rem);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.hero__content {
  flex: 1;
  min-width: 0;
  text-align: left;
  max-width: 500px;
}

/* --- Hero intel panel ---------------------- */
.hero__intel {
  flex-shrink: 0;
  width: 210px;
  background: oklch(0.07 0 0 / 0.72);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.9s forwards;
}

.intel-block { display: flex; flex-direction: column; gap: var(--sp-2); }

.intel-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-1);
}

.intel-diamond {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--amber-dim);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.intel-season {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
}
.intel-season__num {
  font-family: var(--font-hd);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.intel-season__badge {
  font-family: var(--font-hd);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.2em 0.55em;
  border-radius: 2px;
  border: 1px solid currentColor;
  align-self: center;
  text-transform: uppercase;
}
.intel-season__badge--incoming { color: var(--amber); }
.intel-season__badge--active   { color: var(--green-bright); }
.intel-season__badge--ended    { color: var(--ink-faint); }

.intel-season__eta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-top: var(--sp-1);
}

.intel-sep {
  height: 1px;
  background: var(--border);
  margin-block: var(--sp-4);
}

.intel-event__name {
  font-family: var(--font-hd);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-top: var(--sp-1);
}
.intel-event__date {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  margin-top: var(--sp-1);
}

@media (max-width: 1100px) {
  .hero__intel { display: none; }
}

.hero__eyebrow-sep {
  color: var(--ink-faint);
  margin-inline: var(--sp-1);
  opacity: 0.7;
}

.hero__hero-cat {
  font-family: var(--font-hd);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15em 0.5em;
  border-radius: 2px;
  border: 1px solid currentColor;
}
.hero__hero-cat--update    { color: var(--amber); }
.hero__hero-cat--event     { color: var(--blue); }
.hero__hero-cat--community { color: var(--green-bright); }

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--amber-dim);
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.15s forwards;
}

.hero__dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
  animation: blink-dot 2.5s ease-in-out infinite;
}
@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.3s forwards;
}
.hero__title-accent {
  color: var(--amber);
  display: block;
  margin-top: 0.08em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--ink-muted);
  max-width: 58ch;
  margin-bottom: var(--sp-10);
  line-height: 1.7;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.45s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-16);
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.6s forwards;
}

.hero__counts {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sp-6);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.75s forwards;
}
.hero__count { display: flex; flex-direction: column; align-items: center; }
.hero__count-val {
  font-family: var(--font-hd);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.hero__count-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.hero__count-sep {
  width: 1px; height: 30px;
  background: var(--border);
}

/* --- Hero top news widget --- */
.hero__topnews {
  width: 520px;
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
  margin-right: clamp(0.5rem, 2vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 1.0s forwards;
}

.topnews__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background: oklch(0.14 0.018 252);
  border-left: 2px solid var(--amber);
}
.topnews__bar-label {
  font-family: var(--font-mono);
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
}
.topnews__bar-link {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.18s;
}
.topnews__bar-link:hover { color: var(--amber); }

/* Grid — 3 cells forming a square via asymmetric rows */
.topnews__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 240px 160px;
  gap: 3px;
  background: oklch(0.68 0.155 68 / 0.18);
}

.topnews__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.1rem;
  background-color: oklch(0.085 0.010 252);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: filter 0.20s;
}
.topnews__card:hover { filter: brightness(1.12); }
.topnews__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0 0 0 / 0.70) 0%, transparent 55%);
  pointer-events: none;
}

/* Top-left card */
.topnews__card--a {
  grid-column: 1;
  grid-row: 1;
}
/* Top-right card */
.topnews__card--b {
  grid-column: 2;
  grid-row: 1;
}
/* Bottom banner: full width */
.topnews__card--banner {
  grid-column: 1 / -1;
  grid-row: 2;
}

.topnews__tag {
  display: inline-block;
  font-family: var(--font-hd);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: oklch(0.10 0.014 252);
  background: var(--amber);
  padding: 0.1rem 0.4rem;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  position: relative;
  z-index: 1;
  align-self: flex-start;
}
.topnews__tag--event    { background: oklch(0.62 0.18 145); }
.topnews__tag--community{ background: oklch(0.55 0.16 260); }

.topnews__title {
  font-family: var(--font-hd);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  position: relative;
  z-index: 1;
  transition: color 0.18s;
}
.topnews__card--a      .topnews__title { font-size: 0.88rem; }
.topnews__card--b      .topnews__title { font-size: 0.88rem; }
.topnews__card--banner .topnews__title { font-size: 1.05rem; }
.topnews__card:hover .topnews__title { color: var(--amber-bright); }

.topnews__meta {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.10em;
  color: var(--ink-faint);
  margin-top: 0.4rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  .hero__topnews { width: 420px; }
  .topnews__grid { grid-template-rows: 200px 130px; }
}
@media (max-width: 1000px) {
  .hero__topnews { width: 340px; }
  .topnews__grid { grid-template-rows: 160px 110px; }
}
@media (max-width: 860px) {
  .hero__topnews { display: none; }
  .hero__content { max-width: 100%; }
}

/* Corner HUD markers */
.hero__corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: oklch(0.68 0.155 68 / 0.28);
  border-style: solid;
  z-index: 2;
}
.hero__corner--tl { top: 1.25rem; left: 1.25rem; border-width: 1px 0 0 1px; }
.hero__corner--tr { top: 1.25rem; right: 1.25rem; border-width: 1px 1px 0 0; }
.hero__corner--bl { bottom: 1.25rem; left: 1.25rem; border-width: 0 0 1px 1px; }
.hero__corner--br { bottom: 1.25rem; right: 1.25rem; border-width: 0 1px 1px 0; }

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: oklch(0.68 0.155 68 / 0.45);
  width: 20px;
  display: flex;
  animation: scroll-bounce 2s ease-in-out infinite;
  transition: color 0.2s;
  z-index: 4;
}
.hero__scroll:hover { color: var(--amber); }
.hero__scroll svg { width: 100%; }

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Scroll reveal ------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- News ---------------------------------- */
.news-feat {
  margin-bottom: var(--sp-4);
}

.news-feat__card {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-el);
  transition: border-color 0.2s;
  cursor: pointer;
}
.news-feat__card:hover { border-color: oklch(0.68 0.155 68 / 0.5); }

.news-feat__img {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-feat__img-label {
  font-family: var(--font-hd);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: oklch(0.68 0.155 68 / 0.15);
  text-transform: uppercase;
  user-select: none;
  position: relative;
  z-index: 1;
}
.news-feat__body {
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-meta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.news-date {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.news-feat__title {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--ink);
  margin-bottom: var(--sp-3);
  line-height: 1.25;
}
.news-feat__summary {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: var(--sp-4);
  max-width: 50ch;
}
.read-link {
  font-family: var(--font-hd);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap 0.15s;
}
.read-link::after { content: '→'; }
.read-link:hover  { gap: var(--sp-3); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-3);
}

.news-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-el);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.news-card:hover {
  border-color: oklch(0.68 0.155 68 / 0.45);
  transform: translateY(-2px);
}
.news-card__img {
  height: 160px;
  background: var(--surface-raised);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card__img-label {
  font-family: var(--font-hd);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: oklch(0.68 0.155 68 / 0.12);
  text-transform: uppercase;
  user-select: none;
}
.news-card__body {
  padding: var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card__title {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}
.news-card__summary {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
  padding-bottom: var(--sp-4);
}
.news-card__foot {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.news-card__readtime {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* News img bg patterns */
.img-bg--update {
  background:
    radial-gradient(ellipse 90% 120% at 25% 80%, oklch(0.68 0.155 68 / 0.22) 0%, transparent 60%),
    linear-gradient(155deg, oklch(0.22 0.032 68) 0%, oklch(0.08 0.010 68) 100%);
}
.img-bg--update::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent, transparent 3px,
    oklch(0.68 0.155 68 / 0.04) 3px, oklch(0.68 0.155 68 / 0.04) 4px
  );
}
.img-bg--event {
  background:
    radial-gradient(ellipse 90% 120% at 75% 80%, oklch(0.54 0.118 252 / 0.22) 0%, transparent 60%),
    linear-gradient(155deg, oklch(0.20 0.028 252) 0%, oklch(0.08 0.010 252) 100%);
}
.img-bg--event::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent, transparent 3px,
    oklch(0.54 0.118 252 / 0.04) 3px, oklch(0.54 0.118 252 / 0.04) 4px
  );
}
.img-bg--community {
  background:
    radial-gradient(ellipse 90% 120% at 50% 80%, oklch(0.44 0.095 148 / 0.22) 0%, transparent 60%),
    linear-gradient(155deg, oklch(0.18 0.022 148) 0%, oklch(0.08 0.008 148) 100%);
}
.img-bg--community::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent, transparent 3px,
    oklch(0.44 0.095 148 / 0.04) 3px, oklch(0.44 0.095 148 / 0.04) 4px
  );
}

.news-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- Section header with inline link ------- */
.section-hd--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.section-hd__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--amber-dim);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.18s;
}
.section-hd__link:hover { color: var(--amber); }

/* --- Build cards (Top Builds + gallery) ---- */
.topbuilds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.build-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-el);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.build-card:hover {
  border-color: oklch(0.68 0.155 68 / 0.45);
  transform: translateY(-3px);
}
.build-card__img {
  position: relative;
  height: 172px;
  background: var(--surface-raised);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.build-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.06 0.008 252 / 0.9) 0%, transparent 60%);
  pointer-events: none;
}
.build-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.build-card__wlabel {
  position: relative;
  z-index: 1;
  margin: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}
.build-card__votes {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 1;
  font-family: var(--font-hd);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: oklch(0.10 0.014 252);
  background: var(--amber);
  padding: 2px 8px;
  border-radius: var(--r);
}
.build-card__body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.build-card__tags {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.build-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: var(--r);
  text-transform: uppercase;
}
.build-tag--meta        { background: var(--amber-bg);  color: var(--amber);        border: 1px solid oklch(0.68 0.155 68 / 0.30); }
.build-tag--budget      { background: var(--green-bg);  color: var(--green-bright); border: 1px solid oklch(0.44 0.095 148 / 0.30); }
.build-tag--hipfire     { background: var(--blue-bg);   color: var(--blue);         border: 1px solid oklch(0.54 0.118 252 / 0.30); }
.build-tag--zero-recoil { background: oklch(0.55 0.16 300 / 0.14); color: oklch(0.72 0.14 300); border: 1px solid oklch(0.55 0.16 300 / 0.30); }
.build-tag--streamer    { background: var(--red-bg);    color: var(--red);          border: 1px solid oklch(0.48 0.145 22 / 0.30); }
.build-card__weapon {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.build-card__name {
  font-family: var(--font-hd);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1.25;
  margin-bottom: var(--sp-2);
  transition: color 0.18s;
}
.build-card:hover .build-card__name { color: var(--amber-bright); }
.build-card__comment {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: var(--sp-4);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.build-card__foot {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.build-card__price {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber-dim);
  letter-spacing: 0.04em;
}
.build-card__author {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* --- Builds gallery page (builds.html) ----- */
.builds-page { padding-block: var(--sp-10) var(--sp-24); }
.builds-page__hd { margin-bottom: var(--sp-6); }
.builds-page__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.builds-page__title {
  font-family: var(--font-hd);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1.15;
}
.builds-page__sub {
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.builds-page__sub #builds-count { color: var(--amber-dim); }
/* Two-column layout: left filter rail + results */
.builds-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.builds-filters {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
  background: var(--surface-el);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.builds-filters__search {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

/* Filter groups (checkboxes + sort) */
.filter-group {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: none; }
.filter-group__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--sp-3);
}
.checkrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.3rem 0;
  cursor: pointer;
  user-select: none;
}
.checkrow input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkrow__box {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-bright);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}
.checkrow__box::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid oklch(0.12 0.014 252);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s var(--ease-out);
}
.checkrow:hover .checkrow__box { border-color: var(--amber-dim); }
.checkrow input:checked + .checkrow__box {
  background: var(--amber);
  border-color: var(--amber);
}
.checkrow input:checked + .checkrow__box::after { transform: rotate(45deg) scale(1); }
.checkrow input:focus-visible + .checkrow__box {
  outline: 2px solid var(--amber-dim);
  outline-offset: 2px;
}
.checkrow__text {
  font-family: var(--font-hd);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s;
}
.checkrow:hover .checkrow__text,
.checkrow input:checked ~ .checkrow__text { color: var(--ink); }

.select-wrap { position: relative; }
.filter-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-hd);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--r);
  padding: 0.5rem 2rem 0.5rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.filter-select:hover { border-color: var(--amber-dim); }
.filter-select:focus-visible { outline: none; border-color: var(--amber); }
.filter-select option { background: var(--surface-el); color: var(--ink); }
.select-wrap__chev {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: var(--ink-muted);
  pointer-events: none;
}

.builds-search {
  position: relative;
}
.builds-search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-faint);
  pointer-events: none;
}
.builds-search input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface-el);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.5rem 0.8rem 0.5rem 2.15rem;
  transition: border-color 0.18s;
}
.builds-search input::placeholder { color: var(--ink-faint); }
.builds-search input:focus { outline: none; border-color: var(--amber); }

.builds-group { margin-bottom: var(--sp-10); }
.builds-group__hd {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.builds-group__title {
  font-family: var(--font-hd);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}
.builds-group__count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  background: var(--amber-bg);
  border: 1px solid oklch(0.68 0.155 68 / 0.30);
  padding: 1px 8px;
  border-radius: 999px;
}
.builds-empty {
  color: var(--ink-muted);
  font-size: 0.95rem;
  padding: var(--sp-8) 0;
  text-align: center;
}
.builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
}

@media (max-width: 860px) {
  .builds-layout { grid-template-columns: 1fr; }
  .builds-filters { position: static; }
}
@media (max-width: 720px) {
  .topbuilds { grid-template-columns: 1fr; }
}

/* --- Weapon Builder ----------------------- */
.builder {
  display: grid;
  grid-template-columns: 230px 1fr 210px;
  gap: var(--sp-5);
  align-items: start;
}

.builder__sidebar {
  background: var(--surface-el);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.builder__sidebar-hd {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}

.weapon-cats { border-bottom: 1px solid var(--border); }
.weapon-cat {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  font-family: var(--font-hd);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
}
.weapon-cat:last-child { border-bottom: none; }
.weapon-cat:hover { color: var(--ink); background: var(--surface-raised); }
.weapon-cat.is-active { color: var(--amber); background: var(--amber-bg); }

.weapon-list {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.weapon-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.weapon-btn:last-child { border-bottom: none; }
.weapon-btn:hover { background: var(--surface-raised); }
.weapon-btn.is-active { background: var(--amber-bg); }
.weapon-btn__name {
  display: block;
  font-family: var(--font-hd);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.weapon-btn.is-active .weapon-btn__name { color: var(--amber); }
.weapon-btn__cal {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-faint);
  margin-top: 2px;
  letter-spacing: 0.05em;
}

/* Builder Main */
.builder__main {
  background: var(--surface-el);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.builder__weapon-name {
  font-family: var(--font-hd);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.builder__weapon-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.builder__weapon-meta span { color: var(--ink-faint); }
.builder__weapon-meta .sep { color: var(--border-bright); }

.builder__slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}

.att-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--sp-3) var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  text-align: center;
  min-height: 76px;
  transition: border-color 0.15s, background 0.15s;
}
.att-slot:hover {
  border-color: oklch(0.68 0.155 68 / 0.55);
  background: var(--amber-bg);
}
.att-slot.is-equipped {
  border-color: oklch(0.68 0.155 68 / 0.45);
  background: var(--amber-bg);
}
.att-slot__icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.att-slot__icon svg {
  width: 16px;
  height: 16px;
}
.att-slot__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.att-slot__val {
  font-family: var(--font-hd);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  max-width: 100%;
  padding-inline: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.att-slot.is-equipped .att-slot__val { color: var(--amber); }

.builder__actions { display: flex; gap: var(--sp-3); }

/* Stats Panel */
.builder__stats {
  background: var(--surface-el);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.stats-hd {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.stats-weapon-name {
  font-family: var(--font-hd);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
}
.stats-caliber {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--amber-dim);
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.stats-divider { height: 1px; background: var(--border); }
.stats-bars { display: flex; flex-direction: column; gap: var(--sp-3); }

.stat-bar {}
.stat-bar__hd {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.stat-bar__label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.stat-bar__val {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
}
.stat-bar__track {
  height: 4px;
  background: var(--surface-raised);
  border-radius: 2px;
  overflow: hidden;
}
.stat-bar__fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.55s var(--ease-out);
}
.stat-bar__fill--amber { background: var(--amber); }
.stat-bar__fill--green { background: var(--green-bright); }

.stats-meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}
.stats-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stats-meta-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stats-meta-val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
}

/* Attachment Picker */
.att-picker {
  position: fixed;
  z-index: var(--z-modal);
  background: var(--surface-el);
  border: 1px solid var(--border-bright);
  border-radius: var(--r-md);
  min-width: 230px;
  max-width: 280px;
  box-shadow: 0 12px 36px oklch(0 0 0 / 0.55), 0 0 0 1px var(--border);
  overflow: hidden;
}
.att-picker[hidden] { display: none; }

.att-picker__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.att-picker__close {
  font-size: 0.75rem;
  line-height: 1;
  color: var(--ink-faint);
  padding: 2px 5px;
  transition: color 0.12s;
  font-family: var(--font-body);
}
.att-picker__close:hover { color: var(--ink); }

.att-picker__list {
  max-height: 290px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.att-option {
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.att-option:last-child { border-bottom: none; }
.att-option:hover { background: var(--surface-raised); }
.att-option.is-active { background: var(--amber-bg); }

.att-option--remove {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.att-option--remove:hover { color: var(--red); background: var(--red-bg); }

.att-opt-name {
  display: block;
  font-family: var(--font-hd);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.att-option.is-active .att-opt-name { color: var(--amber); }
.att-opt-stats {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: 3px;
}
.att-opt-stat {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}
.att-opt-stat--pos { color: var(--green-bright); }
.att-opt-stat--neg { color: var(--red); }
.att-opt-stat--neutral { color: var(--ink-faint); }

/* --- Maps ---------------------------------- */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--sp-5);
}

.map-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-el);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.map-card:hover {
  border-color: oklch(0.68 0.155 68 / 0.5);
  transform: translateY(-2px);
}

.map-card__img {
  height: 185px;
  position: relative;
  overflow: hidden;
  background: var(--surface-raised);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.map-card__bg {
  position: absolute;
  inset: 0;
}
.map-card__img-name {
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-4);
  font-family: var(--font-hd);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: oklch(0.68 0.155 68 / 0.16);
  text-transform: uppercase;
  user-select: none;
  line-height: 1;
}
.map-card__badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
}
.map-card__body { padding: var(--sp-5); }
.map-card__name {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}
.map-card__desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}
.map-card__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.map-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--r);
}

/* Map background patterns */
.mapbg--armory-valley {
  background:
    repeating-linear-gradient(0deg,   oklch(0.68 0.155 68 / 0.12) 0, oklch(0.68 0.155 68 / 0.12) 1px, transparent 0, transparent 38px),
    repeating-linear-gradient(90deg,  oklch(0.68 0.155 68 / 0.12) 0, oklch(0.68 0.155 68 / 0.12) 1px, transparent 0, transparent 38px);
}
.mapbg--farm {
  background: repeating-linear-gradient(-45deg,
    oklch(0.44 0.095 148 / 0.22) 0, oklch(0.44 0.095 148 / 0.22) 1px,
    transparent 0, transparent 28px);
}
.mapbg--terminus {
  background:
    radial-gradient(circle at 25% 30%, oklch(0.68 0.155 68 / 0.20) 0%, transparent 45%),
    radial-gradient(circle at 75% 70%, oklch(0.54 0.118 252 / 0.20) 0%, transparent 45%);
}
.mapbg--northridge {
  background: repeating-linear-gradient(25deg,
    oklch(0.54 0.118 252 / 0.18) 0, oklch(0.54 0.118 252 / 0.18) 1px,
    transparent 0, transparent 18px);
}

/* --- Guides -------------------------------- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}

.guide-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  padding: var(--sp-5);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color 0.2s, background 0.15s;
}
.guide-card:hover {
  border-color: oklch(0.68 0.155 68 / 0.45);
  background: var(--surface-el);
}
.guide-card__cat {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.guide-card__title {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.25;
}
.guide-card__desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.55;
  flex: 1;
}
.guide-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.guide-pips { display: flex; gap: 3px; }
.pip {
  width: 8px; height: 8px;
  border-radius: 1px;
  background: var(--border-bright);
  transition: background 0.15s;
}
.pip.on { background: var(--amber); }
.guide-card__time {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* --- Footer -------------------------------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: var(--sp-16) var(--sp-8);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: var(--sp-16);
  margin-bottom: var(--sp-12);
  align-items: start;
}
.footer__logo {
  font-family: var(--font-hd);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-3);
}
.footer__tagline {
  font-size: 0.9rem;
  color: var(--ink-muted);
  max-width: 28ch;
  line-height: 1.6;
  margin-bottom: var(--sp-2);
}
.footer__disclaimer {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.footer__col-hd {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__col a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--amber); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* --- Toast --------------------------------- */
.toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: var(--z-toast);
  background: var(--surface-el);
  border: 1px solid var(--border-bright);
  border-radius: var(--r-md);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  box-shadow: 0 4px 16px oklch(0 0 0 / 0.4);
  animation: fade-up 0.3s var(--ease-out) forwards;
}

/* --- Responsive --------------------------- */
@media (max-width: 1100px) {
  .builder { grid-template-columns: 220px 1fr; }
  .builder__stats { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .news-feat__img { height: 160px; }
  .builder { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero__counts { display: none; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .builder__slot-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; }
}

/* --- Reduced motion ----------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__eyebrow,
  .hero__title,
  .hero__subtitle,
  .hero__actions,
  .hero__counts { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
