/* Brass: Lancashire - Game Styles */

:root {
  --bg: #1a1a2e;
  --bg-light: #16213e;
  --surface: #0f3460;
  --surface-light: #1a4a7a;
  --accent: #e94560;
  --gold: #d4a843;
  --text: #e0e0e0;
  --text-muted: #888;
  --success: #2ecc71;
  --warning: #f39c12;
}

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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background: var(--bg-light);
  border-bottom: 1px solid #333;
}
.nav-brand {
  font-size: 18px;
  font-weight: bold;
  color: #fff !important;
}
.nav-links { display: flex; align-items: center; gap: 15px; }
.nav-link { color: var(--text); font-size: 14px; }
.nav-user { color: var(--text-muted); font-size: 14px; }

/* Buttons */
.btn {
  padding: 6px 14px;
  border: 1px solid #555;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.btn:hover { background: var(--surface-light); }
.btn-primary { background: #4a6a8a; border-color: #4a6a8a; color: #fff; }
.btn-primary:hover { background: #3a5a7a; }
.btn-sm { padding: 3px 10px; font-size: 12px; }

/* Forms */
.container { max-width: 900px; margin: 0 auto; padding: 20px; }
.auth-form { max-width: 360px; margin: 60px auto; }
.auth-form h2 { margin-bottom: 20px; color: var(--gold); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 4px; font-size: 13px; color: var(--text-muted); }
.form-group input, .form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #444;
  border-radius: 4px;
  background: var(--bg-light);
  color: var(--text);
  font-size: 14px;
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.error { color: var(--accent); margin-bottom: 12px; font-size: 13px; }
.checkbox-group label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
.checkbox-group input[type="checkbox"] { width: auto; }
.muted { color: var(--text-muted); font-size: 13px; }

/* Lobby */
.lobby-quick { display: flex; gap: 10px; margin-bottom: 16px; }
.lobby-create {
  background: var(--bg-light);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}
.lobby-create h3 { margin-bottom: 12px; color: var(--gold); font-size: 16px; }
.create-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.create-form .form-group { min-width: 120px; }
.lobby-games h3 { margin-bottom: 12px; color: var(--gold); }

.game-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}
.game-card {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: 6px;
}
.game-card .game-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.game-card .game-actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.game-delete-btn {
  background: none; border: none; font-size: 16px; cursor: pointer;
  padding: 8px 4px; color: var(--text-muted); opacity: 0.5;
}
.game-delete-btn:hover { opacity: 1; color: var(--accent); }
.game-info { display: flex; align-items: center; gap: 12px; }
.badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  text-transform: uppercase;
}
.badge-waiting { background: var(--warning); color: #000; }
.badge-active { background: var(--success); color: #000; }
.badge-finished { background: var(--text-muted); }
.badge-version { background: var(--surface-light); color: var(--text-muted); font-family: monospace; }
.badge-incompatible { background: #5a1a1a; color: var(--accent); text-decoration: line-through; }

.incompatible-notice {
  max-width: 500px; margin: 80px auto; text-align: center;
  background: var(--bg-light); padding: 30px; border-radius: 10px;
  border: 1px solid #5a1a1a;
}
.incompatible-notice h2 { color: var(--accent); margin-bottom: 16px; }
.incompatible-notice p { margin-bottom: 12px; line-height: 1.5; }

/* Game layout */
.game-container { display: flex; flex-direction: column; height: calc(100vh - 45px); }
.game-main { display: flex; flex: 1; overflow: hidden; position: relative; }

/* Left panel: game info + players (collapsible) */
.left-panel {
  display: flex;
  background: var(--bg-light);
  border-right: 1px solid #333;
}
.left-panel-toggle {
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 10px;
  background: #1a1a2a;
  user-select: none;
}
.left-panel-toggle:hover { background: var(--surface); }
.left-panel-content {
  width: 195px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  overflow-y: auto;
  transition: width 0.2s ease;
}
.left-panel.collapsed .left-panel-content { width: 0; padding: 0; overflow: hidden; }
.left-panel h4 { color: var(--gold); font-size: 11px; margin-bottom: 3px; }

.player-bar { display: flex; flex-direction: column; gap: 4px; }
.player-info {
  padding: 5px 8px;
  border-radius: 4px;
  border-left: 3px solid;
  background: var(--surface);
}
.player-info.current { background: var(--surface-light); }
.player-info.me { box-shadow: 0 0 0 1px var(--gold); }
.player-name { font-weight: bold; font-size: 11px; }
.money-discs { display: flex; flex-wrap: wrap; gap: 1px; margin: 2px 0; }
.money-disc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 7px; font-weight: bold; line-height: 1;
}
.money-disc.silver { background: #C0C0C0; color: #333; border: 1px solid #999; }
.money-disc.bronze { background: #CD7F32; color: #fff; border: 1px solid #8B5A2B; }
.player-stats-grid {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  font-size: 9px; color: var(--text-muted); margin: 2px 0;
}
.pstat { display: inline-flex; align-items: center; gap: 1px; }

/* VP breakdown popup */
.vp-breakdown-popup {
  position: fixed; z-index: 50; display: none;
  background: rgba(10, 15, 30, 0.95); border: 1px solid #cc3366;
  border-radius: 6px; padding: 8px 10px; max-width: 250px;
  font-size: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.vp-bd-title { color: #cc3366; font-weight: bold; margin-bottom: 4px; }
.vp-bd-row { color: var(--text-muted); padding: 1px 0; }
.vp-bd-total { color: #fff; font-size: 11px; border-top: 1px solid #444; margin-top: 3px; padding-top: 3px; }
.vp-bd-details { margin-top: 4px; border-top: 1px solid #333; padding-top: 3px; max-height: 120px; overflow-y: auto; }
.vp-bd-detail { color: #888; font-size: 9px; padding: 1px 0; }
.vp-hover-trigger { cursor: help; }

/* Turn navigator */
.turn-nav { padding: 6px !important; margin-top: auto; }
.nav-btn { font-size: 12px !important; padding: 4px 8px !important; min-width: 28px; }

/* Industry legend */
.legend-panel { font-size: 9px; }
.legend-row { display: flex; align-items: center; gap: 4px; padding: 1px 0; }
.legend-swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; border: 1px solid #555; }
.player-stats {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 10px; color: var(--text-muted); margin-top: 1px;
}

/* Board */
.board-container {
  flex: 1;
  padding: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  overflow: auto;
}
#game-board {
  width: 100%;
  max-height: 100%;
  border-radius: 6px;
  transition: transform 0.15s ease;
}
.board-controls {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 10;
  background: rgba(0,0,0,0.65);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.controls-row {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.board-controls label { display: flex; align-items: center; gap: 4px; cursor: default; }
.board-control-sep { color: #555; margin: 0 2px; }
.board-control-check { display: flex; align-items: center; gap: 2px; font-size: 9px; cursor: pointer; }
.board-control-check input { width: auto; margin: 0; cursor: pointer; }
.board-edit-btn { font-size: 9px !important; padding: 2px 6px !important; }
.board-controls input[type="range"] {
  width: 60px; height: 4px;
  -webkit-appearance: none;
  background: #555; border-radius: 2px; outline: none;
}
.board-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 10px; height: 10px;
  border-radius: 50%; background: var(--gold); cursor: pointer;
}

.board-location { cursor: pointer; transition: fill 0.15s, stroke 0.15s; }
.board-location:hover { fill: #e8dcc8dd !important; }
.board-location.highlight {
  fill: #ffe599cc !important;
  stroke: var(--gold) !important;
  stroke-width: 2.5;
  animation: pulse 1s infinite;
}
.board-link.highlight {
  stroke: var(--gold) !important;
  stroke-width: 5 !important;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.board-slot { cursor: pointer; }
.board-external-port.highlight {
  fill: #2196F344 !important;
  stroke: var(--gold) !important;
  stroke-width: 2 !important;
  animation: pulse 1s infinite;
}

/* Right panel: actions + hand + mat (collapsible) */
.right-panel {
  display: flex;
  background: var(--bg-light);
  border-left: 1px solid #333;
}
.right-panel-toggle {
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 10px;
  background: #1a1a2a;
  user-select: none;
}
.right-panel-toggle:hover { background: var(--surface); }
.right-panel-content {
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  overflow-y: auto;
  transition: width 0.2s ease;
}
.right-panel.collapsed .right-panel-content { width: 0; padding: 0; overflow: hidden; }
.right-panel h4 { color: var(--gold); font-size: 11px; margin-bottom: 3px; }

.panel-section {
  background: var(--surface);
  padding: 8px;
  border-radius: 5px;
}
.panel-section h4 { color: var(--gold); font-size: 11px; margin-bottom: 3px; }

.info-row { font-size: 11px; margin-bottom: 2px; }

/* Markets */
.market-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 10px; }
.market-bar {
  flex: 1; height: 6px;
  background: #333; border-radius: 3px; overflow: hidden;
}
.market-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.market-fill.coal { background: #555; }
.market-fill.iron { background: #d4740e; }
.market-fill.demand { background: var(--accent); }
.market-price { font-weight: bold; font-size: 10px; color: var(--gold); }
.market-detail { display: flex; justify-content: space-between; font-size: 9px; margin-top: 2px; }

/* Actions */
.action-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.action-btn { font-size: 11px; padding: 4px 10px; }
.loan-buttons, .develop-options, .industry-options { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }

/* Hand */
.hand-cards { display: flex; flex-wrap: wrap; gap: 3px; }
.card {
  width: 48px;
  height: 78px; /* golden ratio ~1.618 */
  padding: 4px;
  border-radius: 4px;
  border: 2px solid #555;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}
/* No separate card-big sizing — all cards same size */
.card:hover { border-color: var(--gold); background: var(--surface-light); }
.card.selected { border-color: var(--gold); background: var(--surface-light); box-shadow: 0 0 8px var(--gold); }
.card.location { background: #2a3a2a; }
.card.industry { background: #3a2a2a; }
.card-type { font-size: 8px; color: var(--text-muted); text-transform: uppercase; }
.card-label {
  font-size: 9px; font-weight: bold; margin-top: 3px;
  overflow-wrap: break-word; word-break: normal; /* never split a word */
  line-height: 1.15; max-width: 100%;
}

/* Floating hand */
.floating-hand {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 20, 35, 0.95);
  border: 1px solid #555;
  border-radius: 8px;
  padding: 6px 10px;
  z-index: 30;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  max-width: 90vw;
  resize: both;
  overflow: auto;
  min-width: 140px;
  height: 110px;
}
.floating-hand-header { cursor: move; }
.hand-sort-btns { display: flex; gap: 2px; }
.hand-sort-btns .btn { font-size: 8px !important; padding: 1px 4px !important; min-width: 18px; }
.float-check {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 8px; color: var(--text-muted); cursor: pointer; margin-left: 6px;
}
.float-check input { width: auto; margin: 0; cursor: pointer; }
.floating-hand-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px; font-size: 11px; color: var(--gold);
}
.floating-hand-cards {
  display: flex; gap: 4px;
  height: calc(100% - 28px); /* fill below header */
  align-items: stretch;
}
.floating-hand-cards .card {
  /* All cards identical size: height from container, width = height / 1.618 */
  height: 100%;
  width: auto;
  flex: 0 0 auto;
  aspect-ratio: auto; /* disable — we use JS to set width */
  overflow: hidden;
  padding: 2px;
}
.floating-hand-cards .card .card-label {
  font-size: clamp(5px, 1.1vh, 10px);
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.1;
}
.floating-hand-cards .card .card-type {
  font-size: clamp(4px, 0.8vh, 8px);
}

/* Action popup (on card hover) */
.action-popup {
  position: fixed;
  background: rgba(15, 20, 35, 0.95);
  border: 1px solid #555;
  border-radius: 6px;
  padding: 8px;
  z-index: 40;
  min-width: 160px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.popup-title { font-size: 10px; color: var(--gold); margin-bottom: 4px; font-weight: bold; }
.popup-muted { font-size: 10px; color: var(--text-muted); }
.popup-action {
  display: block; width: 100%;
  padding: 4px 8px; margin: 2px 0;
  background: var(--surface); border: 1px solid #555;
  border-radius: 3px; color: var(--text);
  font-size: 10px; cursor: pointer; text-align: left;
}
.popup-action:hover { background: var(--surface-light); border-color: var(--gold); }
.popup-pass { opacity: 0.6; }

/* Bot announcement overlay */
.bot-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 15, 30, 0.92);
  border: 1px solid #e08030;
  border-radius: 8px;
  padding: 12px 20px;
  z-index: 35;
  font-size: 13px;
  color: #fff;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* Collapsible panel headers */
.collapsible-header { cursor: pointer; user-select: none; display: flex; justify-content: space-between; align-items: center; }
.collapsible-header:hover { opacity: 0.8; }
.collapse-arrow { font-size: 9px; color: var(--text-muted); }

/* Mat */
.mat-tiles { font-size: 10px; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.mat-group { background: #ffffff08; padding: 5px 6px; border-radius: 3px; }
.mat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.mat-name { font-weight: bold; font-size: 10px; }
.mat-count { color: var(--text-muted); font-size: 9px; }
.mat-levels-row { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 2px; }
.mat-tile {
  display: inline-block; padding: 1px 5px; font-family: monospace; font-size: 9px;
  background: var(--surface-light); border-radius: 2px; cursor: help;
}
.mat-detail { font-size: 9px; color: var(--text-muted); line-height: 1.5; }

/* Individual tile boxes */
.mat-level-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1px 0; padding: 1px 0; border-bottom: 1px solid #ffffff06;
}
.mat-level-tiles { display: flex; gap: 2px; }
.mat-level-stats { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.mat-tiles-row { display: flex; flex-wrap: wrap; gap: 2px; margin: 3px 0; }
.mat-tile-box {
  display: inline-flex; flex-direction: column; align-items: center;
  width: 22px; padding: 2px 1px; border: 1px solid #666;
  border-radius: 3px; font-size: 8px; text-align: center;
  background: var(--surface-light);
}
.mat-tile-box.tile-avail { border-color: #888; background: var(--surface-light); }
.mat-tile-box.tile-next { border-color: var(--gold); background: #3a3520; box-shadow: 0 0 4px var(--gold); }
.mat-tile-box.tile-board { border-color: #555; background: #2a3a2a; opacity: 0.6; }
.mat-tile-box.tile-used { border-color: #444; background: #222; opacity: 0.35; }
.tile-num { font-weight: bold; font-size: 9px; line-height: 1; }

/* VP hexagon (pink) — uses inline SVG background for outline support */
.tile-vp-hex {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 13px; font-size: 7px; font-weight: bold;
  color: #fff; line-height: 1; position: relative;
  background: #cc3366; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.tile-vp-inline { width: 16px; height: 15px; font-size: 8px; vertical-align: middle; }

/* Income circle (orange) */
.tile-inc-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; font-size: 6px; font-weight: bold;
  background: #e08030; color: #fff; border-radius: 50%;
  line-height: 1;
}
.tile-inc-inline { width: 16px; height: 16px; font-size: 7px; vertical-align: middle; }

/* Minimal mode: transparent backgrounds, colored outlines */
body.minimal-mode .tile-vp-hex,
body.minimal-mode .tile-vp-inline {
  background: transparent; color: #cc3366; clip-path: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpolygon points='8,0.5 15.5,3.75 15.5,11.25 8,14.5 0.5,11.25 0.5,3.75' fill='none' stroke='%23cc3366' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 100% 100%; background-repeat: no-repeat;
}
body.minimal-mode .tile-inc-circle { background: transparent; color: #e08030; border: 1.5px solid #e08030; }
body.minimal-mode .money-disc.silver { background: transparent; color: #C0C0C0; border-color: #C0C0C0; }
body.minimal-mode .money-disc.bronze { background: transparent; color: #CD7F32; border-color: #CD7F32; }

/* Out of game section */
.mat-outofgame { margin-top: 6px; padding-top: 4px; border-top: 1px solid #333; }
.mat-oog-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 9px; margin-top: 2px; }


/* Collapsible Log */
.log-wrapper { border-top: 1px solid #333; }
.log-toggle {
  padding: 4px 12px;
  background: #111;
  color: var(--gold);
  font-size: 11px;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.log-toggle:hover { background: #1a1a1a; }
.log-panel {
  height: 100px;
  max-height: 50vh;
  padding: 4px 12px;
  overflow-y: auto;
  background: #111;
  transition: height 0.25s ease, padding 0.25s ease;
  resize: vertical;
}
.log-wrapper.collapsed .log-panel {
  height: 0;
  padding: 0 12px;
  overflow: hidden;
  resize: none;
}
.log-entry { font-size: 10px; color: var(--text-muted); padding: 1px 0; font-family: monospace; }
.log-ts { color: #555; font-size: 8px; }
.log-filters { display: inline-flex; gap: 2px; margin-left: 8px; }
.log-filter-btn {
  padding: 1px 5px; font-size: 8px; border: 1px solid #555;
  border-radius: 3px; background: none; color: var(--text-muted);
  cursor: pointer;
}
.log-filter-btn:hover { background: var(--surface); }
.log-filter-btn.active { background: var(--surface-light); color: #fff; }

/* Wiki */
.wiki-container { max-width: 800px; margin: 0 auto; padding: 20px; }
.wiki-container h1 { color: #fff; margin-bottom: 16px; }
.wiki-container h2 { color: #ddd; margin: 24px 0 8px; font-size: 20px; }
.wiki-container h3 { color: var(--accent); margin: 16px 0 6px; }
.wiki-container p { margin-bottom: 10px; line-height: 1.6; }
.wiki-container ul, .wiki-container ol { margin-left: 20px; margin-bottom: 10px; }
.wiki-container li { margin-bottom: 4px; line-height: 1.5; }
.wiki-nav { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.wiki-nav a { padding: 6px 14px; background: var(--surface); border-radius: 4px; }
.wiki-nav a:hover { background: var(--surface-light); text-decoration: none; }
.wiki-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.wiki-table th, .wiki-table td { padding: 6px 10px; border: 1px solid #444; text-align: left; font-size: 13px; }
.wiki-table th { background: var(--surface); color: var(--gold); }
.wiki-tip { background: var(--surface); padding: 12px; border-radius: 6px; margin: 10px 0; border-left: 3px solid var(--gold); }

/* Profile / Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0 24px;
}
.stat-card {
  background: var(--bg-light);
  padding: 14px;
  border-radius: 8px;
  text-align: center;
}
.stat-value { font-size: 28px; font-weight: bold; color: var(--gold); }
.stat-value-sm { font-size: 14px; font-weight: bold; color: var(--gold); word-break: break-word; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.game-history { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.history-card {
  background: var(--bg-light);
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid var(--text-muted);
}
.history-card.history-win { border-left-color: var(--success); }
.history-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.history-players { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); }
.history-player.winner { color: var(--gold); font-weight: bold; }
