/* The whole play scene shares one viewport. Secondary features live in the parlor drawer. */
html{scrollbar-gutter:auto;scroll-behavior:auto}
body{background:#081b16;background-image:radial-gradient(ellipse at 50% 20%,#21403666,transparent 75%)}
.app-shell{max-width:1280px;padding:0 28px;margin:auto}
.topbar{height:76px;margin:0;gap:18px;border-color:#d2b77c26;flex-wrap:nowrap;padding:0}
.brand img{width:27px;height:34px}.wordmark{font-size:22px}.wordmark>span{font-size:7px}
.header-actions{margin-left:auto;gap:14px}.balance-pill{min-width:128px;background:#102a21;border-radius:24px;padding:8px 14px}
.balance-pill strong{font-size:17px}.balance-pill small{font-size:9px}.seat-button{height:40px;padding:8px 12px}.seat-button #seat-label{display:inline}
.menu-toggle{order:5;background:none;display:flex;align-items:center;gap:9px;font-size:20px;color:#d8c59f;padding:8px}.menu-toggle span{font-size:12px}
main{padding-top:16px}.parlor-layout{display:block}.game-column{position:relative}
.table-surround{height:calc(100svh - 246px);min-height:380px;max-height:720px;padding:15px;border-radius:23% 23% 12% 12% / 13% 13% 9% 9%;--card-w:124px;--card-h:176px;background:linear-gradient(180deg,#574a32,#17241c 10%,#101a14 85%,#4c3f28);box-shadow:0 18px 45px #0007,inset 0 2px 2px #ddc58f66,inset 0 -5px 7px #0009}
.table-edge{inset:5px}.table-felt{background-color:#12583f;background-image:radial-gradient(ellipse at 50% 32%,#3e936744,transparent 70%),radial-gradient(ellipse at 50% 0%,#316d4922,#052f24b0 100%),url('/static/felt-grain.png');overflow:visible}
.table-felt:after{inset:9px}.table-ornament{opacity:.55}.table-state-label,.table-rail-name{display:none!important}
.dealer-name{top:20px;font-size:10px;letter-spacing:.22em}.dealer-name small{font-size:7px;margin-top:4px;color:#a7bda5}.tiny-star{font-size:8px}
.dealer-zone{top:65px;--card-w:102px;--card-h:145px}.dealer-zone .hand-label{left:calc(100% + 16px);top:40%}.dealer-zone .hand-total{font-size:16px;padding:5px 10px}
.deck{width:66px;height:94px;right:9%;top:75px;opacity:1;transform:rotate(12deg)}
.player-zone{bottom:57px;gap:72px;max-width:94%;transition:gap .45s;align-items:flex-start}
.hand-group{transition:opacity .35s,transform .45s,filter .35s;transform-origin:center 80%}.hand-group.active{transform:scale(1.025)}.hand-group.inactive{opacity:.8;transform:scale(.94)}
.hand-group.active:before{height:110px;bottom:-12px;left:-22px;right:-22px;background:radial-gradient(ellipse,#edd49a40,transparent 70%);filter:blur(8px)}
.hand-group.active .hand-label>span:first-child{color:#f7df9c}.is-split .hand-group.active .hand-label:before{content:'YOUR MOVE';position:absolute;top:-29px;left:50%;transform:translateX(-50%);font-size:8px;letter-spacing:.16em;background:#e0c88c;color:#153c2b;padding:4px 12px;border-radius:20px;white-space:nowrap}
.is-split .hand-group.active:after{content:'';position:absolute;inset:-14px -18px -12px;border:1px solid #e0c88c66;border-radius:13px;pointer-events:none}
.hand-label{font-size:10px;min-height:30px;gap:9px;margin-top:17px;position:relative;flex-wrap:wrap;max-width:230px;letter-spacing:.1em}.hand-total{font-size:17px;padding:4px 10px}.hand-bet{font-size:11px}.hand-outcome{flex-basis:100%;text-align:center;font:500 11px var(--sans);color:#dfc68e;letter-spacing:.06em}.hand-outcome.loss{color:#d0ac9b}
.table-result{top:48%;padding:10px 36px;min-width:320px;background:radial-gradient(ellipse,#093c2bef, #093c2b00 72%)}
.table-result h2{font-size:36px;line-height:1.1}.table-result .result-eyebrow{display:block;font-size:9px;color:#dbc690}.table-result .result-amount{font-size:15px;line-height:1.6}.table-result.is-loss .result-amount{font-size:11px}
.table-result.is-tie{background:radial-gradient(ellipse,#64602d88,transparent 72%)}.table-result.is-tie h2{color:#ffe3a0}.table-result.is-tie:before,.table-result.is-tie:after{font-size:26px;animation:tie-star .9s ease-out}
.felt-brand,.table-surround.is-idle .felt-brand{top:48%;opacity:.5;pointer-events:none}.felt-rules,.table-surround.is-idle .felt-rules{display:block;font-size:9px;letter-spacing:.14em;border-top:0;padding:0;color:#d3c791}.felt-rules i{margin:0 13px}
.table-felt:has(.table-result:not([hidden])) .felt-brand{visibility:hidden}
.bet-spot,.table-surround.is-idle .bet-spot{display:grid;bottom:25px;left:78%;width:46px;height:38px;z-index:8;border-color:#dbc38966}
.bet-spot span{position:relative;z-index:12;width:35px;height:35px;font-size:10px;transform:translateY(-5px)}
#wager-stack{position:absolute;inset:0}#wager-stack i{position:absolute;left:5px;bottom:calc(2px + var(--level)*3px);width:35px;height:31px;background:repeating-conic-gradient(#cba857 0deg 32deg,#eedeb3 32deg 45deg,#cba857 45deg 60deg);border:1px solid #7d622f;border-radius:50%;box-shadow:0 2px 1px #49351a;transition:bottom .2s}
.table-corner{bottom:15px;font-size:7px;color:#b2be9c88}.corner-left{left:10%}.corner-right{right:10%}
.table-surround.is-idle .dealer-name{display:block}.table-surround.is-idle .player-zone{display:flex;bottom:70px;transform:translateX(-50%)}
.empty-seat{border:1px solid #e0d1a229;border-radius:12px;width:100px;height:136px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#cad1ae38;font-size:38px}.empty-seat small{font-size:8px;letter-spacing:.16em}.empty-dealer{color:#ced7b512;border:1px solid #e0d1a21c;border-radius:8px;width:80px;height:110px;display:grid;place-items:center;font-size:36px}
.table-welcome{top:27%;padding:0 20px;pointer-events:none}.table-welcome p{font-size:9px;letter-spacing:.22em}.table-welcome h2{font-size:38px}.table-welcome>span{font-size:12px}.table-welcome #opening-action,.table-welcome>small{display:none}.welcome-fan{height:70px;position:relative;margin:0 auto 22px;width:140px}.welcome-fan>span{display:grid;place-items:center;position:absolute;left:45px;top:0;width:52px;height:72px;border-radius:5px;background:#f1ead7;color:#193e2a;font:32px Georgia;box-shadow:0 4px 8px #001b1688;border:2px solid #fff6dd;transform:rotate(-20deg);transform-origin:50% 150%}.welcome-fan>span:nth-child(2){transform:rotate(0);color:#9b4137}.welcome-fan>span:nth-child(3){transform:rotate(20deg)}
.awaiting-claim .empty-seat,.awaiting-claim .empty-dealer,.awaiting-claim .bet-spot,.awaiting-claim .felt-brand{visibility:hidden}
.control-panel,.control-panel.is-opening{min-height:142px;padding:20px 26px;margin-top:12px;gap:34px;display:flex;flex-wrap:nowrap;background:linear-gradient(100deg,#172e23,#0d241b);border:1px solid #bba06a33;border-radius:14px;box-shadow:0 10px 25px #0004}
.wager-area,.control-panel.is-opening .wager-area{width:auto;flex:1;display:flex;align-items:center;gap:28px}.control-caption{margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px;font-size:9px;min-width:86px}.wager-amount{margin:0;font-size:22px;line-height:1.3}.wager-amount small{display:inline;font-size:9px}
.chip-tray{gap:21px;flex:1;justify-content:flex-start;padding:9px 0 0}.wager-chip{width:55px;height:55px;padding:5px;box-shadow:0 3px 0 var(--chip-bottom),0 5px 0 var(--chip-stripe),0 7px 0 var(--chip-bottom),0 12px 12px #0008,inset 0 0 0 1px #ffffff44}.wager-chip>span{font-size:14px}.wager-chip.selected{transform:translateY(-10px);filter:brightness(1.12);box-shadow:0 3px 0 var(--chip-bottom),0 5px 0 var(--chip-stripe),0 7px 0 var(--chip-bottom),0 19px 14px #0009}.wager-chip:enabled:hover{transform:translateY(-12px)}.wager-chip.selected:before{inset:-5px;border:1px solid #f8dda88c;box-shadow:0 0 20px #f8dda815}.wager-chip:disabled{opacity:.56}.wager-chip:disabled.selected{opacity:1}
.action-area{flex:0 1 400px;gap:9px;align-items:stretch}.deal-button{font-size:15px;min-height:58px;width:100%;min-width:240px;justify-content:center;gap:22px;border-radius:8px;background:linear-gradient(120deg,#f2daad,#cfad6b);box-shadow:0 3px 0 #8b6b35,0 7px 18px #0005}.game-action,.game-action.minor-action{flex:1;padding:9px 6px;min-width:65px;min-height:61px;font-size:13px;flex-direction:column;gap:3px;border-radius:7px}.game-action .action-icon{display:none}.action-copy small{font-size:9px}.awaiting-claim~.control-panel .chip-tray{opacity:.45;pointer-events:none}
.table-underbar{min-height:45px;flex-wrap:wrap}.table-hint{display:block;width:100%;order:4;font-size:10px}.shortcut-button{display:block}
#parlor-menu{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:100dvh;width:390px;max-width:100%;padding:26px 22px;background:#10271e;border:0;border-left:1px solid #b9a16a55;border-radius:0;color:var(--cream);box-shadow:-20px 0 80px #0006}
#parlor-menu::backdrop{background:#020e0aaa;backdrop-filter:blur(5px)}.menu-heading{display:flex;align-items:center;justify-content:space-between}.menu-heading h2{font:32px var(--serif);margin:0}.main-nav{position:static;display:flex;height:auto;margin:20px 0;gap:20px;padding:0 0 15px;border-bottom:1px solid var(--line)}.nav-link{font-size:12px;padding:5px 0}.nav-link.active:after{display:none}
.parlor-sidebar{display:block}.daily-card{padding:20px;text-align:left}.daily-topline{justify-content:space-between}.daily-topline .eyebrow{font-size:8px}.daily-status{position:static;font-size:7px}.daily-visual{display:none}.daily-title{font-size:25px;margin:16px 0 6px}.daily-amount{font-size:33px;margin-bottom:16px}.daily-amount>span{display:inline;font-size:11px}.daily-button{font-size:12px;min-height:44px}.daily-footnote{font-size:10px;max-width:none;margin:12px 0 0}.evening-card{padding:20px 5px 0}.sidebar-section-heading h2{font-size:26px}.seat-stats{display:flex;justify-content:space-between;padding:8px 0 12px}.seat-stats>div{display:flex;flex-direction:column-reverse;gap:0}.seat-stats dd{font:28px var(--serif)}.seat-stats dt{font-size:10px;max-width:none}.streak-note{font-size:10px;min-height:40px}.company-card{margin-top:14px;padding:18px}.company-card h2{font-size:27px;max-width:none;margin:0 0 8px}.company-card h2 br{display:none}.company-card p{font-size:11px;max-width:none}.company-card .gold-text{font-size:12px}.company-art{display:none}.menu-footer{font-size:10px;color:#a9b3a0;margin-top:20px}.text-button{font-size:11px}.table-underbar .text-button{padding:10px 0}
#celebration{position:fixed;inset:0;pointer-events:none;z-index:90;overflow:hidden}.confetti,.shower-chip{position:absolute;left:var(--x);top:-50px;width:7px;height:15px;border-radius:1px;animation:shower var(--fall) var(--wait) cubic-bezier(.15,.5,.6,1) both}.shower-chip{width:32px;height:32px;border:3px dashed #fff0ba;border-radius:50%;box-shadow:0 3px 0 #8d6c30;display:grid;place-items:center;color:#80602e;font:20px Georgia}.claiming{animation:table-claim 1.3s ease-out}.splitting .hand-group:first-child{animation:split-left .6s ease-out}.splitting .hand-group:nth-child(2){animation:split-right .6s ease-out}
.playing-card.card-enter{animation:shoe-deal .52s var(--delay,0ms) cubic-bezier(.18,.7,.22,1) both}.playing-card.card-flip{animation:reveal-card .65s .14s ease-in-out both}
@keyframes shoe-deal{0%{opacity:0;transform:translate(var(--deal-x),var(--deal-y)) rotate(16deg) scale(.65)}12%{opacity:1}80%{transform:translate(0,5px) rotate(var(--tilt)) scale(1.02)}100%{opacity:1;transform:translate(0,0) rotate(var(--tilt))}}
@keyframes reveal-card{0%{transform:rotate(var(--tilt)) rotateY(0);filter:brightness(.6)}45%{transform:rotate(var(--tilt)) rotateY(90deg);filter:brightness(.6)}100%{transform:rotate(var(--tilt)) rotateY(0);filter:brightness(1)}}
@keyframes shower{0%{transform:translate(0,-30px) rotate(0);opacity:0}8%{opacity:1}100%{transform:translate(var(--drift),105vh) rotate(var(--spin));opacity:.2}}
@keyframes split-left{from{transform:translateX(45px) rotate(5deg)}to{transform:translateX(0) rotate(0)}}@keyframes split-right{from{opacity:0;transform:translateX(-75px) rotate(-10deg)}to{opacity:1;transform:translateX(0) rotate(0)}}
@keyframes tie-star{0%{transform:scale(.3) rotate(-90deg);opacity:0}60%{transform:scale(1.5) rotate(30deg)}100%{transform:scale(1) rotate(0)}}@keyframes table-claim{0%,100%{filter:brightness(1)}25%{filter:brightness(1.3)}}
@media(max-width:1050px) and (min-width:601px){.control-panel{gap:18px;padding:18px}.wager-area{gap:16px}.chip-tray{gap:13px}.wager-chip{width:46px;height:46px}.action-area{flex-basis:320px}.deal-button{min-width:190px}}
@media(max-width:600px){
 .app-shell{padding:0 10px}.topbar{height:62px;gap:8px}.brand{gap:7px}.brand img{display:none}.wordmark{font-size:20px}.wordmark>span{font-size:6px;line-height:2}.header-actions{gap:7px}.balance-pill{min-width:103px;padding:6px 10px;gap:7px}.balance-pill strong{font-size:15px}.balance-pill small{font-size:8px}.coin-icon{width:20px;height:20px;font-size:14px}.balance-add{font-size:16px;margin:0}.seat-button{width:32px;padding:0;border:0}.seat-button #seat-label{display:none}.sound-button{width:30px!important;height:36px}.sound-button svg{width:19px;height:19px}.menu-toggle{font-size:22px;padding:5px;line-height:1}.menu-toggle span{display:none}
 main{padding-top:9px}.table-surround{height:calc(100svh - 257px);min-height:320px;max-height:660px;padding:9px;border-radius:25% 25% 10% 10% / 9% 9% 6% 6%;--card-w:103px;--card-h:146px}.table-edge{inset:3px}.table-felt:after{inset:6px}.dealer-name{top:19px;font-size:8px;letter-spacing:.18em}.dealer-name small{font-size:6px;margin-top:3px}.tiny-star{font-size:6px;margin:0 10px}.dealer-zone{top:63px;--card-w:90px;--card-h:128px}.dealer-zone .hand-label{left:calc(100% + 9px)}.dealer-zone .hand-total{font-size:13px;padding:4px 7px}.deck{right:5%;top:65px;width:35px;height:50px}.deck-top{border-width:2px}.deck-top>span{font-size:19px}.deck-top:before{inset:3px}
 .player-zone{bottom:63px;gap:35px;max-width:94%}.hand-label{font-size:8px;margin-top:16px;gap:7px;max-width:165px;min-height:25px}.hand-total{font-size:15px;padding:4px 8px}.hand-bet{font-size:9px}.hand-outcome{font-size:10px}.is-split .hand-group.active:after{inset:-11px -10px -11px}.is-split .hand-group.active .hand-label:before{font-size:7px;top:-28px;padding:4px 9px}.is-split .player-zone{bottom:60px}
 .table-result{top:47%;min-width:285px;padding:7px 22px}.table-result h2{font-size:31px;line-height:1.08}.table-result .result-eyebrow{font-size:7px;display:block}.table-result .result-amount{font-size:13px}.table-result.is-loss .result-amount{font-size:9px}.table-result.is-tie:before,.table-result.is-tie:after{font-size:20px}
 .felt-brand,.table-surround.is-idle .felt-brand{top:47%;opacity:.45}.felt-rules,.table-surround.is-idle .felt-rules{font-size:7px;letter-spacing:.1em}.felt-rules i{margin:0 8px}.bet-spot,.table-surround.is-idle .bet-spot{left:82%;bottom:25px;width:40px;height:34px}.bet-spot span{width:31px;height:31px;font-size:9px}#wager-stack i{left:4px;width:31px;height:28px}.table-corner{bottom:13px;font-size:5px}.corner-left{left:10%}.corner-right{right:10%}
 .table-welcome{top:30%;padding:0 14px}.table-welcome p{font-size:8px}.table-welcome h2{font-size:32px}.table-welcome>span{font-size:10px;margin-top:8px}.welcome-fan{margin-bottom:22px}.table-surround.is-idle .player-zone{bottom:62px}.empty-seat{width:85px;height:110px}.empty-dealer{width:70px;height:100px}.empty-seat small{font-size:7px}
 .control-panel,.control-panel.is-opening{min-height:164px;padding:14px 15px 15px;margin-top:9px;display:flex;flex-wrap:wrap;gap:16px;border-radius:12px}.wager-area,.control-panel.is-opening .wager-area{width:100%;flex:auto;display:flex;gap:16px}.control-caption{min-width:58px;font-size:7px;gap:3px}.wager-amount{font-size:18px;line-height:1.1}.wager-amount small{display:block;font-size:8px;margin-top:3px}.chip-tray{justify-content:space-between;gap:12px;padding:7px 2px 0;flex:1}.wager-chip{width:43px;height:43px;padding:4px}.wager-chip>span{font-size:11px}.wager-chip.selected{transform:translateY(-8px)}.wager-chip:enabled:hover{transform:translateY(-9px)}.action-area{flex:1 0 100%;width:100%;gap:7px}.deal-button{min-height:49px;min-width:0;width:100%;font-size:13px;padding:10px 14px;gap:20px}.game-action,.game-action.minor-action{min-width:0;min-height:53px;padding:8px 3px;font-size:12px;flex:1}.action-copy small{font-size:8px}.game-action .action-icon{display:none}
 #parlor-menu .main-nav{justify-content:space-between;gap:15px}.parlor-sidebar{display:block}#parlor-menu .table-underbar{padding-top:5px;min-height:45px}#parlor-menu .table-hint{display:block;font-size:10px}#parlor-menu .text-button{font-size:11px}
}
@media(max-width:370px){.app-shell{padding:0 7px}.header-actions{gap:3px}.wordmark{font-size:18px}.balance-pill{min-width:95px;padding:6px 8px}.chip-tray{gap:10px}.wager-chip{width:36px;height:36px}.control-panel,.control-panel.is-opening{padding-left:12px;padding-right:12px}.wager-area{gap:12px}.table-result h2{font-size:27px}}
@media(max-height:740px){.table-surround{min-height:290px}.dealer-zone{top:45px;--card-w:66px;--card-h:94px}.dealer-name{top:10px}.player-zone{--card-w:77px;--card-h:109px;bottom:45px}.is-split .player-zone{bottom:40px}.is-split .hand-group{--card-w:69px!important;--card-h:98px!important}.table-result{top:45%}.table-result h2{font-size:25px}.table-result .result-eyebrow{display:none}.table-result .result-amount{font-size:11px}.hand-label{margin-top:10px}.deck{top:45px}.welcome-fan{transform:scale(.8);height:55px;margin-bottom:15px}.table-welcome{top:25%}.table-welcome h2{font-size:29px}.empty-seat{height:85px;width:65px}.table-surround.is-idle .player-zone{bottom:45px}.empty-dealer{width:55px;height:75px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important}}
/* Keep temporary flights inside the table so mobile browsers never zoom the scene out. */
.table-felt{overflow:hidden}body{overflow-x:clip}#celebration{contain:strict;width:100%;height:100%}
.payout-chip{position:fixed;z-index:80;pointer-events:none;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;border:3px dashed #fff0bb;background:#d0aa58;box-shadow:0 3px 0 #86612a;color:#5f471b;font:16px Georgia}
.playing-card.card-flip{animation:none}.flip-old,.flip-new{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}.flip-old{animation:turn-back .65s .14s ease-in-out both}.flip-new{animation:turn-front .65s .14s ease-in-out both}
@keyframes turn-back{from{transform:rotateY(0)}to{transform:rotateY(-180deg)}}@keyframes turn-front{from{transform:rotateY(180deg)}to{transform:rotateY(0)}}
.is-split .hand-group{width:240px}.is-split .hand-label{max-width:240px}
@media(max-width:600px){.is-split .hand-group{width:min(140px,calc((100vw - 72px)/2))}.is-split .hand-label{max-width:min(140px,calc((100vw - 72px)/2));column-gap:5px;font-size:7px}.is-split .hand-bet{font-size:8px}}
@media(max-width:370px){.is-split .player-zone{gap:22px}}
.bank-stack{position:relative;border:0;box-shadow:none;overflow:visible}.bank-stack i{position:absolute;bottom:calc(var(--level)*2px);left:1px;width:22px;height:11px;border-radius:50%;background:linear-gradient(#f4d692,#af873e);border:1px solid #e4c17c;box-shadow:0 2px 0 #795a2a}.bank-stack.filling i{animation:bank-fill .45s calc(var(--level)*.1s) both cubic-bezier(.2,.8,.2,1)}@keyframes bank-fill{from{transform:translateY(-40px) rotate(25deg);opacity:0}to{transform:translateY(0) rotate(0);opacity:1}}

/* Raster grain and rectangular card shadows keep moving layers inexpensive. */
.ambient{display:none}.playing-card{filter:none;box-shadow:2px 5px 5px #00271988;will-change:transform}.deck{filter:none;box-shadow:4px 7px 8px #001d1977}.hand-group.active:before{filter:none}
/* Keep the combined wager between split hands, clear of either hand's total and stake. */
.is-split .bet-spot{left:50%;bottom:22px}
/* Warm claim light composites as an overlay instead of filtering the whole table. */
.claiming{animation:none}.claiming:after{content:'';position:absolute;inset:9px;border-radius:inherit;background:radial-gradient(ellipse at 50% 35%,#ffe5a34d,transparent 72%);pointer-events:none;z-index:10;animation:claim-light 1.3s ease-out both}@keyframes claim-light{0%,100%{opacity:0}25%{opacity:1}}
