/* Chess room: light-only hero and turn panels.
   Keep the 3D chess pieces, wooden board, game state and dark appearance intact. */
html[data-theme="light"] body.standalone-hub-page-chess .hero {
  background:
    radial-gradient(ellipse at 82% 47%, #bed5bf8c 0%, transparent 50%),
    linear-gradient(118deg, #fffdf6, #edf4ea 62%, #e1ede2);
  border-color: #b0c9b5;
  box-shadow: 0 15px 37px #31513b1a, inset 0 1px #ffffffd9;
  color: #243e32;
}
html[data-theme="light"] body.standalone-hub-page-chess .hero::before {
  opacity: .35;
  background: repeating-linear-gradient(115deg, transparent 0 28px, #69866b16 30px 31px, transparent 34px 62px);
}
html[data-theme="light"] body.standalone-hub-page-chess .hero::after {
  border-color: #8eaa9360;
}
html[data-theme="light"] body.standalone-hub-page-chess .hero-copy {
  color: #243e32;
}
html[data-theme="light"] body.standalone-hub-page-chess .hero :is(h1,.lead,.eyebrow,.hero-meta) {
  color: #243e32;
  text-shadow: none;
}
html[data-theme="light"] body.standalone-hub-page-chess .hero .lead {
  color: #435e50;
}
html[data-theme="light"] body.standalone-hub-page-chess .hero .eyebrow {
  color: #68572f;
}
html[data-theme="light"] body.standalone-hub-page-chess .hero h1 em,
html[data-theme="light"] body.standalone-hub-page-chess .hero .hero-icon {
  color: #886124;
}
html[data-theme="light"] body.standalone-hub-page-chess .hero .eyebrow-line {
  background: #9f7a44;
}
html[data-theme="light"] body.standalone-hub-page-chess .hero-art {
  background: radial-gradient(ellipse at 57% 50%, #d1dfca66 0%, transparent 73%);
}
html[data-theme="light"] body.standalone-hub-page-chess .hero-halo {
  border-color: #9bb69a99;
  background: radial-gradient(circle, #a9c5ad47 0 29%, transparent 70%);
  box-shadow: inset 0 0 0 28px #b0c49b1a, inset 0 0 0 29px #8da88b4c;
}
html[data-theme="light"] body.standalone-hub-page-chess .hero-art img {
  filter: drop-shadow(9px 12px 10px #3a514659);
}
html[data-theme="light"] body.standalone-hub-page-chess .hero-art-caption {
  color: #4f6958;
}
html[data-theme="light"] body.standalone-hub-page-chess .player-status {
  background: linear-gradient(100deg, #f6f8ef, #e8f0e7);
  color: #233e32;
  border-color: #b7cbb8;
}
html[data-theme="light"] body.standalone-hub-page-chess .player-status.active {
  background: linear-gradient(100deg, #d8ebd7, #bddcc7);
  color: #163d2e;
  box-shadow: inset 4px 0 #387b55;
}
html[data-theme="light"] body.standalone-hub-page-chess .player-status .player-title strong {
  color: #243e32;
}
html[data-theme="light"] body.standalone-hub-page-chess .player-status .player-en {
  color: #587161;
}
html[data-theme="light"] body.standalone-hub-page-chess .player-status .player-title small {
  color: #4d6b5d;
}
html[data-theme="light"] body.standalone-hub-page-chess .player-status .player-turn-indicator {
  background: #eef4ee;
  border-color: #b5cbbb;
  color: #4d6a58;
}
html[data-theme="light"] body.standalone-hub-page-chess .player-status.active .player-turn-indicator {
  background: #286344;
  border-color: #286344;
  color: #fff;
  box-shadow: 0 2px 9px #204c3040;
  font-weight: 800;
}

/* 2026-10-31 · Daylit chess salon. Wood, green baize, brass and cream scoresheets.
   The 3D pieces, board geometry, rules and existing night theme remain untouched. */
html[data-theme="light"] body.standalone-hub-page-chess {
  --ink:#332b21;--sub:#635848;--muted:#6c6152;--stroke:#bca98a;
  --chess-paper:#faf4e7;--chess-felt:#204737;--chess-brass:#b58a50;
  color:#332b21;
  background:
    radial-gradient(ellipse 63% 400px at 18% 0%,#fff9e8dd,transparent 82%),
    radial-gradient(ellipse 55% 350px at 94% 19%,#d9ddcba6,transparent 80%),
    repeating-linear-gradient(90deg,#7f765009 0 1px,transparent 1px 72px),#ebe4d6;
}
html[data-theme="light"]:has(body.standalone-hub-page-chess) {color-scheme:light;}
html[data-theme="light"] body.standalone-hub-page-chess .hero {
  color:#332b21;border-color:#a99574;
  background:
    radial-gradient(ellipse 46% 75% at 82% 38%,#9eaa7d63,transparent 74%),
    linear-gradient(108deg,#faf0dc 0%,#f1e3c8 55%,#d7c4a3 73%,#28513e 73.2%,#17392d 100%);
  box-shadow:0 17px 38px #4b392b27,inset 0 1px #fff9e9;
}
html[data-theme="light"] body.standalone-hub-page-chess .hero::before {
  opacity:.3;background:repeating-linear-gradient(108deg,transparent 0 37px,#845f3826 38px 39px,transparent 39px 73px);
}
html[data-theme="light"] body.standalone-hub-page-chess .hero::after {border-color:#b2976799;}
html[data-theme="light"] body.standalone-hub-page-chess .hero :is(h1,.lead,.eyebrow,.hero-meta) {color:#352e23;text-shadow:none;}
html[data-theme="light"] body.standalone-hub-page-chess .hero h1 {
  font-family:Georgia,'Noto Serif KR','AppleMyungjo',serif;letter-spacing:-.045em;font-weight:700;
}
html[data-theme="light"] body.standalone-hub-page-chess .hero h1 em {color:#775124;}
html[data-theme="light"] body.standalone-hub-page-chess .hero .lead {color:#564d3f;}
html[data-theme="light"] body.standalone-hub-page-chess .hero .eyebrow {color:#71542d;}
html[data-theme="light"] body.standalone-hub-page-chess .hero .hero-icon {color:#946b31;}
html[data-theme="light"] body.standalone-hub-page-chess .hero .eyebrow-line {background:#946b31;}
html[data-theme="light"] body.standalone-hub-page-chess .hero-art {background:radial-gradient(ellipse at 60% 60%,#b6bd8761,transparent 70%);}
html[data-theme="light"] body.standalone-hub-page-chess .hero-halo {
  border-color:#d0b47b9c;
  background:radial-gradient(circle,#bdac7575 0 28%,#526d4652 29% 45%,transparent 72%);
  box-shadow:inset 0 0 0 28px #d9c99412,inset 0 0 0 29px #d4c58a72;
}
html[data-theme="light"] body.standalone-hub-page-chess .hero-art img {filter:drop-shadow(10px 17px 10px #0b1b1880);}
html[data-theme="light"] body.standalone-hub-page-chess .hero-art-caption {color:#ecdbac;}
html[data-theme="light"] body.standalone-hub-page-chess .arena-heading h2 {color:#382a1d;}
html[data-theme="light"] body.standalone-hub-page-chess .small-caps {color:#846138;}
html[data-theme="light"] body.standalone-hub-page-chess .arena-heading-rule {background:#a58d6c9c;}
html[data-theme="light"] body.standalone-hub-page-chess .arena-heading-note {color:#625744;}
html[data-theme="light"] body.standalone-hub-page-chess .arena-surface {
  border-color:#654d33;background:#204737;
  box-shadow:0 20px 34px #392a1c37,inset 0 0 0 2px #baa06c83;
}
html[data-theme="light"] body.standalone-hub-page-chess .player-status {
  color:#f5eedb;background:linear-gradient(110deg,#244b3a,#193a2f);border-color:#b39a6399;box-shadow:none;
}
html[data-theme="light"] body.standalone-hub-page-chess .player-status.active {
  color:#fff2d6;background:linear-gradient(100deg,#38624a,#244b3a);
  box-shadow:inset 5px 0 #d9b16f,inset 0 1px #ffffff16;
}
html[data-theme="light"] body.standalone-hub-page-chess .player-status .player-title strong {color:#fff5de;}
html[data-theme="light"] body.standalone-hub-page-chess .player-status .player-en {color:#dcc898;}
html[data-theme="light"] body.standalone-hub-page-chess .player-status .player-title small {color:#d6e1d0;}
html[data-theme="light"] body.standalone-hub-page-chess .player-turn-indicator {
  color:#e7e1c9;background:#122f27;border-color:#8fa38b;
}
html[data-theme="light"] body.standalone-hub-page-chess .player-status.active .player-turn-indicator {
  color:#302515;background:#e6c58a;border-color:#ebd6aa;box-shadow:0 2px 8px #10271f70;font-weight:800;
}
html[data-theme="light"] body.standalone-hub-page-chess .board-foot {color:#625545;}
html[data-theme="light"] body.standalone-hub-page-chess .hint-dot {background:#bf8c3a;}
html[data-theme="light"] body.standalone-hub-page-chess .move-dot {background:#3b7054;}

/* Parchment scorecards, not generic green-tinted white app cards. */
html[data-theme="light"] body.standalone-hub-page-chess .sidebar .panel {
  color:#332b21;border:1px solid #bba98a;
  background:linear-gradient(135deg,#ffffffa6,transparent 40%),linear-gradient(155deg,#fcf8ed,#eee3cd);
  box-shadow:0 10px 22px #57422b19,inset 0 1px #fffdf4;
}
html[data-theme="light"] body.standalone-hub-page-chess .sidebar .game-panel {background:linear-gradient(150deg,#fffaf0,#efe3c9);}
html[data-theme="light"] body.standalone-hub-page-chess .sidebar .audio-panel {background:linear-gradient(150deg,#f5f4e8,#e6e4d0);}
html[data-theme="light"] body.standalone-hub-page-chess .panel h2 {color:#302b21;}
html[data-theme="light"] body.standalone-hub-page-chess .panel-symbol {color:#8b6b3f;opacity:.8;}
html[data-theme="light"] body.standalone-hub-page-chess .panel-description {color:#615747;}
html[data-theme="light"] body.standalone-hub-page-chess .mode-choice {
  color:#443728;background:#f6f0e2;border-color:#c6b599;box-shadow:inset 0 1px #fffaf1;
}
html[data-theme="light"] body.standalone-hub-page-chess .mode-choice:not(.active):hover {
  color:#263a2c;background:#e9eadb;border-color:#8d9977;
}
html[data-theme="light"] body.standalone-hub-page-chess .mode-choice.active {
  color:#fff4db;background:linear-gradient(130deg,#285542,#18392d);
  border-color:#96774a;box-shadow:inset 0 0 0 1px #d8be8c58,0 3px 7px #28352832;
}
html[data-theme="light"] body.standalone-hub-page-chess .mode-choice small {color:#645a4d;}
html[data-theme="light"] body.standalone-hub-page-chess .mode-choice.active small {color:#e4d9be;}
html[data-theme="light"] body.standalone-hub-page-chess .mode-icon {color:#846036;}
html[data-theme="light"] body.standalone-hub-page-chess .mode-choice.active .mode-icon {color:#e7c687;}
html[data-theme="light"] body.standalone-hub-page-chess .field-row label {color:#534736;}
html[data-theme="light"] body.standalone-hub-page-chess :is(.field-row select,.audio-select) {
  color:#332b22;background-color:#fffaf0;border-color:#b19d7d;
}
html[data-theme="light"] body.standalone-hub-page-chess :is(.field-row select,.audio-select) option {
  color:#30291e;background:#fffaf0;
}
html[data-theme="light"] body.standalone-hub-page-chess .primary {
  color:#fff4d8;border-color:#a87a3c;
  background:linear-gradient(120deg,#2a5844,#183d31);
  box-shadow:0 4px 12px #28453629,inset 0 1px #cde3ca33;
}
html[data-theme="light"] body.standalone-hub-page-chess .primary:hover {background:linear-gradient(120deg,#346a50,#214e3d);}
html[data-theme="light"] body.standalone-hub-page-chess .audio-switch {
  color:#514638;border-color:#bba78a;background:#fcf7e9;
}
html[data-theme="light"] body.standalone-hub-page-chess .audio-switch.is-on {
  color:#fff5de;background:linear-gradient(125deg,#2d5845,#1c4033);border-color:#97794b;
}
html[data-theme="light"] body.standalone-hub-page-chess .audio-switch small {color:#5f584a;}
html[data-theme="light"] body.standalone-hub-page-chess .audio-switch.is-on small {color:#e2dec5;}
html[data-theme="light"] body.standalone-hub-page-chess .audio-switch-icon {color:#85663e;background:#e8dfc9;}
html[data-theme="light"] body.standalone-hub-page-chess .audio-switch.is-on .audio-switch-icon {color:#e8c68c;background:#ffffff20;}
html[data-theme="light"] body.standalone-hub-page-chess :is(.audio-label,.audio-volume-row label) {color:#534734;}
html[data-theme="light"] body.standalone-hub-page-chess .audio-volume-row input {accent-color:#31624a;}
html[data-theme="light"] body.standalone-hub-page-chess .audio-volume-row output {color:#604b2d;}
html[data-theme="light"] body.standalone-hub-page-chess .audio-feedback {color:#5e5749;border-color:#b9ab8e;}
html[data-theme="light"] body.standalone-hub-page-chess .audio-feedback::before {color:#87673c;}
html[data-theme="light"] body.standalone-hub-page-chess .audio-credits {color:#635a4b;}
html[data-theme="light"] body.standalone-hub-page-chess .audio-credits summary {color:#5e593b;}
html[data-theme="light"] body.standalone-hub-page-chess .audio-credits a {color:#295744;}
html[data-theme="light"] body.standalone-hub-page-chess .move-count {
  color:#6b4d25;background:#e9dec7;border-color:#c9b08a;
}
html[data-theme="light"] body.standalone-hub-page-chess .turn-display {
  color:#fff2d3;border-color:#957646;
  background:linear-gradient(115deg,#2d6047,#1b4335);box-shadow:inset 0 1px #e3d5b03b;
}
html[data-theme="light"] body.standalone-hub-page-chess .turn-display::before {color:#e8c884;}
html[data-theme="light"] body.standalone-hub-page-chess .turn-display.check {
  color:#fff0dc;background:#84463a;border-color:#ae7768;
}
html[data-theme="light"] body.standalone-hub-page-chess .turn-display.ended {
  color:#fff4d6;background:#6e5939;border-color:#a48b62;
}
html[data-theme="light"] body.standalone-hub-page-chess .game-hint {color:#554c3e;}
html[data-theme="light"] body.standalone-hub-page-chess .actions button {
  color:#344837;border-color:#aeaa8f;background:#f6f1e4;
}
html[data-theme="light"] body.standalone-hub-page-chess .actions button:hover:not(:disabled) {
  color:#193d2f;background:#e5e9dc;border-color:#71866f;
}
html[data-theme="light"] body.standalone-hub-page-chess .actions button span {color:#8d6431;}
html[data-theme="light"] body.standalone-hub-page-chess .history-heading {color:#71552f;border-color:#bdad90;}
html[data-theme="light"] body.standalone-hub-page-chess .history-heading span:last-child {color:#675c49;}
html[data-theme="light"] body.standalone-hub-page-chess .move-history {color:#3e382d;scrollbar-color:#bba88e transparent;}
html[data-theme="light"] body.standalone-hub-page-chess .move-history li::marker {color:#80603d;}
html[data-theme="light"] body.standalone-hub-page-chess .history-special {
  color:#60401d;background:#f5dcaa;border-color:#b99052;
}
html[data-theme="light"] body.standalone-hub-page-chess .rules summary strong {color:#312c21;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-summary-sub {color:#675a47;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-plus {color:#8c6636;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-content {color:#51483b;border-color:#c3b194;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-callout {background:#f6efe0;border-color:#c6b291;color:#3d3428;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-callout strong {color:#28523e;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-section {border-top-color:#c9b89b;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-section-title {color:#29533f;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-section-note {color:#6a5d4b;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-content dt {color:#5c4224;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-piece-val {background:#ebe0ca;border-color:#bfa984;color:#5a4122;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-detail-list li {background:#faf4e7;border-color:#cbb99a;color:#473e31;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-detail-list li strong {color:#28523e;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-detail-list li small {color:#675b49;border-top-color:#d8c8ad;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-guide-chips li {background:#f8f2e4;border-color:#cbb99a;color:#4a4033;}
html[data-theme="light"] body.standalone-hub-page-chess .rules-guide-chips li b {color:#684821;}
html[data-theme="light"] body.standalone-hub-page-chess .credit a {color:#24563e;}
html[data-theme="light"] body.standalone-hub-page-chess footer {color:#605446;border-color:#b4a185;}
html[data-theme="light"] body.standalone-hub-page-chess footer a {color:#245340;}
/* Promotion dialog is still a match-time control, not a dark-theme leftover. */
html[data-theme="light"] body.standalone-hub-page-chess dialog {
  color:#332c22;border-color:#a9936d;background:linear-gradient(145deg,#fff9eb,#eaddc6);
}
html[data-theme="light"] body.standalone-hub-page-chess dialog::backdrop {background:#15231a9c;}
html[data-theme="light"] body.standalone-hub-page-chess dialog .promotion-box p:not(.small-caps) {color:#605747;}
html[data-theme="light"] body.standalone-hub-page-chess .promotion-pieces button {
  color:#2a4937;background:#f9f1e0;border-color:#b4a185;
}
html[data-theme="light"] body.standalone-hub-page-chess .promotion-pieces button:hover {background:#ebeadc;border-color:#54745a;}
html[data-theme="light"] body.standalone-hub-page-chess .cancel {color:#3b4e3d;border-color:#b5a281;}
html[data-theme="light"] body.standalone-hub-page-chess .cancel:hover {background:#e7e5d5;}
@media (max-width:770px) {
  html[data-theme="light"] body.standalone-hub-page-chess .hero {
    background:linear-gradient(108deg,#f9efd9 0%,#ebddc4 62%,#214434 100%);
  }
}
@media (max-width:480px) {
  html[data-theme="light"] body.standalone-hub-page-chess .hero {
    background:radial-gradient(ellipse at 93% 40%,#bec5a157,transparent 60%),linear-gradient(125deg,#f7efdd,#e9dbc3);
  }
  html[data-theme="light"] body.standalone-hub-page-chess .hero-art {background:none;}
}

/* Shared form defaults use a more specific selector; keep the scoresheet
   controls in the chess salon palette instead of the portal's blue fields. */
html[data-theme="light"] body.standalone-hub-page-chess .audio-panel select#music-track,
html[data-theme="light"] body.standalone-hub-page-chess .settings-panel select#side,
html[data-theme="light"] body.standalone-hub-page-chess .settings-panel select#difficulty {
  color:#332b22 !important;background-color:#fffaf0 !important;
  border-color:#b19d7d !important;
}
