/* Friends Table — daylight card-room edition.
   Applied to the two poker pages only, and only in light mode.
   The existing responsive layout, header action order, card faces,
   chip colors, betting states, and rules logic remain untouched. */
html[data-theme="light"]:has(> body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker)) {
  --bg-primary:#f5f0e6;
  --bg-secondary:#ebe1cc;
  --bg-surface:#fffaf0;
  --text-primary:#332e26;
  --text-secondary:#645d50;
  --border-color:#cdbb99;
  --accent-color:#88611d;
  --button-bg:#f2e6cb;
  --modal-bg:#fff9ed;
  --input-bg:#fffaf0;
  --game-panel-bg:#f9f1e2;
  --game-overlay-bg:#f5eedfea;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) {
  --bg:#f5f0e6;
  --ink:#352e24;
  --muted:#61594b;
  --line:#d1be9b;
  --header-bg:linear-gradient(180deg,#f0e5ce,#e8d8b9);
  --header-line:#c2a877;
  --header-text:#392f23;
  --header-muted:#6b5b43;
  --header-accent:#845c19;
  --header-focus:#845c19;
  --header-control:#fbf4e7;
  --header-control-hover:#ead7b1;
  --header-mark:linear-gradient(145deg,#f4e4c5,#dcc18f);
  --header-mark-line:#b6975a;
  --header-panel:#fff8ec;
  --header-shadow:0 3px 13px #5942221f;
  background:radial-gradient(ellipse 90% 510px at 50% -90px,#fff9ed 0%,#f5f0e6 77%) fixed;
  color:#332e26;
  color-scheme:light;
}
/* The unified masthead retains its grid, control dimensions and tab order. */
html[data-theme="light"] 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:#c2a877;
}
html[data-theme="light"] 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 {
  color:#392f23;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:700;
  letter-spacing:.09em;
}
html[data-theme="light"] 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 {
  color:#845c19;
  border-radius:14px 14px 5px 5px;
  box-shadow:inset 0 1px 0 #fff9ed,0 3px 10px #74562b26;
}
html[data-theme="light"] 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 :is(.header-title-ko,.brand-sub) {
  color:#725d3b;
}
html[data-theme="light"] 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 .audio-panel {
  background:#fff8eb;
  border-color:#c8ae7e;
  color:#382f22;
}
/* A warm reading-light hero set against the evergreen felt illustration. */
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .intro .eyebrow {
  color:#725b32;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .intro .eyebrow>span {
  background:#ac8134;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .intro h1 {
  color:#2d3029;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) :is(.intro h1 em,.entry-steps b) {
  color:#805a1d;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .intro .intro-description {
  color:#5f5c51;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .intro-facts span {
  color:#534c3d;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .intro-facts span+span {
  border-left-color:#caba99;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .table-art {
  background:radial-gradient(ellipse at 43% 43%,#496f59 0%,#1c3d2c 75%);
  border-color:#ac9770;
  box-shadow:0 15px 31px #493b2440,inset 0 1px 0 #e8d6ae42;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .art-felt {
  background:#4e8061;
  border-color:#355843;
  box-shadow:0 0 0 1px #a3a889,0 15px 0 #1f3d2d;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) :is(.art-caption,.art-note) {
  color:#f4e7c8;
}
/* Warm veneered entry panel, with accessible dark copy and discrete brass rules. */
html[data-theme="light"] 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(152deg,#fffaf0 0%,#faf3e5 55%,#f1e5d0 100%);
  border-color:#c9b28b;
  color:#342f27;
  color-scheme:light;
  box-shadow:0 16px 36px #59442421,inset 0 1px 0 #fff;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel .entry-card {
  background:transparent;
  border-color:#d7c4a4;
  color:#352e26;
}
html[data-theme="light"] 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:#d4c09d;
}
html[data-theme="light"] 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 label,.entry-card h2,.online-connection-gate h2,.table-settings summary) {
  color:#332c22;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel :is(.entry-card p,.entry-card strong,.entry-card label,.settings-grid label,.nickname-field p,.input-hint) {
  color:#5d5548!important;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel :is(.entry-card h2,.entry-card label,.entry-card strong) {
  color:#352e26!important;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel :is(#entry-name,#room-code,.settings-grid select) {
  background:#fffaf0;
  color:#352e26;
  border-color:#c5ae87;
  color-scheme:light;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel :is(#entry-name,#room-code)::placeholder {
  color:#776b57;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel .table-settings summary>span {
  color:#736448;
}
/* Poker brass for primary actions, sage green for joining. Apply to lobby only;
   in-hand betting controls keep their established status colors. */
html[data-theme="light"] 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,#f4e3b9,#d9b876);
  color:#332718;
  border-color:#bb9755;
}
html[data-theme="light"] 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:linear-gradient(180deg,#f9e9c2,#e5c686);
}
html[data-theme="light"] 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:#dce9da;
  color:#264b39;
  border-color:#9db99f;
}
html[data-theme="light"] 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:#cfe3cf;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-steps :is(p,strong) {
  color:#5b564c;
}
/* The interactive game remains a rich green felt table on a lighter daylight
   surround. Pale card faces and the live seat/turn semantics are unchanged. */
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) #table-view {
  --line:#cdbc9d;
  color:#352f26;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) #table-view .room-code-line strong {
  color:#78531a;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) #table-view .room-tools .button {
  background:#fff7e7;
  color:#3d4937;
  border-color:#c5ae87;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) #table-view .table-stage {
  --ink:#f7f2e5;
  --muted:#e0e9db;
  color:#f7f2e5;
  background:radial-gradient(ellipse at center,#416e55 0%,#234a37 63%,#1b3327 100%);
  border-color:#b5a078;
  box-shadow:0 15px 35px #48372135;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) #table-view .table-felt {
  background:radial-gradient(ellipse at center,#518969,#2b6248);
  border-color:#34553d;
  box-shadow:0 0 0 1px #d1bd91,0 0 0 7px #4a3b28,inset 0 0 65px #123f2b;
}
/* Restore the legible ivory / red card glyphs after any shared theme rules. */
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) #table-view .playing-card:not(.is-back):not(.is-empty) {
  color:#20392c;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) #table-view .playing-card.is-red:not(.is-back):not(.is-empty) {
  color:#b04c45;
}
/* Printed poker guide: parchment rather than a generic app white card. */
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .how-to-play {
  border-color:#cfbd9e;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .how-to-play>summary {
  color:#3d3528;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .how-to-play>summary>span:last-child {
  color:#77664b;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .rules-content {
  color:#514a3e;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .rules-content :is(h2,h3,strong) {
  color:#382f22;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .rules-content :is(p,dt,dd,.rules-note,.hand-guide-intro,.hand-example-note,.card-value-key,.card-value-key strong,.hand-rank-heading>span,.hand-ranks li>span) {
  color:#5d5648;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .hand-ranks li {
  background:linear-gradient(150deg,#fffaf0,#f2e8d5);
  border-color:#cfb993;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .hand-ranks li b::before {
  color:#79551a;
}
html[data-theme="light"] body.standalone-hub-page-seven-poker .rules-content :is(.stud-streets li,.stud-action-list>div,.stud-rule-tip) {
  background:#f6eedc;
  border-color:#d3bd98;
  color:#42392c!important;
}
html[data-theme="light"] body.standalone-hub-page-seven-poker .rules-content :is(.stud-street-number,.stud-street-copy strong,.stud-action-list dt,.stud-card-count) {
  color:#76541f;
  border-color:#baa37a;
}
html[data-theme="light"] body.standalone-hub-page-seven-poker .rules-content :is(.stud-street-copy p,.stud-action-list dd,.stud-rule-tip p,.stud-start-steps span) {
  color:#554b3e;
}
html[data-theme="light"] body.standalone-hub-page-seven-poker .rules-content .stud-rule-tip {
  border-left-color:#a4792f;
  color:#42392c!important;
}
/* Related-game tiles belong to the same warmly illuminated lobby. */
html[data-theme="light"] 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,#fffaf0,#f0e3cc);
  color:#352d22;
  border-color:#c7ae82;
  box-shadow:0 11px 27px #59452220;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .seo-related-copy h2 {
  color:#352b20!important;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .seo-related-copy p {
  color:#625748;
}
html[data-theme="light"] 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:#fffcf5!important;
  color:#3d3428!important;
  border-color:#d1bc9b;
}
html[data-theme="light"] 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:#f5e7cc!important;
  border-color:#a97b35;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .seo-related-icon {
  background:#ecddbd;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .seo-related-links strong {
  color:#3d3428;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .seo-related-links small {
  color:#6c5e4a;
}

/* Later, more specific ink overrides keep the brass section numbers and
   warm hero title from being flattened by the legacy shared text rules. */
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry .intro h1 {
  color:#2f3029;
}
html[data-theme="light"] body:is(.standalone-hub-page-holdem,.standalone-hub-page-seven-poker,.standalone-hub-page-omaha,.standalone-hub-page-draw-poker) .entry-panel .entry-card .section-number {
  color:#875d19!important;
}
