/* ═══════════════════════════════════════════════════════
   NLI.CSS — No Limit International Airsoft Design System
   ═══════════════════════════════════════════════════════ */

/* ── tokens ────────────────────────────────────────────── */
:root {
  --bg: #0A0B0E; --bg2: #0D0F15; --panel: #13151E; --panel2: #191C28;
  --line: #262A38; --line2: #363B4D;
  --text: #E7E9F0; --muted: #8A90A3; --dim: #717888;
  --hazard: #FFD21A; --hazard-deep: #D9B100;
  --purple: #8B7BE8; --purple-deep: #5E4FB0;
  --teal: #2FE0C8; --red: #FF4D52; --green: #4CAF7D;
  --disp: 'Chakra Petch', system-ui, sans-serif;
  --mono: 'Share Tech Mono', ui-monospace, monospace;
  --body: 'Inter', system-ui, sans-serif;
  --clip: polygon(0 13px, 13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
  --clip-sm: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

/* ── skip link ──────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bg); background: var(--hazard);
  padding: 8px 14px; z-index: 999; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ── reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
input, textarea, select {
  font-family: var(--body);
  font-size: 14px;
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--line2);
  padding: 10px 14px;
  outline: none;
  width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--hazard); }
:focus-visible { outline: 2px solid var(--hazard); outline-offset: 2px; }

/* ── ambient layers ─────────────────────────────────────── */
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .18;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  background:
    radial-gradient(50% 55% at 78% 8%, rgba(139,123,232,.20), transparent 60%),
    radial-gradient(45% 50% at 18% 92%, rgba(255,210,26,.10), transparent 60%);
}
.bg-scan {
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  opacity: .5;
}

/* ── shell ──────────────────────────────────────────────── */
.shell { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ════════════════════════════════════════════════════════
   TOPBAR
   ════════════════════════════════════════════════════════ */
.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,22,30,.92), rgba(13,15,21,.92));
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.crest { width: 38px; height: 38px; flex: none; position: relative; }
.crest svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 6px rgba(255,210,26,.55)); }
.crest::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,210,26,.25);
  animation: pulse 3.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.35;transform:scale(1)} 50%{opacity:.9;transform:scale(1.06)} }
.brand-txt { min-width: 0; }
.brand-txt h1 {
  font-family: var(--disp); font-weight: 700; font-size: 15px;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; line-height: 1.1;
}
.brand-txt h1 b { color: var(--hazard); }
.brand-txt span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .34em;
  color: var(--dim); text-transform: uppercase; white-space: nowrap;
}
.topbar-spacer { flex: 1; }
.stat-chip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  color: var(--muted); text-transform: uppercase;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.stat-chip b { color: var(--text); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 8px var(--teal);
  animation: blink 1.6s steps(2) infinite; flex: none;
}
@keyframes blink { 0%,60%{opacity:1} 61%,100%{opacity:.25} }
.clearance {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--bg); background: var(--hazard);
  padding: 4px 9px; font-weight: 700;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.clearance.admin { background: var(--red); color: #fff; }

/* public nav links */
.pub-nav { display: flex; align-items: center; gap: 4px; }
.pub-nav a {
  font-family: var(--disp); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: 7px 12px; transition: color .15s;
  position: relative;
}
.pub-nav a:hover, .pub-nav a.active { color: var(--text); }
.pub-nav a.active::after {
  content: ""; position: absolute; bottom: 0; left: 12px; right: 12px;
  height: 2px; background: var(--hazard);
}
.nav-login {
  font-family: var(--disp); font-weight: 700; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--bg); background: var(--hazard);
  padding: 7px 14px; display: inline-flex; align-items: center; gap: 7px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: filter .15s;
}
.nav-login:hover { filter: brightness(1.1); }
.nav-login svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* language switch */
.lang-switch {
  display: flex; align-items: center; gap: 3px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
}
.lang-sep { color: var(--line2); }
.lang-btn {
  background: none; border: 1px solid var(--line2); color: var(--dim);
  padding: 3px 7px; cursor: pointer; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .1em; transition: color .15s, border-color .15s;
  clip-path: var(--clip-sm);
}
.lang-btn:hover { color: var(--text); border-color: var(--muted); }
.lang-btn.lang-active { color: var(--hazard); border-color: var(--hazard); }

/* user chip in topbar (portal/admin) */
.user-chip {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: var(--muted); text-transform: uppercase;
}
.user-chip .uc-call { color: var(--text); font-weight: 700; }
.user-chip .uc-squad { color: var(--hazard); }
.btn-logout {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim); border: 1px solid var(--line2);
  padding: 5px 11px; transition: color .15s, border-color .15s;
}
.btn-logout:hover { color: var(--red); border-color: var(--red); }
.btn-logout:focus-visible { outline: 2px solid var(--hazard); outline-offset: 2px; }

/* ════════════════════════════════════════════════════════
   MAIN GRID — with sidebar rail
   ════════════════════════════════════════════════════════ */
.main { flex: 1; display: grid; grid-template-columns: 208px 1fr; align-items: start; }

/* ── nav rail ───────────────────────────────────────────── */
.rail {
  position: sticky; top: 62px; align-self: start;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  min-height: calc(100vh - 62px);
  display: flex; flex-direction: column; gap: 5px;
}
.rail-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .3em;
  color: var(--dim); text-transform: uppercase; padding: 0 10px 8px;
}
.navbtn, .navlink {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: none; border: none; color: var(--muted);
  font-family: var(--disp); font-weight: 600; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 11px 12px; cursor: pointer; text-align: left;
  position: relative; border-left: 2px solid transparent;
  transition: color .15s, background .15s; text-decoration: none;
}
.navbtn svg, .navlink svg {
  width: 17px; height: 17px; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.7;
}
.navbtn:hover, .navlink:hover { color: var(--text); background: rgba(255,255,255,.03); }
.navbtn.active, .navlink.active {
  color: var(--hazard);
  background: linear-gradient(90deg, rgba(255,210,26,.12), transparent);
  border-left-color: var(--hazard);
}
.navbtn.active::after, .navlink.active::after {
  content: ""; position: absolute; right: 10px;
  width: 5px; height: 5px; background: var(--hazard);
  box-shadow: 0 0 6px var(--hazard); transform: rotate(45deg);
}
.navbtn:focus-visible, .navlink:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
.rail-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.rail-foot .f-line {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  color: var(--dim); display: flex; align-items: center; gap: 7px;
  margin-top: 6px; text-transform: uppercase;
}

/* ── viewport ───────────────────────────────────────────── */
.viewport { padding: 26px 30px 60px; max-width: 1180px; }
.module { display: none; animation: fade .35s ease; }
.module.active { display: block; }
@keyframes fade { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

/* ════════════════════════════════════════════════════════
   PAGE HEADER (public pages)
   ════════════════════════════════════════════════════════ */
.page-body { flex: 1; }
.mod-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .32em; color: var(--hazard); text-transform: uppercase; }
.mod-head h2 { font-family: var(--disp); font-weight: 700; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; }
.mod-head .sub { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; margin-left: auto; }

/* ════════════════════════════════════════════════════════
   PANELS
   ════════════════════════════════════════════════════════ */
.panel {
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line);
  clip-path: var(--clip);
  position: relative; padding: 18px;
}
.panel.bracket::before, .panel.bracket::after {
  content: ""; position: absolute; width: 13px; height: 13px;
  border-color: var(--hazard); opacity: .75;
}
.panel.bracket::before { top: 5px; left: 5px; border-top: 2px solid; border-left: 2px solid; }
.panel.bracket::after  { bottom: 5px; right: 5px; border-bottom: 2px solid; border-right: 2px solid; }
.p-eyebrow {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em;
  color: var(--muted); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.p-eyebrow .tick { width: 6px; height: 6px; background: var(--purple); transform: rotate(45deg); flex: none; }

/* ════════════════════════════════════════════════════════
   HERO BANNER (portal dashboard)
   ════════════════════════════════════════════════════════ */
.hero {
  display: grid; grid-template-columns: auto 1fr; gap: 26px;
  align-items: center; padding: 30px 28px; margin-bottom: 24px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(139,123,232,.16), transparent 55%),
    linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line);
  clip-path: var(--clip); position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; width: 46%; height: 100%;
  opacity: .07; background: repeating-linear-gradient(-52deg, var(--hazard) 0 14px, transparent 14px 30px);
}
.hero-crest { width: 118px; height: 118px; position: relative; z-index: 1; }
.hero-crest svg { width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(255,210,26,.4)); }
.hero-info { position: relative; z-index: 1; }
.hero-info .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--purple); text-transform: uppercase; }
.hero-info h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(26px,5vw,42px); letter-spacing: .04em; text-transform: uppercase; line-height: 1; margin: 6px 0 4px; }
.hero-info h3 b { color: var(--hazard); }
.hero-info .season { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.hero-status {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--disp); font-weight: 600; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal);
  border: 1px solid rgba(47,224,200,.4); background: rgba(47,224,200,.07);
  padding: 7px 13px;
  clip-path: polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);
}

/* ════════════════════════════════════════════════════════
   PUBLIC HERO (landing page)
   ════════════════════════════════════════════════════════ */
.pub-hero {
  min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 80px 24px; position: relative;
}
.pub-hero-crest { width: 180px; height: 180px; margin: 0 auto 32px; position: relative; z-index: 1; }
.pub-hero-crest svg { width: 100%; height: 100%; filter: drop-shadow(0 0 36px rgba(255,210,26,.5)); }
.pub-hero .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .4em; color: var(--purple); text-transform: uppercase; margin-bottom: 14px; position: relative; z-index: 1; }
.pub-hero h2 {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(36px, 8vw, 80px);
  letter-spacing: .04em; text-transform: uppercase;
  line-height: .95; position: relative; z-index: 1; margin-bottom: 16px;
}
.pub-hero h2 b { color: var(--hazard); display: block; }
.pub-hero .sub {
  font-family: var(--mono); font-size: 13px; letter-spacing: .18em;
  color: var(--muted); text-transform: uppercase; max-width: 480px;
  margin: 0 auto 32px; position: relative; z-index: 1;
}
.pub-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.pub-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 30%, rgba(139,123,232,.18), transparent 60%),
    radial-gradient(40% 50% at 50% 80%, rgba(255,210,26,.09), transparent 60%);
}
.pub-hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 46px),
              repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 46px);
  opacity: .08;
}

/* ════════════════════════════════════════════════════════
   CARD GRID
   ════════════════════════════════════════════════════════ */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card-mode { font-family: var(--disp); font-weight: 700; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; color: var(--hazard); line-height: 1.1; margin: 2px 0 6px; }
.card-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .05em; line-height: 1.7; }
.card-meta b { color: var(--text); }

/* ════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--disp); font-weight: 700; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 18px; cursor: pointer; border: none;
  clip-path: var(--clip-sm); transition: filter .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { clip-path: none; outline: 2px solid var(--hazard); outline-offset: 2px; }
.btn:disabled, .btn[disabled] { opacity: .42; cursor: not-allowed; pointer-events: none; }
.btn-primary { color: var(--bg); background: var(--hazard); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { color: var(--text); background: none; border: 1px solid var(--line2); clip-path: none; }
.btn-secondary:hover { border-color: var(--muted); }
.btn-danger { color: #fff; background: var(--red); }
.btn-danger:hover { filter: brightness(1.1); }
.btn-teal { color: var(--bg); background: var(--teal); }
.btn-teal:hover { filter: brightness(1.05); }
.btn-sm { font-size: 10px; padding: 6px 12px; }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ════════════════════════════════════════════════════════
   PROGRESS
   ════════════════════════════════════════════════════════ */
.prog { height: 9px; background: #0a0c12; border: 1px solid var(--line); margin-top: 12px; position: relative; overflow: hidden; }
.prog > i { display: block; height: 100%; background: linear-gradient(90deg, var(--hazard-deep), var(--hazard)); box-shadow: 0 0 10px rgba(255,210,26,.5); }
.prog-mark { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: var(--dim); letter-spacing: .1em; margin-top: 7px; text-transform: uppercase; }
.bignum { font-family: var(--mono); font-size: 40px; color: var(--text); line-height: 1; }
.bignum small { font-size: 16px; color: var(--muted); }
.rounds { display: flex; gap: 6px; margin-top: 10px; }
.rounds span { flex: 1; text-align: center; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; padding: 5px 0; border: 1px solid var(--line); color: var(--dim); text-transform: uppercase; }
.rounds span.done { color: var(--bg); background: var(--purple); border-color: var(--purple); }
.rounds span.now  { color: var(--hazard); border-color: var(--hazard); box-shadow: inset 0 0 12px rgba(255,210,26,.18); }

/* ════════════════════════════════════════════════════════
   TABLES
   ════════════════════════════════════════════════════════ */
.two-col { display: grid; gap: 18px; grid-template-columns: 1.05fr .95fr; align-items: start; }
table { width: 100%; border-collapse: collapse; }
.tbl-team th { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--dim); text-transform: uppercase; text-align: left; padding: 0 8px 11px; font-weight: 400; }
.tbl-team th.r, .tbl-team td.r { text-align: right; }
.tbl-team td { padding: 13px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl-team tr.lead td { background: linear-gradient(90deg, rgba(255,210,26,.09), transparent); }
.rank { font-family: var(--mono); font-size: 18px; color: var(--dim); width: 30px; }
.tbl-team tr.lead .rank { color: var(--hazard); }
.sqname { font-family: var(--disp); font-weight: 700; font-size: 16px; letter-spacing: .07em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.lpval { font-family: var(--mono); font-size: 20px; color: var(--text); }
.tbl-team tr.lead .lpval { color: var(--hazard); }
.lpbar { height: 5px; background: #0a0c12; margin-top: 6px; width: 120px; max-width: 30vw; }
.lpbar > i { display: block; height: 100%; }
.played { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* generic data table */
.data-table th { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--dim); text-transform: uppercase; text-align: left; padding: 0 10px 10px; font-weight: 400; }
.data-table td { padding: 11px 10px; border-top: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }

/* ════════════════════════════════════════════════════════
   MVP / LEADERBOARD ROWS
   ════════════════════════════════════════════════════════ */
.leadrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.leadrow:last-child { border-bottom: none; }
.chip { width: 11px; height: 11px; flex: none; transform: rotate(45deg); }
.leadrow .nm { font-family: var(--disp); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.leadrow .lp { margin-left: auto; font-family: var(--mono); font-size: 15px; color: var(--hazard); }
.mvp-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 11px 6px; border-top: 1px solid var(--line); }
.mvp-row:first-of-type { border-top: none; }
.mvp-rank { font-family: var(--mono); font-size: 15px; color: var(--dim); }
.mvp-row.top1 .mvp-rank { color: var(--hazard); }
.mvp-row.top2 .mvp-rank { color: var(--purple); }
.mvp-row.top3 .mvp-rank { color: var(--teal); }
.mvp-name { font-family: var(--disp); font-weight: 600; font-size: 15px; letter-spacing: .07em; text-transform: uppercase; display: flex; align-items: center; gap: 9px; }
.mvp-sq { font-family: var(--mono); font-size: 9.5px; color: var(--dim); letter-spacing: .1em; }
.mvp-ip { font-family: var(--mono); font-size: 16px; color: var(--text); }
.mvp-row.top1 .mvp-ip { color: var(--hazard); }

/* ════════════════════════════════════════════════════════
   TICKER
   ════════════════════════════════════════════════════════ */
.ticker {
  margin-top: 24px; border: 1px solid var(--line); background: var(--bg2);
  overflow: hidden; display: flex; align-items: center;
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px);
}
.ticker .label { flex: none; font-family: var(--disp); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bg); background: var(--red); padding: 9px 13px; }
.ticker .track { overflow: hidden; flex: 1; white-space: nowrap; }
.ticker .track > div { display: inline-block; padding-left: 100%; animation: scroll 34s linear infinite; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--muted); }
.ticker .track b { color: var(--hazard); }
.ticker .track .sep { color: var(--purple); padding: 0 14px; }
@keyframes scroll { to { transform: translateX(-100%); } }

/* ════════════════════════════════════════════════════════
   MISSIONS / EVENTS LIST
   ════════════════════════════════════════════════════════ */
.round-head { display: flex; align-items: center; gap: 12px; margin: 24px 0 12px; }
.round-head:first-child { margin-top: 0; }
.round-head .rn { font-family: var(--disp); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); }
.round-head .rl { flex: 1; height: 1px; background: var(--line); }
.round-head .rx { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.mission {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 16px;
  align-items: center; background: var(--panel); border: 1px solid var(--line);
  padding: 14px 16px; margin-bottom: 9px;
  clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: border-color .15s, background .15s;
}
.mission:hover { border-color: var(--line2); background: var(--panel2); }
.mission.status-active  { border-color: var(--hazard); box-shadow: inset 3px 0 0 var(--hazard); }
.mission.status-locked  { opacity: .62; }
.mission.status-final   { border-color: var(--purple); box-shadow: inset 3px 0 0 var(--purple); }
.m-week { font-family: var(--mono); text-align: center; line-height: 1; }
.m-week .w { font-size: 9px; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.m-week .n { font-size: 30px; color: var(--text); }
.mission.status-active .m-week .n { color: var(--hazard); }
.m-body .m-mode { font-family: var(--disp); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.m-body .m-obj { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.m-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.tagm { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line2); color: var(--muted); }
.tagm.indoor  { border-color: var(--purple-deep); color: var(--purple); }
.tagm.outdoor { border-color: #3a6b4a; color: #6fcf8e; }
.tagm.dbl     { border-color: var(--hazard-deep); color: var(--hazard); background: rgba(255,210,26,.08); }
.m-status { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.pill {
  font-family: var(--disp); font-weight: 700; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; padding: 5px 11px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.pill.cleared  { color: var(--teal);   border: 1px solid rgba(47,224,200,.4); background: rgba(47,224,200,.06); }
.pill.active   { color: var(--bg);     background: var(--hazard); }
.pill.locked   { color: var(--dim);    border: 1px solid var(--line2); }
.pill.upcoming { color: var(--purple); border: 1px solid rgba(139,123,232,.4); background: rgba(139,123,232,.06); }
.pill.cancelled{ color: var(--red);    border: 1px solid rgba(255,77,82,.4); }
.m-result { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }
.m-result b { color: var(--hazard); }

/* RSVP buttons */
.rsvp-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rsvp-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; padding: 6px 13px; border: 1px solid var(--line2);
  color: var(--dim); transition: all .15s; cursor: pointer; background: none;
}
.rsvp-btn:hover { color: var(--text); border-color: var(--muted); }
.rsvp-btn.selected-attending   { color: var(--teal);   border-color: var(--teal);   background: rgba(47,224,200,.08); }
.rsvp-btn.selected-maybe       { color: var(--hazard); border-color: var(--hazard); background: rgba(255,210,26,.08); }
.rsvp-btn.selected-not_attending { color: var(--red);  border-color: var(--red);    background: rgba(255,77,82,.08); }
.rsvp-btn:focus-visible { outline: 2px solid var(--hazard); outline-offset: 2px; }

/* ════════════════════════════════════════════════════════
   INTEL / ROE
   ════════════════════════════════════════════════════════ */
.intel-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.roe-item { display: flex; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.roe-item:first-of-type { border-top: none; }
.roe-item .dot { flex: none; width: 7px; height: 7px; margin-top: 6px; background: var(--hazard); transform: rotate(45deg); }
.roe-item b { color: var(--text); font-weight: 600; }
.legend-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.legend-row:first-of-type { border-top: none; }
.lg-pos { font-family: var(--disp); font-weight: 700; font-size: 13px; letter-spacing: .1em; width: 54px; text-transform: uppercase; }
.lg-1{color:var(--hazard)} .lg-2{color:var(--text)} .lg-3{color:var(--muted)}
.lg-pts { font-family: var(--mono); font-size: 17px; color: var(--text); }
.lg-note { font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-left: auto; letter-spacing: .06em; text-transform: uppercase; }
.mode-row { padding: 11px 0; border-top: 1px solid var(--line); }
.mode-row:first-of-type { border-top: none; }
.mode-row .mr-name { font-family: var(--disp); font-weight: 700; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; color: var(--hazard); display: flex; align-items: center; gap: 9px; }
.mode-row .mr-desc { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: .03em; }
.ven-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); }
.ven-row:first-of-type { border-top: none; }
.ven-row .vn { font-family: var(--disp); font-weight: 600; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase; }
.ven-row .vl { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; letter-spacing: .04em; }
.ven-tag { flex: none; font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line2); color: var(--dim); margin-top: 1px; }
.ven-tag.both { border-color: var(--hazard-deep); color: var(--hazard); }
.note-line { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .05em; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); text-transform: uppercase; }

/* operators grid */
.ops-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dossier-head { display: flex; align-items: center; gap: 11px; margin-bottom: 4px; }
.dossier-head .sq-emblem { width: 14px; height: 14px; transform: rotate(45deg); flex: none; }
.dossier-head h3 { font-family: var(--disp); font-weight: 700; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; }
.dossier-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; display: flex; justify-content: space-between; }
.dossier-sub b { color: var(--hazard); }
.slot { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.slot .idx { color: var(--dim); width: 20px; }
.slot .cs  { color: var(--text); letter-spacing: .06em; }
.slot.empty .cs { color: var(--dim); font-style: italic; }
.slot .badge-cap  { margin-left: auto; font-family: var(--disp); font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--bg); background: var(--hazard); padding: 2px 7px; text-transform: uppercase; }
.slot .badge-open { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--purple); border: 1px solid var(--purple-deep); padding: 2px 7px; text-transform: uppercase; }

/* ════════════════════════════════════════════════════════
   GALLERY GRID
   ════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid; gap: 3px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.gallery-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; background: var(--panel);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
  filter: brightness(.85) saturate(.9);
}
.gallery-item:hover img { transform: scale(1.04); filter: brightness(.7) saturate(1.1); }
.gallery-item .gi-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 14px;
  background: linear-gradient(transparent 40%, rgba(10,11,14,.85) 100%);
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gi-overlay { opacity: 1; }
.gi-caption { font-family: var(--mono); font-size: 11px; color: var(--text); letter-spacing: .06em; }
.gi-event   { font-family: var(--disp); font-size: 9px; letter-spacing: .18em; color: var(--hazard); text-transform: uppercase; margin-bottom: 4px; }
.gi-lock { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; background: rgba(10,11,14,.7); display: flex; align-items: center; justify-content: center; }
.gi-lock svg { width: 12px; height: 12px; stroke: var(--purple); fill: none; stroke-width: 2; }
.gallery-placeholder {
  aspect-ratio: 4/3; background: var(--panel); border: 1px dashed var(--line2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--dim);
}
.gallery-placeholder svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.gallery-placeholder span { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,11,14,.96);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 1100px; width: 100%; }
.lightbox-inner img { width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: -40px; right: 0; color: var(--muted);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; background: none; border: none; cursor: pointer;
}
.lightbox-close:hover { color: var(--text); }
.lightbox-caption { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }

/* ════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; margin-bottom: 7px; }
.form-input, .form-textarea, .form-select {
  display: block; width: 100%; padding: 11px 14px;
  background: rgba(19,21,30,.8); color: var(--text);
  border: 1px solid var(--line2); font-family: var(--body); font-size: 14px;
  transition: border-color .15s; outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--hazard);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,210,26,.2);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select option { background: var(--panel); }
.form-hint { font-family: var(--mono); font-size: 9.5px; color: var(--dim); margin-top: 5px; letter-spacing: .06em; }
.form-error { font-family: var(--mono); font-size: 10px; color: var(--red); margin-top: 5px; letter-spacing: .08em; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--hazard); }
.form-check span { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }

/* file upload zone */
.upload-zone {
  border: 2px dashed var(--line2); padding: 40px 24px;
  text-align: center; cursor: pointer; transition: border-color .2s;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--hazard); }
.upload-zone .uz-icon { font-size: 32px; margin-bottom: 10px; }
.upload-zone .uz-label { font-family: var(--disp); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.upload-zone .uz-hint { font-family: var(--mono); font-size: 10px; color: var(--dim); margin-top: 6px; }

/* ════════════════════════════════════════════════════════
   MODALS
   ════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,11,14,.85);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal { animation: modalIn .22s ease; }
@keyframes modalIn { from{opacity:0;transform:translateY(10px) scale(.98)} to{opacity:1;transform:none} }
.modal {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line2); clip-path: var(--clip);
  padding: 28px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-head h3 { font-family: var(--disp); font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.modal-close { color: var(--dim); font-size: 20px; cursor: pointer; line-height: 1; background: none; border: none; }
.modal-close:hover { color: var(--text); }
.modal-close:focus-visible { outline: 2px solid var(--hazard); outline-offset: 2px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  padding: 12px 18px; min-width: 260px; pointer-events: auto;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  animation: toastIn .3s ease;
}
@keyframes toastIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:none} }
.toast.success { background: rgba(76,175,125,.15); border: 1px solid rgba(76,175,125,.5); color: #6fcf8e; }
.toast.error   { background: rgba(255,77,82,.15);  border: 1px solid rgba(255,77,82,.5);  color: var(--red); }
.toast.info    { background: rgba(139,123,232,.15); border: 1px solid rgba(139,123,232,.5); color: var(--purple); }

/* ════════════════════════════════════════════════════════
   PROFILE / AVATAR
   ════════════════════════════════════════════════════════ */
.profile-header {
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  align-items: center; padding: 24px; margin-bottom: 20px;
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); clip-path: var(--clip); position: relative;
}
.avatar {
  width: 80px; height: 80px; border: 2px solid var(--line2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-weight: 700; font-size: 28px;
  letter-spacing: .04em; color: var(--hazard); background: var(--bg2);
  flex: none; position: relative;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-info .callsign { font-family: var(--disp); font-weight: 700; font-size: 28px; letter-spacing: .06em; text-transform: uppercase; }
.profile-info .squad-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bg); background: var(--hazard); padding: 3px 10px; margin-top: 6px;
}
.profile-info .role-badge { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); margin-top: 4px; }
.stat-row { display: flex; gap: 24px; margin-top: 14px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-item .sv { font-family: var(--mono); font-size: 28px; color: var(--hazard); line-height: 1; }
.stat-item .sk { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; margin-top: 3px; }

/* ════════════════════════════════════════════════════════
   NEWS / ANNOUNCEMENTS
   ════════════════════════════════════════════════════════ */
.news-item {
  padding: 18px; background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); margin-bottom: 12px;
  clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  position: relative;
}
.news-item.pinned { border-color: var(--hazard); }
.news-item.pinned::before { content: "PINNED"; position: absolute; top: 0; right: 16px; font-family: var(--mono); font-size: 8px; letter-spacing: .2em; color: var(--bg); background: var(--hazard); padding: 2px 8px; }
.news-item.members-only::after { content: "MEMBERS ONLY"; position: absolute; top: 0; left: 16px; font-family: var(--mono); font-size: 8px; letter-spacing: .2em; color: var(--purple); border: 1px solid var(--purple-deep); padding: 2px 8px; }
.news-title { font-family: var(--disp); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.news-body { font-size: 13px; color: var(--muted); line-height: 1.6; }
.news-meta { display: flex; gap: 14px; margin-top: 12px; font-family: var(--mono); font-size: 9.5px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }

/* ════════════════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════════════════ */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; z-index: 1;
}
.login-box {
  width: 100%; max-width: 440px;
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); clip-path: var(--clip); padding: 40px 36px;
  position: relative;
}
.login-box::before, .login-box::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: var(--hazard); opacity: .6;
}
.login-box::before { top: 6px; left: 6px; border-top: 2px solid; border-left: 2px solid; }
.login-box::after  { bottom: 6px; right: 6px; border-bottom: 2px solid; border-right: 2px solid; }
.login-crest { width: 70px; height: 70px; margin: 0 auto 24px; }
.login-crest svg { width: 100%; height: 100%; filter: drop-shadow(0 0 14px rgba(255,210,26,.45)); }
.login-title { font-family: var(--disp); font-weight: 700; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; text-align: center; margin-bottom: 4px; }
.login-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; color: var(--dim); text-transform: uppercase; text-align: center; margin-bottom: 28px; }
.login-error {
  font-family: var(--mono); font-size: 10.5px; color: var(--red);
  border: 1px solid rgba(255,77,82,.4); background: rgba(255,77,82,.07);
  padding: 9px 13px; margin-bottom: 18px; letter-spacing: .05em;
  display: none;
}
.login-error.show { display: block; }
.login-note { font-family: var(--mono); font-size: 9.5px; color: var(--dim); text-align: center; margin-top: 18px; letter-spacing: .06em; }

/* ════════════════════════════════════════════════════════
   ADMIN — badge and specific overrides
   ════════════════════════════════════════════════════════ */
.admin-badge {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--bg); background: var(--red);
  padding: 2px 8px; margin-left: 6px; vertical-align: middle;
}
.rail .admin-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rail .admin-section .rail-label { color: var(--red); opacity: .7; }

/* ════════════════════════════════════════════════════════
   SECTION SPACERS / DIVIDERS (public pages)
   ════════════════════════════════════════════════════════ */
.section { padding: 80px 24px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-head { margin-bottom: 48px; }
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-head h2 { font-family: var(--disp); font-weight: 700; font-size: clamp(28px, 5vw, 48px); letter-spacing: .04em; text-transform: uppercase; }
.section-head h2 b { color: var(--hazard); }
.section-head p { font-family: var(--body); font-size: 15px; color: var(--muted); max-width: 540px; margin-top: 10px; }

/* stat strip (public) */
.stat-strip {
  display: flex; gap: 0; border: 1px solid var(--line); background: var(--panel);
  clip-path: var(--clip);
}
.stat-strip .ss-item {
  flex: 1; padding: 24px 20px; text-align: center;
  border-right: 1px solid var(--line);
}
.stat-strip .ss-item:last-child { border-right: none; }
.ss-val { font-family: var(--mono); font-size: 36px; color: var(--hazard); line-height: 1; }
.ss-key { font-family: var(--mono); font-size: 9px; letter-spacing: .26em; color: var(--dim); text-transform: uppercase; margin-top: 6px; }

/* ════════════════════════════════════════════════════════
   FOOTER (public pages)
   ════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--line); padding: 40px 24px;
  background: linear-gradient(180deg, transparent, rgba(13,15,21,.6));
}
.footer-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .fb-txt .name { font-family: var(--disp); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.footer-brand .fb-txt .name b { color: var(--hazard); }
.footer-brand .fb-txt .sub { font-family: var(--mono); font-size: 9px; letter-spacing: .3em; color: var(--dim); text-transform: uppercase; margin-top: 2px; }
.footer-right { font-family: var(--mono); font-size: 9.5px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; text-align: right; }

/* ════════════════════════════════════════════════════════
   BOOT OVERLAY
   ════════════════════════════════════════════════════════ */
.boot {
  position: fixed; inset: 0; z-index: 200; background: #06070A;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; font-family: var(--mono); transition: opacity .5s;
}
.boot.gone { opacity: 0; pointer-events: none; }
.boot-inner { width: min(520px, 86vw); }
.boot-crest { width: 64px; height: 64px; margin: 0 auto 22px; filter: drop-shadow(0 0 14px rgba(255,210,26,.5)); }
.boot-line { font-size: 11.5px; letter-spacing: .08em; color: var(--muted); margin: 7px 0; opacity: 0; white-space: normal; line-height: 1.5; }
.boot-line.show { opacity: 1; }
.boot-line .ok { color: var(--teal); }
.boot-line .hz { color: var(--hazard); }
.boot-bar { height: 3px; background: #14161e; margin-top: 20px; overflow: hidden; }
.boot-bar > i { display: block; height: 100%; width: 100%; background: var(--hazard); box-shadow: 0 0 10px var(--hazard); transform: scaleX(0); transform-origin: left; transition: transform 1.8s ease; }

/* ════════════════════════════════════════════════════════
   UTILITY
   ════════════════════════════════════════════════════════ */
.mt-1{margin-top:8px}  .mt-2{margin-top:16px} .mt-3{margin-top:24px} .mt-4{margin-top:32px}
.mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px} .mb-3{margin-bottom:24px}
.gap-2{gap:16px} .gap-3{gap:24px}
.text-hazard{color:var(--hazard)} .text-muted{color:var(--muted)} .text-dim{color:var(--dim)}
.text-teal{color:var(--teal)} .text-red{color:var(--red)} .text-purple{color:var(--purple)}
.font-mono{font-family:var(--mono)} .font-disp{font-family:var(--disp)}
.upper{text-transform:uppercase} .ls{letter-spacing:.12em}
.flex{display:flex} .flex-col{flex-direction:column} .items-center{align-items:center}
.justify-between{justify-content:space-between} .gap-1{gap:8px}
.hidden{display:none!important}
.badge {
  display: inline-block; font-family: var(--mono); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase; padding: 2px 8px;
}
.badge-hazard { color: var(--bg);     background: var(--hazard); }
.badge-purple { color: #fff;          background: var(--purple-deep); }
.badge-teal   { color: var(--bg);     background: var(--teal); }
.badge-red    { color: #fff;          background: var(--red); }
.badge-outline{ color: var(--muted);  border: 1px solid var(--line2); }

/* ════════════════════════════════════════════════════════
   SKELETON / LOADING STATES
   ════════════════════════════════════════════════════════ */
@keyframes shimmer {
  from { background-position: -600px 0; }
  to   { background-position:  600px 0; }
}
.skel {
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel2) 50%, var(--panel) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 0;
}
.skel-line  { height: 11px; margin-bottom: 8px; }
.skel-line:last-child { width: 65%; }
.skel-block { height: 80px; }
.skel-head  { height: 18px; margin-bottom: 12px; }

.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px; text-align: center; gap: 12px;
}
.empty-state svg { width: 36px; height: 36px; stroke: var(--dim); fill: none; stroke-width: 1.5; opacity: .6; }
.empty-state .es-title { font-family: var(--disp); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.empty-state .es-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .main { grid-template-columns: 1fr; }
  .rail {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    min-height: 0; flex-direction: row; border-right: none;
    border-top: 1px solid var(--line);
    background: rgba(13,15,21,.97); backdrop-filter: blur(10px);
    padding: 6px; z-index: 50; justify-content: space-around; gap: 0;
  }
  .rail-label, .rail-foot { display: none; }
  .navbtn, .navlink {
    flex-direction: column; gap: 4px; padding: 8px 4px;
    font-size: 9px; letter-spacing: .06em;
    border-left: none; border-top: 2px solid transparent;
    flex: 1; justify-content: center;
  }
  .navbtn.active, .navlink.active { background: none; border-left: none; border-top-color: var(--hazard); }
  .navbtn.active::after, .navlink.active::after { display: none; }
  .navbtn svg, .navlink svg { width: 20px; height: 20px; }
  .viewport { padding: 20px 16px 90px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 24px 18px; }
  .hero-crest { margin: 0 auto; }
  .hero::before { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .stat-chip.hide-sm { display: none; }
  .mission { grid-template-columns: 48px 1fr; gap: 12px; }
  .m-status { grid-column: 1/-1; flex-direction: row; align-items: center; justify-content: flex-start; padding-top: 10px; border-top: 1px dashed var(--line); }
  .mod-head h2 { font-size: 22px; }
  .pub-nav { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .stat-strip { flex-direction: column; }
  .stat-strip .ss-item { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ticker .track > div { animation: none; padding-left: 0; }
  .skel { animation: none; background: var(--panel2); }
  .modal-backdrop { transition: none; }
  .modal { animation: none; }
}
