/* The mR 2026 theme for the site's own pages (/map/, /builds/, /proxydm/, /live/, /jollyroger/, /help/): the forum
   theme's tokens (D:\mikes-revenge.net\theme\mr2026\css\global.css) and the chrome every page shares, the sticky top
   bar, the Hammer grid with the orange brush selection, buttons, key caps, HUD labels and the footer. Each page links
   it first and keeps only what is its own. Orange is something you can click, amber something that was measured.
   Dark only.

   One source file, a copy per page: each page's deploy uploads it beside the page as mr2026.css?v=<content hash>
   (tools/web/stage_theme.sh), so shipping one page never changes another. Pages link it as ../theme/mr2026.css, which
   the local servers (python -m http.server on web/, the dev bridges) serve from here.

   Two "on" looks, nothing else: a mode you are in (a toolbar camera, a view) is filled orange, the page's own
   .tb.is-on; something you picked (the fighter you watch, a personality, a kit, Live) is .btn-ghost.is-on, an amber
   outline with a faint amber tint. Tabs keep their underline and colour swatches their ring. */
:root{
  color-scheme:dark;
  --void:#0a0a0a; --grid:#161616; --grid-major:#232323;
  --surface:#131311; --panel:#171715; --raised:#1e1e1b;
  --line:#2a2a26; --line-strong:#3b3b35;
  --text:#e9e6dd; --text-soft:#cfcabd; --text-dim:#a39f93; --text-faint:#75726a;
  --orange:#ff8000; --orange-bright:#ff9a2e; --orange-ink:#1c0d00;
  --amber:#ffd040; --amber-bright:#ffdc00; --amber-dim:rgba(255,208,64,.55); --amber-label:#c9a63a;
  --caution:#ff3000; --ok:#83ae56; --ok-text:#a9d27a; --combine:#8eabc4;
  --hover:#2a2a24;                                   /* a button's hover on a dark glass bar */
  --picked:rgba(255,208,64,.06);                     /* the tint under something you picked */
  --hud-bg:rgba(0,0,0,.62); --hud-line:rgba(255,208,64,.28);   /* a HUD readout over the picture */
  --radius:3px; --radius-sm:2px;                     /* 2px on chips and key caps, 3px on the rest */
  --display:"Bowlby One","Arial Black",Impact,sans-serif;
  --body:"Source Sans 3","Segoe UI",Tahoma,Verdana,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--surface);color:var(--text);font:15px/1.5 var(--body)}
a{color:var(--orange);text-decoration:none}
a:hover{color:var(--orange-bright);text-decoration:underline}
:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
h1,h2,h3{margin:0;text-wrap:balance}
button,input,select{font:inherit;color:inherit}
.wrap{max-width:1280px;margin:0 auto;padding-inline:max(20px,env(safe-area-inset-left,0px)) max(20px,env(safe-area-inset-right,0px))}
.num{font-variant-numeric:tabular-nums}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.disp{font-family:var(--display);font-weight:400}
svg.i{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---- the top bar (the forum's own, link for link) ---- */
.topbar{position:sticky;top:0;padding-top:env(safe-area-inset-top,0px);z-index:50;background:var(--void);border-bottom:1px solid var(--line-strong)}
.topbar-in{display:flex;align-items:center;gap:22px;height:58px}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);white-space:nowrap}
.brand:hover{text-decoration:none}
.brand img{height:32px;width:auto;display:block}
.wordmark{font:22px/1 var(--display);color:#e03d2d;letter-spacing:.02em;transform:skewX(-6deg);text-shadow:3px 3px 0 var(--amber)}
.wordmark i{font-style:normal;color:var(--orange);margin-right:8px}
.topnav{display:flex;gap:4px;margin-left:4px}
.topnav a{color:var(--text-dim);font-weight:600;font-size:15px;padding:8px 10px;border-radius:var(--radius);white-space:nowrap}
.topnav a:hover{color:var(--text);text-decoration:none;background:var(--raised)}
.topnav a.is-active{color:var(--orange)}
.hamb{display:none;margin-left:auto;background:none;border:1px solid var(--line-strong);color:var(--text);width:38px;height:36px;border-radius:var(--radius);cursor:pointer;font-size:20px;line-height:1}
/* the links fold into the menu at the same width on every page (the forum's bar needs it at 1024) */
@media (max-width:1024px){
  .topnav{display:none}
  .hamb{display:block}
  .topbar.open .topnav{display:flex;flex-direction:column;position:absolute;left:0;right:0;top:100%;max-height:calc(100dvh - 59px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;background:var(--void);border-bottom:1px solid var(--line-strong);padding:8px 16px 12px;gap:0}
  .topbar.open .topnav a{padding:10px 8px;font-size:16px}
  .topbar-in{gap:12px}
}

/* ---- the Hammer grid, and the brush selection round what it holds ---- */
.live{
  background:
    linear-gradient(90deg,var(--grid-major) 1px,transparent 1px) 0 0/96px 96px,
    linear-gradient(var(--grid-major) 1px,transparent 1px) 0 0/96px 96px,
    linear-gradient(90deg,var(--grid) 1px,transparent 1px) 0 0/16px 16px,
    linear-gradient(var(--grid) 1px,transparent 1px) 0 0/16px 16px,
    var(--void)}
.brush{position:relative;border:1px solid var(--orange);padding:14px}
.hdl{position:absolute;width:7px;height:7px;background:var(--orange);outline:1px solid var(--void)}
.hdl.tl{top:-4px;left:-4px}.hdl.tr{top:-4px;right:-4px}.hdl.bl{bottom:-4px;left:-4px}.hdl.br{bottom:-4px;right:-4px}
.brush-dim{position:absolute;color:var(--orange);font-weight:700;font-size:11px;letter-spacing:.04em;background:var(--void);padding:0 5px;line-height:14px}
.brush-w{top:-8px;left:50%;transform:translateX(-50%)}
.brush-h{right:-20px;top:50%;transform:translate(50%,-50%) rotate(90deg)}
@media (max-width:1024px){.brush-h{display:none}}
@media (max-width:860px){.brush{padding:10px}}

/* ---- the eyebrow: a small uppercase label over a readout ---- */
.hud-label{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--amber-label);line-height:1.2}

/* ---- buttons: orange to act; ghost to choose (an amber outline once picked); quiet for the small print ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;background:var(--orange);color:var(--orange-ink);border:0;border-radius:var(--radius);font-weight:700;padding:8px 16px;cursor:pointer;white-space:nowrap}
.btn:hover{background:var(--orange-bright);color:var(--orange-ink);text-decoration:none}
.btn-big{font-size:17px;min-height:48px;padding:10px 22px}
.btn-small{min-height:32px;padding:4px 12px;font-size:13px}
.btn-ghost{background:none;border:1px solid var(--line-strong);color:var(--text)}
.btn-ghost:hover{background:var(--raised);color:var(--text)}
.btn-ghost.is-on,.btn-ghost[aria-pressed="true"]{border-color:var(--amber-dim);color:var(--amber);background:var(--picked)}
.btn-quiet{background:none;color:var(--text-dim);padding-inline:8px;font-weight:600}
.btn-quiet:hover{background:none;color:var(--caution)}
.btn-quiet.is-sure{color:var(--caution)}
.btn:disabled{opacity:.45;cursor:default}
.btn:disabled:hover{background:var(--orange)}
.btn-ghost:disabled:hover,.btn-quiet:disabled:hover{background:none}

/* ---- key caps: on a button they take its colour, in text they are amber ---- */
.btn kbd{font:600 11px var(--body);border:1px solid currentColor;border-radius:var(--radius-sm);padding:0 4px;opacity:.75}
.keys kbd{font:600 12px var(--body);color:var(--amber);border:1px solid var(--amber-dim);border-radius:var(--radius-sm);padding:0 5px}
.keys{display:grid;grid-template-columns:auto 1fr;gap:7px 14px;font-size:14px;color:var(--text-dim);margin:0}
.keys dt{color:var(--text);font-weight:600;white-space:nowrap}
.keys dd{margin:0}

/* ---- the footer ---- */
.foot{border-top:1px solid var(--line-strong);background:var(--void);color:var(--text-faint);font-size:13px;overflow-anchor:none}
.foot-in{display:flex;flex-wrap:wrap;gap:8px 24px;align-items:center;padding-block:18px max(18px,env(safe-area-inset-bottom,0px))}
.foot nav{display:flex;flex-wrap:wrap;gap:16px;margin-left:auto}
.foot a{color:var(--text-dim)}

.nowebgl{position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;color:var(--text-dim)}
