:root {
  color-scheme: light;
  --ink: #192025;
  --muted: #64707a;
  --panel: #f7f4ed;
  --paper: #fffdf8;
  --line: #d8cec0;
  --dark-point: #1e5f65;
  --light-point: #caa366;
  --wood: #8f5635;
  --wood-dark: #5a3426;
  --human: #f7f0e4;
  --cpu: #26343b;
  --accent: #0f7c70;
  --danger: #9d3328;
  --shadow: 0 16px 40px rgba(50, 38, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-anchor: none;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  background: #e8edf0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-anchor: none;
}

button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.is-hidden {
  display: none !important;
}

.menu-screen {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 18px;
}

.menu-panel {
  background: var(--paper);
  border: 1px solid rgba(103, 84, 64, 0.18);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 760px;
  padding: 28px;
  width: min(100%, 760px);
}

.menu-panel h1 {
  margin-top: 6px;
}

.mode-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.mode-card {
  background: #e9efe9;
  color: var(--ink);
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 18px;
  text-align: left;
}

.mode-card:hover:not(:disabled),
.mode-card:focus-visible {
  outline: 3px solid #f4d35e;
  outline-offset: 2px;
}

.mode-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mode-card strong {
  font-size: 1.25rem;
  line-height: 1.15;
}

.menu-status {
  color: var(--muted);
  margin: 18px 0 0;
}

.app-shell {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 340px;
  height: 100vh;
  margin: 0 auto;
  max-width: 1280px;
  overflow: hidden;
  padding: 18px;
}

.play-surface,
.side-panel {
  background: var(--paper);
  border: 1px solid rgba(103, 84, 64, 0.18);
  box-shadow: var(--shadow);
}

.play-surface {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
}

.side-panel {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) minmax(160px, 0.75fr);
  height: calc(100vh - 36px);
  min-height: 0;
  overflow: hidden;
  padding: 18px;
}

.side-panel.is-training,
.side-panel.is-sandbox {
  grid-template-rows: auto 1fr;
  overflow-y: auto;
}

.side-panel.is-training .status-block,
.side-panel.is-sandbox .status-block {
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 1;
}

.side-panel.is-training .moves-block,
.side-panel.is-sandbox .moves-block {
  overflow: visible;
}

.side-panel.is-training .move-list,
.side-panel.is-sandbox .move-list {
  flex: none;
  overflow: visible;
}

.topbar,
.section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.eyebrow,
.label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.25;
}

h3 {
  font-size: 0.92rem;
}

.match-controls {
  display: flex;
  gap: 8px;
}

.match-controls button {
  background: #e9efe9;
  color: var(--ink);
  min-height: 38px;
  padding: 0 12px;
}


#next-training {
  background: var(--accent);
  color: white;
}


.board-wrap {
  align-items: center;
  container-name: board-wrap;
  container-type: size;
  display: flex;
  flex: 1 1 0;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.board {
  aspect-ratio: 1.45 / 1;
  background: var(--wood);
  border: 12px solid var(--wood-dark);
  container-name: board;
  container-type: size;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr)) clamp(30px, 6%, 58px) repeat(6, minmax(0, 1fr));
  grid-template-rows: 1fr auto 1fr;
  position: relative;
  width: min(100cqw, calc(100cqh * 1.45));
}

.bar-section {
  align-items: center;
  background: var(--wood-dark);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4px 0;
}

.bar-section-top {
  justify-content: flex-start;
  padding-top: 8px;
}

.bar-section-bottom {
  justify-content: flex-end;
  padding-bottom: 8px;
}

.bar-section.is-movable {
  cursor: pointer;
}

.bar-section.is-movable .checker.human {
  box-shadow: 0 0 0 3px rgba(15, 124, 112, 0.5);
}

.point {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  cursor: default;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px 3px;
  position: relative;
}

.point::before {
  content: "";
  height: 86%;
  left: 8%;
  position: absolute;
  right: 8%;
  z-index: 0;
}

.point.top {
  justify-content: flex-start;
}

.point.bottom {
  background: #7a472f;
  flex-direction: column-reverse;
  justify-content: flex-start;
}

.point.top::before {
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  top: 0;
}

.point.bottom::before {
  bottom: 0;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.point.dark::before {
  background: var(--dark-point);
}

.point.light::before {
  background: var(--light-point);
}

.point.is-movable,
.tray-button.is-movable,
.point.is-target,
.tray-button.is-target {
  cursor: pointer;
}

.point.is-sandbox-editable,
.bar.is-sandbox-editable {
  cursor: ns-resize;
  touch-action: none;
}

.point.is-movable .checker.human,
.bar.is-movable {
  box-shadow: 0 0 0 3px rgba(15, 124, 112, 0.5);
}

.point.is-selected,
.tray-button.is-selected {
  outline: 3px solid #f4d35e;
  outline-offset: -3px;
}

.point.is-target::after {
  background: rgba(244, 211, 94, 0.94);
  border: 2px solid rgba(25, 32, 37, 0.28);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(25, 32, 37, 0.22);
  content: "";
  height: 24px;
  left: calc(50% - 12px);
  position: absolute;
  width: 24px;
  z-index: 3;
}

.target-dice {
  align-items: center;
  background: #f4d35e;
  border: 2px solid rgba(25, 32, 37, 0.32);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(25, 32, 37, 0.22);
  color: var(--ink);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  min-width: 24px;
  padding: 0 5px;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.point.top .target-dice {
  bottom: 36%;
  left: 50%;
  transform: translateX(-50%);
}

.point.bottom .target-dice {
  left: 50%;
  top: 36%;
  transform: translateX(-50%);
}

.point.top.is-target::after {
  bottom: 36%;
}

.point.bottom.is-target::after {
  top: 36%;
}

.point.is-pending-from .checker,
.point.is-pending-to .checker {
  box-shadow: 0 0 0 3px rgba(244, 211, 94, 0.65);
}

.point:focus-visible,
.tray-button:focus-visible {
  outline: 3px solid #f4d35e;
  outline-offset: -3px;
}

.point-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 800;
  position: absolute;
  z-index: 2;
}

.point.top .point-label {
  bottom: 4px;
}

.point.bottom .point-label {
  top: 4px;
}

.checker {
  align-items: center;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  display: flex;
  font-size: 0.7rem;
  font-weight: 800;
  height: clamp(20px, 5cqw, 44px);
  justify-content: center;
  margin: 1px 0;
  position: relative;
  width: clamp(20px, 5cqw, 44px);
  z-index: 1;
}

.checker.human {
  background: radial-gradient(circle at 34% 30%, #fffef7, var(--human));
  color: #6b5540;
}

.checker.cpu {
  background: radial-gradient(circle at 34% 30%, #455861, var(--cpu));
  color: white;
}

.midline {
  align-items: center;
  background: linear-gradient(180deg, var(--wood) 50%, #7a472f 50%);
  border-block: 4px solid rgba(58, 34, 24, 0.5);
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: clamp(50px, 10cqh, 72px);
  padding: 0 14px;
}

.tray {
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.tray-button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 4px;
  min-height: 32px;
  padding: 0 6px;
}

.tray-button.is-target {
  background: rgba(244, 211, 94, 0.24);
  position: relative;
}

.tray-button.is-pending-to {
  color: #f4d35e;
}

.tray-button .target-dice {
  right: 4px;
  top: 4px;
}

.tray.off {
  justify-content: flex-end;
}

.bar {
  align-items: center;
  color: white;
  display: grid;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 4px;
  justify-items: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.die-svg {
  display: block;
  flex-shrink: 0;
  height: clamp(18px, 4cqh, 24px);
  width: clamp(18px, 4cqh, 24px);
}

.midline-center {
  align-items: center;
  display: flex;
  gap: 6px;
}

.midline-dice {
  align-items: center;
  display: flex;
  gap: 4px;
}

.midline-dice.is-swappable {
  cursor: pointer;
}

.midline-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  min-height: 24px;
  padding: 0 7px;
}

.midline-btn:disabled {
  opacity: 0.38;
}

.midline-btn-primary {
  background: var(--accent);
  border-color: transparent;
}

.status-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

#detail {
  color: var(--muted);
  line-height: 1.45;
  margin: 8px 0 0;
}

.score-line {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.8rem;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
}

.score-line strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.pips-val {
  margin-left: auto;
}

.cube-display {
  background: #e2dace;
  border-radius: 4px;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  padding: 2px 6px;
}

.cube-display-crawford {
  background: rgba(157, 51, 40, 0.12);
  color: var(--danger);
}

.moves-block,
.log-block {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 16px 0;
}

.side-panel.is-sandbox .moves-block,
.side-panel.is-training .moves-block {
  padding-top: 8px;
}

.log-block {
  border-bottom: 0;
  padding-bottom: 0;
}

.move-list,
.log-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.section-head:not(.is-hidden) + .move-list,
.section-head:not(.is-hidden) + .log-list {
  margin-top: 12px;
}

.log-list {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  list-style-position: inside;
  margin-bottom: 0;
  padding-left: 0;
}

.empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.pending-move {
  background: #f1eee7;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.pending-move span,
.move-state {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.pending-move strong {
  font-size: 1rem;
  line-height: 1.3;
}

.feedback-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.feedback-card.correct {
  background: #e7f2ea;
  border-color: rgba(15, 124, 112, 0.34);
}

.feedback-card.incorrect {
  background: #f7ece8;
  border-color: rgba(157, 51, 40, 0.34);
}

.feedback-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.builder-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.builder-controls button {
  background: #e9efe9;
  color: var(--ink);
  min-height: 38px;
  padding: 0 10px;
}

.builder-controls .primary-action {
  background: var(--accent);
  color: white;
}

.sandbox-tools {
  display: grid;
  gap: 12px;
}

.field-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-control {
  display: grid;
  gap: 6px;
}

.field-control span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field-control select {
  background: #f1eee7;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 38px;
  padding: 0 10px;
}

.evaluation-card {
  background: #f1eee7;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.evaluation-card ol {
  color: var(--muted);
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 20px;
}

.eval-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.eval-equity {
  font-size: 0.9rem;
  font-weight: 700;
}

.eval-best-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.submove-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.submove-chips span {
  background: #26343b;
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 9px;
}

.error {
  color: var(--danger);
}

.match-dialog {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 340px;
  padding: 28px;
  width: calc(100% - 36px);
}

.match-dialog::backdrop {
  background: rgba(20, 30, 35, 0.55);
}

.match-dialog .eyebrow {
  margin-bottom: 4px;
}

.match-dialog h2 {
  margin: 0 0 16px;
}

.match-length-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.resign-dialog .match-length-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resign-dialog .match-opt:hover {
  background: var(--danger);
  border-color: transparent;
  color: white;
}

.match-opt {
  background: #f1eee7;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  min-height: 48px;
  padding: 0 4px;
}

.match-opt:hover {
  background: var(--accent);
  border-color: transparent;
  color: white;
}

.depth-picker {
  align-items: center;
  display: flex;
  gap: 5px;
}

.depth-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-right: 2px;
  text-transform: uppercase;
}

.depth-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  min-height: 26px;
  padding: 0 8px;
}

.depth-btn:hover {
  background: #f0ece4;
  border-color: #b5a898;
  color: var(--ink);
}

.depth-btn.is-active {
  background: var(--ink);
  border-color: transparent;
  color: white;
}

.sandbox-who {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  font-weight: 600;
  gap: 8px;
}

.sandbox-swatch {
  border: 2px solid rgba(0, 0, 0, 0.14);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  height: 18px;
  width: 18px;
}

.sandbox-swatch.human {
  background: radial-gradient(circle at 34% 30%, #fffef7, var(--human));
}

.sandbox-swatch.cpu {
  background: radial-gradient(circle at 34% 30%, #455861, var(--cpu));
}

.die-svg.sandbox-die {
  cursor: pointer;
}

.training-candidates {
  display: grid;
  gap: 5px;
}

.training-candidate {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 22px 1fr auto;
  min-height: 40px;
  padding: 7px 10px;
  text-align: left;
}

.training-candidate:hover {
  background: #f0ece4;
  border-color: #b5a898;
}

.candidate-rank {
  align-items: center;
  background: #e0d9d0;
  border-radius: 50%;
  color: #776860;
  display: flex;
  font-size: 0.68rem;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.candidate-label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-equity {
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
  gap: 1px;
  text-align: right;
  white-space: nowrap;
}

.eq-val {
  color: #776860;
  font-size: 0.74rem;
  font-weight: 700;
}

.eq-diff {
  color: var(--danger);
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.8;
}

.training-candidate.is-best {
  border-color: rgba(15, 124, 112, 0.4);
}

.training-candidate.is-best .candidate-rank {
  background: rgba(15, 124, 112, 0.16);
  color: var(--accent);
}

.training-candidate.is-best .eq-val {
  color: var(--accent);
}

.training-candidate.is-best .eq-diff {
  color: var(--muted);
}

.training-candidate.is-chosen {
  border-color: rgba(88, 58, 180, 0.35);
}

.training-candidate.is-chosen .candidate-rank {
  background: rgba(88, 58, 180, 0.14);
  color: #5a3ab4;
}

.training-candidate.is-chosen .eq-val {
  color: #5a3ab4;
}

.training-candidate.is-best.is-chosen {
  border-color: rgba(15, 124, 112, 0.5);
}

.training-candidate.is-preview {
  background: var(--accent);
  border-color: transparent;
}

.training-candidate.is-preview:hover {
  background: #0c7166;
}

.training-candidate.is-preview .candidate-rank {
  background: rgba(255, 255, 255, 0.22);
  color: white;
}

.training-candidate.is-preview .candidate-label {
  color: white;
}

.training-candidate.is-preview .eq-val,
.training-candidate.is-preview .eq-diff {
  color: rgba(255, 255, 255, 0.9);
}

.resign-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  margin-top: 4px;
  padding-top: 10px;
}

.resign-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-right: 2px;
  text-transform: uppercase;
}

.resign-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 28px;
  padding: 0 8px;
}

.resign-btn:hover {
  background: #f7ece8;
  border-color: rgba(157, 51, 40, 0.4);
  color: var(--danger);
}

.candidate-divider {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.die-svg.sandbox-die:hover {
  filter: brightness(1.1) drop-shadow(0 0 3px rgba(255,255,255,0.5));
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .play-surface {
    height: auto;
    overflow: visible;
  }

  .board-wrap {
    background: var(--wood-dark);
    container-type: normal;
    flex: none;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .board {
    width: 100%;
  }

  .side-panel {
    grid-template-rows: auto minmax(120px, 1fr) minmax(120px, 1fr);
    height: min(420px, calc(100vh - 36px));
  }

  .side-panel.is-training,
  .side-panel.is-sandbox {
    height: auto;
    overflow-y: visible;
  }
}

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

  .app-shell,
  .play-surface,
  .side-panel {
    padding: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }


  .board {
    aspect-ratio: 1.1 / 1;
    border-width: 8px;
  }

  .midline {
    gap: 4px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 0 6px;
  }
}

/* ── Online mode ─────────────────────────────────────────────────────────── */

.online-dialog {
  max-width: 480px;
}

.online-section-hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.online-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.online-action-btn {
  width: 100%;
  text-align: center;
}

.online-back-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  margin-top: 12px;
  padding: 0;
}

.online-back-btn:hover {
  color: var(--ink);
}

.online-join-row {
  display: flex;
  gap: 8px;
}

.online-join-row input {
  background: #f1eee7;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  flex: 1;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  min-width: 0;
  padding: 0 12px;
  text-transform: uppercase;
}

.online-join-row input:focus {
  border-color: var(--accent);
  outline: none;
}

.online-join-row .match-opt {
  flex-shrink: 0;
  padding: 0 18px;
}

.room-code {
  font-family: ui-monospace, "Cascadia Code", "Fira Mono", monospace;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  margin: 12px 0 8px;
  color: var(--ink);
}

.online-waiting-status {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 12px 0 0;
}


