/* The surround belongs to the area under the seats, never the felt or cards. */
#table-surround-controls{display:none}
body:not([data-mobile-poker]) #table-surround-controls{
 display:grid;grid-template-columns:1fr 1fr;gap:.4rem .6rem;
 margin:.55rem 0 .7rem;padding:.48rem .6rem .6rem;border:1px solid #587365;border-radius:.65rem;
}
#table-surround-controls legend{color:#f0e6ce;font-size:.84rem;font-weight:750;padding:0 .26rem}
#table-surround-controls label{display:grid;min-width:0;gap:.2rem;font-size:.76rem;color:#e0e9e2}
#table-surround-controls select{width:100%;min-width:0;padding:.34rem .45rem;font-size:.83rem}
#table-surround-controls #surround-color-field:not([hidden]){grid-template-columns:auto 1fr;align-items:center;gap:.46rem}
#table-surround-controls input[type=color]{width:100%;min-width:44px;height:33px;padding:2px;border:1px solid #698876;border-radius:5px;background:#17241e}
#table-surround-controls p{grid-column:1/-1;margin:0;color:#c2d4c7;font-size:.75rem}
#surround-reset{justify-self:start;grid-column:2;font-size:.72rem;padding:.3rem .45rem}
body:not([data-mobile-poker]) #game[data-theme] .table-layout{
 --room-theme:color-mix(in srgb,var(--te,#18372a) 57%,#1b2130);
 --room-color:var(--room-theme);
 --room-linen:repeating-linear-gradient(0deg,#fff0 0px 2px,#fff0 2px 3px,#fff1 3px 4px),
  repeating-linear-gradient(90deg,#0000 0px 2px,#0002 2px 3px,#0000 3px 4px);
 --room-brushed:repeating-linear-gradient(113deg,#fff0 0px 3px,#fff1 3px 4px,#0001 4px 6px);
 --room-texture:none;
 background-color:var(--room-color);
 background-image:radial-gradient(ellipse at 48% 29%,#fff1 0%,transparent 58%,#0005 100%),var(--room-texture);
 border-radius:12px;
 box-shadow:inset 0 0 0 1px #fff1;
}
body:not([data-mobile-poker]) #game:is([data-theme=classic],[data-theme=holiday],[data-theme=courtside],[data-theme=burgundy],[data-theme=pinup]) .table-layout{--room-texture:var(--room-linen)}
body:not([data-mobile-poker]) #game:is([data-theme=dallas],[data-theme=ice],[data-theme=hdfleet],[data-theme=midnight]) .table-layout{--room-texture:var(--room-brushed)}
body:not([data-mobile-poker]) #game[data-theme][data-surround=light] .table-layout{--room-color:color-mix(in srgb,var(--room-theme) 47%,#a4a9b5)}
body:not([data-mobile-poker]) #game[data-theme][data-surround=dark] .table-layout{--room-color:color-mix(in srgb,var(--room-theme) 32%,#080b12)}
body:not([data-mobile-poker]) #game[data-theme][data-surround=custom] .table-layout{--room-color:var(--room-custom,#343b49)}
body:not([data-mobile-poker]) #game[data-theme][data-surround-texture=smooth] .table-layout{--room-texture:none}
body:not([data-mobile-poker]) #game[data-theme][data-surround-texture=linen] .table-layout{--room-texture:var(--room-linen)}
body:not([data-mobile-poker]) #game[data-theme][data-surround-texture=brushed] .table-layout{--room-texture:var(--room-brushed)}
/* The small clock labels remain legible even against a user-selected white background. */
body:not([data-mobile-poker]) #game:is([data-surround=light],[data-surround=custom]) .desktop-seat-timing .seat-bank{
 text-shadow:0 1px 2px #050810,0 -1px 2px #050810,1px 0 2px #050810,-1px 0 2px #050810
}
/* Put the open picker above the felt, player seats and either floating panel. */
body:not([data-mobile-poker]) #game .game-heading:has(#game-theme-menu[open]){
 position:relative;z-index:60
}
body:not([data-mobile-poker]) #game #game-theme-menu[open] .theme-menu-panel{
 background:#12241c;opacity:1
}

body:not([data-mobile-poker]) #game[data-theme=gotham] .table-layout{--room-theme:#181b23}
