/* Standalone dice light surfaces: override legacy dark inset styles. */
html[data-theme="light"] body.dice-standalone #diceModal .dice-roster .dice-player-field.ug-participant-row {
  background:#f0f7f2; border-color:#b5ccbe; color:#264b3b; box-shadow:0 2px 8px rgb(34 70 48 / 6%);
}
html[data-theme="light"] body.dice-standalone #diceModal .dice-roster .dice-player-field.ug-participant-row:focus-within {
  background:#fff; border-color:#407b5a; box-shadow:0 0 0 2px rgb(64 123 90 / 16%);
}
html[data-theme="light"] body.dice-standalone #diceModal .dice-roster .dice-player-field :is(.dice-name-number,.ug-participant-number) {color:#315d49;}
html[data-theme="light"] body.dice-standalone #diceModal .dice-roster .dice-player-field input.ug-participant-name {
  background:#fff; border:1px solid #c9ddd0; border-radius:7px; padding-inline:8px;
  color:#213f32!important; color-scheme:light;
}
html[data-theme="light"] body.dice-standalone #diceModal .dice-roster .dice-player-field input.ug-participant-name::placeholder {color:#617b6c;opacity:1;}
html[data-theme="light"] body.dice-standalone #diceModal .dice-roster .dice-player-avatar {background:#e2f0e7;border-color:#adccba;color:#234737;}
html[data-theme="light"] body.dice-standalone #diceModal .dice-roster .dice-player-remove {background:#e9f2ec;border:1px solid #c4d8ca;color:#496759;}
html[data-theme="light"] body.dice-standalone #diceModal .dice-roster .dice-player-remove:not(:disabled):hover {background:#fbe9e4;border-color:#dfb8ac;color:#803c31;}
html[data-theme="light"] body.dice-standalone #diceModal .dice-roster .dice-player-add {background:#2b6246;color:#fff;border-color:#2b6246;}
html[data-theme="light"] body.dice-standalone #diceModal .dice-roster .dice-member-count {color:#4b6c58;}
html[data-theme="light"] body.dice-standalone #diceModal .dice-actions {
  background:#eaf3ed;border-top:1px solid #b7d0c1;color:#2b513c;
}
html[data-theme="light"] body.dice-standalone #diceModal .dice-actions .dice-hint {color:#4a6957;}
html[data-theme="light"] body.dice-standalone #diceModal .dice-actions :is(.btn-primary,.ug-result-replay) {background:#2c6548;border-color:#2c6548;color:#fff;}
html[data-theme="light"] body.dice-standalone #diceModal .dice-actions :is(.btn-primary,.ug-result-replay):hover {background:#205039;border-color:#205039;}
html[data-theme="light"] body.dice-standalone #diceModal .dice-actions :is(.btn-secondary,.ug-result-edit,.ug-result-home,.ug-copy-result-button) {
  background:#fff!important; border:1px solid #afc9b7!important; color:#27503c!important;
}
html[data-theme="light"] body.dice-standalone #diceModal .dice-actions :is(.btn-secondary,.ug-result-edit,.ug-result-home,.ug-copy-result-button):hover {background:#dceee2!important;}
html[data-theme="light"] body.dice-standalone .seo-related-games {
  background:linear-gradient(145deg,#fff,#edf6ef); border-color:#bad2c3; color:#254936;
  box-shadow:0 10px 24px rgb(34 78 51 / 8%);
}
html[data-theme="light"] body.dice-standalone .seo-related-copy h2 {color:#224a34;}
html[data-theme="light"] body.dice-standalone .seo-related-copy p {color:#4e6a57;}
html[data-theme="light"] body.dice-standalone .seo-related-links a {
  background:#fff;border-color:#c3d8c9;color:#234637!important;box-shadow:0 2px 8px rgb(34 78 51 / 5%);
}
html[data-theme="light"] body.dice-standalone .seo-related-links a:hover {background:#e5f3e8;border-color:#6a9c79;}
html[data-theme="light"] body.dice-standalone .seo-related-links a:focus-visible {outline-color:#276d49;}
html[data-theme="light"] body.dice-standalone .seo-related-icon {background:#e3f0e6;}
html[data-theme="light"] body.dice-standalone .seo-related-links strong {color:#244937;}
html[data-theme="light"] body.dice-standalone .seo-related-links small {color:#54715e;}

/* Dice-only mode selector and result badge: remove dark chrome on light panels. */
html[data-theme="light"] body.dice-standalone[data-local-game="dice"] #diceModal .dice-play-modes {
  background:#e9f2eb;
  border-color:#b7d0c0;
  color:#2a4e3b;
  color-scheme:light;
}
html[data-theme="light"] body.dice-standalone[data-local-game="dice"] #diceModal .dice-play-modes > :is(span,a) {
  min-width:0;
  overflow-wrap:anywhere;
}
html[data-theme="light"] body.dice-standalone[data-local-game="dice"] #diceModal .dice-play-modes .is-current {
  background:#f1d5b9;
  color:#553b29;
  box-shadow:0 1px 4px rgb(82 60 35 / 9%);
}
html[data-theme="light"] body.dice-standalone[data-local-game="dice"] #diceModal .dice-play-modes a {
  background:#fff;
  border:1px solid #bbd4c4;
  color:#28513f;
}
html[data-theme="light"] body.dice-standalone[data-local-game="dice"] #diceModal .dice-play-modes a:hover {
  background:#dceee3;
  border-color:#81aa90;
}
html[data-theme="light"] body.dice-standalone[data-local-game="dice"] #diceModal .dice-play-modes a:focus-visible {
  outline:2px solid #2d7251;
  outline-offset:2px;
}
/* The same pale result surface must also show its title and turn details. */
html[data-theme="light"] body.dice-standalone[data-local-game="dice"] #diceModal .dice-local-badge {
  background:#e4f0e6;
  border:1px solid #b6d2be;
  color:#28523b;
  font-weight:750;
  border-radius:7px;
}
html[data-theme="light"] body.dice-standalone[data-local-game="dice"] #diceModal #dice-results-title {
  color:#25493a;
}
html[data-theme="light"] body.dice-standalone[data-local-game="dice"] #diceModal :is(#dice-round,#dice-status) {
  color:#456353;
}
