/* style.css — Minimal functional styling for Scamarcus POC */
/* Aesthetics deferred — this is readability-only */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #222;
  background: #f5f5f5;
}

/* ----- Hidden utility ----- */
.hidden { display: none !important; }

/* ----- Headers ----- */
#board-header, #dm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #333;
  color: #fff;
}

#game-title, #dm-title {
  font-size: 18px;
  font-weight: bold;
}

#phase-name, #dm-session-phase {
  font-size: 13px;
  opacity: 0.8;
}

#scamarcus-alert, #dm-scamarcus-alert {
  font-size: 13px;
  color: #f99;
}

/* ----- Buttons ----- */
button {
  cursor: pointer;
  border: 1px solid #999;
  border-radius: 4px;
  padding: 4px 10px;
  background: #fff;
  font-size: 13px;
}

button:hover { background: #eee; }
button:disabled { opacity: 0.4; cursor: default; }

.btn-big {
  font-size: 16px;
  padding: 8px 20px;
  font-weight: bold;
}

.btn-action {
  background: #e8e8e8;
  margin: 2px;
}

.btn-confirm { background: #c6efc6; border-color: #6a6; }
.btn-undo, .btn-undo-global { background: #ffe8c0; border-color: #c90; }

/* ----- Panels ----- */
.panel {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 10px;
  margin: 6px 0;
}

.panel-title {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 4px;
  color: #555;
}

/* ----- Tabs ----- */
#dm-tabs {
  display: flex;
  gap: 2px;
  padding: 4px 8px;
  background: #e0e0e0;
}

.tab-btn, .subtab-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 4px 4px 0 0;
  background: #ccc;
  font-weight: bold;
}

.tab-btn.active, .subtab-btn.active {
  background: #fff;
}

/* Change 1: Test Mode toggle button */
.btn-test-mode {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 4px;
  background: #e8e8e8;
  border: 1px solid #aaa;
  font-size: 12px;
}
.btn-test-mode-active {
  background: #ffe082;
  border-color: #f9a825;
  font-weight: bold;
}

/* Change 1: Force Result buttons (compact, right of each outcome row) */
.btn-force-result {
  font-size: 11px;
  padding: 1px 6px;
  margin-left: 6px;
  background: #e3f2fd;
  border-color: #90caf9;
  vertical-align: middle;
}

/* Turn History pick list */
.turn-history-step, .mdm-turn-history-step {
  cursor: pointer;
  padding: 5px 8px;
  border: 1px solid #ccc;
  margin: 3px 0;
  border-radius: 3px;
  background: #f5f5f5;
  font-size: 13px;
}
.turn-history-step:hover, .mdm-turn-history-step:hover {
  background: #e8f4fd;
  border-color: #90caf9;
}
.turn-history-effects {
  margin: 6px 0;
  font-size: 12px;
  color: #555;
}

.tab-panel, .subtab-panel {
  padding: 8px;
}

/* ----- DM layout ----- */
#dm-root { max-width: 600px; margin: 0 auto; }
#dm-no-session { text-align: center; padding: 40px; }
#dm-main { padding: 4px; }

#ap-stats-row {
  display: flex;
  gap: 8px;
  margin: 4px 0;
  flex-wrap: wrap;
}

.stat-badge {
  background: #eef;
  border: 1px solid #aac;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 12px;
}

/* Stat edit grid — Change 11/12 */
.stat-edit-grid {
  display: grid;
  grid-template-columns: auto auto 70px auto;
  gap: 4px 4px;
  align-items: center;
  margin: 6px 0;
}
.stat-edit-label { font-weight: bold; font-size: 12px; text-align: right; }
.stat-edit-input {
  width: 70px;
  padding: 2px 4px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
  text-align: center;
}
.stat-edit-grid button {
  width: 28px;
  height: 28px;
  font-size: 16px;
  font-weight: bold;
  padding: 0;
  text-align: center;
}
.stat-edit-grid select { width: 70px; }
#ap-edit-row { margin: 4px 0; }
#ap-inventory-display { font-size: 12px; color: #666; margin-top: 4px; }

#action-buttons { display: flex; flex-wrap: wrap; gap: 2px; }
#action-status { font-size: 12px; color: #555; margin-top: 4px; }

#spin-result {
  background: #ffe;
  border: 2px solid #cc0;
  border-radius: 6px;
  padding: 10px;
  margin: 6px 0;
}

#spin-result-header { display: flex; justify-content: space-between; align-items: baseline; }
#spin-result-label { font-size: 16px; font-weight: bold; }
#spin-result-player { font-size: 13px; font-weight: bold; color: #555; }
#spin-result-effect { font-size: 13px; margin: 4px 0; }
#spin-chain-status { font-size: 12px; color: #888; }
#spin-result-actions { margin-top: 6px; display: flex; gap: 6px; }

#global-undo-row, #next-turn-row { margin: 8px 0; text-align: center; }

#wheel-preview {
  font-size: 12px;
  max-height: 200px;
  overflow-y: auto;
  margin: 4px 0;
}

#wheel-buttons { display: flex; flex-wrap: wrap; gap: 2px; }

/* Market sub-tabs */
#market-subtabs { display: flex; gap: 2px; margin-bottom: 4px; }
#market-buy-items, #market-sell-inventory, #boon-draw-results { font-size: 13px; }
.note { font-size: 11px; color: #888; margin-top: 4px; }

#market-player-panel { margin-bottom: 6px; }
#market-ap-name { font-weight: bold; }
#market-ap-stats { font-size: 12px; color: #555; }
#market-ap-inventory { font-size: 11px; color: #888; margin: 2px 0; }
#market-stat-edit-row { display: flex; gap: 2px; margin-top: 4px; }

.item-tooltip { cursor: help; border-bottom: 1px dotted #888; }

#trade-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
#trade-form label { display: flex; align-items: center; gap: 4px; }
#trade-form select, #trade-form input { font-size: 13px; padding: 2px 4px; }

/* ----- Board layout — unified U-shape panel ----- */
#board-root { width: 100%; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

#board-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  padding: 2px;
}

/* TOP: Initiative + Active Player (open end of U) */
#board-top {
  width: 100%;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2px;
  margin-bottom: 2px;
  flex-shrink: 0;
}

#initiative-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fafafa;
  flex-wrap: wrap;
}

#initiative-label {
  font-weight: bold;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

#initiative-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.initiative-row {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #fff;
}

.initiative-active {
  font-weight: bold;
  border-color: #4a4;
  background: #efffef;
}

.init-name { white-space: nowrap; }
.init-stat { font-size: 12px; color: #555; white-space: nowrap; }

/* MIDDLE: Left leg | Wheel | Right leg */
#board-middle {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: visible;
}

/* ----- U-shape board legs ----- */
/* Bug 5: overflow visible + min-height to prevent space 15/36 clipping */
#u-left-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
  overflow: visible;
}

#u-bottom-row {
  display: flex;
  flex-direction: row;
  gap: 1px;
  justify-content: stretch;
  width: 100%;
  flex-shrink: 0;
  overflow: visible;
}

#u-right-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
  overflow: visible;
}

.u-space {
  width: 2.4vw;
  min-width: 22px;
  max-width: 36px;
  aspect-ratio: 1;
  border: 1px solid #999;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(7px, 0.8vw, 10px);
  font-weight: bold;
  position: relative;
  background: #f9f9f9;
  flex-shrink: 0;
}

#u-bottom-row .u-space {
  flex: 1;
  width: auto;
  min-width: 0;
  max-width: none;
  aspect-ratio: auto;
  height: 2.4vw;
  min-height: 22px;
  max-height: 36px;
}

.u-space-grandma {
  background: #ffe;
  border-color: #aa0;
  font-size: clamp(7px, 0.85vw, 11px);
  width: clamp(44px, 4.5vw, 64px);
  min-width: 44px;
  max-width: 64px;
  min-height: 44px;
}

/* Item 5A/5B: Occupied square — white bold label */
.u-space-occupied .u-space-label {
  color: #fff;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
  z-index: 1;
}
.u-space-label {
  position: relative;
  z-index: 1;
}

/* Player markers (jail/sewer only now — board squares use full-color backgrounds) */
.u-space .player-marker, #jail-box .player-marker, .sewer-box .player-marker {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #333;
}

/* Multiple markers: stack them */
.u-space .player-marker:nth-child(2) { right: auto; left: -3px; }
.u-space .player-marker:nth-child(3) { bottom: auto; top: -3px; right: -3px; }
.u-space .player-marker:nth-child(4) { bottom: auto; top: -3px; right: auto; left: -3px; }

/* Change 4: Hover tooltip */
.u-space-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
}
.u-space:hover .u-space-tooltip { display: block; }

/* Path direction dashes */
.u-path-dash {
  text-align: center;
  font-size: 8px;
  color: #999;
  line-height: 1;
  height: 6px;
}

/* Jail + Sewer box (horizontal row below U) — Change 2 */
#jail-sewer-box {
  border: 2px solid #c66;
  border-radius: 4px;
  padding: 4px 6px;
  margin-top: 4px;
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#jail-box {
  border: 2px solid #c66;
  border-radius: 4px;
  padding: 6px 10px;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  background: #fee;
  position: relative;
  min-width: 50px;
}

#sewer-section {
  border: 2px solid #666;
  border-radius: 4px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sewer-label {
  font-size: 9px;
  font-weight: bold;
  white-space: nowrap;
}

#sewer-boxes {
  display: flex;
  flex-direction: row;
  gap: 2px;
}

.sewer-box {
  width: 32px;
  height: 24px;
  border: 1px solid #999;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  background: #e8e8e8;
  position: relative;
}

.jail-turn-label {
  display: block;
  font-size: 9px;
  font-weight: bold;
  margin-top: 2px;
}

/* Wheel area (center of U) — Change 6: name above canvas */
#wheel-area {
  text-align: center;
  padding: 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
#wheel-container { position: relative; display: inline-block; max-width: 100%; max-height: 100%; }
#wheel-canvas { display: block; max-width: 100%; max-height: 50vh; }
#wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  line-height: 1;
  z-index: 2;
}
#wheel-name-display {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
}

/* Market full interior view (board state switch — Option A) */
#board-market-view {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 8px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
#board-market-columns {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  min-height: 0;
}
.board-market-col {
  flex: 1;
  background: #fff;
  border: 1px solid #cca;
  border-radius: 4px;
  padding: 8px;
  overflow-y: auto;
  min-height: 0;
}
.board-market-col-title {
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  margin-bottom: 6px;
  color: #333;
}
.board-market-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.board-market-table th,
.board-market-table td { padding: 4px 8px; border-bottom: 1px solid #eee; text-align: left; }
.board-market-table th { font-weight: bold; border-bottom: 2px solid #ddd; font-size: 13px; }

#result-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.95);
  border: 2px solid #333;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  z-index: 5;
  min-width: 200px;
}

#result-close-btn {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 0 4px;
}

#result-label { font-size: 18px; font-weight: bold; }
#result-effect { font-size: 14px; margin-top: 4px; }

/* Active player card (horizontal row, in board-top) */
#active-player-section { padding: 2px 10px; width: 100%; }
#active-player-card {
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 13px;
}
.player-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 10px;
  margin: 4px 0;
}

.active-card { border-color: #4a4; border-width: 2px; }
.player-card-name { font-weight: bold; font-size: 13px; }
.player-card-stats { font-size: 13px; color: #555; }
.player-card-stats::before { content: '| '; color: #aaa; }
.player-card-position { font-size: 13px; color: #777; }
.player-card-inventory { font-size: 13px; color: #666; }
.player-card-inventory::before { content: '| '; color: #aaa; }

/* Boon draw overlay */
#boon-draw-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 3px solid #663;
  border-radius: 10px;
  padding: 20px;
  z-index: 100;
  text-align: center;
  min-width: 300px;
}

#boon-draw-close-btn {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 0 4px;
}
#boon-draw-title { font-size: 18px; font-weight: bold; margin-bottom: 10px; }
#boon-draw-items { font-size: 14px; }

/* Feature 8: Position-0 holding area above square 1 */
.pos0-area {
  display: flex;
  gap: 3px;
  justify-content: center;
  align-items: center;
  padding: 2px 0 1px;
  min-height: 14px;
  flex-shrink: 0;
}
.pos0-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #333;
  flex-shrink: 0;
}

/* Feature 8: Position-0 dot in initiative row */
.init-pos0-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #333;
  flex-shrink: 0;
  display: inline-block;
}

/* Feature 6: Directional arrow for active player's square */
.square--active-arrow {
  position: absolute;
  font-size: clamp(10px, 1.6vw, 24px);
  line-height: 1;
  pointer-events: none;
  z-index: 10;
  color: #222;
}
/* Left leg (1–15): arrow to left of square, pointing right */
.square--active-arrow.arrow-right {
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  padding-right: 2px;
}
/* Bottom row (16–35): arrow below square, pointing up */
.square--active-arrow.arrow-up {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 2px;
}
/* Right leg (36–50): arrow to right of square, pointing left */
.square--active-arrow.arrow-left {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  padding-left: 2px;
}

/* NPC markers on board */
.npc-marker {
  position: absolute;
  bottom: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid #fff;
  z-index: 3;
}

/* Pulsing square when player + NPC co-occupy */
.square--npc-pulse {
  animation: npc-pulse 3s ease-in-out infinite;
}
@keyframes npc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 0, 0); }
  50% { box-shadow: 0 0 8px 3px rgba(255, 255, 0, 0.7); }
}

/* KAPOW overlay */
#kapow-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  animation: kapow-flash 0.3s ease-in-out infinite alternate;
}
@keyframes kapow-flash {
  0% { background: rgba(255, 255, 0, 0.85); }
  100% { background: rgba(255, 0, 0, 0.85); }
}
#kapow-text {
  font-size: 120px;
  font-weight: 900;
  font-family: Impact, 'Arial Black', sans-serif;
  color: #fff;
  text-shadow: 4px 4px 0 #000, -2px -2px 0 #f00, 2px -2px 0 #00f;
  transform: rotate(-10deg) scale(1.1);
  letter-spacing: 8px;
}

/* Game Over overlay */
#game-over-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 600;
  color: #c00;
}
#game-over-text {
  font-size: 72px;
  font-weight: 900;
  font-family: Impact, 'Arial Black', sans-serif;
  text-shadow: 2px 2px 0 #000;
}
#game-over-sub {
  font-size: 24px;
  color: #fff;
  margin-top: 16px;
}

/* No-session screen */
#no-session-screen { text-align: center; padding: 60px; font-size: 18px; }

/* ----- Toast ----- */
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 200;
}

/* ----- DM tables (Change 7) ----- */
#dm-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 4px 0;
}

#dm-main table th,
#dm-main table td {
  padding: 4px 6px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

#dm-main table th {
  font-weight: bold;
  font-size: 12px;
  color: #555;
  border-bottom: 2px solid #ddd;
}

#add-player-form {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

#add-player-form input {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
}

/* Combatant list */
#combatant-list label {
  display: block;
  padding: 2px 0;
  font-size: 13px;
}

/* Override roll input */
#override-roll-input {
  padding: 3px 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

/* Dropdown */
#wheel-dropdown {
  padding: 4px;
  font-size: 13px;
  max-width: 100%;
}

#wheel-ui-toggle {
  font-size: 12px;
  color: #666;
}

/* Change 1: Compact player cards in Players tab */
.player-compact-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: 4px;
  background: #fff;
}
.player-compact-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  justify-content: space-between;
}
.player-compact-pos { font-size: 12px; color: #555; }
.player-compact-row2 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 3px;
  font-size: 12px;
}
.stat-inline-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: bold;
}
.stat-inline-group button {
  width: 22px;
  height: 22px;
  font-size: 14px;
  font-weight: bold;
  padding: 0;
  text-align: center;
}
.stat-edit-input-sm {
  width: 50px;
  padding: 1px 3px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 12px;
  text-align: center;
}

/* Action log */
#action-log-panel { max-height: 200px; overflow-y: auto; }
.action-log-entry {
  font-size: 12px;
  padding: 2px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

/* ----- Session Wizard ----- */
#session-wizard {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
#wizard-inner {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 500px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}
#wizard-inner h2 { margin-bottom: 12px; }
#wizard-inner h3 { margin-bottom: 8px; font-size: 15px; }

.wizard-step { margin-bottom: 8px; }

.wizard-player-option {
  display: block;
  padding: 6px 4px;
  font-size: 14px;
  cursor: pointer;
}
.wizard-player-option:hover { background: #f5f5f5; }

.wizard-nav {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: flex-end;
}

/* Color swatches */
.wizard-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}
.wizard-color-name { min-width: 100px; font-size: 14px; }
.wizard-swatches { display: flex; gap: 4px; flex-wrap: wrap; }
.wizard-swatch {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
}
.wizard-swatch:hover { border-color: #333; }
.wizard-swatch-selected { border-color: #333; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333; }
.wizard-swatch-taken { opacity: 0.2; cursor: not-allowed; }

/* Initiative order */
.wizard-init-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 14px;
}
.wizard-init-num { font-weight: bold; min-width: 20px; }

/* Summary */
.wizard-summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
}
.wizard-swatch-sm {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid #666;
  flex-shrink: 0;
}

/* Session tab — player rows + color swatches */
.session-player-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}
.session-player-name { min-width: 100px; font-size: 14px; }
.session-swatches { display: flex; gap: 4px; }
.session-swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
}
.session-swatch:hover { border-color: #333; }
.session-swatch-selected { border-color: #333; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333; }
