:root {
  --bg:        #0b0a08;
  --bg-2:      #131109;
  --panel:     #17140f;
  --panel-2:   #201c15;
  --panel-3:   #2b261d;
  --line:      #3d372b;
  --line-soft: #2a251c;

  --ink:       #fbf7ef;
  --ink-2:     #d8cfbc;
  --muted:     #a19684;
  --faint:     #6f6555;

  --gold:      #ddb75d;
  --gold-hi:   #f0d38e;
  --gold-dim:  #6b5827;

  --good:      #7fd89b;
  --good-dim:  #1b3b28;
  --warn:      #eab551;
  --bad:       #ef7d68;
  --bad-dim:   #3a221d;
  --solo:      #ddb75d;
  --split:     #6b9dc4;

  --r:  10px;
  --r-lg: 14px;

  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 480px at 50% -10%, #211d15 0%, transparent 70%),
    var(--bg);
  color: var(--ink);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.good { color: var(--good); }
.bad  { color: var(--bad); }
h1, h2, h3 { letter-spacing: -0.015em; }

/* ═════════════════════════════════════════════════ login */

.login-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.login {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 40px 34px;
  width: min(370px, 100%); text-align: center; box-shadow: var(--shadow);
}
.login h1 { margin: 0; font-size: 27px; }
.login .sub { margin: 5px 0 26px; color: var(--muted); font-size: 13px; }
.login input, .login button {
  width: 100%; padding: 12px 14px; border-radius: 9px; font-size: 15px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
}
.login input:focus { outline: 2px solid var(--gold-dim); outline-offset: 1px; }
.login button {
  margin-top: 12px; background: var(--gold); color: #231c09;
  font-weight: 650; border: 0; cursor: pointer;
}
.login button:hover { background: var(--gold-hi); }
.login .err { color: var(--bad); font-size: 13px; margin: 14px 0 0; }

/* ═════════════════════════════════════════════════ chrome */

body > header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px; height: 54px;
  background: linear-gradient(180deg, rgba(30,25,18,.97), rgba(13,11,9,.95));
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.035) inset, 0 6px 20px -12px rgba(0,0,0,.9);
}
.head-right { gap: 14px; }
.head-verdict {
  min-width: 0; display: flex; align-items: center; gap: 9px;
  padding: 0 0 0 18px; position: relative;
}
/* a hairline divider rather than a box — a 1000px bordered pill holding one
   short sentence reads as an empty input field */
.head-verdict::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 22px; background: var(--line);
}
.head-spacer { flex: 1; min-width: 12px; }
.hv-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none;
  position: relative;
}
/* a slow pulse, so a live page is distinguishable from a frozen one at a glance */
.hv-dot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid currentColor; opacity: 0; animation: ping 2.6s ease-out infinite;
}
.hv-dot.go { color: var(--good); }
.hv-dot.idle { color: var(--gold); }
.hv-dot.pass { color: var(--bad); }
@keyframes ping {
  0%   { opacity: .5; transform: scale(.7); }
  70%  { opacity: 0;  transform: scale(1.5); }
  100% { opacity: 0;  transform: scale(1.5); }
}
.hv-dot.go { background: var(--good); box-shadow: 0 0 9px var(--good); }
.hv-dot.idle { background: var(--gold); box-shadow: 0 0 9px var(--gold); }
.hv-dot.pass { background: var(--bad); box-shadow: 0 0 9px rgba(239,125,104,.5); }
.hv-text {
  font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.005em;
}
.hv-text b { color: var(--ink); font-weight: 620; }
.clock {
  display: flex; align-items: baseline; gap: 1px; padding: 3px 10px;
  border-radius: 7px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent), var(--panel-2);
  min-width: 54px; justify-content: center;
}
.clock b { font-size: 16px; font-variant-numeric: tabular-nums; }
.clock span { font-size: 10px; color: var(--muted); }
.clock.settling { border-color: var(--gold-dim); background: #241d0d; }
.clock.settling b { color: var(--gold); letter-spacing: .06em; }
.clock.settling span { color: var(--gold); }
.clock.hot { border-color: var(--gold-dim); background: #2a2210; }
.clock.hot b { color: var(--gold); }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 22px; height: 22px; color: var(--gold); }
.name { font-size: 15px; font-weight: 660; letter-spacing: -0.015em; }
.brand { flex: none; }

.tag {
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: 3px 7px; border-radius: 5px;
  border: 1px solid var(--line); color: var(--muted); background: var(--panel-2);
}
.tag.armed { color: var(--good); border-color: #2c5039; background: var(--good-dim); }
.tag.dry   { color: var(--gold); border-color: var(--gold-dim); background: #241d0d; }

.head-right { display: flex; align-items: center; gap: 20px; }
.wallet {
  display: flex; flex-direction: column; align-items: flex-end;
  line-height: 1.3; cursor: pointer; font-variant-numeric: tabular-nums;
}
.w-sol { font-size: 13.5px; font-weight: 620; }
.w-ore { font-size: 11px; color: var(--gold); }
.switch.small .track { width: 34px; height: 20px; }
.switch.small .knob { width: 14px; height: 14px; }
.switch.small input:checked + .track .knob { transform: translateX(14px); }

.switch { display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  width: 40px; height: 23px; border-radius: 999px;
  background: var(--panel-3); border: 1px solid var(--line);
  position: relative; transition: background .18s, border-color .18s;
}
.switch .knob {
  position: absolute; top: 2px; left: 2px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--muted); transition: transform .18s, background .18s;
}
.switch input:checked + .track { background: var(--good-dim); border-color: #2c5039; }
.switch input:checked + .track .knob { transform: translateX(17px); background: var(--good); }
.switch-label { font-size: 13px; color: var(--ink-2); }

main {
  max-width: 1760px; margin: 0 auto; padding: 14px 18px 40px;
  display: grid; gap: 12px;
  /* An implicit `auto` column sizes to its children's max-content, which lets
     a wide grid inside blow past the viewport. Pin it to the container. */
  grid-template-columns: minmax(0, 1fr);
}

/* Three tracks — board, economics, controls — each a stack of panels.
 *
 * Content is distributed so the tracks come out near the same height. With
 * board/economics/controls alone they ran 548 / 742 / 1068px, leaving two dead
 * rectangles and pushing history into a full-width band below; folding the
 * tables into the short tracks balances them and removes a screen of scroll. */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.92fr) minmax(0, 0.92fr);
  gap: 12px;
  align-items: start;
}
.col, .sidebar {
  display: grid; gap: 12px; align-content: start; min-width: 0;
  /* Pin the implicit column: `auto` sizes to max-content, and one long log
     line was stretching this track to 2559px inside a 445px column. */
  grid-template-columns: minmax(0, 1fr);
}
.workspace > * { min-width: 0; }

@media (max-width: 1400px) {
  .workspace { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .sidebar { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 900px) {
  .workspace, .sidebar { grid-template-columns: 1fr; }
}

.panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 120px),
    linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 55%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 13px 15px; box-shadow: var(--shadow);
  position: relative;
}
/* a one-pixel lit edge along the top, which is what stops a dark panel
   reading as a flat rectangle */
.panel::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.09) 22%, rgba(255,255,255,.09) 78%, transparent);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.panel-head h2 { margin: 0; font-size: 13px; font-weight: 650; color: var(--ink); }
.panel-head .rnd { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.panel-sub { margin: 5px 0 11px; font-size: 12px; color: var(--muted); max-width: 62ch; line-height: 1.45; }
.panel-sub b.warn { color: var(--warn); }
.panel-sub.tight { margin-bottom: 10px; }
.panel-sub em { color: var(--ink-2); font-style: italic; }
.panel-sub code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--gold); }

/* ═════════════════════════════════════════════════ strip */

.metrics {
  display: grid; grid-template-columns: repeat(10, 1fr);
  gap: 1px; background: var(--line);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 54px; z-index: 15;
}
.metrics:empty { display: none; }
@media (max-width: 1180px) { .metrics { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 640px)  { .metrics { grid-template-columns: repeat(2, 1fr); } }
.s-cell {
  display: flex; flex-direction: column; gap: 2px; padding: 7px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 85%), var(--panel);
}
.s-cell:first-child { padding-left: 18px; }
.s-k {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
}
.s-v {
  font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1.15;
}
.s-v.good { color: var(--good); }
.s-v.warn { color: var(--warn); }
.s-v.bad  { color: var(--bad); }
.why-row .v.warn { color: var(--warn); }

/* ═════════════════════════════════════════════════ verdict (legacy) */

/* ═════════════════════════════════════════════════ layout */

.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ═════════════════════════════════════════════════ board */

.board-key { display: flex; gap: 12px; flex-wrap: wrap; }
.board-key .k { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.chip { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 9px; }

.tile {
  position: relative; aspect-ratio: 1 / .66; border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 6px 8px 7px;
  display: grid;
  grid-template-areas: 'idx solo' 'mine mine' 'total miners';
  grid-template-rows: auto 1fr auto;
  align-items: center;
  font: inherit; color: inherit; text-align: left;
  cursor: pointer; overflow: hidden;
  transition: transform .12s ease, border-color .2s, box-shadow .25s, background .3s;
}
.tile:hover { transform: translateY(-1px); border-color: var(--faint); }

.t-idx {
  grid-area: idx; font-size: 10.5px; color: var(--faint);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.t-solo { grid-area: solo; justify-self: end; font-size: 10px; color: transparent; }
.tile.is-solo .t-solo { color: var(--solo); }

.t-mine {
  grid-area: mine; align-self: center; font-size: 11.5px; font-weight: 640;
  color: var(--good); font-variant-numeric: tabular-nums; min-height: 1em;
}
.t-total {
  grid-area: total; font-size: 14px; font-weight: 640; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--ink-2);
}
.t-miners {
  grid-area: miners; justify-self: end; font-size: 10px; color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* the pool we would mine — a lit outline, not a fill, so the numbers stay readable */
.tile.in-pool {
  border-color: var(--gold-dim);
  box-shadow: inset 0 0 0 1px rgba(221,183,93,.28), 0 0 18px -8px rgba(221,183,93,.5);
  background:
    linear-gradient(180deg, rgba(221,183,93,.09), rgba(221,183,93,.02) 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
}
.tile.in-pool .t-total { color: var(--ink); }

.tile.ours { border-color: #2c5039; box-shadow: inset 0 0 0 1px rgba(108,196,138,.35); }
.tile.off { opacity: .34; }
.tile.off .t-total { text-decoration: line-through; }

/* the settled winner, held through the intermission */
.tile.winner {
  border-color: var(--gold);
  background:
    linear-gradient(180deg, rgba(221,183,93,.26), rgba(221,183,93,.06) 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 0 0 1px var(--gold), 0 0 34px -6px rgba(221,183,93,.55);
  animation: winner-in .45s ease-out;
  z-index: 1;
}
.tile.winner .t-total { color: var(--gold-hi); }
@keyframes winner-in {
  0%   { transform: scale(.94); box-shadow: 0 0 0 0 rgba(221,183,93,0); }
  60%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.t-flag {
  grid-area: mine; justify-self: start; align-self: center;
  font-size: 8px; font-weight: 800; letter-spacing: .12em;
  color: #231c09; background: var(--gold);
  padding: 1px 5px; border-radius: 3px;
  opacity: 0; transform: scale(.9); transition: opacity .2s, transform .2s;
}
.tile.winner .t-flag { opacity: 1; transform: scale(1); }
/* our stake and the WON flag share the middle row; on the rare round where we
   won the tile we were on, the stake wins the space and the flag tucks up */
.tile.winner.ours .t-flag { grid-area: idx; justify-self: end; align-self: center; }
.tile.winner.ours .t-idx { font-size: 0; }

.board-hint {
  margin: 9px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.45;
}
.board-hint b { color: var(--ink-2); }
.board-hint b.gold { color: var(--gold); }

/* ═════════════════════════════════════════════════ why */

.why-rows { display: grid; gap: 1px; background: var(--line-soft); border-radius: 8px; overflow: hidden; margin-top: 8px; }
.why-row .k { color: var(--muted); }
.why-row .v { color: var(--ink); }
.why-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 6px 11px; font-size: 12.5px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--panel-2);
}
.why-row .k { color: var(--muted); }
.why-row .v { font-variant-numeric: tabular-nums; font-weight: 600; }

.why-row .v.good { color: var(--good); }
.why-row .v.bad  { color: var(--bad); }

.why-note {
  margin-top: 9px; font-size: 11.5px; color: var(--muted); line-height: 1.5;
  border-left: 2px solid var(--line); padding-left: 11px;
}
.why-note b { color: var(--ink-2); font-weight: 600; }

/* ═════════════════════════════════════════════════ rotation */

.rotate { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-soft); display: grid; gap: 5px; }
/* the rotation mini-maps: 5x5, same shape as the board above */
.maps { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.map { margin: 0; display: grid; gap: 5px; justify-items: center; }
.mini {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  padding: 4px; border-radius: 5px;
  background: var(--panel-2); border: 1px solid var(--line);
}
.mini i {
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--panel-3); transition: background .3s;
}
.mini i.solo { background: var(--solo); box-shadow: 0 0 4px rgba(221,183,93,.4); }
.map figcaption {
  font-size: 9.5px; color: var(--muted); font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.map figcaption b { color: var(--ink-2); font-weight: 600; }
.map.next .mini { opacity: .62; }
.map.next .mini i.solo { box-shadow: none; }


/* the rotation strip is `.mini`; the old `.strip` rules here collided with the
   metrics bar of the same name and silently won, capping it at 811px */
.rotate-fact { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.5; flex: 1; min-width: 150px; align-self: center; }
.rotate-fact em { color: var(--ink-2); font-style: normal; font-weight: 600; }
.rotate-fact b { color: var(--gold); }

/* ═════════════════════════════════════════════════ params */

.param-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.param.span2 { grid-column: span 2; }
.param label { font-size: 11px; margin-bottom: 4px; color: var(--ink-2); }
input, select { padding: 6px 9px; font-size: 13px; }
.with-unit input { padding-right: 40px; }
.with-unit span { right: 9px; font-size: 11px; }
@media (max-width: 1180px) and (min-width: 781px) { .param-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .param-grid { grid-template-columns: 1fr; } }
.param label { display: block; font-size: 12.5px; font-weight: 550; margin-bottom: 6px; }
.param .hint { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.param .hint.warn { color: var(--warn); }
.live-hint { color: var(--ink-2); }

input, select {
  width: 100%; padding: 9px 11px; border-radius: 8px; font-size: 14px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
  font-variant-numeric: tabular-nums;
}
input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-dim);
}
input:focus, select:focus { border-color: var(--gold-dim); outline: none; }
input:hover, select:hover { border-color: var(--faint); }
button { transition: background .15s, border-color .15s; }
.with-unit { position: relative; display: flex; align-items: center; }
.with-unit input { padding-right: 46px; }
.with-unit span { position: absolute; right: 11px; font-size: 12px; color: var(--muted); pointer-events: none; }
#fixed-wrap.off { opacity: .35; pointer-events: none; }

.tile-actions button, .actions button {
  padding: 8px 14px; font-size: 13px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
}
.tile-actions button:hover, .actions button:hover { background: var(--panel-3); }
.unsaved {
  margin: 18px 0 0; padding: 9px 12px; border-radius: 8px;
  background: #2a2210; border: 1px solid var(--gold-dim);
  color: var(--gold); font-size: 12.5px;
}
.actions .primary.pending { animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(221,183,93,0); } 50% { box-shadow: 0 0 0 4px rgba(221,183,93,.18); } }

.actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.actions .primary { background: var(--gold); color: #231c09; border: 0; font-weight: 650; padding: 9px 18px; }
.actions .primary:hover { background: var(--gold-hi); }
.saved { color: var(--good); font-size: 12px; }

/* ═════════════════════════════════════════════════ stats & tables */

.table-scroll {
  overflow: auto; margin-top: 10px; max-height: 420px;
  /* keep the header visible while scrolling a long history */
  scrollbar-width: thin;
}
.table-scroll thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--panel); box-shadow: 0 1px 0 var(--line);
}
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { text-align: left; padding: 8px 11px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th {
  color: var(--faint); font-weight: 600; font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .07em; padding-top: 6px; padding-bottom: 6px;
}
tbody tr:hover td { background: rgba(255,255,255,.022); }
tbody tr:last-child td { border-bottom: 0; }
td { font-variant-numeric: tabular-nums; }
td.note { white-space: normal; color: var(--muted); font-size: 11.5px; max-width: 250px; }
.pill { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.pill.go { background: var(--good-dim); color: var(--good); }
.pill.no { background: var(--panel-3); color: var(--muted); }

.log { max-height: 300px; overflow-y: auto; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; margin-top: 10px; }
.log .line { padding: 4px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.log .ts { color: var(--faint); margin-right: 10px; }
.log .warn { color: var(--warn); }
.log .error { color: var(--bad); }

@media (max-width: 640px) {
  main { padding: 14px; }
  .verdict-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .tile-picker { grid-template-columns: repeat(7, 1fr); }
  .strip-label { width: 80px; }
  .strip i { font-size: 0; }
}

/* ═════════════════════════════════════════════════ pools */

.pools { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 9px 0 4px; }
.pool {
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 70%),
    var(--panel-2);
  position: relative;
}
.pool.chosen { border-color: var(--gold-dim); background: linear-gradient(180deg, #241d0d, var(--panel-2)); }
.pool.chosen::after {
  content: 'chosen'; position: absolute; top: 9px; right: 10px;
  font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.pool-head { display: flex; flex-direction: column; gap: 1px; margin-bottom: 9px; }
.pool-name { font-size: 12.5px; font-weight: 650; text-transform: capitalize; }
.pool-tiles { font-size: 10.5px; color: var(--muted); }
.pool-cost {
  font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em; line-height: 1.1;
}
.pool-cost span { font-size: 10px; color: var(--muted); font-weight: 500; margin-left: 5px; letter-spacing: 0; }
.pool-margin { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.pool-crowd { font-size: 10.5px; color: var(--muted); margin-top: 7px; font-variant-numeric: tabular-nums; }

.sub-head {
  margin: 14px 0 0; font-size: 10px; color: var(--faint);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}

.tile.picked { border-color: var(--gold); }
.tile.picked::after { content: none; }

.chip.solo  { background: var(--solo); }
.chip.split { background: var(--split); }
.chip.mine  { background: transparent; border: 2px solid var(--gold); }

@media (max-width: 560px) { .pools { grid-template-columns: 1fr; } }

.excl-note { margin-top: 10px; color: var(--warn); }

.rinse-panel .panel-head { align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* during the winner flash the board shows the settled round, not the live one */
.tile.frozen { filter: saturate(.92); }
.board:has(.tile.frozen) { outline: 1px dashed var(--gold-dim); outline-offset: 4px; border-radius: 10px; }

/* ── round cards: two per row, mini-map of the round as played ─────────── */
.round-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: start;
  margin-top: 6px; max-height: 470px; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin;
}
.rcard {
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 5px 5px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 70%), var(--panel-2);
}
.rcard header {
  display: flex; justify-content: space-between; align-items: center;
  margin: -4px -5px 4px; padding: 3px 6px;
  line-height: 1.3;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent), var(--panel-3);
  border-bottom: 1px solid var(--line);
  border-radius: 7px 7px 0 0;
}
/* thin labeled rule under the map: was the winning tile solo or split */
.r-sep {
  display: flex; align-items: center; gap: 6px; margin: 3px 0 0;
  font-size: 7.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--faint);
}
.r-sep::before, .r-sep::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.r-sep.solo span { color: var(--solo); }
.r-id { font-size: 10.5px; font-weight: 640; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.r-badge {
  font-size: 7.5px; font-weight: 800; letter-spacing: .09em; padding: 1.5px 5px; border-radius: 3px;
}
.r-badge.hit  { background: var(--good-dim); color: var(--good); }
.r-badge.miss { background: var(--bad-dim); color: var(--bad); }
.r-badge.pass { background: var(--panel-3); color: var(--muted); }
.r-badge.pending { background: var(--panel-3); color: var(--gold); }

.rmap {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5px;
  padding: 3px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line-soft);
}
.rmap i { aspect-ratio: 1; border-radius: 1.5px; background: var(--panel-3); }
/* solo/split geography shows on every round, played or passed; deployed and
   winner marks paint over it, so keep this quieter than both */
.rmap i.solo { background: #453922; }
.rmap i.dep { background: var(--gold-dim); box-shadow: inset 0 0 0 1px var(--gold); }
.rmap i.w-hit  { background: var(--good); box-shadow: 0 0 6px rgba(127,216,155,.5); }
.rmap i.w-miss { background: var(--bad);  box-shadow: 0 0 6px rgba(239,125,104,.5); }
.rmap i.w-pass { background: var(--faint); }

.rcard dl {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; margin: 3px 0 0;
}
.rcard dl div { min-width: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.rcard dt {
  font-size: 7.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint);
}
.rcard dd {
  margin: 0; font-size: 10.5px; font-weight: 620; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip.hit  { background: var(--good); }
.chip.miss { background: var(--bad); }
.chip.pass { background: var(--faint); }

@media (max-width: 1500px) { .round-cards { grid-template-columns: repeat(2, 1fr); } }
