/* Machine League web: shared stylesheet for machineleague.net and neuralcommand.net.
   Colours, type and frames follow the broadcast kit (broadcast/kit/kit.css, kit.js PALETTE/TEAMS).
   The kit is a dark broadcast palette with no light variant, so the sites are dark-only.
   Phone-first, per ui_review/MOBILE_RULE.md: big type, little whitespace, portraits wherever commanders appear.
   Web floors (CSS px at 390 px wide): body 19, secondary 17, labels 14, names 26, headline numbers 52. */

:root {
  color-scheme: dark;
  --ink: #0B0E13;
  --table: #121821;
  --sheet: #18222C;
  --edge: #262E39;
  --edge-2: #2A3846;
  --text: #EAF0F6;
  --dim: #93A2B3;
  --gold: #F2C14E;
  --gold-dark: #8A6A1E;
  --blue: #3FA9F5;
  --blue-l: #A7DBFF;
  --orange: #FF7A3D;
  --orange-l: #FFC7A8;
  --danger: #FF4D5E;
  --ok: #4ED39A;
  --cream: #F0E6D2;
  --grid-col: rgba(150, 190, 230, 0.055);
  --font: Bahnschrift, "DIN Alternate", "DIN Condensed", "Barlow Semi Condensed", "Roboto Condensed",
          "sans-serif-condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --mono: Consolas, "Cascadia Mono", ui-monospace, Menlo, monospace;
  --gutter: 16px;
  --max: 1240px;
  --sec: 30px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  margin: 0; background: var(--ink); color: var(--text); font-family: var(--font);
  font-size: 19px; line-height: 1.4; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #FFD97A; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; font-weight: 700; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header: single-row bar + League Signal mobile menu drawer --------------------------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(11,14,19,0.97); border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(6px); }
.top .wrap { display: flex; align-items: center; gap: 8px; min-height: 58px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand .word { display: flex; flex-direction: column; line-height: 0.92; font-weight: 700; font-size: 19px; letter-spacing: 1.5px; }
.brand .word b { color: var(--gold); letter-spacing: 5.4px; font-weight: 700; }
.brand .word.one { flex-direction: row; gap: 7px; font-size: 21px; letter-spacing: 2px; }
.nav { display: none; }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
  background: var(--gold); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 11px 14px 9px; min-height: 40px; white-space: nowrap; flex: none;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: background-color .16s ease; }
.nav-cta:hover { background: #FFD97A; color: var(--ink); }

/* Mobile hamburger (< 960px): zero-JS native <details> drawer in League Signal style */
.mmenu { position: static; flex: none; }
.mmenu summary { list-style: none; width: 42px; height: 40px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; cursor: pointer; background: var(--sheet);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  box-shadow: inset 0 0 0 1px var(--edge-2); transition: background-color .14s ease, box-shadow .14s ease; }
.mmenu summary::-webkit-details-marker { display: none; }
.mmenu summary span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .16s ease, opacity .14s ease, background-color .14s ease; }
.mmenu[open] summary { background: #1D2936; box-shadow: inset 0 0 0 1px var(--gold); }
.mmenu[open] summary span { background: var(--gold); }
.mmenu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mmenu[open] summary span:nth-child(2) { opacity: 0; }
.mmenu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px); z-index: 40;
  --cut: 14px; --sig-edge: rgba(242,193,78,0.58); --sig-bar: #F2C14E;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  background:
    linear-gradient(135deg, var(--sig-bar) 0, var(--sig-bar) calc(var(--cut) * 0.7071 + 1.8px), transparent calc(var(--cut) * 0.7071 + 2.3px)),
    linear-gradient(315deg, var(--sig-bar) 0, var(--sig-bar) calc(var(--cut) * 0.7071 + 1.8px), transparent calc(var(--cut) * 0.7071 + 2.3px)),
    linear-gradient(var(--grid-col) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-col) 1px, transparent 1px),
    rgba(7, 10, 15, 0.98);
  background-size: 100% 100%, 100% 100%, 14px 14px, 14px 14px, 100% 100%;
  box-shadow: inset 0 0 0 1px var(--sig-edge), 0 18px 46px rgba(0,0,0,0.85); }
.mnav::before { content: ""; position: absolute; top: 1px; right: 1px; width: 14px; height: 14px;
  border-top: 2.5px solid var(--sig-bar); border-right: 2.5px solid var(--sig-bar); pointer-events: none; }
.mnav::after { content: ""; position: absolute; bottom: 1px; left: 1px; width: 14px; height: 14px;
  border-bottom: 2.5px solid var(--sig-bar); border-left: 2.5px solid var(--sig-bar); pointer-events: none; }
.mnav a { display: flex; align-items: center; min-height: 46px; padding: 11px 12px 9px;
  background: rgba(24, 34, 44, 0.82); border: 1px solid var(--edge); color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: 1.5px; text-transform: uppercase;
  transition: border-color .14s ease, color .14s ease, background-color .14s ease; }
.mnav a:hover { border-color: var(--gold); color: var(--gold); background: #1D2936; }
.mnav a.hl { border-color: var(--gold-dark); color: var(--gold); }

/* ---- type ------------------------------------------------------------------------------- */
.kicker { font-size: 14px; letter-spacing: 3px; font-weight: 700; color: var(--gold); text-transform: uppercase; margin: 0 0 6px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.04; letter-spacing: 0.5px; }
h1 { font-size: 46px; text-transform: uppercase; letter-spacing: 1px; }
h2 { font-size: 34px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
h3 { font-size: 26px; margin-bottom: 6px; }
p { margin: 0 0 12px; }
.lead { font-size: 22px; line-height: 1.35; }
.dim { color: var(--dim); }
.small { font-size: 17px; line-height: 1.4; }
.gold { color: var(--gold); }
.blue { color: var(--blue-l); }
.orange { color: var(--orange-l); }
code { font-family: var(--mono); font-size: 0.86em; background: var(--ink); border: 1px solid var(--edge-2); color: var(--blue-l);
  padding: 1px 6px; border-radius: 4px; }
.rule { height: 3px; background: linear-gradient(90deg, var(--gold), transparent); border: 0; margin: 0 0 14px; width: 100%; max-width: 520px; }

/* ---- sections ---------------------------------------------------------------------------- */
section { padding: var(--sec) 0; border-top: 1px solid var(--edge); }
section.first { border-top: 0; }
.alt { background: var(--table); }

/* ---- hero -------------------------------------------------------------------------------- */
.hero { padding: 18px 0 var(--sec);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(28,42,56,0.92), rgba(11,14,19,0.96) 72%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 100% 100%, 48px 48px, 48px 48px, 100% 100%; }
.hero h1 { margin: 2px 0 12px; }
.hero h1 .gold { display: block; }
.hero .lead { margin-bottom: 16px; }
.hero figure { margin: 16px calc(-1 * var(--gutter)) 0; }
.hero figure img { width: 100%; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
figcaption { font-size: 15px; letter-spacing: 1px; color: var(--dim); padding: 8px var(--gutter) 0; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 52px; padding: 15px 22px 13px;
  border-radius: 0; font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
  color: var(--text); border: 0; flex: 1 1 auto; cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  background:
    linear-gradient(135deg, rgba(240,230,210,0.45) 0, rgba(240,230,210,0.45) 7.5px, transparent 8px),
    linear-gradient(315deg, rgba(240,230,210,0.45) 0, rgba(240,230,210,0.45) 7.5px, transparent 8px),
    var(--sheet);
  box-shadow: inset 0 0 0 1px var(--edge-2);
  transition: background-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease; }
.btn:hover { color: var(--gold); background-color: #1D2936; box-shadow: inset 0 0 0 1px var(--gold); }
.btn.primary { background: var(--gold); color: var(--ink); box-shadow: none; }
.btn.primary:hover { background: #FFD97A; color: var(--ink); box-shadow: none; transform: translateY(-1px); }
.btn svg { width: 24px; height: 24px; flex: none; margin-top: -2px; }
.btn svg.yt { width: 34px; height: 24px; margin-top: -2px; }
.soon { font-size: 14px; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; color: var(--ink); background: var(--dim);
  padding: 2px 8px; border-radius: 2px; vertical-align: middle; }

/* ---- League Signal console frames (matching godot/project/scripts/hud.gd) ---------------- */
.panel, .cmdr, .rules li, .follow a, .unit, .map, .card, .big div, .lineup li {
  --cut: 14px;
  --sig-edge: rgba(255, 255, 255, 0.16);
  --sig-bar: rgba(240, 230, 210, 0.78);
  --sig-glow: transparent;
  position: relative;
  border: 0;
  border-radius: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  background:
    linear-gradient(135deg, var(--sig-bar) 0, var(--sig-bar) calc(var(--cut) * 0.7071 + 1.8px), transparent calc(var(--cut) * 0.7071 + 2.3px)),
    linear-gradient(315deg, var(--sig-bar) 0, var(--sig-bar) calc(var(--cut) * 0.7071 + 1.8px), transparent calc(var(--cut) * 0.7071 + 2.3px)),
    linear-gradient(var(--grid-col) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-col) 1px, transparent 1px),
    linear-gradient(180deg, #10161F 0%, #070A0F 100%);
  background-size: 100% 100%, 100% 100%, 14px 14px, 14px 14px, 100% 100%;
  box-shadow: inset 0 0 0 1px var(--sig-edge), inset 0 0 22px var(--sig-glow);
}
.panel::before, .cmdr::before, .rules li::before, .follow a::before, .card::before, .lineup li.call::before {
  content: ""; position: absolute; top: 1px; right: 1px; width: 14px; height: 14px;
  border-top: 2.5px solid var(--sig-bar); border-right: 2.5px solid var(--sig-bar);
  pointer-events: none; z-index: 2;
}
.panel::after, .cmdr::after, .rules li::after, .follow a::after, .card::after, .lineup li.call::after {
  content: ""; position: absolute; bottom: 1px; left: 1px; width: 14px; height: 14px;
  border-bottom: 2.5px solid var(--sig-bar); border-left: 2.5px solid var(--sig-bar);
  pointer-events: none; z-index: 2;
}

/* ---- grids & panels ---------------------------------------------------------------------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid.top { align-items: start; }
.panel { padding: 18px 20px; transition: box-shadow .18s ease; }
.panel:hover { --sig-edge: rgba(240, 230, 210, 0.34); }
.panel h3 { color: var(--text); }
.panel.a { --sig-edge: rgba(63, 169, 245, 0.62); --sig-bar: #A7DBFF; --sig-glow: rgba(63, 169, 245, 0.11); }
.panel.a:hover { --sig-edge: rgba(63, 169, 245, 0.9); }
.panel.b { --sig-edge: rgba(255, 122, 61, 0.62); --sig-bar: #FFC7A8; --sig-glow: rgba(255, 122, 61, 0.11); }
.panel.b:hover { --sig-edge: rgba(255, 122, 61, 0.9); }
.panel.g { --sig-edge: rgba(242, 193, 78, 0.56); --sig-bar: #F2C14E; --sig-glow: rgba(242, 193, 78, 0.09); }
.panel.g:hover { --sig-edge: rgba(242, 193, 78, 0.88); }
.panel p:last-child { margin-bottom: 0; }

/* ---- cast cards (portraits big: MOBILE_RULE) ----------------------------------------------- */
.cast { display: grid; gap: 16px; grid-template-columns: 1fr; }
.cmdr { display: flex; flex-direction: column; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease; }
.cmdr:hover { transform: translateY(-2px); --sig-edge: rgba(240, 230, 210, 0.36); }
.cmdr.trademark { --cut: 16px; --sig-edge: #F2C14E; --sig-bar: #F2C14E; --sig-glow: rgba(242, 193, 78, 0.14);
  box-shadow: inset 0 0 0 2px #F2C14E, inset 0 0 0 6px #0B0E13, inset 0 0 0 7.5px #8A6A1E, inset 0 0 28px rgba(242,193,78,0.14); }
.cmdr.trademark:hover { --sig-edge: #FFD97A; }
.cmdr .frame { background: #0B0E13; border-bottom: 1px solid rgba(255,255,255,0.12); position: relative; overflow: hidden; }
.cmdr .frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .28s ease; }
.cmdr:hover .frame img { transform: scale(1.02); }
.cmdr.trademark .frame { border-bottom: 2px solid var(--gold); margin: 7px 7px 0; }
.cmdr .body { padding: 14px 16px 16px; flex: 1; }
.cmdr .nm { font-size: 34px; font-weight: 700; letter-spacing: 2px; line-height: 1; margin: 0 0 8px; text-transform: uppercase; }
.tag { display: inline-block; font-size: 14px; letter-spacing: 2.5px; font-weight: 700; text-transform: uppercase; padding: 4px 10px;
  border-radius: 3px; background: var(--sheet); color: var(--text); border: 1px solid var(--edge-2); margin: 0 6px 8px 0; }
.tag.new { color: var(--blue-l); border-color: #0B4F7D; }
.tag.old { color: var(--orange-l); border-color: #8A300E; }
.tag.dog { color: var(--gold); border-color: var(--gold-dark); }
.tag.call { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.quote { font-size: 24px; line-height: 1.25; margin: 4px 0 10px; }
.quote::before { content: "\201C"; color: var(--gold); }
.quote::after { content: "\201D"; color: var(--gold); }

/* portrait row (rivalries, lineups): >= 72 px portraits */
.vs { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.vs img { width: 76px; height: 76px; border-radius: 6px; object-fit: cover; border: 2px solid var(--edge-2); flex: none; }
.vs img.A { box-shadow: 0 0 0 2px var(--blue); border-color: #0B4F7D; }
.vs img.B { box-shadow: 0 0 0 2px var(--orange); border-color: #8A300E; }
.vs .v { font-size: 26px; font-weight: 700; color: var(--gold); }
.vs .names { font-size: 20px; font-weight: 700; letter-spacing: 1px; line-height: 1.15; }

/* lineup rows: a portrait in every row (>= 72 px) */
.lineup { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.lineup li { --cut: 10px; display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; padding: 10px; }
.lineup img { width: 84px; height: 84px; object-fit: cover; border-radius: 2px; }
.lineup b { display: block; font-size: 26px; letter-spacing: 1.5px; line-height: 1.05; }
.lineup span { display: block; line-height: 1.3; margin-top: 3px; font-size: 14px; letter-spacing: 2.5px; font-weight: 700; text-transform: uppercase; color: var(--dim); }
.lineup li.call { --sig-edge: #F2C14E; --sig-bar: #F2C14E; --sig-glow: rgba(242,193,78,0.12);
  box-shadow: inset 0 0 0 2px #F2C14E, inset 0 0 0 5px #0B0E13, inset 0 0 0 6.5px #8A6A1E; }

/* ---- steps & numbers --------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; }
.steps .n { font-size: 52px; font-weight: 700; color: var(--gold); line-height: 0.9; text-align: center; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; }
.big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 12px; }
.big div { --cut: 10px; padding: 12px 8px; text-align: center; }
.big b { display: block; font-size: 56px; line-height: 1; color: var(--gold); }
.big span { font-size: 14px; letter-spacing: 2.5px; font-weight: 700; text-transform: uppercase; color: var(--dim); }
.bar { display: flex; height: 52px; overflow: hidden; margin: 8px 0 6px; font-weight: 700; font-size: 17px; letter-spacing: 1px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.bar div { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 6px; line-height: 1.05; }
.bar .pre { flex: 3; background: #0B4F7D; }
.bar .live { flex: 14; background: var(--gold); color: var(--ink); }
.bar .post { flex: 3; background: #8A300E; }

/* ---- lists ------------------------------------------------------------------------------- */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { --cut: 10px; --sig-edge: rgba(242, 193, 78, 0.44); --sig-bar: #F2C14E; --sig-glow: rgba(242, 193, 78, 0.06);
  padding: 14px 18px; }
.rules li b { display: block; font-size: 22px; margin-bottom: 3px; }
.rules li span { font-size: 17px; color: var(--dim); display: block; }

/* ---- feature (game teaser) ---------------------------------------------------------------- */
.feature { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: center; }
.feature img { border: 1px solid rgba(255,255,255,0.18);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }

/* ---- follow ------------------------------------------------------------------------------ */
.follow { display: grid; gap: 12px; grid-template-columns: 1fr; }
.follow a { --cut: 10px; display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text);
  padding: 15px 18px; min-height: 72px; transition: transform .16s ease, box-shadow .16s ease; }
.follow a:hover { --sig-edge: rgba(242, 193, 78, 0.85); --sig-bar: #F2C14E; --sig-glow: rgba(242, 193, 78, 0.1); transform: translateY(-1px); }
.follow a svg { width: 32px; height: 32px; flex: none; fill: var(--gold); color: var(--gold); }
.follow a svg.yt { width: 40px; height: 28px; }
.follow a .t { font-size: 22px; font-weight: 700; line-height: 1.1; }
.follow a .h { font-size: 17px; color: var(--dim); display: block; }
.follow a .soon { margin-left: auto; }

/* ---- units (neuralcommand.net) ---------------------------------------------------------- */
.units { display: grid; gap: 10px; grid-template-columns: 1fr; }
.unit { --cut: 10px; display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; padding: 13px 14px;
  transition: box-shadow .16s ease; }
.unit:hover { --sig-edge: rgba(240, 230, 210, 0.36); }
.unit img { width: 76px; height: auto; }
.unit h3 { font-size: 24px; margin: 0 0 2px; text-transform: uppercase; letter-spacing: 1px; }
.unit p { margin: 0; font-size: 17px; line-height: 1.35; }
.dom { font-size: 14px; letter-spacing: 2.5px; font-weight: 700; color: var(--dim); text-transform: uppercase; margin: 18px 0 8px; }
.dom:first-of-type { margin-top: 4px; }

/* ---- maps ------------------------------------------------------------------------------- */
.maps { display: grid; gap: 14px; grid-template-columns: 1fr; }
.map { --cut: 12px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.map:hover { --sig-edge: rgba(242, 193, 78, 0.65); --sig-bar: #F2C14E; transform: translateY(-2px); }
.map a { display: block; overflow: hidden; }
.map img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .28s ease; }
.map:hover img { transform: scale(1.03); }
.map .body { padding: 12px 16px 16px; }
.map h3 { font-size: 26px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 4px; }
.map p { margin: 0; font-size: 18px; }

/* ---- orders (neuralcommand.net) ---------------------------------------------------------- */
.orders { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; padding: 0; list-style: none; }
.orders li { font-family: var(--mono); font-size: 17px; background: var(--ink); border: 1px solid var(--edge-2); color: #CFE3F5;
  border-radius: 2px; padding: 6px 10px; }
.card { --sig-edge: rgba(63, 169, 245, 0.62); --sig-bar: #A7DBFF; --sig-glow: rgba(63, 169, 245, 0.11); padding: 18px 20px; }
.card .row { margin-top: 10px; }
.card .row:first-child { margin-top: 0; }
.card .k { font-size: 14px; letter-spacing: 3px; color: var(--dim); font-weight: 700; text-transform: uppercase; }
.card .v { font-size: 19px; line-height: 1.3; margin-top: 2px; }
.conf { height: 10px; background: rgba(255,255,255,0.10); border-radius: 5px; margin-top: 6px; overflow: hidden; }
.conf i { display: block; height: 100%; width: 72%; background: var(--gold); }
.note { border: 1px dashed var(--gold-dark); background: rgba(242,193,78,0.06); border-radius: 6px; padding: 10px 14px; font-size: 17px; }
.note b { color: var(--gold); }

/* ---- footer ------------------------------------------------------------------------------ */
footer { border-top: 3px solid var(--gold); background: #080A0E; padding: 22px 0 28px; font-size: 17px; color: var(--dim); }
footer .wrap > * + * { margin-top: 10px; }
footer a { color: var(--text); }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 15px; }
footer .disc { color: var(--text); font-size: 16px; }

/* ---- 404 --------------------------------------------------------------------------------- */
.lost { min-height: calc(100vh - 160px); display: flex; flex-direction: column; justify-content: center; padding: 30px 0; }
.lost .code { font-size: 120px; font-weight: 700; color: var(--gold); line-height: 0.9; }

/* ---- wider screens ----------------------------------------------------------------------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .cast { grid-template-columns: repeat(2, 1fr); }
  .grid.two, .units, .maps, .follow { grid-template-columns: repeat(2, 1fr); }
  .btn { flex: 0 1 auto; }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; --sec: 44px; }
  html { scroll-padding-top: 74px; }
  body { font-size: 20px; }
  h1 { font-size: 84px; }
  h2 { font-size: 50px; }
  .lead { font-size: 26px; }
  .top .wrap { min-height: 66px; gap: 10px; }
  .brand svg { width: 44px; height: 44px; }
  .mmenu { display: none; }
  .nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .nav a { display: inline-flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none;
    font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 12px 11px 10px; white-space: nowrap; border-radius: 4px; transition: background-color .14s ease, color .14s ease; }
  .nav a:hover { background: var(--sheet); color: var(--gold); }
  .nav-cta { margin-left: 4px; padding: 12px 15px 10px; }
  .hero { padding-top: 30px; }
  .hero .split { display: grid; grid-template-columns: 5fr 6fr; gap: 32px; align-items: center; }
  .hero figure { margin: 0; }
  .hero figure img { border: 1px solid var(--edge); border-radius: 6px; }
  .hero figcaption { padding-left: 0; }
  /* five commanders: three across, the last two centred under them (no empty slot) */
  .cast { grid-template-columns: repeat(6, 1fr); }
  .cast .cmdr { grid-column: span 2; }
  .cast .cmdr:nth-child(4) { grid-column: 2 / span 2; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .units { grid-template-columns: repeat(4, 1fr); }
  .lineup { grid-template-columns: repeat(5, 1fr); }
  .lineup li { grid-template-columns: 1fr; text-align: center; }
  .lineup img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .grid.two.wide-split { grid-template-columns: 1fr 1fr; }
  .maps { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; gap: 32px; }
  .follow { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 18px 28px; }
  .rules { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
