/* Online dice / Hwatu Seotda room dialog. Only the light UI changes;
   game pieces, online rules and the existing dark palette remain untouched. */
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal .party-panel {
  background:#fff;
  color:#264638;
  border:1px solid #b8cfc3;
  box-shadow:0 24px 64px rgba(19,49,37,.25);
  color-scheme:light;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal .modal-header {
  background:#e7f1eb;
  color:#264638;
  border-bottom:1px solid #bfd5c7;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal #party-title {color:#234836;text-shadow:none;}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal #party-close {
  background:#fff;
  color:#36594a;
  border:1px solid #a7c3b3;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal #party-close:hover {background:#dcece2;color:#173c2b;}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(.party-intro,.party-hint,.party-player-meta,.party-player-state,#party-connection) {color:#496b5b;}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(.party-field label,.party-link-label,.party-section-heading,#party-rule-controls legend) {color:#284d3a;}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(input:not([type="range"]),select) {
  background:#fff;
  border:1px solid #aac5b5;
  color:#213f31;
  color-scheme:light;
  box-shadow:none;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal input::placeholder {color:#637c6e;opacity:1;}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(input,select):focus-visible {
  border-color:#24744d;
  outline:2px solid #24744d;
  outline-offset:2px;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal .party-join-row {border-top-color:#c6d9ce;}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(.btn-primary,.ug-result-replay) {
  background:#286346;
  border:1px solid #286346;
  color:#fff;
  box-shadow:none;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(.btn-primary,.ug-result-replay):hover:not(:disabled) {
  background:#1e5139;
  border-color:#1e5139;
  box-shadow:0 3px 10px rgba(30,81,57,.18);
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(.btn-secondary,.ug-result-edit,.ug-result-home) {
  background:#eaf3ed;
  border:1px solid #a9c9b5;
  color:#264f3a;
  box-shadow:none;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(.btn-secondary,.ug-result-edit,.ug-result-home):hover:not(:disabled) {
  background:#daeae0;
  border-color:#79a58a;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(.party-notice,#party-error) {
  background:#edf5ef;
  border-color:#b6cfbd;
  color:#315844;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal #party-error {
  background:#fff2ea;
  border-color:#d9aa91;
  color:#843c29;
}
/* Room and post-game UI use the same modal after creating or joining a room. */
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(.party-rules,.party-room-status) {
  background:#f1f7f3;
  border-color:#bed5c6;
  color:#294c3b;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(#party-rules-summary,#party-room-code,#party-status) {color:#244d36;}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(.party-room-label,#party-round-label) {color:#496a54;}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal #party-rule-controls {border-top-color:#c4d9cb;}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal .dice-card-guide {
  background:#f6faf7;
  color:#315845;
  border-color:#c0d7c9;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(.party-player,.party-result) {
  background:#f4f9f5;
  color:#294c3c;
  border-color:#bfd5c6;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(.party-player.is-self,.party-result.is-winner) {
  background:#e4f2e7;
  border-color:#679e78;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(.party-player-name,.party-result-score) {color:#274e38;}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal :is(.party-result-rank,.party-badge,.party-player-state.is-ready) {color:#426652;}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal .party-badge {background:#dfece3;}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal .party-badge.is-ready {
  background:#cee7d6;
  color:#21593a;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal #party-ready[aria-pressed="true"] {
  background:#d7eddd;
  color:#20553a;
  border-color:#7caf89;
}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal .party-footer {border-top-color:#c6d9cc;}
html[data-theme="light"] body:is(.game-portal,.dice-standalone[data-local-game="hwatu"]) #partyModal #party-leave {color:#365b48;border-color:#a9c7b4;}
