/* BOLTSTRIKER admin: the game's colours (public/style.css), readable at 1366 x 768 (body text 16 px, controls 40 px+) and on a phone */
:root {
  --ui: "Avenir Next Condensed", "DIN Condensed", "Barlow Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #0c0e11; --panel: #13171d; --panel2: #191e25; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.16);
  --ink: #f3f5f8; --mute: #a9b1bb; --accent: #ffb020; --danger: #ff6a55; --ok: #5fe07a; --info: #6cb6ff; --dark: #17120a;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 16px; line-height: 1.4; }
body { min-height: 100vh; }
a { color: var(--accent); }
.boot { padding: 40px 16px; color: var(--mute); text-align: center; }
h1, h2, h3 { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
h1 { font-size: 22px; } h2 { font-size: 19px; } h3 { font-size: 17px; color: var(--mute); }
button, input, select, textarea { font: inherit; color: inherit; }
button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line2); background: var(--panel2); border-radius: 4px; cursor: pointer; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 15px; white-space: nowrap; }
button:hover { border-color: var(--accent); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary { background: var(--accent); color: var(--dark); border-color: var(--accent); }
button.danger { border-color: rgba(255,106,85,.6); color: #ffb4a8; }
button.danger:hover { background: rgba(255,106,85,.15); }
button.small { min-height: 40px; padding: 0 12px; font-size: 14px; }
button:disabled { opacity: .45; cursor: default; }
input, select, textarea { min-height: 40px; padding: 8px 10px; background: #0f1216; border: 1px solid var(--line2); border-radius: 4px; font-size: 16px; }
textarea { min-height: 80px; width: 100%; resize: vertical; }
label { display: block; color: var(--mute); font-size: 15px; margin: 0 0 4px; }

/* ---------------- login */
.login { max-width: 420px; margin: 8vh auto 0; padding: 28px 24px; background: var(--panel); border-top: 3px solid var(--accent); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.login .brand { margin-bottom: 18px; }
.login .field { margin-bottom: 14px; }
.login input { width: 100%; }
.login button { width: 100%; margin-top: 6px; }
.login .hint { color: var(--mute); font-size: 15px; margin-top: 14px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0 0 10px; padding: 0 2px; color: var(--ink); font-size: 16px; cursor: pointer; }
.check input { width: 26px; height: 26px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; flex: none; }
.login .hint[hidden] { display: none; }
.login .hint { margin: 0 0 10px; }

/* ---------------- shell */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; font-size: 20px; }
.brand b { color: var(--accent); }
.brand .bolt { width: 26px; height: 26px; }
header.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 8px 20px; background: rgba(12,14,17,.96); border-bottom: 1px solid var(--line); }
header.top .who { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 15px; }
nav.tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: var(--bg); }
nav.tabs a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--mute); text-decoration: none; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-bottom: 3px solid transparent; white-space: nowrap; }
nav.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
nav.tabs a:hover { color: var(--ink); }
main { padding: 18px 20px 40px; max-width: 1500px; margin: 0 auto; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.bar .grow { flex: 1; }
.muted { color: var(--mute); }
.ok { color: var(--ok); } .bad { color: var(--danger); } .warn { color: var(--accent); }
.banner { padding: 10px 14px; margin-bottom: 14px; border-left: 4px solid var(--accent); background: rgba(255,176,32,.08); }
.banner.bad { border-left-color: var(--danger); background: rgba(255,106,85,.08); color: var(--ink); }

/* ---------------- panels, tiles */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; min-width: 0; }
.tile .k { color: var(--mute); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.tile .v { font-size: 28px; font-weight: 800; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile .s { color: var(--mute); font-size: 15px; margin-top: 2px; overflow-wrap: anywhere; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; min-width: 0; }
.cols { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.cols > * { min-width: 0; }
.chart svg { width: 100%; height: 170px; display: block; }
.chart .legend { display: flex; gap: 16px; color: var(--mute); font-size: 15px; margin-top: 4px; flex-wrap: wrap; }
.chart .sw { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin-right: 6px; }
.sw.a { background: var(--accent); } .sw.b { background: var(--info); }
svg .grid-line { stroke: rgba(255,255,255,.08); stroke-width: 1; }
svg .axis { fill: var(--mute); font-size: 12px; font-family: var(--ui); }
svg .l1 { fill: none; stroke: var(--accent); stroke-width: 2; }
svg .l2 { fill: none; stroke: var(--info); stroke-width: 2; }
svg .fill1 { fill: rgba(255,176,32,.12); stroke: none; }

/* ---------------- tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { color: var(--mute); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; background: var(--panel2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: rgba(255,255,255,.03); }
td.wrap { white-space: normal; min-width: 220px; overflow-wrap: anywhere; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .acts { display: flex; gap: 6px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: rgba(255,255,255,.08); color: var(--mute); }
.tag.public { color: var(--ok); } .tag.private { color: var(--info); } .tag.practice { color: var(--mute); } .tag.home { color: var(--accent); }
.tag.new { background: rgba(255,176,32,.16); color: var(--accent); } .tag.action { background: rgba(255,106,85,.16); color: #ffb4a8; } .tag.reviewed, .tag.dismissed { color: var(--mute); }
.tag.live { color: var(--ok); } .tag.lobby { color: var(--info); } .tag.ended { color: var(--mute); }
.addr { font-family: var(--mono); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button.on { background: var(--accent); color: var(--dark); border-color: var(--accent); }
.empty { padding: 18px; color: var(--mute); text-align: center; }
pre.log { margin: 0; max-height: 60vh; overflow: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; background: #0a0c0f; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; overflow-wrap: anywhere; }
code, .code { font-family: var(--mono); font-size: 14px; background: #0a0c0f; padding: 2px 6px; border-radius: 3px; overflow-wrap: anywhere; }
pre.cmd { font-family: var(--mono); font-size: 14px; background: #0a0c0f; padding: 10px 12px; border-radius: 4px; overflow-x: auto; margin: 6px 0 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.row .f { display: flex; flex-direction: column; min-width: 0; }
.row .f.grow { flex: 1; min-width: 200px; }
.row input.grow { width: 100%; }

/* ---------------- dialogs, toasts */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border-top: 3px solid var(--accent); padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.dialog.dangerous { border-top-color: var(--danger); }
.dialog p { margin: 0 0 12px; }
.dialog .field { margin-bottom: 12px; } .dialog .field input, .dialog .field select { width: 100%; }
.dialog .btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.dialog .err { color: var(--danger); min-height: 1.4em; margin-top: 6px; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; background: var(--panel2); border: 1px solid var(--line2); border-left: 4px solid var(--ok); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.bad { border-left-color: var(--danger); }

/* ---------------- phones */
@media (max-width: 760px) {
  header.top { padding: 8px 16px; gap: 10px; } header.top .who .name { display: none; }
  nav.tabs { padding: 0 8px; }
  main { padding: 14px 16px 40px; }
  .cols { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile .v { font-size: 22px; }
  .login { margin-top: 4vh; }
  th, td { padding: 8px 10px; }
}

/* the dashboard's game server switch */
.seg { display: inline-flex; gap: 6px; margin-left: 14px; }
.seg button[aria-pressed="true"] { background: var(--accent, #ffb020); color: #111; border-color: var(--accent, #ffb020); }
.seg .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #888; vertical-align: 1px; }
.seg .dot.ok { background: #3ccf6e; } .seg .dot.bad { background: #e5484d; }
/* the SERVER switch in the top bar and the line under the tabs saying which server the panel acts on */
header.top .seg { align-items: center; } header.top .seg .muted { font-size: 12px; letter-spacing: .08em; margin-right: 2px; }
.banner.srv { border-left-color: #3ccf6e; background: rgba(60,207,110,.07); }
.banner.srv.remote { border-left-color: #4aa3ff; background: rgba(74,163,255,.10); }
