/* A field command console: slate panels, brass accents, a phosphor radio. */
:root {
  color-scheme: dark;
  --bg: #0b1013;
  --panel: #171d21;
  --panel-2: #1f272c;
  --edge: #313c43;
  --edge-hi: #46545c;
  --text: #e4e9e2;
  --muted: #8d9a96;
  --brass: #e8b23a;
  --brass-dim: #8a6a22;
  --phosphor: #9fe6c8;
  --warn: #f0a04a;
  --west: #4da3ff;
  --east: #ff6b4a;
  /* Sides 2 and 3 of a match of three or four: with the two above, four colours that are
     told apart with any common colour blindness (client/sides.js holds the same four). */
  --south-west: #f2c230;
  --south-east: #cc79a7;
  font: 14px/1.4 system-ui, "Segoe UI", "Noto Sans Hebrew", "Heebo", "Rubik", "Arial Hebrew", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); overflow: hidden; }
body.side-0 { --mine: var(--west); --theirs: var(--east); }
body.side-1 { --mine: var(--east); --theirs: var(--west); }
body.side-2 { --mine: var(--south-west); --theirs: var(--west); }
body.side-3 { --mine: var(--south-east); --theirs: var(--west); }

main { display: flex; height: 100%; }
#stage { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; }
#map-wrap { flex: 1; position: relative; min-block-size: 0; overflow: hidden; }
#map { display: block; cursor: grab; touch-action: none; }
#map.dragging { cursor: grabbing; }
#map.on-name:not(.dragging) { cursor: pointer; }

.panel {
  background: linear-gradient(var(--panel-2), var(--panel));
  border: 1px solid var(--edge);
  border-block-start-color: var(--edge-hi);
  padding: .55rem .7rem;
}
h1 { margin: 0; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
h2 {
  margin: 0 0 .45rem; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: .5rem;
}
h2::before { content: ""; inline-size: .5rem; block-size: .5rem; background: var(--brass); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); flex: none; }

button {
  font: inherit; color: var(--text); background: #263037; border: 1px solid var(--edge-hi);
  padding: .3rem .7rem; cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
button:hover:not(:disabled) { background: #33404a; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.primary { background: var(--brass); color: #1a1405; border-color: #f6d27a; font-weight: 700; }
button.primary:hover:not(:disabled) { background: #f4c552; }

/* ---- map furniture ---- */
#zoom { position: absolute; inset-block-start: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; }
#zoom button { inline-size: 2rem; block-size: 2rem; padding: 0; font-size: 1.05rem; background: #171d21cc; }
#orders {
  position: absolute; display: flex; flex-direction: column; gap: .4rem; padding: .5rem .6rem;
  background: #10161af2; border: 1px solid var(--brass-dim); transform: translate(-50%, 12px); z-index: 3;
}
#orders[hidden] { display: none; }
#orders strong { font-size: .8rem; color: var(--brass); text-align: center; unicode-bidi: plaintext; }
#orders div { display: flex; gap: .35rem; }

/* ---- radio console ---- */
#radio { block-size: 13.5rem; display: flex; flex-direction: column; border-inline: 0; border-block-end: 0; }
:is(#log, #squad-log, #team-log) {
  flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: .45rem .6rem;
  display: flex; flex-direction: column; gap: .2rem;
  background: #0a100f repeating-linear-gradient(#0000 0 2px, #ffffff05 2px 3px);
  border: 1px solid #22302c; color: var(--phosphor);
  font-size: .88rem; font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
:is(#log, #squad-log, #team-log) li { display: flex; gap: .6rem; align-items: baseline; }
:is(#log, #squad-log, #team-log) time { color: #4f6f64; font-size: .75rem; flex: none; }
:is(#log, #squad-log, #team-log) .who { flex: none; font-weight: 700; min-inline-size: 4.6rem; }
:is(#log, #squad-log, #team-log) .text { unicode-bidi: plaintext; text-align: start; overflow-wrap: anywhere; }
:is(#log, #squad-log, #team-log) .player .who { color: #ffffff; }
:is(#log, #squad-log, #team-log) .operator .who { color: #d2b1ff; }
:is(#log, #squad-log, #team-log) .squad .who { color: var(--mine); }
:is(#log, #squad-log, #team-log) .system { color: #6f8d83; font-style: italic; }
:is(#log, #squad-log, #team-log) .warn { color: var(--warn); }
/* Radio traffic carries a rule down its side; what the page itself notes is smaller and set in. */
:is(#log, #squad-log, #team-log) li.radio { border-inline-start: 2px solid #2f6d5b; padding-inline-start: .45rem; }
:is(#log, #squad-log, #team-log) li.system { font-size: .82rem; padding-inline-start: calc(.45rem + 2px); }
/* A base cue: the operator's voice, but a fixed line the game wrote. */
:is(#log, #squad-log, #team-log) li.cue { border-inline-start-color: #c9a44c; }
:is(#log, #squad-log, #team-log) li.cue .text { color: #ecdca6; }
:is(#log, #squad-log, #team-log) .cue-mark { inline-size: .95em; block-size: .95em; flex: none; align-self: center; color: #e9c46a; }
/* The net's two tabs: the command net, and beside it the squad net, which opens only when asked for. */
#net-tabs { display: flex; gap: .2rem; margin-block-end: .35rem; }
#net-tabs button {
  padding: .1rem .7rem .2rem; clip-path: none; background: none; border: 0; border-block-end: 2px solid transparent;
  font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
#net-tabs button:hover { background: none; color: var(--text); }
#net-tabs button[aria-selected="true"] { color: var(--brass); border-block-end-color: var(--brass); }
#radio[data-net="squad"] #log, #squad-log[hidden] { display: none; }
/* Read, never heard: the squad net is set a shade back from the command net. */
#squad-log { color: #8fb3a6; }
#squad-log li.radio { border-inline-start-color: #2a4a40; }
/* Each net is a pane: a heading and its list. Behind the tabs the heading is not shown
   (the tab is the title); side by side, alone under the map or beside the game it is. */
#radio { position: relative; }
.net-pane { flex: 1; min-block-size: 0; min-inline-size: 0; display: flex; flex-direction: column; }
.net-pane[hidden] { display: none; }
.net-pane > header { display: none; align-items: center; gap: .3rem; margin-block-end: .35rem; min-block-size: 1.45rem; user-select: none; }
.net-pane h2 { margin: 0; }
#radio:is([data-view="split"], [data-view="out"]) .net-pane > header, #net-side .net-pane > header { display: flex; }
#radio:is([data-view="split"], [data-view="out"]) #net-tabs { display: none; }
/* Side by side: one column each, and the radio box under both. */
#radio[data-view="split"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: .5rem; }
#radio[data-view="split"] > :is(#send, #voice-status) { grid-column: 1 / -1; }
#radio[data-view="split"] .net-pane[data-net="squad"] > header { padding-inline-end: 1.8rem; }
/* The two small buttons at the end of the tab row, and the one on a pane's heading. */
#net-tools { position: absolute; inset-block-start: .5rem; inset-inline-end: .7rem; display: flex; gap: .2rem; }
#radio[data-view="out"] #net-tools, #radio[data-view="split"] #net-pop { display: none; }
:is(#net-tools button, .net-move) {
  inline-size: 1.5rem; block-size: 1.3rem; padding: 0; display: grid; place-items: center;
  clip-path: none; background: none; border: 0; color: var(--muted);
}
:is(#net-tools button, .net-move):hover:not(:disabled) { background: none; color: var(--text); }
:is(#net-tools button, .net-move) svg { inline-size: .95rem; block-size: .95rem; fill: currentColor; }
#net-split[aria-pressed="true"] { color: var(--brass); }
.net-move .back, #net-side .net-move .out { display: none; }
#net-side .net-move .back { display: block; }
[dir="rtl"] :is(#net-pop svg, .net-move .out) { transform: scaleX(-1); }
/* A net taken out: a column beside the game, on the side away from the sidebar, as the
   docked examples are. The game moves over to make room. Not shown over the lobby. */
#net-side {
  position: fixed; inset-block: 0; inset-inline-start: 0; inline-size: 17rem; z-index: 9; display: flex;
  padding: .8rem .9rem; background: linear-gradient(#222b31, #151b1f);
  border-block-start: 1px solid var(--edge-hi); border-inline-end: 2px solid var(--brass-dim);
}
#net-side[hidden], #overlay:not([hidden]) ~ #net-side { display: none; }
#net-side .net-move { margin-inline-start: auto; }
body:has(#overlay[hidden]):has(#net-side:not([hidden])) main { margin-inline-start: 17rem; }
/* The column is narrow: who is speaking on one line, what was said under it. */
#net-side :is(#log, #squad-log, #team-log) li.radio { flex-wrap: wrap; row-gap: 0; }
#net-side :is(#log, #squad-log, #team-log) li.radio .text { flex-basis: 100%; }
/* With the examples docked too, the two share the one column: examples above, the net below. */
body:has(#net-side:not([hidden])) #help.docked { inset-block-end: 50vh; }
body:has(#net-side:not([hidden])) #help.docked .card { block-size: 50vh; }
body:has(#help.docked:not([hidden])) #net-side { inset-block-start: 50vh; }
#send { display: flex; gap: .5rem; padding-block-start: .5rem; }
#text {
  flex: 1; min-inline-size: 0; font: inherit; color: var(--text); background: #0a100f;
  border: 1px solid var(--edge-hi); padding: .45rem .6rem;
}
#text:focus { outline: 1px solid var(--brass); }
#ptt { touch-action: none; user-select: none; -webkit-user-select: none; }
#ptt.live { background: var(--warn); color: #0a100f; }
#ptt.busy { opacity: .6; }
#speak.off { color: var(--muted); text-decoration: line-through; }
#voice-status { margin: .35rem 0 0; font-size: .85em; color: #6f8d83; }
#voice-status.warn { color: var(--warn); }

/* ---- sidebar ---- */
#sidebar {
  inline-size: 21.5rem; flex: none; display: flex; flex-direction: column; gap: 3px; padding: 3px;
  background: #0e1316; border-inline-start: 2px solid var(--brass-dim); min-block-size: 0; overflow-y: auto;
}
#sidebar header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
#sidebar header h1 { white-space: nowrap; } /* the buttons wrap, never the name */
#controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
#controls button { font-size: .75rem; padding: .25rem .5rem; }

#treasury { display: grid; grid-template-columns: 1fr auto; gap: .5rem .8rem; align-items: center; }
#gold-box { display: flex; flex-direction: column; }
#gold-box span, dt, .bars span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#gold-box strong { font-size: 1.9rem; line-height: 1.1; color: var(--brass); font-variant-numeric: tabular-nums; }
#gold-box small { color: var(--muted); }
#treasury dl { margin: 0; display: flex; flex-direction: column; gap: .3rem; }
dd { margin: 0; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bars { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.bars label { display: flex; flex-direction: column; gap: .2rem; }
.bar { display: block; block-size: .5rem; background: #0a0e10; border: 1px solid var(--edge); }
.bar b { display: block; block-size: 100%; inline-size: 100%; background: var(--mine); transition: inline-size .3s; }
.bar.enemy b { background: var(--theirs); }

#radar-map { display: block; inline-size: 100%; border: 1px solid var(--edge-hi); cursor: crosshair; }

.panel.grow { flex: 1 0 auto; min-block-size: 6rem; }
#roster { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
#roster li {
  display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; align-items: center;
  padding: .3rem .5rem; background: #12181b; border: 1px solid var(--edge); border-inline-start: 3px solid var(--mine); cursor: pointer;
}
#roster li:hover { background: #1a2227; }
#roster li.selected { border-color: var(--brass); border-inline-start-color: var(--brass); background: #221f14; }
#roster .name { font-weight: 700; }
#roster canvas.unit { inline-size: 30px; block-size: 22px; margin-inline-start: .4rem; vertical-align: middle; } /* the unit's kind, as a picture (focus.js ICON) */
#roster .order { grid-column: 1; color: var(--muted); font-size: .78rem; }
#roster .pips { display: flex; gap: 2px; margin-block: .2rem; }
#roster .pips i { inline-size: .42rem; block-size: .55rem; background: var(--mine); }
#roster .pips i.lost { background: #2a3237; }
#roster .tier { grid-row: 1 / span 3; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .7rem; color: var(--muted); }
#roster .tier button { font-size: .7rem; padding: .15rem .4rem; }
#roster .empty { cursor: default; border-inline-start-color: var(--edge); color: var(--muted); }

#build { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
#build button { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .3rem .2rem .35rem; font-size: .74rem; line-height: 1.2; text-align: center; }
#build canvas { inline-size: 72px; block-size: 48px; }
#build .cost { color: var(--brass); font-weight: 700; font-variant-numeric: tabular-nums; }

#music { display: flex; align-items: center; gap: .5rem; }
#music[hidden] { display: none; }
#mute { inline-size: 2rem; padding: .2rem 0; }
#mute.off { color: var(--muted); text-decoration: line-through; }
#volume { inline-size: 5.5rem; accent-color: var(--brass); }
#track { flex: 1; min-inline-size: 0; font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }

footer.panel { font-size: .78rem; color: var(--muted); }
#hint { margin: .3rem 0 0; }

/* ---- menus ---- */
#overlay {
  position: fixed; inset: 0; z-index: 10; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #1b262ccc, #05080af2);
}
#overlay[hidden] { display: none; }
#overlay .card {
  inline-size: min(50rem, 94vw); padding: 2rem 2.2rem; text-align: center;
  background: linear-gradient(#222b31, #151b1f); border: 1px solid var(--edge-hi); border-block-start: 3px solid var(--brass);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
#overlay h1 { font-size: 2.3rem; letter-spacing: .2em; }
#overlay p { margin: .6rem 0 0; color: var(--muted); }
#overlay-side { color: var(--mine) !important; font-weight: 700; letter-spacing: .06em; }
#overlay .row { display: flex; justify-content: center; gap: .6rem; margin-block-start: 1.4rem; }
#overlay .row button { padding: .55rem 1.3rem; }
#credits { margin-block-start: 1.2rem; font-size: .78rem; color: var(--muted); text-align: start; }
#credits[hidden] { display: none; }
#credits summary { cursor: pointer; }
#credits ul { margin: .4rem 0 0; padding-inline-start: 1.1rem; }
#credits li { unicode-bidi: plaintext; overflow-wrap: anywhere; }

/* Phones have their own layout: mobile.css. */

/* ---- help ---- */
#help { position: fixed; inset: 0; z-index: 11; display: grid; place-items: center; background: #05080ad9; }
#help[hidden] { display: none; }
#help .card {
  inline-size: min(44rem, 94vw); max-block-size: 90vh; overflow: auto; padding: 1.4rem 1.8rem;
  background: linear-gradient(#222b31, #151b1f); border: 1px solid var(--edge-hi); border-block-start: 3px solid var(--brass);
}
#help h1 { font-size: 1.3rem; letter-spacing: .12em; margin: 0; }
#help h2 { margin: 1.1rem 0 .3rem; }
#help p, #help li { color: var(--muted); font-size: .88rem; line-height: 1.5; margin: 0; }
#help ul { margin: 0; padding-inline-start: 1.1rem; }
#help .examples { list-style: none; padding: 0; display: grid; gap: .3rem; }
#help .examples li { display: grid; grid-template-columns: 11rem 1fr; gap: .6rem; align-items: baseline; }
#help code { color: var(--mine); font-size: .9rem; }
#help strong { color: var(--brass); }
#help .row { display: flex; justify-content: flex-end; margin-block-start: 1.2rem; }
footer.panel select { margin-inline-start: .4rem; font: inherit; color: inherit; background: #10161a; border: 1px solid var(--edge-hi); }
footer.panel label { display: block; margin-block-end: .3rem; }
#help .tabs { display: flex; gap: .3rem; margin-block-start: .8rem; border-block-end: 1px solid var(--edge-hi); }
#help .tabs button { padding: .35rem .9rem; border-block-end: 0; opacity: .65; }
#help .tabs button[aria-selected="true"] { opacity: 1; color: var(--brass); border-color: var(--brass); }
#help .examples li { grid-template-columns: 13rem 1fr; }
#help .examples code { cursor: pointer; }
#help .examples code:hover { text-decoration: underline; }
/* The examples kept beside the map: a narrow panel on the side away from the sidebar,
   with no backdrop, so the game under it is played as usual. Not shown over the lobby. */
#help .dock-row { margin-block: .8rem .6rem; }
#help.docked { inset-inline: 0 auto; background: none; place-items: stretch; }
#help.docked .card { inline-size: 17rem; max-block-size: none; block-size: 100vh; padding: .8rem .9rem; border-block-start-width: 1px; border-inline-end: 2px solid var(--brass-dim); opacity: .96; }
#help.docked h1, #help.docked .tabs, #help.docked [data-pane="guide"], #help.docked [data-i18n="help.ex.intro"] { display: none; }
#help.docked .dock-row { margin-block-start: 0; }
#help.docked .examples li { grid-template-columns: 1fr; gap: 0; }
#help.docked .examples li span { font-size: .74rem; }
#help.docked .examples code { font-size: .82rem; }
#help.docked h2 { margin-block-start: .8rem; }
#overlay:not([hidden]) ~ #help.docked { display: none; }
/* The game moves over to make room, so the panel covers none of it. */
body:has(#overlay[hidden]):has(#help.docked:not([hidden])) main { margin-inline-start: 17rem; }
#help.docked .row { position: sticky; inset-block-end: -.8rem; margin: .6rem -.9rem -.8rem; padding: .5rem .9rem; background: #151b1f; border-block-start: 1px solid var(--edge-hi); }

/* ---- purchases on their way ---- */
#roster li.deploying { cursor: default; border-inline-start-color: var(--brass); border-style: dashed; border-inline-start-style: solid; }
#roster li.deploying .name { color: var(--muted); }
#roster .deploy-bar { grid-column: 1; block-size: .3rem; margin-block: .3rem .2rem; background: #2a3237; overflow: hidden; }
#roster .deploy-bar b { display: block; block-size: 100%; inline-size: 0; background: var(--brass); transition: inline-size .12s linear; }
#build button { position: relative; overflow: hidden; }
#build button > * { position: relative; }
#build .fill { position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 0; background: linear-gradient(#c9a44c22, #c9a44c55); border-block-start: 2px solid var(--brass); transition: block-size .12s linear; pointer-events: none; }
#build button:not(.deploying) .fill { border-block-start-width: 0; }
#build .left { position: absolute; inset-block-start: .2rem; inset-inline-start: .3rem; font-size: .8rem; font-weight: 700; color: var(--brass); font-variant-numeric: tabular-nums; text-shadow: 0 0 4px #000; }
#build .count { position: absolute; inset-block-start: .2rem; inset-inline-end: .3rem; min-inline-size: 1.1rem; padding: 0 .2rem; font-size: .7rem; font-weight: 700; line-height: 1.1rem; color: #0a100f; background: var(--brass); border-radius: .55rem; }
#build .count[hidden] { display: none; }
#build button.deploying:disabled, #build button.requested:disabled, #structures button.requested:disabled { opacity: 1; }
#build button.requested, #structures button.requested { animation: requested 1.1s ease-in-out infinite; }
@keyframes requested { 50% { border-color: var(--brass); box-shadow: inset 0 0 0 1px #c9a44c88, inset 0 0 14px #c9a44c33; } }
@media (prefers-reduced-motion: reduce) { #build button.requested, #structures button.requested { animation: none; border-color: var(--brass); } }

/* The result screen after a headquarters has fallen comes up slowly over the burning ruin. */
#overlay.after-finale { animation: overlay-in 1.6s ease-out; background: radial-gradient(ellipse at 50% 40%, #1b262c99, #05080ae6); }
@keyframes overlay-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #overlay.after-finale { animation: none; } }
/* ---- who thinks for the squads (client/brains) ---- */
#brains { inline-size: min(34rem, 94vw); max-block-size: 90vh; padding: 1.4rem 1.8rem; color: inherit; background: linear-gradient(#222b31, #151b1f); border: 1px solid var(--edge-hi); border-block-start: 3px solid var(--brass); }
#brains::backdrop { background: #05080ad9; }
#brains h1 { font-size: 1.3rem; letter-spacing: .12em; margin: 0; }
#brains h2 { margin: 1.1rem 0 .3rem; }
#brains p { color: var(--muted); font-size: .88rem; line-height: 1.5; margin: .5rem 0 0; }
#brains #brains-status { color: var(--mine); font-weight: 700; }
#brains fieldset { margin: 1rem 0; padding: .6rem .9rem .9rem; border: 1px solid var(--edge-hi); }
#brains legend { padding: 0 .4rem; color: var(--brass); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
#brains label { display: grid; gap: .2rem; margin-block-start: .6rem; font-size: .82rem; color: var(--muted); }
#brains label.check { display: block; }
#brains select, #brains input[type="password"] { font: inherit; color: inherit; background: #10161a; border: 1px solid var(--edge-hi); padding: .35rem .5rem; }
#brains .row { display: flex; gap: .5rem; justify-content: flex-end; margin-block-start: .8rem; }
#brains .warn { color: var(--warn); }
/* The key inputs when they sit in the lobby. */
#lobby-keys { margin-block: .5rem; text-align: start; font-size: .9rem; }
#lobby-keys summary { cursor: pointer; color: var(--brass); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
#lobby-keys fieldset { margin: .6rem 0 0; padding: .5rem .8rem .7rem; display: block; }
#lobby-keys legend { color: var(--brass); }
#lobby-keys p { margin: .4rem 0 0; font-size: .8rem; line-height: 1.45; text-align: start; }
#lobby-keys label { display: grid; gap: .2rem; margin-block-start: .5rem; font-size: .82rem; color: var(--muted); }
#lobby-keys select, #lobby-keys input[type="password"] { font: inherit; color: inherit; background: #10161a; border: 1px solid var(--edge-hi); padding: .35rem .5rem; min-inline-size: 0; }
#lobby-keys .row { justify-content: flex-end; margin-block-start: .6rem; position: static; background: none; padding: 0; margin-inline: 0; }
#lobby-keys .row button { padding: .35rem .9rem; flex: none; }
#lobby-keys .warn { color: var(--warn); }
#brains-open.live { color: var(--brass); border-color: var(--brass); }
/* ---- lobby ---- */
#overlay .card { max-block-size: 94vh; overflow: auto; }
#overlay form, #lobby-room { margin-block-start: 1rem; text-align: start; font-size: .9rem; }
#overlay fieldset { border: 1px solid var(--edge-hi); margin: 0 0 .6rem; padding: .4rem .7rem .5rem; display: grid; gap: .25rem; }
#overlay legend { padding: 0 .3rem; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
#overlay form label { display: block; cursor: pointer; }
#overlay form select, #overlay input[type="text"] { font: inherit; color: inherit; background: #10161a; border: 1px solid var(--edge-hi); padding: .25rem .4rem; }
#overlay form select { margin-inline-start: .4rem; }
#lobby-watch { margin-block-start: .4rem; color: var(--muted); }
#lobby-level-about { display: block; flex-basis: 100%; margin-block: .2rem .5rem; color: var(--muted); font-size: .78rem; }
#lobby-join { display: flex; align-items: end; gap: .5rem; padding-block-start: .9rem; border-block-start: 1px solid var(--edge-hi); }
#lobby-join label { flex: 1; color: var(--muted); }
#lobby-join-code { display: block; inline-size: 100%; margin-block-start: .2rem; text-transform: uppercase; letter-spacing: .3em; font-weight: 700; }
#lobby-code { font-size: 1.7rem; letter-spacing: .3em; color: var(--brass); }
#lobby-share { display: flex; gap: .4rem; }
#lobby-link { flex: 1; min-inline-size: 0; }
#lobby-seats { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .3rem; }
#lobby-seats li { display: flex; gap: .5rem; align-items: baseline; padding: .4rem .6rem; background: #10161a; border: 1px solid var(--edge-hi); border-inline-start: 3px solid var(--edge-hi); }
#lobby-seats li.mine { border-inline-start-color: var(--brass); }
#lobby-seats li.ready .status { color: var(--mine); }
#lobby-seats .who { color: var(--brass); font-size: .78rem; }
#lobby-seats .status { margin-inline-start: auto; color: var(--muted); }
#lobby-note { font-size: .74rem; line-height: 1.45; }
/* This browser's commander: the name, its numbers, and the code that brings it elsewhere. */
#commander { margin-block-start: 1rem; padding: .6rem .7rem; text-align: start; font-size: .9rem; background: #10161a; border: 1px solid var(--edge-hi); border-inline-start: 3px solid var(--brass); }
#overlay #commander form { margin: 0; }
#commander .pair { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: .35rem 0; }
#commander .pair input { flex: 1; min-inline-size: 8rem; font: inherit; color: inherit; background: #0b1013; border: 1px solid var(--edge-hi); padding: .25rem .4rem; }
#commander small, #commander-code p { display: block; margin-block: .4rem 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
#commander-recover { margin-block-start: .5rem; color: var(--muted); }
#commander-recover summary { cursor: pointer; }
#commander-known > p { margin: 0; }
#commander-is { color: var(--brass); font-size: 1.05rem; }
#commander-numbers { color: var(--muted); font-variant-numeric: tabular-nums; }
#commander-code-text { display: block; margin-block: .4rem; padding: .4rem .5rem; background: #0b1013; border: 1px dashed var(--brass); font-family: ui-monospace, monospace; font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; user-select: all; }
#commander-note { margin-block: .5rem 0; color: var(--warn); font-weight: 700; }
#commander-note.fine { color: var(--muted); font-weight: 400; }
#lobby-seats .name { font-weight: 700; }
/* What the finished match was worth, on the result screen. */
#earned { margin-block: .8rem 0; padding: .6rem .7rem; text-align: start; font-size: .9rem; background: #10161a; border: 1px solid var(--edge-hi); border-inline-start: 3px solid var(--brass); }
#earned p { margin: 0; }
#earned p + p { margin-block-start: .3rem; }
#earned-points { color: var(--brass); font-size: 1.25rem; font-weight: 700; }
#earned-rank { font-weight: 700; font-variant-numeric: tabular-nums; }
#earned-tally, #earned-why { color: var(--muted); font-size: .82rem; line-height: 1.45; }
/* The score table, under the live matches. Numbers stand in columns; a name may be long. */
#scores { margin-block-start: 1.1rem; padding-block-start: .9rem; border-block-start: 1px solid var(--edge-hi); text-align: start; font-size: .9rem; }
#scores h2 { margin: 0; }
#scores-none { font-size: .85rem; }
#scores-box { max-block-size: 16rem; overflow: auto; margin-block-start: .5rem; }
#scores-table { inline-size: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
#scores-table th { position: sticky; inset-block-start: 0; background: #151b1f; color: var(--muted); font-size: .72rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
#scores-table th, #scores-table td { padding: .3rem .4rem; text-align: end; border-block-end: 1px solid var(--edge-hi); }
#scores-table :is(th, td):nth-child(2) { text-align: start; inline-size: 100%; overflow-wrap: anywhere; }
#scores-table td:nth-child(2) { font-weight: 700; }
#scores-table td:nth-child(3) { color: var(--brass); }
#scores-table tr.mine td { background: #1a2227; }
#scores-me td { border-block-start: 2px solid var(--brass); border-block-end: 0; }
/* The live matches, under the lobby: one row each, its Watch button at the row's end. */
#live { margin-block-start: 1.1rem; padding-block-start: .9rem; border-block-start: 1px solid var(--edge-hi); text-align: start; font-size: .9rem; }
#live h2 { margin: 0; }
#live-none { font-size: .85rem; }
#live-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; max-block-size: 15rem; overflow: auto; }
#live-list:empty { display: none; }
#live-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .7rem; padding: .4rem .6rem; background: #10161a; border: 1px solid var(--edge-hi); border-inline-start: 3px solid var(--brass); }
#live-list .kind, #live-list .now, #live-list .watching { color: var(--muted); font-size: .82rem; }
#live-list .score { font-weight: 700; }
#live-list .score bdi, #live-list .left { color: var(--brass); font-variant-numeric: tabular-nums; }
#live-list .now { margin-inline-end: -.4rem; }
#live-list .go {
  margin-inline-start: auto; padding: .3rem .9rem; color: #1a1405; background: var(--brass); border: 1px solid #f6d27a; font-weight: 700; text-decoration: none;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
#live-list .go:hover { background: #f4c552; }
#lobby-error { color: var(--warn) !important; font-weight: 700; }
#overlay [hidden] { display: none !important; }
#lobby-note code { white-space: nowrap; unicode-bidi: isolate; direction: ltr; color: var(--brass); }
#overlay select { max-inline-size: 100%; min-inline-size: 0; text-overflow: ellipsis; }
#lobby-host { border-color: var(--brass); }
#lobby-host legend { color: var(--brass); }
#lobby-host p { margin: 0 0 .5rem; font-size: .8rem; text-align: start; }
#lobby-host input { inline-size: 100%; padding: .5rem .6rem; font: inherit; color: inherit; background: #10161a; border: 1px solid var(--brass); }
#controls button.warn { color: #0a100f; background: var(--warn); border-color: var(--warn); }

/* ---- who has the initiative, upgrades on their way, the match's pace ---- */
#command { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 0 .45rem; font-size: .8rem; color: var(--muted); }
#command[hidden] { display: none; }
#command.fight #command-mode { color: var(--brass); font-weight: 700; }
#command button { font-size: .72rem; padding: .22rem .55rem; white-space: nowrap; }
#roster .tier .rank { text-align: center; }
#roster .tier button.requested { border-color: var(--brass); animation: asked 0.9s ease-in-out infinite alternate; }
#roster .tier .asked { color: var(--brass); }
@keyframes asked { from { box-shadow: 0 0 0 0 #c9a44c00; } to { box-shadow: 0 0 0 3px #c9a44c77; } }
#roster li.promoted { border-color: var(--brass); background: #2a2412; }
#roster li.promoted .rank { color: var(--brass); font-weight: 700; }
#pace { color: var(--brass); font-weight: 700; font-size: .8em; }
#lobby-pace { margin: .2rem 0 .4rem; font-size: .85rem; }
#lobby-listed { margin: .2rem 0 .4rem; font-size: .85rem; color: var(--warn); }
@media (prefers-reduced-motion: reduce) { #roster .tier button.requested { animation: none; box-shadow: 0 0 0 2px #c9a44c77; } }
#lobby-speed-about { display: block; flex-basis: 100%; margin-block: .2rem .5rem; color: var(--muted); font-size: .78rem; }
@media (max-width: 700px), (max-height: 500px) { #command button { min-block-size: 40px; padding-inline: .8rem; } }

/* ---- bases: the Structures half of the build panel, and what has been built ---- */
#build button.locked { opacity: .55; }
#build .needs { font-size: .62rem; line-height: 1.15; color: var(--warn); }
#structures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
#structures button { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .25rem .1rem .3rem; font-size: .66rem; line-height: 1.15; text-align: center; }
#structures button > * { position: relative; }
#structures canvas { inline-size: 60px; block-size: 40px; }
#structures .cost { color: var(--brass); font-weight: 700; font-variant-numeric: tabular-nums; }
#structures .why { font-size: .6rem; line-height: 1.15; color: var(--muted); min-block-size: 2.3em; max-block-size: 2.3em; overflow: hidden; }
#structures button.needs .why, #structures button.busy .why, #structures button.full .why { color: var(--warn); }
#structures button.rising:disabled { opacity: 1; }
#structures button.rising .why { color: var(--brass); font-weight: 700; }
#structures .fill { position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 0; background: linear-gradient(#c9a44c22, #c9a44c55); border-block-start: 2px solid var(--brass); transition: block-size .12s linear; pointer-events: none; }
#structures button:not(.rising) .fill { border-block-start-width: 0; }
#structures .count { position: absolute; inset-block-start: .2rem; inset-inline-end: .3rem; min-inline-size: 1.1rem; padding: 0 .2rem; font-size: .7rem; font-weight: 700; line-height: 1.1rem; color: #0a100f; background: var(--brass); border-radius: .55rem; }
#structures .count[hidden] { display: none; }
#structure-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: 2px; font-size: .74rem; }
#structure-list li { display: grid; grid-template-columns: 1fr 4rem auto; gap: .4rem; align-items: center; padding: .15rem .35rem; background: #141b1f; border-inline-start: 2px solid var(--mine); }
#structure-list li.rising { border-inline-start-color: var(--brass); }
#structure-list .bar { block-size: .3rem; background: #2a3237; overflow: hidden; }
#structure-list .bar b { display: block; block-size: 100%; background: #63d68a; transition: inline-size .12s linear; }
#structure-list .bar b.hurt { background: #f0c04a; }
#structure-list .bar b.bad { background: #ff5a5a; }
#structure-list li.rising .bar b { background: var(--brass); }
#structure-list .order { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- gold haulers ---- */
#haulers-title { margin-block-start: .7rem; }
#haulers { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
#haulers li { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center; padding: .25rem .5rem; font-size: .78rem; background: #151b1f; border: 1px solid var(--edge); border-inline-start: 3px solid #e6b84a; }
#haulers li[data-hauler] { cursor: pointer; } /* a press brings the view to it */
#haulers li[data-hauler]:hover { background: #1a2227; }
#haulers li.fleeing { border-inline-start-color: var(--warn); }
#haulers .what { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#haulers .load { inline-size: 3.2rem; block-size: 5px; background: #0a0f11; border: 1px solid var(--edge); }
#haulers .load b { display: block; block-size: 100%; background: #e6b84a; }
#haulers li.empty { display: block; color: var(--muted); border-inline-start-color: var(--edge); }

/* ---- the build panel's two tabs ---- */
#build-tabs { display: flex; gap: .3rem; margin-block-end: .45rem; border-block-end: 1px solid var(--edge-hi); }
#build-tabs button { flex: 1; padding: .3rem .4rem; border-block-end: 0; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
#build-tabs button[aria-selected="true"] { opacity: 1; color: var(--brass); border-color: var(--brass); }
#build-tabs .badge { display: inline-block; min-inline-size: 1.1rem; padding: 0 .25rem; font-size: .68rem; line-height: 1.1rem; color: #0a100f; background: var(--brass); border-radius: .55rem; }
#build-tabs svg { inline-size: 1.25rem; block-size: 1.25rem; vertical-align: middle; fill: currentColor; }
#build-tabs .badge[hidden] { display: none; }
[data-build-pane][hidden] { display: none; }
#structure-list { max-block-size: 7.5rem; overflow-y: auto; }

/* The sidebar is one column that must fit a laptop screen: the squad list gives way and
   scrolls inside itself, so the build panel under it is never pushed off the page. */
@media (min-width: 701px) and (min-height: 501px) {
  .panel.grow { flex: 1 1 8rem; min-block-size: 8rem; overflow-y: auto; }
  #structures canvas { inline-size: 52px; block-size: 34px; }
  #structures .why { inline-size: 100%; min-block-size: 1.2em; max-block-size: 1.2em; white-space: nowrap; text-overflow: ellipsis; }
  #structures button { padding-block: .2rem; }
  #build { grid-template-columns: repeat(4, 1fr); gap: 3px; }
  #build button { font-size: .66rem; padding: .2rem .1rem .25rem; }
  #build canvas { inline-size: 58px; block-size: 39px; }
  #build .needs { font-size: .58rem; }
}

/* ---- lobby: maps, gold, and seats coloured by state ---- */
#lobby-map-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
#lobby-units-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-block-start: .4rem; }
#lobby-units-row small { color: var(--muted); font-size: .78rem; }
.stepper { display: inline-flex; align-items: center; gap: .3rem; }
.stepper button { inline-size: 2rem; block-size: 1.8rem; padding: 0; font-size: .7rem; line-height: 1; }
.stepper output { min-inline-size: 2.2rem; text-align: center; font-weight: 700; color: var(--brass); font-variant-numeric: tabular-nums; }
#lobby-map-cards label { display: grid; gap: .25rem; padding: .35rem; background: #10161a; border: 1px solid var(--edge-hi); cursor: pointer; text-align: center; font-size: .8rem; }
#lobby-map-cards label:has(input:checked) { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
#lobby-map-cards input { position: absolute; opacity: 0; pointer-events: none; }
#lobby-map-cards label:has(input:focus-visible) { outline: 2px solid var(--mine); }
#lobby-map-cards canvas { inline-size: 100%; block-size: auto; aspect-ratio: 8 / 5; image-rendering: pixelated; border: 1px solid #0b0f10; }
#lobby-map-cards strong { display: block; color: var(--brass); }
#lobby-map-cards small { display: block; color: var(--muted); font-size: .7rem; }
#lobby-gold-other { inline-size: 6.5rem; margin-inline-start: .4rem; padding: .25rem .4rem; font: inherit; color: inherit; background: #10161a; border: 1px solid var(--edge-hi); }
#lobby-gold-other[hidden] { display: none; }
#lobby-match { display: flex; gap: .7rem; align-items: center; margin-block-start: .7rem; }
#lobby-match canvas { inline-size: 7.5rem; block-size: auto; image-rendering: pixelated; border: 1px solid #0b0f10; flex: none; }
#lobby-options { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
#lobby-seats li.empty { border-inline-start-color: #6b7479; border-style: dashed; }
#lobby-seats li.empty .status { color: #8b959b; }
#lobby-seats li.taken { border-inline-start-color: #f0c04a; }
#lobby-seats li.taken .status { color: #f0c04a; }
#lobby-seats li.ready { border-inline-start-color: #63d68a; background: #11201a; }
#lobby-seats li.ready .status { color: #63d68a; font-weight: 700; }
#lobby-seats li.offline { border-inline-start-color: #ff5a5a; }
#lobby-seats li.offline .status { color: #ff5a5a; }
#lobby-seats li.bot { border-inline-start-color: #8b959b; }
#lobby-seats .status::before { content: "● "; }
#orders button[hidden] { display: none; }
#lobby-more { margin-block: .5rem; text-align: start; }
#lobby-more summary { cursor: pointer; color: var(--brass); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
#lobby-more summary small { color: var(--muted); text-transform: none; letter-spacing: 0; }
#lobby-more[open] summary { margin-block-end: .4rem; }
#lobby-more > label, #lobby-more > div { margin-block: .45rem; }
#lobby-more small:not(#lobby-more-now) { display: block; flex-basis: 100%; color: var(--muted); font-size: .78rem; }
/* The squad list keeps room for four squads and scrolls in itself; the build panel never squeezes it out. */
.panel.grow { flex: 1 1 13rem; min-block-size: 13rem; overflow-y: auto; }
/* Before the script has arrived the start screen has no words yet: a turning ring says the
   page is alive, and the empty buttons stay out of sight. */
#overlay.booting .card > * { visibility: hidden; }
#overlay.booting .card { position: relative; min-block-size: 9rem; }
#overlay.booting .card::after {
  content: ""; position: absolute; inset: 0; margin: auto; inline-size: 2.4rem; block-size: 2.4rem;
  border: 3px solid var(--edge-hi); border-block-start-color: var(--brass); border-radius: 50%;
  animation: booting 0.9s linear infinite;
}
@keyframes booting { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #overlay.booting .card::after { animation: none; } }
#lobby-voice { margin: .5rem 0 0; font-size: .78rem; color: var(--muted); }
/* A sidebar that fits a laptop screen: the agents strip shows four rows and scrolls, so a
   full roster of agents does not push the build panel off the page. */
@media (min-width: 701px) and (min-height: 501px) {
  .panel.grow { flex: 1 1 10rem; min-block-size: 10rem; }
}
#orders-about { display: block; max-inline-size: 17rem; font-size: .7rem; line-height: 1.35; color: var(--muted); text-align: center; }

/* ---- placing a structure, picking a rally point ---- */
#placer {
  position: absolute; inset-block-end: .9rem; inset-inline: 0; margin-inline: auto; inline-size: max-content; max-inline-size: 94%;
  display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .5rem .8rem .6rem;
  background: #10161af2; border: 1px solid var(--brass-dim); z-index: 3; text-align: center;
}
#placer[hidden] { display: none; }
#placer strong { color: var(--brass); font-size: .85rem; }
#placer-why { font-size: .82rem; color: #8fe0a6; unicode-bidi: plaintext; }
#placer-why.bad { color: #ff8a78; }
#placer small { color: var(--muted); font-size: .72rem; }
#placer div { display: flex; gap: .5rem; }
#placer button { min-block-size: 2.5rem; min-inline-size: 6rem; }
#placer button[hidden] { display: none; }
#rally { margin: 0 0 .4rem; font-size: .76rem; color: var(--muted); display: flex; gap: .35rem; align-items: baseline; flex-wrap: wrap; }
#rally strong { color: var(--ink, #e9ede6); font-weight: 600; }
#rally button { margin-inline-start: auto; font-size: .72rem; padding: .1rem .5rem; }
#roster li.deploying .cancel { flex: none; inline-size: 1.6rem; block-size: 1.6rem; padding: 0; line-height: 1; font-size: 1rem; }
/* ---- power, the radar and our own structures ---- */
#power { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto auto 1fr auto; align-items: center; gap: .4rem; font-size: .78rem; }
#power[hidden], #radar-off[hidden] { display: none; }
#power .icon { display: inline-flex; }
#power .label { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#power .figures { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brass); }
#power .bar { display: block; block-size: .4rem; background: #0b0f10; border: 1px solid var(--edge-hi); }
#power .bar b { display: block; block-size: 100%; background: var(--brass); transition: inline-size .3s; }
#power .state { color: var(--muted); }
#power.low .figures, #power.low .state { color: var(--warn); }
#power.low .bar b { background: var(--warn); }
#power.low .state { font-weight: 700; animation: requested 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #power.low .state { animation: none; } }
#radar-box { position: relative; }
#radar-off { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: .6rem; text-align: center; font-size: .8rem; color: var(--muted); pointer-events: none; unicode-bidi: plaintext; }
#structures .power { display: inline-flex; align-items: center; gap: .1rem; color: var(--muted); font-variant-numeric: tabular-nums; }
#structures .power.gives { color: var(--mine); }
#structures .power.short { color: var(--warn); font-weight: 700; }
#orders div { flex-wrap: wrap; justify-content: center; max-inline-size: 21rem; }
#orders button { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
#orders small { font-size: .7rem; color: var(--muted); text-align: center; }
#orders small:empty { display: none; }
#orders .gold { color: var(--brass); font-variant-numeric: tabular-nums; }
#orders .gold:empty, #orders .icon:empty { display: none; }
#orders-about[hidden] { display: none; }
#placer-warn { font-size: .78rem; color: var(--warn); }
#placer-warn[hidden] { display: none; }
/* Heroes, earned ranks (heroes.js) */
#roster li.hero { border-inline-start-color: #e6edf2; }
#roster li.hero .portrait { float: inline-start; inline-size: 40px; block-size: 40px; margin-inline-end: .45rem; border: 1px solid #3a464d; border-radius: 3px; object-fit: cover; background: #10161a; }
#roster .hero-health { display: block; clear: both; block-size: 5px; margin-block-start: .3rem; background: #2a3237; border-radius: 2px; overflow: hidden; }
#roster .hero-health i { display: block; block-size: 100%; background: #63d68a; }
#roster .hero-health.low i { background: #ff5a5a; }
#roster .hero-note { display: block; color: var(--muted); font-size: .72rem; }
#roster .earned { display: inline-flex; vertical-align: middle; margin-inline-start: .3rem; }
/* A unit's button, and beside it the cancel for the last one of it in a line. */
#build .unit { position: relative; display: grid; }
#build .unit .cancel { position: absolute; inset-block-end: .2rem; inset-inline-start: .2rem; inline-size: 1.5rem; block-size: 1.5rem; min-block-size: 0; padding: 0; display: grid; place-items: center; font-size: 1rem; line-height: 1; color: var(--warn); background: #10161a; border-color: var(--warn); overflow: visible; }
#build .unit .cancel[hidden] { display: none; }
@media (pointer: coarse) { #build .unit .cancel { inline-size: 1.9rem; block-size: 1.9rem; font-size: 1.1rem; } }

/* ---- a sidebar that fits the screen ----
   Sections fold under their titles; the squads always keep room for three rows; the build
   panel scrolls inside itself; the mini map is capped, and is one line while there is no
   radar to show. */
[data-fold] { cursor: pointer; user-select: none; display: flex; align-items: center; gap: .35rem; }
[data-fold]::after {
  content: ""; margin-inline-start: auto; inline-size: .42rem; block-size: .42rem; flex: none;
  border-inline-end: 2px solid var(--muted); border-block-end: 2px solid var(--muted); transform: translateY(-25%) rotate(45deg); transition: transform .15s;
}
.folded > [data-fold]::after { transform: rotate(-45deg); }
[dir="rtl"] .folded > [data-fold]::after { transform: rotate(135deg); }
.folded > [data-fold] { margin-block-end: 0; }
.folded > :not([data-fold]) { display: none !important; }
#radar-box.off #radar-map { display: none; }
#radar-box.off #radar-off { position: static; padding: .15rem 0; text-align: start; display: block; }
#radar-map { margin-inline: auto; }
@media (min-width: 701px) and (min-height: 501px) {
  #sidebar > header.panel { padding-block: .3rem; }
  #sidebar > header.panel h1 { font-size: .95rem; }
  #controls { flex-wrap: nowrap; gap: .2rem; }
  #controls button { padding: .2rem .4rem; font-size: .7rem; }
  #treasury { gap: .3rem .8rem; padding-block: .45rem; }
  #gold-box strong { font-size: 1.6rem; }
  #radar-map { max-block-size: 8.5rem; }
  .panel.grow { flex: 1 1 12.5rem; min-block-size: 12.5rem; overflow-y: auto; }
}
/* The structure a base usually builds next (the opening): a brass corner, nothing louder. */
#structures button.next { border-color: var(--brass); }
#structures button.next::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; border: .4rem solid transparent; border-block-start-color: var(--brass); border-inline-start-color: var(--brass); }
/* ---- settings (the gear) ---- */
#settings-open { font-size: 1rem; line-height: 1; padding: .2rem .45rem; }
#settings { inline-size: min(26rem, 94vw); max-block-size: 90vh; padding: 1.4rem 1.8rem; color: inherit; background: linear-gradient(#222b31, #151b1f); border: 1px solid var(--edge-hi); border-block-start: 3px solid var(--brass); }
#settings::backdrop { background: #05080ad9; }
#settings h1 { font-size: 1.3rem; letter-spacing: .12em; margin: 0; }
#settings h2 { margin: 1.1rem 0 .4rem; }
#settings label { display: flex; align-items: center; gap: .5rem; min-block-size: 2.2rem; font-size: .9rem; }
#settings .fine { margin: .1rem 0 .5rem; font-size: .78rem; line-height: 1.35; color: var(--muted); }
#settings select { font: inherit; color: inherit; background: #10161a; border: 1px solid var(--edge-hi); padding: .25rem .4rem; }
#settings #volume { flex: 1; }
#settings .row { display: flex; justify-content: flex-end; margin-block-start: 1.2rem; }

/* ---- build cards: large enough to see the building and read its name ---- */
#structures { grid-template-columns: repeat(3, 1fr); gap: 5px; }
#structures button { font-size: .8rem; padding: .35rem .2rem .4rem; gap: .15rem; }
#structures canvas { inline-size: 84px; block-size: 56px; }
#structures .why { font-size: .68rem; }
#build { gap: 5px; }
#build button { font-size: .8rem; }

/* ---- the agents' lamps in the header: one dot each, the full view is behind "AI" ---- */
#sidebar header #monitor-strip { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-inline-start: auto; }
#sidebar header #monitor-strip[hidden] { display: none; }
#sidebar header #monitor-strip .agent { display: block; padding: .1rem; line-height: 0; }
#sidebar header #monitor-strip .agent > :not(.dot) { display: none; }
#placer-run { font-size: .78rem; color: var(--brass); }
#placer-run[hidden] { display: none; }

/* ---- the build bar under the map (desktop) ----
   Tabs at the start, one row of cards beside them, scrolling sideways when there are many.
   Both tabs have the same fixed height and the same card, so switching moves nothing. */
#build-panel.under-map {
  --card-w: 6.8rem; --card-h: 9.5rem;
  flex: none; display: flex; align-items: stretch; gap: .5rem; padding: .35rem .5rem;
  block-size: calc(var(--card-h) + 1.3rem); border-inline: 0; border-block-end: 0; overflow: hidden;
}
#build-panel.under-map #build-tabs { flex: none; flex-direction: column; justify-content: center; gap: .3rem; inline-size: 4.5rem; margin: 0; border: 0; }
#build-panel.under-map #build-tabs button { flex: none; padding: .45rem .4rem; border: 1px solid var(--edge-hi); font-size: .72rem; }
#build-panel.under-map #build-tabs button[aria-selected="true"] { border-color: var(--brass); }
#build-panel.under-map [data-build-pane] { flex: 1; min-inline-size: 0; display: flex; align-items: stretch; gap: .5rem; }
#build-panel.under-map [data-build-pane][hidden] { display: none; }
#build-panel.under-map #structures, #build-panel.under-map #build {
  flex: 1; min-inline-size: 0; display: flex; gap: 5px; overflow-x: auto; overflow-y: hidden; padding-block-end: .25rem; scrollbar-width: thin;
}
#build-panel.under-map #structures > button, #build-panel.under-map #build > .unit { flex: 0 0 var(--card-w); inline-size: var(--card-w); block-size: var(--card-h); }
#build-panel.under-map #structures > button, #build-panel.under-map #build .unit > button[data-unit] {
  font-size: .76rem; line-height: 1.15; padding: .3rem .2rem .3rem; gap: .1rem; justify-content: flex-start; overflow: hidden;
}
#build-panel.under-map #build .unit > button[data-unit] { inline-size: 100%; block-size: 100%; }
#build-panel.under-map #structures canvas, #build-panel.under-map #build canvas { inline-size: 84px; block-size: 56px; flex: none; }
#build-panel.under-map #structures .why, #build-panel.under-map #build .needs { font-size: .64rem; inline-size: 100%; min-block-size: 0; max-block-size: 2.3em; white-space: normal; overflow: hidden; }
#build-panel.under-map #rally { flex: 0 0 8.5rem; flex-direction: column; align-items: flex-start; justify-content: center; margin: 0; gap: .25rem; }
#build-panel.under-map #rally button { margin: 0; }
/* With the build bar under it, the radio log keeps four lines and the map the rest. */
@media (min-width: 701px) and (min-height: 501px) and (max-height: 820px) { #radio { block-size: 11rem; } }
/* A locked card: dim, a padlock on its picture, what it needs in the warning colour, no press. */
#build button.locked, #structures button.needs { cursor: not-allowed; pointer-events: none; opacity: .5; filter: saturate(.4); }
#build .lock { position: absolute; inset-block-start: .25rem; inset-inline-end: .25rem; line-height: 0; padding: .15rem; background: #10161ae6; border: 1px solid var(--warn); border-radius: 3px; }
#build button.locked .needs { color: var(--warn); font-weight: 700; }
/* A direct action the game refused: the card says why for a moment. */
#structures button.refused, #build button.refused, #roster li.refused { border-color: var(--warn); }
#structures button.refused::after, #build button.refused::after {
  content: attr(data-refused); position: absolute; inset: auto 0 0 0; padding: .15rem .2rem; font-size: .62rem; line-height: 1.15;
  color: #1a1206; background: var(--warn); white-space: normal; text-align: center;
}

/* ---- the mini map on the map, beside the zoom buttons (always the physical left) ---- */
#map-wrap > #radar-box { position: absolute; inset-block-start: .6rem; left: 3.1rem; inline-size: 13.5rem; background: #0b1013e6; border: 1px solid var(--edge-hi); box-shadow: 0 2px 10px #0008; }
#map-wrap > #radar-box #radar-map { border: 0; max-block-size: 11rem; margin: 0; }
#map-wrap > #radar-box.off { inline-size: auto; max-inline-size: 15rem; padding: .25rem .5rem; font-size: .74rem; }
#map-wrap > #radar-box.off #radar-off { padding: 0; }
@media (max-width: 700px), (pointer: coarse) and (max-width: 1100px) {
  #map-wrap > #radar-box { left: 3.6rem; inline-size: 8.5rem; }
  #map-wrap > #radar-box #radar-map { max-block-size: 7rem; }
  #map-wrap > #radar-box.off { max-inline-size: 9.5rem; font-size: .68rem; }
}

/* The units a structure makes, listed in its own menu and lit on their cards. */
/* The structure the Reinforcements bar is narrowed to, and the way back to the whole list. */
#made-by { margin: 0 0 .4rem; font-size: .76rem; color: var(--brass); display: flex; gap: .35rem; align-items: baseline; flex-wrap: wrap; }
#made-by[hidden] { display: none; }
#made-by button { margin-inline-start: auto; font-size: .72rem; padding: .1rem .5rem; }
#build-panel.under-map #made-by { flex: 0 0 7.5rem; flex-direction: column; align-items: flex-start; justify-content: center; margin: 0; gap: .25rem; }
#build-panel.under-map #made-by button { margin: 0; }
/* The key that presses a card (1 to 9), shown where there is a keyboard. */
#structures > button > kbd, #build .unit > button > kbd {
  position: absolute; inset-block-end: .2rem; inset-inline-end: .25rem; min-inline-size: 1.05rem; padding: 0 .2rem;
  font: 700 .64rem/1.05rem ui-monospace, monospace; color: var(--muted); background: #10161a; border: 1px solid var(--edge-hi); border-radius: 3px;
}
#structures > button > kbd:empty, #build .unit > button > kbd:empty { display: none; }
@media (pointer: coarse) { #structures > button > kbd, #build .unit > button > kbd { display: none; } }

/* ---- Super Powers: lobby selector, tactical launch bar, aiming banner & picker modal ---- */
#lobby-superpowers-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-block: .4rem .5rem; }
#lobby-superpowers-row select { font: inherit; color: inherit; background: #10161a; border: 1px solid var(--edge-hi); padding: .28rem .5rem; }
#lobby-superpowers-about { display: block; flex-basis: 100%; margin: 0; color: var(--muted); font-size: .78rem; }

#map.aiming-super { cursor: none; }

/* The super powers: the build panel's third tab, a card for each power like a unit's card. */
#build-tabs button[hidden] { display: none; }
#super-bar-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
#super-bar-list button.sp-slot {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .3rem .2rem .35rem; font-size: .9rem; line-height: 1.2; text-align: center;
}
#super-bar-list button.sp-slot .sp-art { inline-size: 84px; block-size: 56px; object-fit: cover; border-radius: 2px; }
#super-bar-list button.sp-slot .sp-dot {
  inline-size: 1.6rem; block-size: 1.6rem; margin-block: .6rem; border-radius: 50%; flex: none;
  background: var(--sp-col, #7ce8ff); box-shadow: 0 0 10px var(--sp-col, #7ce8ff);
}
#super-bar-list button.sp-slot .sp-name { font-weight: 700; }
#super-bar-list button.sp-slot .sp-state { font: 700 .76rem/1 ui-monospace, monospace; color: var(--muted); }
#super-bar-list button.sp-slot.ready { border-color: var(--brass); }
#super-bar-list button.sp-slot.ready .sp-state { color: var(--brass); }
#super-bar-list button.sp-slot.aiming { outline: 2px solid #fff; background: #1b2833; }
#super-bar-list button.sp-slot.offline .sp-state { color: var(--warn); }
#super-bar-list button.sp-slot:disabled { opacity: .68; cursor: default; }
#super-bar-list button.sp-choose {
  padding: .45rem .6rem; font-weight: 700; font-size: .82rem;
  background: #1b2832; border: 1px dashed var(--brass); color: var(--brass);
}
#build-panel.under-map #super-bar-list { flex: 1; min-inline-size: 0; display: flex; gap: 5px; overflow-x: auto; overflow-y: hidden; padding-block-end: .25rem; scrollbar-width: thin; }
#build-panel.under-map #super-bar-list > button { flex: 0 0 var(--card-w); inline-size: var(--card-w); block-size: var(--card-h); justify-content: flex-start; }

/* The name on a build card: large enough to read at a glance. */
#build button > span:not([class]), #structures button > span:not([class]) { font-size: .92rem; font-weight: 700; line-height: 1.15; }
#build-panel.under-map #build .unit > button[data-unit] > span:not([class]), #build-panel.under-map #structures > button > span:not([class]) { font-size: .9rem; }

#super-aim {
  position: absolute; inset-block-start: .7rem; left: 50%; transform: translateX(-50%); z-index: 7;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .55rem .7rem; padding: .42rem .75rem;
  max-inline-size: calc(100% - 1.2rem);
  background: #0b1014f0; border: 1px solid var(--brass); border-radius: 4px;
  box-shadow: 0 4px 16px #000a; font-size: .8rem; text-align: center;
}
#super-aim[hidden] { display: none; }
#super-aim strong { color: var(--brass); }
#super-aim span { color: var(--ink); }

#super-picker {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center;
  padding: 1rem; background: #070b0ed9; backdrop-filter: blur(4px);
}
#super-picker[hidden] { display: none; }
#super-picker .card {
  inline-size: min(58rem, 96vw); max-block-size: 90vh; display: flex; flex-direction: column;
  gap: .65rem; padding: 1.1rem 1.25rem;
  background: #10171d; border: 1px solid var(--edge-hi); border-radius: 6px;
  box-shadow: 0 14px 48px #000c;
}
#super-picker header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
#super-picker h1 { margin: 0; font-size: 1.15rem; }
#super-pick-count { font: 700 .95rem ui-monospace, monospace; color: var(--brass); }
#super-pick-about { margin: 0; font-size: .84rem; color: var(--muted); }
#super-pick-held { margin: 0; font-size: .84rem; color: var(--warn); }
#super-pick-grid button.sp-card.locked { opacity: .5; cursor: not-allowed; }

#super-bar-list .sp-none { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--muted); }
#super-pick-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem;
  overflow-y: auto; padding-block: .2rem; padding-inline-end: .25rem;
}
#super-pick-grid button.sp-card {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: .4rem;
  background: #141e26; border: 1px solid var(--edge-hi);
  border-radius: 4px; color: var(--ink); cursor: pointer;
}
#super-pick-grid button.sp-card:hover { background: #1a2630; }
#super-pick-grid button.sp-card.picked {
  background: #1b2832; border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass);
}
#super-pick-grid button.sp-card .sp-art { inline-size: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
#super-pick-grid button.sp-card .sp-dot { inline-size: 1.6rem; block-size: 1.6rem; margin-block: 1rem; border-radius: 50%; background: var(--sp-col, #7ce8ff); }
#super-pick-grid button.sp-card strong { font-size: .86rem; }
#super-pick-grid button.sp-card .sp-meta { font: 600 .7rem ui-monospace, monospace; color: var(--warn); }
#super-picker .row { display: flex; justify-content: flex-end; gap: .5rem; padding-block-start: .25rem; border-block-start: 1px solid var(--edge); }
/* A squad's second weapon on its roster row, in words: ready, or the time until it is loaded. */
#roster li .salvo { grid-column: 1 / -1; justify-self: start; margin-block-start: .25rem; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
#roster li .salvo.ready { color: var(--brass); }
/* A squad whose fireteams are shaken or pinned says so on its row: the map's chevrons and a word (nerve.js). */
#roster li .nerve { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: .3rem; margin-block-start: .2rem; font-size: .76rem; font-weight: 700; color: #f0c04a; }
#roster li .nerve.pinned { color: #ff8a8a; }
#roster .nerve-mark { inline-size: 16px; block-size: 16px; flex: none; }

/* A watcher only watches. Nothing that commands, builds, buys or sets up agents is shown:
   the server refuses all of it from a spectator anyway, so showing it would only mislead. */
body.watching :is(#build-panel, #send, #brains-open, #restart, #monitor-strip, #command, #orders, #lobby-keys, #brains, #roster button, #haulers button, #dock [data-open="build"]) { display: none !important; }
/* A watcher follows one side, and then reads its gold and power as its commander does, or
   watches the whole map, which has no purse to show (follow.js). */
body.watching:not(.following) :is(#gold-box, #power) { display: none !important; }
body:not(.watching) #follow-box { display: none; }
#follow-box { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; min-inline-size: 0; }
#follow-box[hidden] { display: none; }
#follow-box span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
#follow { flex: 1; min-inline-size: 0; max-inline-size: 100%; font: inherit; color: inherit; background: #10161a; border: 1px solid var(--edge-hi); padding: .3rem .4rem; text-overflow: ellipsis; }

/* A watcher's wait: the card shows nothing but a signal that rises and falls. */
#overlay.tuning .card > :not(#tuning) { display: none !important; }
#tuning { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: 1.6rem 0; color: var(--muted); }
#tuning[hidden] { display: none; }
#tuning .signal, #matching .signal { font-size: 2.6rem; line-height: 1; letter-spacing: .12em; color: var(--brass); }
#tuning .signal i, #matching .signal i { font-style: normal; opacity: .15; animation: tuning 1.8s steps(1) infinite; }
#tuning .signal i:nth-child(2), #matching .signal i:nth-child(2) { animation-name: tuning-2; }
#tuning .signal i:nth-child(3), #matching .signal i:nth-child(3) { animation-name: tuning-3; }
@keyframes tuning { 0%, 100% { opacity: 1; } }
@keyframes tuning-2 { 0% { opacity: .15; } 16.6% { opacity: 1; } 83.3% { opacity: .15; } }
@keyframes tuning-3 { 0% { opacity: .15; } 33.3% { opacity: 1; } 66.6% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { #tuning .signal i, #matching .signal i { animation: none; opacity: 1; } }
/* Waiting to be drawn against a player: the same signal, the time waited and the way out. */
#overlay.matching .card > :not(#matching) { display: none !important; }
#matching { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: 1.6rem 0; color: var(--muted); text-align: center; }
#matching[hidden] { display: none; }
#matching p { margin: 0; }
#matching-waited { font-variant-numeric: tabular-nums; }
#matching-busy { color: var(--warn); }
#lobby-world-row { display: flex; flex-direction: column; gap: .35rem; }
#lobby-world-row[hidden] { display: none; }
#lobby-world-row small { color: var(--muted); line-height: 1.45; }
/* A drawn match: who it is against. */
#versus { margin-block: .8rem; padding: .6rem .7rem; background: #10161a; border: 1px solid var(--edge-hi); border-inline-start: 3px solid var(--brass); text-align: start; }
#versus p { margin: 0; }
#versus-who { color: var(--brass); font-size: 1.05rem; }
#versus-starts { margin-block-start: .3rem; font-variant-numeric: tabular-nums; }
#versus-grace { margin-block-start: .3rem; color: var(--muted); font-size: .82rem; }
/* The shop in the commander's corner: every super weapon, its price, and what is unlocked. */
#shop { margin-block-start: .6rem; }
#shop summary { cursor: pointer; color: var(--muted); }
#shop > p { margin-block: .4rem; color: var(--muted); font-size: .78rem; line-height: 1.45; }
#shop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; max-block-size: 18rem; overflow-y: auto; }
#shop-list li { display: flex; align-items: center; gap: .5rem; padding: .25rem .4rem; background: #0b1013; border: 1px solid var(--edge); }
#shop-list li.have { border-color: var(--edge-hi); }
#shop-list .sp-art { inline-size: 48px; block-size: 32px; object-fit: cover; border-radius: 2px; flex: none; }
#shop-list .sp-dot { inline-size: 14px; block-size: 14px; border-radius: 50%; background: var(--sp-col, #7ce8ff); flex: none; }
#shop-list .name { flex: 1; min-inline-size: 0; font-weight: 700; font-size: .84rem; }
#shop-list .price { color: var(--muted); font: 600 .74rem ui-monospace, monospace; white-space: nowrap; }
#shop-list li.have .price { color: var(--brass); }
#shop-list button { font-size: .78rem; white-space: nowrap; }
#shop-list button.warn { color: var(--warn); border-color: var(--warn); }

/* ---- matches of three and four commanders ---- */

/* A side's own colour, wherever one of these marks a side. */
:is(#scoreboard, #lobby-seat-picks, #lobby-seats, #live-list) .side-0 { --side: var(--west); }
:is(#scoreboard, #lobby-seat-picks, #lobby-seats, #live-list) .side-1 { --side: var(--east); }
:is(#scoreboard, #lobby-seat-picks, #lobby-seats, #live-list) .side-2 { --side: var(--south-west); }
:is(#scoreboard, #lobby-seat-picks, #lobby-seats, #live-list) .side-3 { --side: var(--south-east); }

/* The header of a match of more than two sides: one line per side, the reader's first. */
#scoreboard { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
#scoreboard[hidden] { display: none; }
#scoreboard li { display: grid; grid-template-columns: .7rem minmax(0, 1fr) auto 3.2rem; align-items: center; gap: .4rem; font-size: .78rem; }
#scoreboard .swatch { inline-size: .7rem; block-size: .7rem; background: var(--side); border: 1px solid #0b0f10; }
#scoreboard .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#scoreboard .who small { color: var(--muted); }
#scoreboard .held { font-variant-numeric: tabular-nums; font-weight: 700; }
#scoreboard .bar b { background: var(--side); }
#scoreboard li.mine .who { font-weight: 700; }
#scoreboard li.gap { margin-block-start: .3rem; }
/* A side whose headquarters has fallen: struck out, its bar empty. */
#scoreboard li.out .who { text-decoration: line-through; color: var(--muted); }
#scoreboard li.out .swatch { opacity: .45; }
#treasury.many .bars { display: none; }

/* A commander whose headquarters has fallen watches on: nothing that commands is shown,
   as for a watcher, and the banner says why. The server acts on nothing they send. */
body.eliminated :is(#build-panel, #send, #command, #orders, #roster button, #haulers button, #dock [data-open="build"]) { display: none !important; }
#fallen-banner {
  position: absolute; inset-block-start: .7rem; left: 50%; transform: translateX(-50%); z-index: 6; margin: 0;
  max-inline-size: calc(100% - 1.2rem); padding: .42rem .75rem; text-align: center; font-size: .82rem;
  background: #0b1014f0; border: 1px solid var(--warn); border-radius: 4px; color: var(--warn); box-shadow: 0 4px 16px #000a;
}
#fallen-banner[hidden], #fallen-watch[hidden] { display: none; }
#fallen-watch { margin-inline-start: .5rem; color: var(--brass); font-weight: 700; }

/* The team net: what the commanders of one team say to each other. */
#net-tab-team[hidden] { display: none; }
#team-hint { margin: 0 0 .35rem; font-size: .78rem; color: var(--muted); }
#team-log { color: #d9c9f0; }
:is(#log, #team-log) li.radio.team { border-inline-start-color: var(--south-east); }
:is(#log, #team-log) li.radio.team .who { color: #e6b8d2; }

/* The lobby of a match of more than two: how many, the mode, and who plays each seat. */
#lobby-many[hidden], #lobby-mode-row[hidden], #lobby-seat-picks[hidden] { display: none; }
#lobby-count { display: flex; gap: .9rem; flex-wrap: wrap; }
#lobby-seat-picks { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; }
#lobby-seat-picks li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; padding: .3rem .5rem; background: #10161a; border: 1px solid var(--edge-hi); border-inline-start: 3px solid var(--side); }
#lobby-seat-picks strong { min-inline-size: 9rem; }
#lobby-seat-picks small { color: var(--muted); }
#lobby-seats li :is(.team, .level) { color: var(--muted); font-size: .78rem; }
#lobby-seats li.many { border-inline-start-color: var(--side); }
#lobby-seats li.out strong { text-decoration: line-through; }
#live-list .score .side-2, #live-list .score .side-3, #live-list .score.many .side-0, #live-list .score.many .side-1 { color: var(--side); }
#live-list .score .versus { color: var(--muted); font-weight: 400; }
