/* Coffee roulette light mode — scoped to this page; dark mode stays unchanged. */
html[data-theme="light"] body.roulette-upgraded {
  --rt-ink:#263d42;
  --rt-muted:#4d6870;
  --rt-line:#bacfcb;
  --rt-gold:#835f31;
  color-scheme:light;
}
html[data-theme="light"] body.roulette-upgraded :is(.rt-setup.rt-panel,.rt-history.rt-panel) {
  background:linear-gradient(145deg,#ffffff 0%,#f0f7f5 100%);
  border-color:#b7cfca;
  color:#263d42;
  box-shadow:0 14px 32px #23474012,inset 0 1px 0 #fff;
}
html[data-theme="light"] body.roulette-upgraded .rt-setup::before {
  background:linear-gradient(90deg,transparent,#b99765 45%,transparent);
}
html[data-theme="light"] body.roulette-upgraded :is(.rt-setup,.rt-history) h2 {
  color:#25433e;
}
html[data-theme="light"] body.roulette-upgraded .rt-setup .rt-overline {color:#805c31;}
html[data-theme="light"] body.roulette-upgraded .rt-setup .rt-muted,
html[data-theme="light"] body.roulette-upgraded .rt-history .rt-muted {color:#49666a;}
html[data-theme="light"] body.roulette-upgraded .rt-mode-toggle {
  border-color:#b8ccc7;
  background:#eaf2ef;
}
html[data-theme="light"] body.roulette-upgraded .rt-mode-toggle button {
  color:#31534d;
}
html[data-theme="light"] body.roulette-upgraded .rt-mode-toggle button:hover:not(.is-active) {
  background:#dbeae5;
}
html[data-theme="light"] body.roulette-upgraded .rt-mode-toggle button.is-active {
  color:#3b3428;
  background:linear-gradient(160deg,#f8e7c5,#ead1a3);
  box-shadow:0 2px 8px #68533620,inset 0 1px #fff7e8;
}
html[data-theme="light"] body.roulette-upgraded .rt-setup .rt-count {
  color:#355b50;
  background:#e6f1eb;
  border-color:#bbd3c6;
}
html[data-theme="light"] body.roulette-upgraded .rt-player-count-field,
html[data-theme="light"] body.roulette-upgraded .rt-selector {
  background:#f1f7f5;
  border-color:#c0d5d0;
  color:#294840;
}
html[data-theme="light"] body.roulette-upgraded .rt-player-count-field label,
html[data-theme="light"] body.roulette-upgraded .rt-selector label,
html[data-theme="light"] body.roulette-upgraded .rt-player-list-heading h3 {
  color:#254b3d;
}
html[data-theme="light"] body.roulette-upgraded .rt-player-count-field span,
html[data-theme="light"] body.roulette-upgraded .rt-player-list-heading p,
html[data-theme="light"] body.roulette-upgraded :is(.rt-selector,.rt-prob) small {
  color:#506a62;
}
html[data-theme="light"] body.roulette-upgraded :is(.rt-player-count-field,.rt-selector) select {
  background:#fff;
  border-color:#a8c3b8;
  color:#29493c;
}
html[data-theme="light"] body.roulette-upgraded .rt-player-list-heading h3 {
  border-left-color:#ba945d;
}
html[data-theme="light"] body.roulette-upgraded .rt-player {
  background:#fff;
  border-color:#bbd0ca;
  color:#29483e;
}
html[data-theme="light"] body.roulette-upgraded .rt-player:focus-within {
  border-color:#348360;
  box-shadow:0 0 0 2px #34836026;
}
html[data-theme="light"] body.roulette-upgraded .rt-player .rt-avatar {
  background:linear-gradient(150deg,#e9f4ec,#d5e8e0);
  border-color:#bdd1c7;
}
html[data-theme="light"] body.roulette-upgraded .rt-player .rt-avatar:hover {background:#cee9dd;}
html[data-theme="light"] body.roulette-upgraded .rt-player .rt-player-number {color:#547368;}
html[data-theme="light"] body.roulette-upgraded .rt-player input {color:#263e3a;}
html[data-theme="light"] body.roulette-upgraded .rt-player input::placeholder {color:#6a8078;}
html[data-theme="light"] body.roulette-upgraded .rt-player .rt-remove,
html[data-theme="light"] body.roulette-upgraded .rt-menu-chip button {color:#47645b;}
html[data-theme="light"] body.roulette-upgraded .rt-player .rt-remove:hover,
html[data-theme="light"] body.roulette-upgraded .rt-menu-chip button:hover {
  color:#833f36;
  background:#ffe3da;
}
html[data-theme="light"] body.roulette-upgraded .rt-add-row input {
  background:#fff;
  border-color:#b5ccc5;
  color:#29463d;
}
html[data-theme="light"] body.roulette-upgraded .rt-add-row input::placeholder {color:#667d73;}
html[data-theme="light"] body.roulette-upgraded .rt-setup .rt-btn-secondary {
  background:#e5f1e9;
  border-color:#9fc3ad;
  color:#28523b;
}
html[data-theme="light"] body.roulette-upgraded :is(.rt-setup,.rt-history) .rt-btn-text {
  color:#315b50;
}
html[data-theme="light"] body.roulette-upgraded :is(.rt-setup,.rt-history) .rt-btn-text:hover {
  background:#dcebe4;
  color:#174a39;
}
html[data-theme="light"] body.roulette-upgraded .rt-prob {
  background:#fbf3e3;
  border-color:#dbc69e;
}
html[data-theme="light"] body.roulette-upgraded .rt-prob span {color:#695338;}
html[data-theme="light"] body.roulette-upgraded .rt-prob strong {color:#775126;}
html[data-theme="light"] body.roulette-upgraded .rt-setup-actions {border-top-color:#c8d9d1;}
html[data-theme="light"] body.roulette-upgraded .rt-setup-actions span {color:#557068;}
html[data-theme="light"] body.roulette-upgraded .rt-error {color:#a22d29;}
/* Lunch-menu state uses the same light-surface controls as the player state. */
html[data-theme="light"] body.roulette-upgraded .rt-lunch-selected {
  background:#f5f9f6;
  border-color:#a7c5b6;
}
html[data-theme="light"] body.roulette-upgraded .rt-menu-chip {
  background:#dfeee5;
  border-color:#b0cfbb;
  color:#2d5341;
}
html[data-theme="light"] body.roulette-upgraded .rt-categories button {
  background:#edf5ef;
  border-color:#b6cfbf;
  color:#345845;
}
html[data-theme="light"] body.roulette-upgraded .rt-categories button[aria-pressed="true"] {
  background:#285f46;
  border-color:#285f46;
  color:#fff;
}
html[data-theme="light"] body.roulette-upgraded .rt-menu-options button {
  background:#fff;
  border-color:#b8d0c2;
  color:#294a39;
}
html[data-theme="light"] body.roulette-upgraded .rt-menu-options button[aria-pressed="true"] {
  background:#dceee2;
  border-color:#468363;
  color:#225039;
}
/* History: ensure both empty text and recorded winner/time stay legible. */
html[data-theme="light"] body.roulette-upgraded .rt-history-heading p {color:#536d64;}
html[data-theme="light"] body.roulette-upgraded .rt-record {
  background:#fff;
  border-color:#c1d6cf;
  color:#354d48;
}
html[data-theme="light"] body.roulette-upgraded .rt-record strong {color:#345641;}
html[data-theme="light"] body.roulette-upgraded .rt-record time {color:#556c66;}
/* Related games: shared markup, roulette-specific light palette. */
html[data-theme="light"] body.roulette-upgraded .seo-related-games {
  background:linear-gradient(145deg,#fff,#edf5f1);
  border-color:#b9d2c4;
  color:#29463b;
  box-shadow:0 10px 24px #214c3812;
}
html[data-theme="light"] body.roulette-upgraded .seo-related-copy h2 {color:#254b36;}
html[data-theme="light"] body.roulette-upgraded .seo-related-copy p {color:#516c5c;}
html[data-theme="light"] body.roulette-upgraded .seo-related-links a {
  background:#fff;
  border-color:#c1d8c9;
  color:#244735!important;
  box-shadow:0 2px 8px #163d2a0b;
}
html[data-theme="light"] body.roulette-upgraded .seo-related-links a:hover {
  background:#e5f3ea;
  border-color:#72a283;
}
html[data-theme="light"] body.roulette-upgraded .seo-related-icon {background:#e4f1e7;}
html[data-theme="light"] body.roulette-upgraded .seo-related-links strong {color:#234a36;}
html[data-theme="light"] body.roulette-upgraded .seo-related-links small {color:#536e5c;}
html[data-theme="light"] body.roulette-upgraded .seo-related-links a:focus-visible,
html[data-theme="light"] body.roulette-upgraded :is(.rt-setup,.rt-history) :is(button,input,select):focus-visible {
  outline:3px solid #2b7854;
  outline-offset:2px;
}

/* Preserve readable dark related-game cards when shared hub link styling wins. */
html[data-theme="dark"] body.roulette-upgraded .seo-related-links a {
  background:#254048!important;
  border-color:#5e7976;
  color:#eff7e8!important;
}
html[data-theme="dark"] body.roulette-upgraded .seo-related-links a:hover {
  background:#33585a;
  border-color:#c8e7a2;
}

/* Match the dice roster's controls on light panels, without recoloring the wheel. */
html[data-theme="light"] body.roulette-upgraded .rt-player .rt-avatar {background:#e2f0e7;border-color:#adccba;color:#234737;}
html[data-theme="light"] body.roulette-upgraded .rt-player .rt-remove {background:#e9f2ec;border:1px solid #c4d8ca;color:#496759;}
html[data-theme="light"] body.roulette-upgraded .rt-player .rt-remove:not(:disabled):hover {background:#fbe9e4;border-color:#dfb8ac;color:#803c31;}
html[data-theme="light"] body.roulette-upgraded .rt-player-add {background:#2b6246;color:#fff;border-color:#2b6246;}
html[data-theme="light"] body.roulette-upgraded .rt-member-count {color:#4b6c58;}
html[data-theme="light"] body.roulette-upgraded .rt-roster-extra {background:#f3f8f4;border-color:#c0d5ca;}
html[data-theme="light"] body.roulette-upgraded .rt-roster-extra summary {color:#36594a;}
