/* Dev bench (dev.html). Everything here is scoped to body.bench so none of it
   can leak into the game's own views. */
body.bench { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }

.bench .benchbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 8px 12px; border-bottom: 1px solid var(--c-bezel); background: var(--c-plate); font-size: 13px;
}
.bench .benchbar .title { font-size: 15px; font-weight: 600; margin-right: 6px; }
.bench .benchbar .title i { font-style: normal; color: var(--c-amber); }
.bench .benchbar label { display: inline-flex; align-items: center; gap: 5px; color: var(--c-muted); }
.bench .benchbar input:not([type=checkbox]), .bench .benchbar select, .bench .benchbar button, .bench .end-actions button {
  background: #0c0e10; color: var(--c-ink); border: 1px solid var(--c-bezel); border-radius: 6px; padding: 4px 8px; font-size: 13px;
}
.bench .benchbar input[type=range] { width: 110px; padding: 0; border: 0; background: none; accent-color: var(--c-amber); }
.bench .benchbar .speed .mono { min-width: 3.2em; color: var(--c-ink); }
.bench .benchbar button, .bench .end-actions button { cursor: pointer; }
.bench .benchbar button:disabled { opacity: .4; cursor: default; }
.bench .benchbar .sep { width: 1px; height: 20px; background: var(--c-bezel); }
.bench .benchbar .grow { flex: 1; }
.bench .hud { color: var(--c-muted); }
.bench .ibar { width: 120px; height: 8px; border-radius: 4px; background: #0c0e10; overflow: hidden; }
.bench .ibar span { display: block; height: 100%; background: var(--c-green); }
.bench .ibar span.low { background: var(--c-red); }

#board { flex: 1; min-height: 0; display: grid; gap: 10px; padding: 10px; }
#board.two-rows { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.bench .seat {
  min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px;
  border: 1px solid var(--c-bezel); border-radius: 14px;
}
.bench .seat-head { font-size: 12px; color: var(--c-muted); letter-spacing: .06em; }
.bench .seat-reds { color: var(--c-red); }

/* The gauge a hovered control moves. */
.bench .gauge.target { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.bench .readout {
  display: none; position: absolute; left: 6px; top: 4px; font-size: 11px; color: var(--c-muted);
  background: #0c0e10cc; padding: 1px 4px; border-radius: 4px; pointer-events: none;
}
.bench.show-numbers .readout { display: block; }

#wirelayer { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 5; }

#end { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; background: #101214cc; }
#end[hidden] { display: none; }
.bench .end-card { width: min(440px, calc(100vw - 32px)); background: var(--c-plate); border: 1px solid var(--c-bezel); border-radius: 14px; padding: 20px; }
.bench .end-card h2 { margin: 6px 0 12px; font-size: 22px; }
.bench .end-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
