/* The two Friends Table games keep their original forest-felt / brass palette
   in dark mode. This is cosmetic; shared header layout, menus, light mode and
   all card, seat and betting logic remain owned by their existing styles. */
html[data-theme="dark"]:has(> body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker)) {
  --bg-primary:#101c18;
  --bg-secondary:#162b21;
  --bg-surface:#1c3428;
  --text-primary:#f1efdf;
  --text-secondary:#b6c6b2;
  --border-color:#52634d;
  --button-bg:#263e30;
  --input-bg:#14281f;
  --modal-bg:#182c21;
  --game-panel-bg:#1b3125;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) {
  --header-bg:linear-gradient(180deg,#192c22 0%,#102119 100%);
  --header-text:#f5ebd4;
  --header-muted:#b9c8ab;
  --header-line:#56654a;
  --header-accent:#e8ca88;
  --header-focus:#f2dfad;
  --header-control:#263e2f;
  --header-control-hover:#34543b;
  --header-mark:linear-gradient(145deg,#31513a,#1a3024);
  --header-mark-line:#bca16b;
  --header-panel:#1b3024;
  --header-shadow:0 4px 18px #07190f50;
  background:radial-gradient(ellipse 90% 530px at 50% -130px,#213a2a 0%,#101c18 75%) fixed;
  color:#f1efdf;
  color-scheme:dark;
}
/* Retain the unified header size and control order; restore its original
   engraved poker crest, classic lettering and warm brass accents. */
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .site-header.unified-site-header {
  border-bottom-color:#56654a;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .site-header.unified-site-header .header-brand-name {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:700;
  letter-spacing:.105em;
  color:#f5ebd4;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .site-header.unified-site-header .header-game-title .brand-mark {
  border-radius:14px 14px 5px 5px;
  box-shadow:inset 0 1px 0 #f6d9a033,0 3px 12px #06190f55;
  color:#e8ca88;
}
/* The entry lobby should read as a dark wooden-green card room, not a generic
   slate panel. The physical felt artwork and playing cards stay unchanged. */
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .table-art {
  border-color:#52654b;
  box-shadow:0 18px 34px #07160f55,inset 0 1px 0 #d8bb7750;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel {
  background:linear-gradient(155deg,#1d3427 0%,#16281e 57%,#14241b 100%);
  border-color:#50614a;
  box-shadow:0 15px 34px #06150e45,inset 0 1px 0 #e2ca8b18;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel :is(.nickname-field,.entry-card + form,.table-settings) {
  border-color:#405442;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) :is(.entry-card h2,.nickname-field label,.rules-content h2,.rules-content h3) {
  color:#efe9d4;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel .section-number {
  color:#ddc58b;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel :is(input,select) {
  background:#10241a;
  color:#efeede;
  border-color:#51664f;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel :is(input,select):focus-visible {
  outline-color:#e8ca88;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel .button-primary {
  background:linear-gradient(180deg,#f5edd8,#e8d6ad);
  color:#243b29;
  border-color:#dcc38c;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel .button-primary:hover {
  background:#fff4d7;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel .button-secondary {
  background:#254331;
  color:#f2eddb;
  border-color:#64765a;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel .button-secondary:hover {
  background:#315440;
}
/* Game table retains its deep felt and familiar green rails. */
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) #table-view .table-stage {
  border-color:#57694e;
  box-shadow:0 14px 36px #06150f60;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .seo-related-games {
  background:linear-gradient(145deg,#1d382a,#14251c);
  border-color:#566c4e;
  color:#f1efdf;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .seo-related-links a {
  background:#284331!important;
  border-color:#597356;
  color:#f1efdf!important;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .seo-related-links a:hover {
  background:#35563f!important;
  border-color:#e8ca88;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .seo-related-icon {
  background:#345440;
}
html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .seo-related-links :is(strong,small) {
  color:#e8ecd8;
}
@media(prefers-reduced-motion:reduce) {
  html[data-theme="dark"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel {scroll-behavior:auto;}
}
