:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;color:#fff5d3;background:#080e22;font-size:16px}
/* The committed round plays out at one seat at a time. */
.taking-turn .guest-plaque,.dealer-zone.taking-turn .dealer-name{outline:2px solid #f3d788;outline-offset:3px;box-shadow:0 0 18px #e5ba5344}
.blackjack-playing .new-card .card-object{animation:bj-arrive .3s ease-out}
.blackjack-playing .hole-turn .card-object{animation:bj-hole-turn .4s ease-out}
@keyframes bj-arrive{from{transform:translateY(-12px);opacity:.3}to{transform:none;opacity:1}}
@keyframes bj-hole-turn{from{transform:rotateY(90deg)}to{transform:rotateY(0)}}
@media(prefers-reduced-motion:reduce){.blackjack-playing .card-object{animation:none!important}}
*{box-sizing:border-box}body{margin:0;min-width:320px;height:100dvh;display:grid;grid-template-rows:76px minmax(0,1fr) 160px;background:radial-gradient(ellipse at 85% 20%,#122a42,transparent 60%),radial-gradient(ellipse at 10% 25%,#201b40,transparent 60%),#080e19}
button,a,input{font:inherit}button,a{touch-action:manipulation}button{border:1px solid #88794f;background:linear-gradient(#30483c,#132b21);color:#fff6d9;border-radius:9px;padding:10px 14px;min-height:42px;font-weight:700;cursor:pointer;box-shadow:inset 0 1px #ffffff36,0 3px #07150f,0 5px 7px #0007}button:hover:not(:disabled){filter:brightness(1.18)}button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px #ffffff36}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #7dd9ff;outline-offset:3px}button.primary{background:linear-gradient(#eed99d,#b19b56);border-color:#fff0be;color:#101f19}a{color:#f2dda6;text-decoration:none}a:hover{text-decoration:underline}[hidden]{display:none!important}
.site-header{width:min(1680px,97%);margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid #aa925936;padding-bottom:12px}.brand{display:flex;align-items:center;gap:9px;font:bold 26px Georgia,serif}.brand>span{white-space:nowrap}.brand small{display:block;font:9px Arial;letter-spacing:3px;margin-top:4px}.brand i{font-weight:400}.site-header nav{display:flex;gap:18px;align-items:center;font-size:15px}.site-header nav span{border-bottom:2px solid #d8c27f;padding:10px 0}.tools{display:flex;gap:8px}.tools button{font-size:14px;min-height:38px;padding:8px 12px}#seats-open{display:none}
main{display:flex;flex-direction:column;min-height:0;width:min(1580px,96vw);margin:auto;height:100%}.room-heading{height:62px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:0 12px}.room-heading small{font-size:11px;letter-spacing:2px;color:#c1c8db}h1{font:700 29px Georgia,serif;margin:3px 0}.room-options{display:flex;gap:14px;align-items:center;font-size:13px;color:#cfdbc9}.room-options button{min-height:32px;font-size:12px;padding:6px 10px}
.casino-stage{position:relative;flex:1;min-height:0;isolation:isolate;margin-top:18px}.table{position:absolute;inset:26px 8px 62px;border:19px solid #0c1210;border-radius:47% 47% 40% 40%/34% 34% 49% 49%;background:radial-gradient(ellipse at 48% 20%,#0b3021,#02160e 80%);box-shadow:0 13px #050907,0 24px #010403,0 30px 25px #0008,inset 0 0 0 3px #8c7840}.real-scene{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}.webgl-ready .table{background:none;border-color:transparent;box-shadow:none}
.dealer-zone{position:absolute;top:-32px;left:50%;transform:translateX(-50%);width:340px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:5px}.dealer-portrait{width:70px;height:88px;background:url('dealer-portraits.2cbf580fe3792f9874f2.png') 0 50%/300% 100%;border:1px solid #8b8665;border-radius:40% 40% 12% 12%;box-shadow:0 5px 14px #0008}.dealer-name{font-size:12px;background:#092119;border:1px solid #52674a;border-radius:5px;padding:3px 7px}.hand-total{font-size:18px;line-height:1.2;display:block;text-align:center}.dealer-zone .hand-total{font-size:16px}.bj-hand{display:flex;justify-content:center;align-items:center;min-height:96px;gap:5px;padding:4px 5px 10px}.bj-card{width:78px;height:110px;flex-shrink:0;background:linear-gradient(125deg,#fff,#f5f4ee 72%,#e0e3e0);border:1px solid #b9c2bb;border-radius:5px;box-shadow:0 2px #9caaa3,0 4px #e2e8e0,0 6px #77847c,3px 10px 9px #0009;position:relative;color:#10151b;display:grid;place-items:center;transform:rotate(-2deg)}.bj-card:nth-child(2n){transform:rotate(2deg)}.bj-card.red{color:#cb1644}.bj-card .corner{position:absolute;left:5px;top:3px;font-size:24px;font-weight:900;line-height:.86;text-align:center}.bj-card .corner.bottom{left:auto;top:auto;right:5px;bottom:3px;transform:rotate(180deg)}.bj-card .pip{font-size:40px}.bj-card.back{background:repeating-linear-gradient(45deg,transparent 0 5px,#c9b76677 5px 6px),repeating-linear-gradient(-45deg,#153c2c 0 5px,#bca65b55 5px 6px);border:4px solid #e5dcbf;color:#ebd48c}.bj-card.back .pip{background:#113326;border:1px solid #d9bf77;padding:10px 5px;font-size:28px}.bj-hand.many .bj-card+.bj-card{margin-left:-35px}
.felt-lettering{position:absolute;top:39%;left:50%;transform:translate(-50%,-50%);text-align:center;opacity:.62;color:#dabf70;pointer-events:none;white-space:nowrap}.felt-lettering span{display:block;font:11px Georgia;letter-spacing:4px}.felt-lettering strong{display:block;font:700 23px Georgia;margin:9px}.felt-lettering small{font-size:10px;letter-spacing:2px}
.guest-seat{position:absolute;transform:translate(-50%,-50%);width:230px;text-align:center}.guest-0{left:23%;top:26%}.guest-1{left:18%;top:67%}.guest-2{left:82%;top:67%}.guest-3{left:77%;top:26%}.guest-seat.empty{opacity:.5;font-size:14px;border:1px dashed #cfca9d66;padding:25px;border-radius:40%}.guest-seat .bj-card{width:58px;height:82px}.guest-seat .corner{font-size:18px}.guest-seat .pip{font-size:30px}.guest-seat .bj-hand{min-height:91px;padding-bottom:12px}.guest-seat .bj-hand.many .bj-card+.bj-card{margin-left:-30px}.guest-seat .hand-total{font-size:15px}.guest-plaque{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:5px 10px 5px 5px;border-radius:30px;background:linear-gradient(#294136,#0a2016);border:1px solid #7a8368;box-shadow:0 3px #031008;min-height:42px;font-size:15px}.guest-plaque b{margin-right:auto}.guest-plaque small{font-weight:400;color:#b9c8ba;font-size:9px;display:block;margin-top:2px;letter-spacing:.6px}.avatar{height:32px;width:32px;border-radius:50%;border:1px solid #d6bb6c;background:url('guest-portraits.2cbf580fe3792f9874f2.png') 0 0/300% 200%;flex-shrink:0}.guest-1 .avatar{background-position:50% 0}.guest-2 .avatar{background-position:100% 0}.guest-3 .avatar{background-position:50% 100%}
.bet-spot{--bet-size:76px;width:var(--bet-size);height:var(--bet-size);margin:8px auto 0;border:2px solid #e0c87e;border-radius:50%;position:relative;display:grid;place-items:center;box-shadow:inset 0 0 0 3px #071f14,inset 0 0 0 4px #d2be7466;background:#082719}.bet-spot .spot-label{position:absolute;top:-10px;font-size:13px;font-weight:800;background:#082317;padding:0 4px;white-space:nowrap}.bet-spot .spot-amount{position:absolute;bottom:-10px;line-height:18px;padding:0 4px;background:#082317;font-size:15px;font-weight:800}.guest-result{margin-top:8px;font-size:15px;font-weight:bold;min-height:19px}.win{color:#ffdd7b}.loss{color:#ffadb5}.push{color:#bde6f0}
.player-seat{position:absolute;left:50%;top:51%;transform:translateX(-50%);width:550px;text-align:center}.you-plaque{display:inline-flex;align-items:center;gap:10px;font-weight:900;font-size:14px;letter-spacing:1px;padding:8px 16px;background:linear-gradient(#36543e,#122b1b);border:1px solid #b4ad72;border-radius:9px;box-shadow:0 3px #021108,0 6px 7px #0005}.you-plaque span{letter-spacing:0;font-size:15px;font-weight:600}.player-seat .bj-card{width:88px;height:124px}.player-seat .bj-hand{min-height:142px}.player-seat .bj-hand.many .bj-card+.bj-card{margin-left:-45px}#player-hands{display:flex;gap:20px;justify-content:center;align-items:flex-start}.player-hand{flex:1;min-width:0;max-width:510px;padding:7px 4px 6px;border-radius:15px;border:1px solid transparent}.player-hand.active-hand{background:linear-gradient(#092d1eaa,#0e382366);border-color:#d9ba58aa}.player-hand .hand-total{margin-bottom:6px;font-size:22px}.player-hand .bet-spot{margin-top:7px}.player-hand.split-hand .bj-card{width:68px;height:98px}.player-hand.split-hand .bj-hand{min-height:115px}.player-hand.split-hand .bj-hand.many .bj-card+.bj-card{margin-left:-38px}.player-hand.split-hand .hand-total{font-size:18px}.round-result{position:absolute;left:50%;top:-60px;transform:translateX(-50%);min-width:270px;max-width:440px;padding:10px 18px;font-size:23px;font-weight:900;border-radius:12px;background:linear-gradient(#314738,#0a2016);border:1px solid #c6ac65;box-shadow:0 5px #07140e,0 10px 15px #0006}.round-result small{display:block;font-size:14px;font-weight:600;margin-top:4px}
.play-dock{width:min(1640px,96%);margin:auto;align-self:end;display:grid;grid-template-columns:270px 1fr 400px;gap:10px 24px;align-items:center;min-height:154px;padding-top:10px;border-top:1px solid #a9955333}.bank{display:flex;align-items:center;gap:7px 12px;flex-wrap:wrap}.bank small{font-size:11px;letter-spacing:1.2px}.bank strong{font-size:30px}.bank button{font-size:13px;min-height:34px;padding:6px 9px}.bank span{font-size:12px;color:#b8c6bc;flex-basis:100%}.bet-controls{display:flex;flex-direction:column;align-items:center;gap:4px}.chip-palette{display:flex;justify-content:center;gap:6px}.chip-choice{padding:0;border:none;box-shadow:none;background:none;min-height:50px;width:58px}.chip-choice:hover:not(:disabled){transform:translateY(-3px)}.bet-entry{display:flex;gap:10px;align-items:center;font-size:13px}.bet-entry input{width:84px;padding:7px 4px;border:1px solid #8c855d;background:#0c241a;border-radius:6px;font-weight:700;font-size:17px;text-align:center}.bet-entry span{font-size:11px;color:#c9d0c4}.bet-entry button{font-size:12px;min-height:32px;padding:5px 8px}.actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.actions button{font-size:17px;padding:10px 17px}.action-area p{font-size:13px;line-height:1.3;margin:8px 0 0;text-align:right;min-height:17px}.text-button{background:none;border:0;box-shadow:none;text-decoration:underline;font-size:12px;min-height:24px;padding:3px;color:#ced9c9;float:right}.fine-print{grid-column:1/-1;display:flex;justify-content:space-between;color:#aebbd0;font-size:10px;padding:0 0 9px}
dialog{color:#f5f2df;background:linear-gradient(140deg,#20392d,#071a11);border:1px solid #bda66a;border-radius:16px;width:min(620px,94vw);max-height:88dvh;padding:22px;box-shadow:0 20px 70px #000a;font-size:16px;line-height:1.5}dialog::backdrop{background:#030b15bf;backdrop-filter:blur(5px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}h2{font:700 25px Georgia;margin:0}dialog li{margin-bottom:10px}dialog table{width:100%;border-collapse:collapse}dialog caption{font-size:13px;color:#c6ccbc;margin-bottom:6px}dialog th,dialog td{padding:9px;border-bottom:1px solid #d3c38b44;text-align:left}dialog td{text-align:right;color:#f0d487;font-weight:bold}.account-resume{display:inline-block;padding:10px 16px;background:#dbc17d;color:#0c2117;border-radius:7px;font-weight:bold}#guest-list .guest-seat{position:static;transform:none;width:100%;max-width:340px;margin:18px auto;padding:12px;border:1px solid #567451;border-radius:12px}#guest-list .empty{display:none}#hand-details article{border-bottom:1px solid #546543;padding:10px 0}#hand-details h3{margin:4px 0}#hand-details p{margin:5px 0}
@keyframes card-arrive{from{translate:0 -15px}to{translate:0 0}}.new-card{animation:card-arrive .32s ease-out both}
@media(min-width:1900px) and (min-height:1000px){body{grid-template-rows:85px minmax(0,1fr) 170px}.dealer-portrait{width:85px;height:106px}.dealer-zone .bj-card{width:90px;height:128px}.guest-seat{width:270px}.guest-seat .bj-card{width:72px;height:104px}.guest-seat .bj-hand{min-height:119px}.guest-seat .hand-total{font-size:18px}.guest-plaque{font-size:17px}.player-seat .bj-card{width:106px;height:150px}.player-seat .bj-hand{min-height:170px}.player-seat{top:52%}.bet-spot{--bet-size:82px;width:var(--bet-size);height:var(--bet-size)}.felt-lettering{top:43%}}
@media(max-width:1250px){.site-header{gap:12px}.brand{font-size:22px}.tools button{font-size:12px;padding:7px 9px}.site-header nav{font-size:13px;gap:10px}.play-dock{grid-template-columns:220px 1fr 340px;gap:8px}.actions button{padding:10px 12px;font-size:16px}.chip-choice{width:48px}.guest-seat{width:190px}.guest-seat .bj-card{width:49px;height:71px}.guest-seat .bj-hand{min-height:81px}.guest-0{left:22%;top:27%}.guest-3{left:78%;top:27%}.guest-seat .bet-spot{--bet-size:66px;width:var(--bet-size);height:var(--bet-size)}.player-seat{width:440px;top:48%}.player-seat .bj-card{width:74px;height:106px}.player-seat .bj-hand{min-height:123px}.player-hand.split-hand .bj-card{width:57px;height:84px}.player-hand.split-hand .bj-hand{min-height:100px}.felt-lettering strong{font-size:19px}}
@media(max-height:830px) and (min-width:1400px){body{grid-template-rows:60px minmax(0,1fr) 140px}.room-heading{height:40px}h1{font-size:23px}.casino-stage{margin-top:10px}.table{inset:24px 8px 45px}.dealer-portrait{width:48px;height:60px}.dealer-zone{gap:3px;top:-28px}.dealer-zone .bj-card{width:55px;height:78px}.dealer-zone .bj-hand{min-height:90px}.dealer-name{font-size:10px}.dealer-zone .hand-total{font-size:13px}.felt-lettering{display:none}.guest-seat .bj-card{width:45px;height:64px}.guest-seat .bj-hand{min-height:72px}.guest-seat .bet-spot{--bet-size:52px;width:var(--bet-size);height:var(--bet-size)}.guest-seat .guest-result{font-size:12px;margin:4px}.guest-seat .spot-label{font-size:11px}.guest-seat .spot-amount{font-size:12px}.guest-plaque{min-height:32px;font-size:13px}.avatar{width:26px;height:26px}.player-seat{top:47%}.player-seat .bj-card{width:64px;height:92px}.player-seat .bj-hand{min-height:106px}.player-hand .hand-total{font-size:19px}.player-hand .bet-spot{--bet-size:58px;width:var(--bet-size);height:var(--bet-size)}.you-plaque{padding:5px 12px}.round-result{top:-49px;padding:6px 14px;font-size:20px}.round-result small{font-size:12px}.play-dock{min-height:135px}.actions button{font-size:15px;padding:8px 10px}.player-hand.split-hand .bj-card{width:53px;height:76px}.player-hand.split-hand .bj-hand{min-height:90px}}
@media(max-width:1399px){body{grid-template-rows:64px minmax(0,1fr) 212px}.site-header{gap:8px}.site-header nav{gap:7px;font-size:12px}.brand{font-size:20px}.brand small{font-size:7px;letter-spacing:2px}.tools{gap:6px}.tools #guests-toggle{display:none}#seats-open{display:inline-block}.tools button{font-size:12px;min-height:36px;padding:7px 8px}.guest-seat{display:none}.felt-lettering{top:46%}.room-heading{height:45px}.room-heading h1{font-size:24px}.room-options{font-size:12px;gap:8px}.table{inset:26px 0 45px}.casino-stage{margin-top:12px}.dealer-zone{top:-31px}.dealer-portrait{width:52px;height:66px}.dealer-zone .bj-card{width:63px;height:90px}.dealer-zone .bj-hand{min-height:100px}.dealer-zone .hand-total{font-size:14px}.player-seat{top:52%;width:min(480px,88%)}.player-seat .bj-card{width:78px;height:112px}.player-seat .bj-hand{min-height:127px}.player-hand .hand-total{font-size:21px}.player-hand .bet-spot{--bet-size:62px;width:var(--bet-size);height:var(--bet-size)}.round-result{top:-58px;font-size:20px;padding:8px 12px}.play-dock{grid-template-columns:210px 1fr;grid-template-rows:auto auto auto;width:94%;min-height:207px;gap:8px 20px}.bank{grid-row:1/3}.action-area{grid-column:2;grid-row:2}.bet-controls{grid-column:2;grid-row:1}.actions{justify-content:center}.action-area p{text-align:center}.text-button{float:none;display:block;margin:auto}.fine-print{grid-row:3}.bank strong{font-size:26px}.chip-palette{gap:7px}.chip-choice{min-height:40px}#guest-list .guest-seat{display:block}.player-hand.split-hand .bj-card{width:64px;height:91px}.player-hand.split-hand .bj-hand{min-height:104px}}
@media(max-width:600px){body{grid-template-rows:64px minmax(0,1fr) 239px}.site-header{width:95%;flex-wrap:wrap;justify-content:space-between;gap:1px 8px;padding-bottom:4px}.brand{font-size:16px}.brand small{display:none}.site-header nav{font-size:11px}.site-header nav span{padding:6px 0}.tools{width:100%;justify-content:space-between}.tools #guests-toggle{display:block}.tools button{min-height:26px;padding:3px 8px;font-size:11px;box-shadow:none}.room-heading{height:38px;padding:0}.room-heading h1{font-size:21px}.room-heading small{display:none}.room-options{font-size:10px}#view-angle{display:none!important}.casino-stage{margin-top:9px}.table{inset:20px -8px 24px;border-width:12px}.dealer-zone{top:-25px;width:250px;gap:2px}.dealer-portrait{width:38px;height:48px}.dealer-name{font-size:10px;padding:1px 5px}.dealer-zone .bj-card{width:51px;height:73px}.dealer-zone .bj-hand{min-height:83px;padding-bottom:7px}.bj-card .corner{font-size:20px}.bj-card .pip{font-size:29px}.dealer-zone .hand-total{font-size:12px}.felt-lettering{display:none}.player-seat{top:51%;width:95%}.you-plaque{font-size:11px;padding:4px 10px;gap:6px}.you-plaque span{font-size:13px}.player-seat .bj-card{width:62px;height:88px}.player-seat .bj-hand{min-height:100px;padding-bottom:8px}.player-hand{padding:4px 2px}.player-hand .hand-total{font-size:18px;margin-bottom:3px}.player-hand .bet-spot{--bet-size:51px;width:var(--bet-size);height:var(--bet-size);margin-top:2px}.spot-label{display:none}.bet-spot .spot-amount{font-size:12px;bottom:-8px}#player-hands{gap:4px}.player-hand.split-hand .bj-card{width:48px;height:68px}.player-hand.split-hand .bj-hand{min-height:81px}.player-hand.split-hand .hand-total{font-size:15px}.player-hand.split-hand .bj-hand.many .bj-card+.bj-card{margin-left:-30px}.player-seat .bj-hand.many .bj-card+.bj-card{margin-left:-36px}.round-result{top:-39px;font-size:17px;min-width:225px;padding:5px 10px}.round-result small{font-size:11px;margin-top:2px}.play-dock{min-height:235px;grid-template-columns:1fr;grid-template-rows:36px 78px 83px 15px;gap:4px;padding-top:4px;width:95%}.bank{grid-column:1;grid-row:1;justify-content:center;gap:6px}.bank small{font-size:10px}.bank strong{font-size:23px}.bank span{display:none}.bank button{font-size:11px;min-height:29px;padding:4px 7px}.bet-controls{grid-row:2;grid-column:1;gap:0}.bet-entry{font-size:12px;gap:8px}.bet-entry input{width:70px;font-size:15px;padding:3px}.bet-entry button{min-height:28px;font-size:11px}.bet-entry span{font-size:10px}.chip-choice{min-height:42px}.action-area{grid-row:3;grid-column:1}.actions{gap:6px;flex-wrap:nowrap}.actions button{font-size:15px;padding:9px 12px;min-height:40px}.action-area p{font-size:12px;margin:7px 0 0}.text-button{font-size:11px;min-height:22px}.fine-print{grid-row:4;font-size:9px;padding:0;justify-content:center}.fine-print #save-status{display:none}.room-options #shoe-status{max-width:140px;text-align:right}}
@media(max-height:710px) and (max-width:600px){body{grid-template-rows:64px minmax(0,1fr) 225px}.room-heading{height:28px}.dealer-portrait,.dealer-name{display:none}.dealer-zone{top:-7px}.dealer-zone .bj-card{width:43px;height:62px}.dealer-zone .bj-hand{min-height:71px}.player-seat{top:44%}.player-seat .bj-card{width:51px;height:73px}.player-seat .bj-hand{min-height:84px}.player-hand .hand-total{font-size:16px}.player-hand .bet-spot{--bet-size:39px;width:var(--bet-size);height:var(--bet-size)}.play-dock{min-height:222px;grid-template-rows:32px 72px 80px 14px}.player-hand.split-hand .bj-card{width:41px;height:59px}.player-hand.split-hand .bj-hand{min-height:70px}.round-result{font-size:15px;top:-36px}}
@media(max-height:550px) and (min-width:601px){body{grid-template-rows:48px minmax(0,1fr) 111px}.site-header .brand{font-size:18px}.room-heading{height:28px}.room-heading small,.room-options #shoe-status{display:none}.room-heading h1{font-size:20px}.casino-stage{margin-top:4px}.table{inset:8px 0 18px}.dealer-zone{top:13%;left:28%;width:220px}.dealer-portrait,.dealer-name,.felt-lettering{display:none}.dealer-zone .bj-card{width:53px;height:76px}.dealer-zone .bj-hand{min-height:88px}.player-seat{top:2%;left:69%;width:48%}.player-seat .bj-card{width:50px;height:72px}.player-seat .bj-hand{min-height:82px}.player-hand.split-hand .bj-card{width:42px;height:60px}.player-hand.split-hand .bj-hand{min-height:70px}.player-hand .hand-total{font-size:16px}.player-hand .bet-spot{--bet-size:34px;width:var(--bet-size);height:var(--bet-size);margin-top:0}.you-plaque{padding:3px 8px;font-size:11px}.you-plaque span{font-size:12px}.round-result{top:auto;bottom:0;left:-38%;font-size:16px;min-width:190px;max-width:230px;padding:5px 8px}.round-result small{font-size:10px}.play-dock{min-height:107px;grid-template-columns:170px 1fr 290px;grid-template-rows:auto 12px;gap:4px}.bank{grid-row:1;gap:4px 6px}.bank span{display:none}.bank strong{font-size:22px}.bank button{font-size:10px;min-height:25px}.bet-controls{grid-column:2;grid-row:1}.action-area{grid-column:3;grid-row:1}.actions{gap:4px}.actions button{font-size:13px;padding:7px;min-height:34px}.action-area p{font-size:11px}.chip-palette{gap:2px}.chip-choice{min-height:31px}.bet-entry input{width:59px;font-size:14px;padding:3px}.bet-entry span{display:none}.bet-entry{font-size:12px;gap:5px}.bet-entry button{font-size:10px;min-height:25px}.fine-print{grid-row:2;font-size:9px;padding:0}.text-button{font-size:10px;min-height:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Keep card faces, totals and chips in distinct rows/columns inside the rail. */
.player-hand{display:grid;grid-template-columns:minmax(0,1fr) 84px;align-items:center;column-gap:10px;max-width:440px}
.player-hand>.hand-total{grid-column:1/-1}.player-hand>.bj-hand{grid-column:1;grid-row:2;min-width:0;width:100%}.player-hand>.bet-spot{grid-column:2;grid-row:2}.player-hand>.guest-result{grid-column:1/-1}
.player-hand.split-hand{grid-template-columns:minmax(0,1fr) 70px;column-gap:5px}.player-hand.split-hand .bet-spot{--bet-size:62px;width:var(--bet-size);height:var(--bet-size)}
.player-seat{top:55%}.round-result{z-index:2}.bj-card{opacity:1}.felt-lettering{top:45%}
@media(min-width:1400px) and (max-height:1150px){
 .dealer-portrait{width:56px;height:72px}.dealer-zone .bj-card{width:63px;height:90px}.dealer-zone .bj-hand{min-height:102px}.dealer-zone .hand-total{font-size:14px}.dealer-zone{gap:3px}
 .guest-seat:not(.empty){display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:4px;width:250px;align-items:center}.guest-seat .guest-plaque{grid-column:1/-1}.guest-seat .bj-hand{grid-column:1;grid-row:2;min-width:0;width:100%}.guest-seat .bet-spot{grid-column:2;grid-row:2;--bet-size:64px;width:var(--bet-size);height:var(--bet-size)}.guest-seat .hand-total{grid-column:1;grid-row:3}.guest-seat .guest-result{grid-column:1/-1;margin-top:2px}
 .guest-0,.guest-3{top:31%}.guest-1,.guest-2{top:69%}.player-seat{top:55%;width:480px}.felt-lettering{display:none}.player-seat .bj-card{width:82px;height:116px}.player-seat .bj-hand{min-height:133px}.player-hand.split-hand .bj-card{width:61px;height:87px}.player-hand.split-hand .bj-hand{min-height:102px}
}
@media(min-width:1400px) and (max-height:830px){
 .dealer-portrait{width:40px;height:50px}.dealer-zone .bj-card{width:48px;height:69px}.dealer-zone .bj-hand{min-height:80px}.dealer-name{font-size:10px}.dealer-zone{gap:2px}
 .guest-seat:not(.empty){width:220px;grid-template-columns:minmax(0,1fr) 60px}.guest-seat .bet-spot{--bet-size:54px;width:var(--bet-size);height:var(--bet-size)}.guest-seat .bj-card{width:46px;height:66px}.guest-seat .bj-hand{min-height:77px}.guest-0,.guest-3{top:32%}.guest-1,.guest-2{top:72%}.player-seat{top:54%;width:420px}.player-seat .bj-card{width:64px;height:92px}.player-seat .bj-hand{min-height:105px}.player-hand.split-hand .bj-card{width:51px;height:74px}.player-hand.split-hand .bj-hand{min-height:87px}.player-hand{grid-template-columns:minmax(0,1fr) 65px}.player-hand.split-hand{grid-template-columns:minmax(0,1fr) 55px}.player-hand.split-hand .bet-spot{--bet-size:50px;width:var(--bet-size);height:var(--bet-size)}
}
@media(max-width:1399px){.player-seat{top:59%}.player-hand{max-width:400px;grid-template-columns:minmax(0,1fr) 70px}.player-hand.split-hand{grid-template-columns:minmax(0,1fr) 54px}.player-hand.split-hand .bet-spot{--bet-size:48px;width:var(--bet-size);height:var(--bet-size)}.felt-lettering{top:49%}}
@media(max-width:600px){.player-seat{top:58%}.player-hand{max-width:290px;grid-template-columns:minmax(0,1fr) 56px;column-gap:5px}.player-hand.split-hand{grid-template-columns:minmax(0,1fr);padding:4px}.player-hand.split-hand .bj-hand{grid-column:1;grid-row:2}.player-hand.split-hand .bet-spot{grid-column:1;grid-row:3;--bet-size:35px;width:var(--bet-size);height:var(--bet-size);margin:0 auto}.player-hand.split-hand .spot-amount{font-size:10px}.player-hand.split-hand .guest-result{font-size:12px;margin-top:9px}.player-seat .bj-hand{min-height:100px}.player-hand.split-hand .bj-hand{min-height:81px}}
@media(max-height:710px) and (max-width:600px){.player-seat{top:51%}.player-seat .bj-hand{min-height:84px}.player-hand.split-hand .bj-hand{min-height:70px}.player-hand.split-hand .bet-spot{--bet-size:29px;width:var(--bet-size);height:var(--bet-size)}}
@media(max-height:550px) and (min-width:601px){.player-seat{top:4%}.player-hand{grid-template-columns:minmax(0,1fr) 40px}.player-hand.split-hand{grid-template-columns:minmax(0,1fr) 35px}.player-hand.split-hand .bet-spot{--bet-size:30px;width:var(--bet-size);height:var(--bet-size)}.player-seat .bj-hand{min-height:82px}.player-hand.split-hand .bj-hand{min-height:70px}}
/* Preserve visible felt around every betting spot and the full projected rail. */
.bj-card .pip{position:absolute;left:60%;top:55%;transform:translate(-50%,-50%);font-size:30px}.bj-card.back .pip{left:50%;top:50%}.bj-card .corner{font-size:21px}.guest-seat .bj-card .corner{font-size:17px}.guest-seat .bj-card .pip{font-size:23px}
.player-hand:only-child>.guest-result{display:none}.table:has(.round-result:not([hidden])) .felt-lettering{visibility:hidden}
@media(min-width:1400px) and (max-height:1150px){.dealer-zone{top:-54px}.player-seat{top:42%}.guest-0,.guest-3{top:24%}.guest-1,.guest-2{top:67%}.dealer-zone .bj-card .corner{font-size:18px}.dealer-zone .bj-card .pip{font-size:25px}}
@media(min-width:1400px) and (max-height:830px){.dealer-zone{top:-38px}.player-seat{top:42%}.guest-0,.guest-3{top:26%}.guest-1,.guest-2{top:69%}.dealer-zone .bj-card .corner,.guest-seat .bj-card .corner{font-size:15px}.dealer-zone .bj-card .pip,.guest-seat .bj-card .pip{font-size:20px}}
@media(min-width:601px) and (max-width:1399px) and (min-height:551px){body{grid-template-rows:64px minmax(0,1fr) 224px}.play-dock{min-height:0;height:100%;gap:5px 20px}.table{bottom:85px}.player-seat{top:53%}.felt-lettering{top:44%}}
@media(max-width:600px){.table{bottom:72px}.player-seat{top:49%}.bj-card .corner{font-size:18px}.bj-card .pip{font-size:25px}.dealer-zone .bj-card .corner{font-size:16px}.dealer-zone .bj-card .pip{font-size:21px}.player-hand.split-hand .bj-card .corner{font-size:15px}.player-hand.split-hand .bj-card .pip{font-size:19px}}
@media(max-height:710px) and (max-width:600px){.table{bottom:62px}.player-seat{top:42%}.player-hand.split-hand .bj-card .corner{font-size:13px}.dealer-zone .bj-card .corner{font-size:14px}.bj-card .pip{font-size:21px}.player-hand.split-hand .bj-card .pip{font-size:16px}}
@media(max-height:550px) and (min-width:601px){.table{bottom:60px}.player-seat{top:4%}.bj-card .corner{font-size:16px}.bj-card .pip{font-size:23px}.player-hand.split-hand .bj-card .corner{font-size:13px}.player-hand.split-hand .bj-card .pip{font-size:17px}}
/* Results replace the YOU plaque so they never cover the dealer's cards. */
.round-result{position:static;transform:none;margin:0 auto 6px;min-width:0;width:max-content;max-width:100%;padding:6px 18px;font-size:21px;line-height:1.1}.round-result small{font-size:13px;margin-top:3px}.round-result:not([hidden])+.you-plaque{display:none}
@media(min-width:1400px) and (max-height:1150px){.player-seat{width:460px}}
@media(min-width:1400px) and (max-height:830px){.player-seat{width:410px}.round-result{font-size:18px;padding:5px 14px}.round-result small{font-size:11px}}
/* A shallower CSS rail preserves usable felt on the focused tablet/phone table. */
@media(max-width:1399px){.real-scene{display:none}.webgl-ready .table{background:radial-gradient(ellipse at 45% 25%,#0a3020,#03190f 80%);border:12px solid #111a15;box-shadow:inset 0 0 0 2px #ad9556,0 4px #786540,0 12px #070e09,0 18px 18px #0008}.table{inset:20px 0 25px}.player-seat{top:54%}#view-angle{display:none!important}.round-result{font-size:20px}}
@media(max-width:600px){.table{inset:20px 0 25px}.player-seat{top:49%;width:91%}.player-seat:has(.round-result:not([hidden])){top:45%}.round-result{font-size:17px;padding:5px 12px;margin-bottom:4px}.round-result small{font-size:11px}.site-header nav{font-size:10px;gap:6px}.guest-seat{display:none}}
@media(max-height:710px) and (max-width:600px){.dealer-zone{top:-26px}.player-seat{top:42%}.player-seat:has(.round-result:not([hidden])){top:37%}.round-result{font-size:16px}.round-result small{font-size:10px}}
@media(max-height:550px) and (min-width:601px){.table{inset:9px 0 25px;border-radius:90px}.player-seat{top:1%;left:69%;width:46%}.dealer-zone{top:18%;left:26%}.round-result{font-size:15px;line-height:1;padding:4px 10px;margin-bottom:3px}.round-result small{font-size:10px}.player-hand .guest-result{font-size:12px;margin-top:5px}.you-plaque{padding:3px 8px}.player-hand{padding-top:3px}.player-hand .hand-total{font-size:15px;margin-bottom:3px}.player-hand.split-hand .bj-hand{min-height:70px}.player-hand .bet-spot .spot-label{display:none}.player-hand.split-hand .spot-amount{font-size:11px}}

@media(max-height:710px) and (max-width:600px){.player-seat{top:37%}.player-seat:has(.round-result:not([hidden])){top:30%}}
@media(max-height:550px) and (min-width:601px){.player-hand>.guest-result{display:none}}

@media(min-width:601px) and (max-width:1399px) and (min-height:551px) and (max-height:900px){
 .dealer-zone{left:25%;top:18%;width:300px}.player-seat{left:70%;top:20%;width:47%}.felt-lettering{display:none}.round-result{font-size:19px}.player-hand.split-hand .bj-card{width:59px;height:84px}.player-hand.split-hand .bj-hand{min-height:96px}
 .dealer-zone .bj-card .corner{font-size:18px}.dealer-zone .bj-card .pip{font-size:24px}.player-hand.split-hand .bj-card .corner{font-size:17px}.player-hand.split-hand .bj-card .pip{font-size:23px}
}

/* Poker-matched chip cylinders: the same 160×120 atlas, 55-unit sidewall,
   85% visible circle coverage, denomination piles, and three-layer selector. */
.bet-spot{--stack-step:1.5px}
.bet-spot .chip-art{
 --chip-w:calc(var(--bet-size) * .9444444444);--chip-h:calc(var(--chip-w) * .75);
 position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
 width:var(--chip-w);height:calc(var(--chip-h) + var(--stack-step) * 3);
 pointer-events:none;overflow:visible;
}
.chip-art .chip-disc{
 position:absolute;width:var(--chip-w);height:var(--chip-h);left:0;
 background:var(--chip-art,url('chip-art.2cbf580fe3792f9874f2.svg')) var(--chip-position) 0 / 800% 100% no-repeat;
 filter:drop-shadow(1px 3px 2px #0008);z-index:var(--layer);
}
.wager-stack .chip-disc{top:calc(var(--stack-step) * (3 - var(--layer)))}
.chip-art .chip-disc b{
 display:block;text-align:center;font:900 calc(var(--chip-w) * .21)/calc(var(--chip-h) * .5166666667) -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
 color:#15252b;text-shadow:none;transform:none;
}
.chip-palette{gap:10px;align-items:center}
.chip-choice{width:48px;height:54px;min-height:54px;display:grid;place-items:center}
.chip-choice .selector-stack{
 --chip-w:48px;--chip-h:36px;--selector-step:7px;
 display:block;position:relative;width:var(--chip-w);height:calc(var(--chip-h) + var(--selector-step) * 2);
 pointer-events:none;
}
.selector-stack .chip-disc{bottom:calc(var(--selector-step) * var(--layer))}
.chip-choice .chip-disc b{font-size:13px}
.bet-spot .spot-label,.bet-spot .spot-amount{z-index:5}
@media(max-width:1399px){.chip-palette{gap:9px}.chip-choice{width:42px;height:46px;min-height:46px}.chip-choice .selector-stack{--chip-w:42px;--chip-h:31.5px;--selector-step:6.125px}.chip-choice .chip-disc b{font-size:12px}.bet-spot{--stack-step:1.25px}}
@media(max-width:600px){.chip-palette{gap:10px}.chip-choice{width:38px;height:42px;min-height:42px}.chip-choice .selector-stack{--chip-w:38px;--chip-h:28.5px;--selector-step:5.5416666667px}.chip-choice .chip-disc b{font-size:11px}.bet-spot{--stack-step:1px}}
@media(max-height:550px) and (min-width:601px){.chip-palette{gap:4px}.chip-choice{width:32px;height:35px;min-height:35px}.chip-choice .selector-stack{--chip-w:32px;--chip-h:24px;--selector-step:4.6666666667px}.chip-choice .chip-disc b{font-size:9px}.bet-spot{--stack-step:.75px}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

.music-controls{position:relative;display:flex;align-items:center;gap:8px}
.music-controls button{white-space:nowrap;min-width:98px}
.music-controls input{width:80px;min-height:30px;margin:0;accent-color:#e4cc87;cursor:pointer}
@media(max-width:600px){
 .room-options{gap:0}.room-options #shoe-status{display:none}
 .music-controls{gap:5px}.music-controls button{min-width:85px;min-height:26px;font-size:11px;padding:4px 6px}
 .music-controls input{width:65px;min-height:26px}
}

.music-controls output{min-width:28px;font-size:12px;font-weight:700;color:#f2dda6}

.music-status{position:absolute;top:100%;right:0;font-size:11px;line-height:1.25;color:#e4cc87;white-space:nowrap}
.music-status.music-error{max-width:240px;white-space:normal;text-align:right;color:#ffcfaf}

@media(max-height:550px) and (min-width:601px){.music-status{top:50%;right:calc(100% + 8px);transform:translateY(-50%)}.music-status.music-error{width:180px}}

@media(max-height:710px) and (max-width:600px){.music-controls{top:-5px}}

/* Casino-style cloth lettering, visible after settlement as well as during play. */
.table .felt-lettering{display:block;visibility:visible!important;opacity:1;top:45%;width:430px;color:#e4cc8c;white-space:normal;text-shadow:none}
.table .felt-lettering span{font:700 10px/14px Georgia,serif;letter-spacing:3px}
.table .felt-lettering strong{display:block;margin:5px 0;font:700 25px/31px Georgia,serif;letter-spacing:.6px}
.table .felt-lettering b{display:block;font:700 13px/18px Arial,sans-serif}
.table .felt-lettering small{display:block;margin-top:6px;padding-top:5px;border-top:1px solid #d8bb7460;font:700 12px/17px Arial,sans-serif;letter-spacing:1px}
@media(min-width:1400px) and (max-height:1150px){
 .table .felt-lettering{top:auto;bottom:5%;transform:translateX(-50%);width:380px}
 .table .felt-lettering span{display:none}.table .felt-lettering strong{font-size:20px;line-height:25px}
 .table .felt-lettering b{font-size:12px}.table .felt-lettering small{font-size:11px;line-height:15px;margin-top:3px;padding-top:3px}
}
@media(max-width:1399px){
 .table .felt-lettering{top:auto;bottom:7px;left:50%;transform:translateX(-50%);width:85%}
 .table .felt-lettering span,.table .felt-lettering small{display:none}
 .table .felt-lettering strong{font-size:17px;line-height:22px;margin:0}
 .table .felt-lettering b{font-size:11px;line-height:16px}
}
@media(max-width:600px), (max-height:550px) and (min-width:601px){
 .table .felt-lettering{bottom:0;width:80%}
 .table .felt-lettering strong{font-size:13px;line-height:18px;letter-spacing:.4px}
 .table .felt-lettering b{display:none}
}

@media(max-width:600px) and (min-height:711px){.table .felt-lettering{top:34%;bottom:auto}}
@media(max-width:600px) and (max-height:710px){.table .felt-lettering{top:23%;bottom:auto}}

.felt-dealer-payout{display:none}
@media(min-width:1400px) and (max-height:1000px){
 .table .felt-lettering{display:none}
 .felt-dealer-payout{display:block;color:#e4cc8c;font:700 14px/18px Georgia,serif;letter-spacing:.3px}
}
@media(max-height:550px) and (min-width:601px){
 .table .felt-lettering{top:0;bottom:auto;left:26%;width:44%}
}

/* Match the site's readable free-play notice without enlarging other footer text. */
.bet-controls .free-play-notice{font-size:15px;line-height:17px;color:#aebbd0;text-align:center}
.fine-print{align-items:center;justify-content:flex-end}
@media(max-width:600px), (max-height:550px) and (min-width:601px){
 .bet-controls .free-play-notice{font-size:13px;line-height:16px}
}

/* Keep the notice immediately below the wager entry on compact screens too. */
@media(max-width:600px){
 .play-dock{grid-template-rows:36px 94px 83px}
 .fine-print{display:none}
}
@media(max-width:600px) and (max-height:710px){
 .play-dock{grid-template-rows:32px 88px 80px}
}

@media(min-width:601px) and (max-width:1399px) and (min-height:551px){
 body{grid-template-rows:64px minmax(0,1fr) 240px}
}

/* Match the outlined game selectors on the poker table. */
.site-header nav{gap:8px}
.site-header nav :is(a,span){
 display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;
 border:1px solid #9e8b53;border-radius:7px;padding:8px 12px;
 font-size:14px;font-weight:700;line-height:1.4;color:#f4dda1;text-decoration:none;
}
.site-header nav a:hover{background:#30432c;text-decoration:none}
.site-header nav [aria-current="page"]{border-color:#e4c989;background:#30432c;color:#fff3cf}
@media(max-width:1399px){.site-header nav{gap:5px}.site-header nav :is(a,span){font-size:12px;padding:6px 7px}}
@media(max-width:600px){.site-header .brand{font-size:14px}.site-header nav{gap:4px}.site-header nav :is(a,span){font-size:10px;padding:4px}}

@media(max-width:600px){
 /* The brand remains the Home link; keep the three game boxes on its row. */
 .site-header nav a[href="./"]{display:none}
}
@media(max-width:360px){
 .site-header{width:98%;gap:1px 4px}.site-header .brand{font-size:12px}
 .site-header nav{gap:3px}.site-header nav :is(a,span){font-size:9px;padding:4px 3px}
}

@media(max-width:760px){header nav{gap:4px;flex-wrap:wrap;justify-content:center}header nav a,header nav [aria-current]{font-size:12px;padding:7px 6px}header nav a[href$="poker.html"]{font-size:0}header nav a[href$="poker.html"]::after{content:'3-card';font-size:12px}}

/* Reserve real header space for all five games and the table tools. */
@media (max-width: 600px) {
  body { grid-template-rows: 108px minmax(0,1fr) 239px; }
  .site-header { height: 108px; width: 100%; margin: 0; padding: 4px 8px; display: grid; grid-template-columns: 1fr; grid-template-rows: 24px 30px 36px; gap: 4px; }
  .site-header .brand { font-size: 19px; justify-content: center; }
  .site-header nav { justify-content: center; flex-wrap: nowrap; gap: 4px; }
  .site-header nav :is(a,span) { font-size: 12px; padding: 5px 6px; }
  .site-header nav a[href$="poker.html"] { font-size: 0; }
  .site-header nav a[href$="poker.html"]::after { font-size: 12px; }
  .site-header .tools { width: 100%; min-width: 0; gap: 4px; justify-content: center; }
  .site-header .tools button { min-height: 32px; font-size: 11px; padding: 4px 5px; }
  .site-header .table-assist { gap: 4px; }
  .site-header #guests-toggle { max-width: 75px; }
  .site-header #rules-open { max-width: 65px; }
  .room-heading { height: 40px; }
  .music-controls { top: 0; }
}
@media (max-width: 600px) and (max-height: 740px) {
  body { grid-template-rows: 108px minmax(0,1fr) 225px; }
  .table .felt-lettering { display: none; }
}
@media (min-width: 601px) and (max-width: 1000px) and (min-height: 551px) {
  body { grid-template-rows: 104px minmax(0,1fr) 240px; }
  .site-header { flex-wrap: wrap; justify-content: center; gap: 8px 16px; padding: 6px; }
  .site-header nav { order: 3; width: 100%; justify-content: center; }
}
@media (min-width: 601px) and (max-height: 550px) {
  body { grid-template-rows: 48px minmax(0,1fr) 111px; }
  .site-header { width: 97%; gap: 8px; padding-bottom: 5px; }
  .site-header nav { display: none; }
  .site-header .brand { font-size: 19px; }
  .site-header .tools { gap: 5px; }
  .site-header .tools button { min-height: 32px; padding: 6px 8px; font-size: 12px; }
  .play-dock { grid-template-columns: minmax(130px,.8fr) minmax(210px,1.2fr) minmax(210px,1fr); }
  .actions { flex-wrap: nowrap; }
  .actions button { min-width: 0; font-size: 12px; padding: 6px 5px; }
}

/* A decision exposes four actions; reserve one row instead of overflowing the dock. */
@media(min-width:1400px){
 .actions{flex-wrap:nowrap}
 .actions button{font-size:16px;padding:10px 12px;min-width:0;white-space:nowrap}
}

@media(min-width:1100px) and (max-width:1399px) and (min-height:851px){
 .actions{flex-wrap:nowrap}
 .actions button{font-size:14px;padding:10px;min-width:0;white-space:nowrap}
}
