/* THE CHESS ROOM · Evening salon (dark theme only)
   A low-lit walnut-and-baize chess club, paired with the daylight salon.
   Keep board squares, Staunton sprites, move highlights and game logic intact. */
html[data-theme="dark"] body.standalone-hub-page-chess {
  --ink:#f5ebd7;
  --sub:#c7bda7;
  --muted:#b2aa97;
  --stroke:#78684f;
  --brass:#d8b57a;
  --brass-light:#f2d5a3;
  --chess-night:#181c19;
  --chess-walnut:#38281f;
  --chess-leather:#292920;
  --chess-felt:#17392d;
  color:#f4ebd8;
  background:
    radial-gradient(ellipse 60% 350px at 20% 1%,#62503a69,transparent 79%),
    radial-gradient(ellipse 57% 410px at 93% 21%,#314d3c70,transparent 79%),
    repeating-linear-gradient(92deg,#967c4c08 0 1px,transparent 1px 92px),
    linear-gradient(165deg,#28231e 0%,#19221f 48%,#171c1a 100%);
}
html[data-theme="dark"] body.standalone-hub-page-chess .hero {
  color:#f7ecdb;
  border:1px solid #857353;
  background:
    radial-gradient(ellipse 39% 91% at 77% 28%,#c89d5e47,transparent 81%),
    radial-gradient(ellipse 31% 90% at 89% 73%,#64826954,transparent 85%),
    linear-gradient(111deg,#302721 0%,#34291e 46%,#23362a 73%,#142f26 100%);
  box-shadow:0 22px 46px #0c0b0977,inset 0 1px #dec38c46;
}
html[data-theme="dark"] body.standalone-hub-page-chess .hero::before {
  opacity:.45;
  background:repeating-linear-gradient(97deg,transparent 0 43px,#cba57113 44px 45px,transparent 46px 88px);
}
html[data-theme="dark"] body.standalone-hub-page-chess .hero::after {border-color:#c3a17065;}
html[data-theme="dark"] body.standalone-hub-page-chess .hero h1 {
  color:#fff3dc;
  font-family:Georgia,'Noto Serif KR','AppleMyungjo',serif;
  font-weight:700;letter-spacing:-.046em;text-shadow:0 2px 10px #120d0a55;
}
html[data-theme="dark"] body.standalone-hub-page-chess .hero h1 em {color:#e6bd7c;}
html[data-theme="dark"] body.standalone-hub-page-chess .hero .eyebrow,
html[data-theme="dark"] body.standalone-hub-page-chess .hero .hero-icon {color:#e5bd7a;}
html[data-theme="dark"] body.standalone-hub-page-chess .hero .eyebrow-line {background:#c59c61;}
html[data-theme="dark"] body.standalone-hub-page-chess .hero .lead {color:#e3d7bf;}
html[data-theme="dark"] body.standalone-hub-page-chess .hero .hero-meta {color:#e2d4b9;}
html[data-theme="dark"] body.standalone-hub-page-chess .hero-art {
  background:radial-gradient(ellipse at 60% 45%,#b68f5640,transparent 74%);
}
html[data-theme="dark"] body.standalone-hub-page-chess .hero-halo {
  border-color:#d2b27a92;
  background:radial-gradient(circle,#bd985e71 0 22%,#6783673f 38%,transparent 72%);
  box-shadow:inset 0 0 0 28px #d8b8780e,inset 0 0 0 29px #deb87a7b;
}
html[data-theme="dark"] body.standalone-hub-page-chess .hero-art img {
  filter:drop-shadow(13px 20px 12px #0c0a08c9);
}
html[data-theme="dark"] body.standalone-hub-page-chess .hero-art-caption {color:#d6b986;}

/* The board is a real wooden table. Only the surrounding felt and status
   upholstery change: no overrides for .board-surround, .board-rim, .square or .piece. */
html[data-theme="dark"] body.standalone-hub-page-chess .arena-heading h2 {color:#f0e2c9;}
html[data-theme="dark"] body.standalone-hub-page-chess .small-caps {color:#d2ad74;}
html[data-theme="dark"] body.standalone-hub-page-chess .arena-heading-rule {background:#987e576e;}
html[data-theme="dark"] body.standalone-hub-page-chess .arena-heading-note {color:#c0b198;}
html[data-theme="dark"] body.standalone-hub-page-chess .arena-surface {
  background:#17392d;border-color:#916d46;
  box-shadow:0 24px 41px #090c09ad,inset 0 0 0 2px #bf985c72;
}
html[data-theme="dark"] body.standalone-hub-page-chess .player-status {
  color:#eee3cd;
  background:linear-gradient(100deg,#233e32,#172f27);
  border-color:#927b5680;
  box-shadow:inset 0 1px #e6c69013;
}
html[data-theme="dark"] body.standalone-hub-page-chess .player-status.active {
  background:linear-gradient(100deg,#315641,#1d3a2d);
  box-shadow:inset 5px 0 #e0b878,inset 0 1px #f7eac01a;
}
html[data-theme="dark"] body.standalone-hub-page-chess .player-status .player-title strong {color:#fff0d7;}
html[data-theme="dark"] body.standalone-hub-page-chess .player-status .player-en {color:#dfc48d;}
html[data-theme="dark"] body.standalone-hub-page-chess .player-status .player-title small {color:#d0d9c7;}
html[data-theme="dark"] body.standalone-hub-page-chess .player-turn-indicator {
  color:#d1cab6;background:#15271f;border-color:#8d987c;
}
html[data-theme="dark"] body.standalone-hub-page-chess .player-status.active .player-turn-indicator {
  color:#292216;background:#e3be84;border-color:#f1d4a2;
  box-shadow:0 3px 10px #0a1e18b8;font-weight:800;
}
html[data-theme="dark"] body.standalone-hub-page-chess .board-foot {color:#c3b9a4;}
html[data-theme="dark"] body.standalone-hub-page-chess .hint-dot {background:#e0b469;}
html[data-theme="dark"] body.standalone-hub-page-chess .move-dot {background:#80b49a;}

/* Leather and walnut match controls. The warmer lower surfaces contrast
   with the green felt immediately around the game board. */
html[data-theme="dark"] body.standalone-hub-page-chess .sidebar .panel {
  color:#f1e6d1;
  background:linear-gradient(145deg,#44352b,#2d2b24 57%,#252923);
  border:1px solid #7b6649;
  box-shadow:0 12px 28px #0c0b0978,inset 0 1px #e0c89d25;
}
html[data-theme="dark"] body.standalone-hub-page-chess .sidebar .game-panel {
  background:linear-gradient(145deg,#393328,#2a2923 62%,#202723);
}
html[data-theme="dark"] body.standalone-hub-page-chess .sidebar .audio-panel {
  background:linear-gradient(145deg,#323d31,#26332b 64%,#202c26);
  border-color:#637258;
}
html[data-theme="dark"] body.standalone-hub-page-chess .panel h2 {color:#fff0d8;}
html[data-theme="dark"] body.standalone-hub-page-chess .panel-symbol {color:#d1ab72;opacity:.86;}
html[data-theme="dark"] body.standalone-hub-page-chess .panel-description {color:#d2c6b1;}
html[data-theme="dark"] body.standalone-hub-page-chess .mode-choice {
  color:#eee2cf;
  background:#2c2924;
  border-color:#87745d;
  box-shadow:inset 0 1px #ffffff0c;
}
html[data-theme="dark"] body.standalone-hub-page-chess .mode-choice:not(.active):hover {
  color:#fff1d9;background:#3a3b2e;border-color:#d0aa72;
}
html[data-theme="dark"] body.standalone-hub-page-chess .mode-choice.active {
  color:#fff2d8;background:linear-gradient(125deg,#28513d,#1c372b);
  border-color:#c79a5d;
  box-shadow:inset 0 0 0 1px #dabc8959,0 3px 9px #12120e77;
}
html[data-theme="dark"] body.standalone-hub-page-chess .mode-choice small {color:#cbbda7;}
html[data-theme="dark"] body.standalone-hub-page-chess .mode-choice.active small {color:#e8d6b3;}
html[data-theme="dark"] body.standalone-hub-page-chess .mode-icon,
html[data-theme="dark"] body.standalone-hub-page-chess .mode-choice.active .mode-icon {color:#e3bf83;}
html[data-theme="dark"] body.standalone-hub-page-chess .field-row label {color:#e2d3b8;}
html[data-theme="dark"] body.standalone-hub-page-chess .field-row select,
html[data-theme="dark"] body.standalone-hub-page-chess .audio-select {
  color:#f6e9d0;
  background-color:#242b24;
  border-color:#93805d;
}
html[data-theme="dark"] body.standalone-hub-page-chess :is(.field-row select,.audio-select) option {
  color:#f6e9d0;background:#242b24;
}
html[data-theme="dark"] body.standalone-hub-page-chess .primary {
  color:#2b261d;
  background:linear-gradient(120deg,#eacb94,#c69c62);
  border-color:#edc88a;
  box-shadow:0 5px 13px #130f0b6b,inset 0 1px #fff5d58c;
}
html[data-theme="dark"] body.standalone-hub-page-chess .primary:hover {
  background:linear-gradient(120deg,#f5dbaa,#d9ad72);
}
html[data-theme="dark"] body.standalone-hub-page-chess .audio-switch {
  color:#ebdec9;background:#212f27;border-color:#65765c;
}
html[data-theme="dark"] body.standalone-hub-page-chess .audio-switch.is-on {
  color:#fff1d6;background:linear-gradient(125deg,#655039,#2e4939);
  border-color:#caa36b;
}
html[data-theme="dark"] body.standalone-hub-page-chess .audio-switch small {color:#c9c8b5;}
html[data-theme="dark"] body.standalone-hub-page-chess .audio-switch.is-on small {color:#f1dfbf;}
html[data-theme="dark"] body.standalone-hub-page-chess .audio-switch-icon {
  color:#e3bd85;background:#ac98793a;
}
html[data-theme="dark"] body.standalone-hub-page-chess :is(.audio-label,.audio-volume-row label) {color:#eddfc6;}
html[data-theme="dark"] body.standalone-hub-page-chess .audio-volume-row input {accent-color:#d3aa73;}
html[data-theme="dark"] body.standalone-hub-page-chess .audio-volume-row output {color:#ead3a8;}
html[data-theme="dark"] body.standalone-hub-page-chess .audio-feedback {
  color:#cbd5c0;border-color:#9f95665e;
}
html[data-theme="dark"] body.standalone-hub-page-chess .audio-feedback::before {color:#e5ba79;}
html[data-theme="dark"] body.standalone-hub-page-chess .audio-credits {color:#bfc8b3;}
html[data-theme="dark"] body.standalone-hub-page-chess .audio-credits summary {color:#dcc298;}
html[data-theme="dark"] body.standalone-hub-page-chess .audio-credits a {color:#f1d8a7;}
html[data-theme="dark"] body.standalone-hub-page-chess .move-count {
  color:#f2dbad;background:#282e25;border-color:#816d4b;
}
html[data-theme="dark"] body.standalone-hub-page-chess .turn-display {
  color:#f8dfb2;
  background:linear-gradient(110deg,#29513c,#1a362b);
  border-color:#987950;
  box-shadow:inset 0 1px #ffffff20;
}
html[data-theme="dark"] body.standalone-hub-page-chess .turn-display::before {color:#e7bf7b;}
html[data-theme="dark"] body.standalone-hub-page-chess .turn-display.check {
  color:#ffe0c7;background:#643c30;border-color:#bd7863;
}
html[data-theme="dark"] body.standalone-hub-page-chess .turn-display.ended {
  color:#f5dfa9;background:#504234;border-color:#b19364;
}
html[data-theme="dark"] body.standalone-hub-page-chess .game-hint {color:#d1c7b6;}
html[data-theme="dark"] body.standalone-hub-page-chess .actions button {
  color:#eee1ca;background:#2a2d27;border-color:#84745e;
}
html[data-theme="dark"] body.standalone-hub-page-chess .actions button:hover:not(:disabled) {
  color:#fff3db;background:#374637;border-color:#c8a46e;
}
html[data-theme="dark"] body.standalone-hub-page-chess .actions button span {color:#e2bb80;}
html[data-theme="dark"] body.standalone-hub-page-chess .history-heading {color:#debb82;border-color:#9d886256;}
html[data-theme="dark"] body.standalone-hub-page-chess .history-heading span:last-child {color:#cabfae;}
html[data-theme="dark"] body.standalone-hub-page-chess .move-history {color:#f0e2ce;scrollbar-color:#78694f transparent;}
html[data-theme="dark"] body.standalone-hub-page-chess .move-history li::marker {color:#dbb981;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules summary strong {color:#f6e8d2;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-summary-sub {color:#cabda7;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-plus {color:#d6b47b;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-content {color:#e1d3bf;border-color:#8d7958;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-callout {background:#232b24;border-color:#837052;color:#eadcc7;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-callout strong {color:#f2d199;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-section {border-top-color:#826f5288;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-section-title {color:#f0cf97;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-section-note {color:#c7baa4;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-content dt {color:#efcb93;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-piece-val {background:#2b2720;border-color:#8a7453;color:#edd09d;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-detail-list li {background:#252a24;border-color:#7c6a4f;color:#e5d8c4;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-detail-list li strong {color:#f2d198;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-detail-list li small {color:#c6b8a1;border-top-color:#7c6a4f66;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-guide-chips li {background:#242923;border-color:#78674d;color:#e3d6c2;}
html[data-theme="dark"] body.standalone-hub-page-chess .rules-guide-chips li b {color:#f0cf97;}
html[data-theme="dark"] body.standalone-hub-page-chess .credit a {color:#f0c887;}
html[data-theme="dark"] body.standalone-hub-page-chess footer {color:#c7b9a2;border-color:#8b7557;}
html[data-theme="dark"] body.standalone-hub-page-chess footer a {color:#efd1a3;}

/* Global game form tokens would otherwise inject cool blue controls. */
html[data-theme="dark"] body.standalone-hub-page-chess .audio-panel select#music-track,
html[data-theme="dark"] body.standalone-hub-page-chess .settings-panel select#side,
html[data-theme="dark"] body.standalone-hub-page-chess .settings-panel select#difficulty {
  color:#f6e9d0!important;background-color:#242b24!important;border-color:#93805d!important;
}
@media(max-width:480px) {
  html[data-theme="dark"] body.standalone-hub-page-chess .hero {
    background:
      radial-gradient(ellipse 70% 95% at 100% 30%,#997e5544,transparent 84%),
      linear-gradient(120deg,#34291f,#21382e);
  }
  html[data-theme="dark"] body.standalone-hub-page-chess .hero-art {
    background:transparent;
  }
}
