/* Game-first defaults. Never scale the entire UI: keep touch targets readable. */
body[data-play-first] .play-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-left:auto}
body[data-play-first] .play-tools button,body[data-play-first] .play-tools summary{width:auto;min-height:44px;padding:8px 12px;font:600 12px/1.2 system-ui;color:#f4e8ca;background:#18372d;border:1px solid #76816b;border-radius:8px;cursor:pointer}
body[data-play-first] .play-tools details{position:relative}
.music-panel{position:absolute;right:0;top:100%;z-index:70;width:240px;padding:14px;background:#102b23;border:1px solid #9aa77e;border-radius:10px;box-shadow:0 12px 30px #0008;color:#f4e8ca;font:13px system-ui}
.music-panel label{display:block;margin:10px 0}.music-panel select,.music-panel input{width:100%;min-height:44px}.music-panel small{display:block;line-height:1.5;color:#becdbf}
body[data-play-first] .game-guide,body[data-play-first] .game-rating,body[data-play-first] .game-about,body[data-play-first] .arcade-scores,body[data-play-first] .discovery-related{max-width:1100px;margin:8px auto;padding:0 14px;border:1px solid #82957355;border-radius:8px}
body[data-play-first] :is(.game-guide,.game-rating,.game-about,.arcade-scores,.discovery-related)>summary,.play-options>summary{min-height:44px;padding:12px 4px;font:600 14px/1.4 system-ui;cursor:pointer;color:#e4d5ac}
.play-options{min-width:0;border:1px solid #81956d55;border-radius:9px;padding:0 10px;background:#10271f}.play-options>summary{display:list-item}.play-options>aside{padding-top:0!important}.play-options[open]{align-self:start}
body[data-play-first] header{padding-top:6px;padding-bottom:6px;min-height:52px;gap:8px;flex-wrap:wrap}
body[data-play-first] :is(.tt-shell,.pool-shell,.casino-shell){padding-top:8px;padding-bottom:8px}
body[data-play-first] :is(.intro,.tt-intro,.title-row,.casino-heading){margin-top:4px;margin-bottom:8px;padding-top:0;padding-bottom:0}
body[data-play-first] :is(.intro,.tt-intro,.title-row,.casino-heading) h1{font-size:clamp(22px,2.4vw,32px);margin:4px 0;line-height:1.15}
body[data-play-first] :is(.intro,.tt-intro,.title-row,.casino-heading) :is(.eyebrow,.club-mark,.free-tag),body[data-play-first] .tt-intro p,body[data-play-first=bowling] .intro p,body[data-play-first=bowling] .intro>.open{display:none}
body[data-play-first] .private-invite-cta{max-width:1100px;margin:8px auto;padding:8px 12px}
body[data-play-first] .chess-layout{margin:8px auto;gap:16px;grid-template-columns:minmax(0,min(600px,calc(100svh - 310px))) minmax(230px,300px)}
body[data-play-first] .chess-layout .table-column{width:100%;max-width: min(600px,calc(100svh - 310px));min-width:280px;justify-self:center}
body[data-play-first] .player-row{min-height:35px;padding:2px}.player-row .avatar{width:28px;height:28px;font-size:22px}
body[data-play-first] .status-panel{min-height:44px;padding:5px 9px;margin:3px 0}.status-panel strong{font-size:17px}
body[data-play-first] .tt-score{padding:7px;gap:22px}body[data-play-first] .tt-score strong{font-size:32px}
body[data-play-first] .tt-view{height:clamp(220px,calc(100svh - 310px),540px)}
body[data-play-first] .tt-play{padding:8px;gap:8px}body[data-play-first] .tt-intro h1 span{display:inline;font-size:inherit}
body[data-play-first=bowling] main{padding-top:8px}body[data-play-first=bowling] .viewport{height:clamp(230px,calc(100svh - 320px),540px);min-height:0}
body[data-play-first=bowling] .controls{padding:8px;gap:8px}body[data-play-first=bowling] .range-label{display:none}
body[data-play-first] .casino-heading p{margin:3px 0;font-size:12px}body[data-play-first] .casino-stats{padding:8px}
body[data-play-first] .topbar{padding-top:5px;padding-bottom:5px;min-height:52px}body[data-play-first] .wordmark{font-size:19px}
body[data-play-first] .salon>.entertainment-notice{margin:4px 0;font-size:10px;padding:0}
body[data-play-first] .game-focused-placeholder{display:none}
body.game-focused :is(.game-guide,.game-rating,.game-about,.arcade-scores,.discovery-related,.privacy-footer,.online-stats,.private-invite-cta,.table-note,.tt-footer,.casino-note){display:none!important}
body.game-focused :is(.intro,.tt-intro,.title-row,.casino-heading){display:none}
body.game-focused .play-options:not([open]){margin-top:0}
@media(max-width:760px){
 body[data-play-first] header{padding-inline:8px}body[data-play-first] header nav{gap:4px;flex-wrap:wrap}body[data-play-first] header button{padding:7px 9px;font-size:12px}
 body[data-play-first] .arcade-brand{display:none}body[data-play-first] .chess-layout{display:flex;flex-direction:column;padding:0 8px;gap:8px}body[data-play-first] .chess-layout .table-column{max-width:min(100%,calc(100svh - 290px));min-width:0;margin:auto}
 body[data-play-first] .tt-shell{padding:6px 8px}body[data-play-first] .tt-layout{gap:8px}body[data-play-first] .tt-view{height:clamp(220px,calc(100svh - 340px),420px)}body[data-play-first] .tt-play{grid-template-columns:1fr auto}.tt-play .spin-control{grid-column:auto}body[data-play-first] .tt-play input{min-height:44px}body[data-play-first] .tt-score>div{min-width:70px}
 body[data-play-first=bowling] main{padding:6px 8px}body[data-play-first=bowling] .layout{gap:8px}body[data-play-first=bowling] .controls{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-play-first=bowling] .controls .bowl{grid-column:1/-1;min-height:44px}body[data-play-first=bowling] .control label{font-size:11px;flex-wrap:wrap}body[data-play-first=bowling] .control input{width:100%;min-height:44px}
 body[data-play-first] :is(.game-guide,.game-rating,.game-about,.arcade-scores,.discovery-related,.private-invite-cta){margin:6px 8px}
 body[data-play-first] .pool-shell .scoreboard{padding:6px;min-height:0}body[data-play-first] .pool-shell header h1{font-size:22px}body[data-play-first] .shot-controls{gap:6px;padding:6px}body[data-play-first] .pool-shell #status{margin:5px 0}
 body[data-play-first] .game-switcher{bottom:8px;right:8px}
}
@media(min-width:761px){body[data-play-first] .tt-layout{gap:14px}body[data-play-first] .play-options{align-self:start}}
body[data-play-first] .salon{padding-top:4px}body[data-play-first] .screen-heading{padding:4px 8px}body[data-play-first] .game-area{padding-top:4px;padding-bottom:4px}body[data-play-first] .casino-shell{max-width:1100px}body[data-play-first] .casino-heading{display:flex;align-items:center;gap:12px}body[data-play-first] .casino-heading #eyebrow{display:none}body[data-play-first] .table-art{padding-top:8px;padding-bottom:8px}body[data-play-first] .casino-stats strong{font-size:24px}body[data-play-first] .casino-note{margin:6px 0;font-size:11px}
body.game-focused .salon>.entertainment-notice,body.game-focused .wordmark,body.game-focused .screen-heading .eyebrow{display:none}
@media(max-width:760px){body[data-play-first] .casino-shell{padding:6px}body[data-play-first] .casino-options{display:flex;flex-wrap:wrap;gap:6px}body[data-play-first] .casino-options>*{flex:1 1 140px}body[data-play-first] .casino-heading{margin:3px 0}body[data-play-first] .casino-heading #subtitle{display:none}body[data-play-first] .casino-stats{gap:5px}body[data-play-first] .casino-stats strong{font-size:20px}body[data-play-first] .game-switcher{position:relative;inset:auto;margin:8px;display:inline-block}body[data-play-first] .game-switcher-panel{position:absolute;bottom:100%;right:auto;left:0}body[data-play-first] .top-actions{gap:4px;flex-wrap:wrap}}
/* Compact top chrome; options stay available without pushing the table down. */
body[data-play-first] header{position:relative!important;min-height:40px;padding:3px 8px!important;flex-wrap:nowrap}body[data-play-first] .wordmark{font-size:14px!important}body[data-play-first] .compact-game-menu{margin-left:auto;position:relative}.compact-game-menu>summary{cursor:pointer;padding:8px 12px;border:1px solid #73836b;border-radius:6px;font:600 12px system-ui;min-height:36px;box-sizing:border-box}.compact-menu-content{position:absolute;right:0;top:100%;width:min(330px,90vw);z-index:100;background:#142d24;border:1px solid #86956e;padding:12px;border-radius:8px;box-shadow:0 10px 30px #0008}.compact-menu-content .top-actions,.compact-menu-content nav{display:flex!important;flex-wrap:wrap;gap:6px}.compact-menu-content .play-tools{margin-top:8px}body[data-play-first] .salon>.entertainment-notice{display:none}body[data-play-first] .screen-heading{padding:3px 6px!important}body[data-play-first] .screen-heading h1{font-size:19px!important}body[data-play-first] .layout{margin-top:4px!important}body[data-play-first] .casino-heading h1{font-size:22px}body[data-play-first] .pool-shell header{margin-bottom:4px}
.roulette-mode .rou-toolbar{padding:6px 10px;gap:16px}.roulette-mode .rou-toolbar b{font-size:20px}.roulette-mode .rou-upper{padding:10px 0;gap:20px}.roulette-mode .rou-wheel{transition-duration:5.6s}.roulette-mode .rou-ball{inset:7px;z-index:4}.roulette-mode .rou-ball i{width:13px;height:13px;left:calc(50% - 6.5px);background:radial-gradient(circle at 30% 25%,white,#f9e9b8 65%,#97845b);box-shadow:0 2px 4px #000,0 0 8px #fff9}.roulette-mode .rou-ball-moving{animation:rou-dramatic-orbit 5.6s cubic-bezier(.12,.5,.18,1) forwards}.roulette-mode .rou-outcome{font:800 clamp(18px,3vw,28px)/1.15 system-ui;color:#ffe5a0;margin:4px 0 8px}.roulette-mode .rou-result{border:1px solid #d6ba6f;background:#09251c;border-radius:10px;padding:12px}.roulette-mode .rou-result p{font-size:14px;font-weight:600}.roulette-mode .rou-result p:last-child{display:none}.roulette-mode .rou-actions{position:sticky;bottom:0;z-index:25;background:#102e24;padding:8px;border-top:1px solid #b89b58}.roulette-mode .rou-slip{min-height:28px;padding:5px 0}.roulette-mode .rou-bet-controls{margin:5px 0;gap:8px}
@keyframes rou-dramatic-orbit{0%{transform:rotate(0deg);inset:7px}70%{inset:7px}86%{inset:15px}92%{inset:10px}97%{inset:17px}100%{transform:rotate(-2520deg);inset:13px}}
@media(max-width:650px){.roulette-mode .rou-upper{flex-direction:row;gap:10px}.roulette-mode .rou-wheel-wrap{width:190px;height:190px;border-width:7px;padding:3px}.roulette-mode .rou-hub{inset:29px;border-width:3px}.roulette-mode .rou-hub b{font-size:12px}.roulette-mode .rou-hub span{display:none}.roulette-mode .rou-pocket b{font-size:8px;padding-top:3px}.roulette-mode .rou-result{display:flex;flex-direction:column;min-width:0;max-width:160px;padding:8px;gap:3px}.roulette-mode .rou-result>strong{width:48px;height:48px;font-size:30px;margin:0 auto}.roulette-mode .rou-outcome{font-size:15px;text-align:center}.roulette-mode .rou-result p{font-size:11px;text-align:center}.roulette-mode .rou-history{display:none}.roulette-mode .rou-bet-controls>span{display:none}.roulette-mode .rou-layout{min-width:0;grid-template-columns:1fr!important;padding:5px}.roulette-mode .rou-numbers{grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:repeat(6,40px)!important;grid-auto-flow:row!important}.roulette-mode .rou-field{min-height:40px}.roulette-mode .rou-zero{min-height:32px}.roulette-mode .rou-actions .prominent{flex-basis:auto;min-width:115px}.roulette-mode .rou-actions .game-action{font-size:11px;padding:6px;min-height:42px}.roulette-mode .rou-zero-bets{margin-top:4px}.roulette-mode .rou-outside{grid-template-columns:repeat(3,1fr)!important}body[data-play-first=pool] .table-wrap{height:clamp(280px,calc(100svh - 285px),520px)!important;min-height:280px!important}}
@media(prefers-reduced-motion:reduce){.roulette-mode .rou-wheel{transition:none}.roulette-mode .rou-ball-moving{animation:none}}
/* Right rail: all secondary options in one predictable location. */
body[data-play-first] .game-options-rail{position:fixed;right:12px;top:12px;width:250px;z-index:95;font:14px/1.4 system-ui;color:#f4e8cb;background:#112b23;border:1px solid #7b9067;border-radius:12px;box-shadow:0 10px 35px #0005;box-sizing:border-box}
.game-options-rail>summary{min-height:44px;padding:12px;cursor:pointer;font-weight:700;box-sizing:border-box}.rail-content{padding:0 12px 14px;max-height:calc(100dvh - 90px);overflow:auto;overscroll-behavior:contain}.rail-content h2{font:600 17px system-ui;margin:12px 0}.rail-content :is(nav,.tools,.top-actions,.board-header-tools,.play-tools,.casino-options,.match-settings){display:flex!important;flex-wrap:wrap;gap:7px;margin:8px 0;padding:0}.rail-content :is(button,select,summary){min-height:44px!important;font-size:13px!important;white-space:normal}.rail-content button{width:auto!important;flex:1 1 auto}.rail-content label{width:100%;display:block}.rail-content select{width:100%;max-width:100%}.rail-content .play-tools{margin-left:0}.rail-content .music-options{width:100%}.rail-content .music-panel{position:static;width:auto;box-shadow:none;margin-top:6px}.rail-content .side-panel{padding:0!important}.rail-content .settings{padding:10px}.rail-content .settings h2{font-size:20px}.rail-content .private-invite-cta{display:block;margin:10px 0!important;padding:8px!important}.rail-content .private-invite-cta a{display:block}.rail-content .table-note{font-size:12px}.rail-content :is(input,select){box-sizing:border-box;max-width:100%}
body[data-play-first] :is(.salon,.pool-shell,.casino-shell,.connect-shell){max-width:none;width:auto;margin:0 auto;padding-top:5px}body[data-play-first] .chess-layout{grid-template-columns:minmax(0,1fr);max-width:none;margin:6px 12px;padding:0}body[data-play-first] .chess-layout .table-column{max-width:min(760px,calc(100svh - 255px));min-width:0;width:100%;margin:auto}body[data-play-first] .chess-layout .title-row{margin-bottom:3px}body[data-play-first] header{padding-right:116px!important}body[data-play-first] .connect-shell .intro{margin:4px 0}body[data-play-first] .connect-shell .intro p{display:none}body[data-play-first] .connect-shell .match-card{max-width:800px;margin:6px auto}.game-options-rail [hidden]{display:none!important}
@media(min-width:1100px){body[data-play-first]{padding-right:280px!important;box-sizing:border-box}body[data-play-first] header{padding-right:8px!important}body[data-play-first] .salon{max-width:1600px!important;padding-inline:16px}body[data-play-first] .pool-shell{max-width:1500px}body[data-play-first] .casino-shell{max-width:1400px}body[data-play-first] .game-options-rail{top:12px;bottom:auto}.game-options-rail>summary{border-bottom:1px solid #77856666}.rail-content{max-height:calc(100dvh - 90px)}body[data-play-first] .game-switcher{right:22px;bottom:12px}body[data-play-first] .chess-layout .table-column{max-width:min(800px,calc(100svh - 245px))}body[data-play-first] .pool-shell .table-wrap{height:min(65svh,760px)}body[data-play-first] .table-layout{max-width:none}}
@media(max-width:1099px){body[data-play-first] .game-options-rail{width:auto;max-width:calc(100vw - 20px);top:6px;right:6px}.game-options-rail[open]{width:310px}.game-options-rail>summary{padding:10px 13px}.rail-content{max-height:calc(100dvh - 78px)}body[data-play-first] .chess-layout .table-column{max-width:min(100%,calc(100svh - 250px))}body[data-play-first] .pool-shell header nav{display:none}body[data-play-first] .pool-shell .shot-controls{padding:7px;gap:6px}body[data-play-first] .board-tools button{min-height:44px}body[data-play-first] header .arcade-brand{display:none}}
