:root{color-scheme:dark;--gold:#e6ca7a;--ink:#fff0ca;--green:#071e15}*{box-sizing:border-box}body{margin:0;color:var(--ink);font:16px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:radial-gradient(ellipse at 5% 10%,#211c39,transparent 65%),radial-gradient(ellipse at 95% 5%,#173143,transparent 55%),#080f17;height:100svh;min-width:320px}button,a,input{font:inherit}button{border:1px solid #8c8a5a;border-radius:9px;background:linear-gradient(#3e5842,#132b20);color:var(--ink);padding:9px 14px;font-weight:750;box-shadow:0 3px 0 #07120b,0 4px 7px #0007;cursor:pointer}button:disabled{opacity:.47;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a2e2ef;outline-offset:3px}.primary{background:linear-gradient(#f5df9f,#b79748);color:#14291d}.site-header{height:76px;max-width:1750px;margin:auto;padding:10px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #c7a75440}.brand{color:#f4dc94;text-decoration:none;font:700 29px Georgia,serif;white-space:nowrap}.brand small{display:block;font:9px sans-serif;letter-spacing:3px;padding-left:22px}.site-header nav{display:flex;gap:7px}.site-header nav a{color:var(--gold);border:1px solid #a98c4b;border-radius:8px;padding:9px 11px;font-size:14px;font-weight:750;text-decoration:none}.site-header nav [aria-current]{background:linear-gradient(#f6e2ab,#b59b55);color:#14271c}.toolbar,.table-assist{display:flex;gap:7px}.toolbar button{font-size:14px}.table-assist{white-space:nowrap}main{height:calc(100svh - 76px);max-width:1700px;margin:auto;padding:12px 25px 8px;display:grid;grid-template-rows:48px minmax(0,1fr) 108px 18px;gap:10px}.room-heading{display:flex;gap:15px;align-items:center}.room-heading h1{font:700 29px Georgia,serif;margin:0}.room-heading .eyebrow{font-size:11px;letter-spacing:2px;margin:0 0 3px}.room-heading button{margin-left:auto;font-size:14px}.deck-note{font-size:13px}.paigow-table{position:relative;min-height:0;margin:25px 10px 30px;padding:16px 30px 20px;border:15px solid #080d0b;border-radius:47% 47% 34% 34% / 24% 24% 34% 34%;background:radial-gradient(ellipse at 50% 35%,#103e26,#06271a 60%,#02160e);box-shadow:inset 0 0 0 2px #967432,0 10px 0 #20241b,0 18px 0 #050806,0 21px 0 #927444,0 34px 0 #020403,0 37px 25px #0007;display:grid;grid-template-rows:minmax(94px,.8fr) 48px 44px minmax(150px,1.45fr);gap:6px;isolation:isolate}.paigow-table:before{content:'';position:absolute;inset:2px;border-radius:inherit;pointer-events:none;opacity:.15;background-image:repeating-linear-gradient(125deg,#aaba7910 0 1px,transparent 1px 3px);z-index:-1}.dealer{position:absolute;top:-49px;left:50%;transform:translateX(-50%);display:grid;justify-items:center}.dealer-portrait{width:62px;height:78px;background:url(dealer-portraits.2cbf580fe3792f9874f2.png) no-repeat 0 0/300% 100%;border:1px solid #7c8657;border-radius:40% 40% 12px 12px;background-color:#051b12}.dealer small{font-size:11px;font-weight:750;padding:3px 7px;background:#0a2116;border:1px solid #687247;border-radius:5px}.dealer-hands{display:flex;justify-content:center;align-items:end;gap:28px;padding-top:25px}.dealer-hands h2{font-size:12px;margin:0 0 5px;text-align:center}.dealer-hands h2 span{font-weight:500;color:#d1decc}.cards{display:flex;justify-content:center;gap:7px}.cards .casino-card{width:clamp(38px,4.8vw,64px);height:auto;aspect-ratio:5/7;min-height:0}.felt-print{display:grid;justify-content:center;align-content:center;gap:2px;text-align:center;color:#d9bb60}.felt-print strong{font:700 21px Georgia,serif}.felt-print span{font-size:11px;font-weight:700;letter-spacing:.7px}.result-banner{display:grid;align-content:center;text-align:center;gap:2px;position:relative;pointer-events:none}.result-banner strong{font:800 24px Georgia,serif;text-shadow:0 2px 0 #533715,0 4px 8px #000}.result-banner span{font-size:14px}.player-area{justify-self:center;align-self:center;width:min(690px,55%);min-height:0;display:grid;gap:8px}.player-title{display:flex;gap:12px;justify-content:center;align-items:center}.player-title strong{font-size:14px;letter-spacing:2px}.player-title span{font-size:14px}.player-cards{display:flex;justify-content:center;gap:9px;padding:8px 0 6px}.player-cards .casino-card{width:clamp(44px,5.8vw,83px);height:auto;aspect-ratio:5/7;min-height:0;padding:0;border:0;background:none;box-shadow:none;position:relative}.player-cards .casino-card:disabled{opacity:1}.player-cards .casino-card[aria-pressed=true]{outline:3px solid #ffe38c;outline-offset:3px}.selection-badge{position:absolute;right:3px;bottom:4px;background:#0d4b32;border:1px solid #edda8c;border-radius:5px;padding:2px 4px;color:#fff6d6;font:bold 11px sans-serif;z-index:4}.player-cards .casino-card[aria-pressed=true] .card-object{filter:drop-shadow(0 0 6px #f1d57670)}.hand-summary{display:flex;justify-content:center;gap:20px;font-size:14px;font-weight:700}.hand-summary .invalid{color:#ffb2a5}.setting-actions{display:flex;justify-content:center;gap:8px}.setting-actions button{min-height:42px;font-size:14px}.guests{position:absolute;inset:18% 6% 10%;pointer-events:none}.guest{position:absolute;width:22%;display:grid;gap:5px;text-align:center;font-size:14px;pointer-events:auto}.guest:nth-child(1){top:0;left:0}.guest:nth-child(2){bottom:0;left:0}.guest:nth-child(3){bottom:0;right:0}.guest:nth-child(4){top:0;right:0}.guest-heading{display:flex;gap:8px;align-items:center;border:1px solid #8a8759;border-radius:24px;padding:5px 8px;background:linear-gradient(#263f31,#0b1912);box-shadow:0 3px 4px #0008}.guest-heading strong{font-size:15px}.guest-heading span:last-child{margin-left:auto}.guest-avatar{width:32px;height:32px;flex:0 0 auto;border-radius:50%;border:1px solid #d4b75a;background:url(guest-portraits.2cbf580fe3792f9874f2.png) no-repeat;background-size:300% 200%}.guest small{font-size:10px;letter-spacing:.7px}.guest-cards{display:flex;gap:4px;justify-content:center}.guest-cards .casino-card{width:clamp(25px,2.8vw,40px);height:auto;aspect-ratio:5/7;min-height:0}.guest-cards.low{margin-top:3px}.guest-result{font-size:13px;font-weight:750;min-height:1.4em}.guest-bet{display:flex;justify-content:center;align-items:center;gap:8px}.chip-art{display:block;width:43px;height:40px;background:var(--chip-art,url('chip-art.2cbf580fe3792f9874f2.svg')) no-repeat;background-size:800% 100%;position:relative;filter:drop-shadow(1px 3px 2px #0008)}.chip-art b{position:absolute;top:3px;left:9%;width:82%;text-align:center;color:#163024;font-size:13px;line-height:15px}.guest.empty{color:#b7c3b4;border:1px dashed #6e7d62;border-radius:14px;padding:14px 4px}.play-dock{display:grid;grid-template-columns:1fr 1.5fr 1fr;align-items:center;gap:20px;border-top:1px solid #b4b79930;padding-top:10px}.bank{display:grid;grid-template-columns:auto 1fr;gap:5px 10px;align-items:center}.bank strong{font-size:29px}.bank small{font-size:11px}.bank button{justify-self:start;font-size:12px;grid-column:1/-1;padding:7px 10px}.bank small:last-child{grid-column:1/-1}.chip-controls{text-align:center}.chip-controls #chips{display:flex;gap:9px;justify-content:center;margin-bottom:5px}.chip-choice{padding:0;border:0;background:none;box-shadow:none}.chip-choice .chip-art{width:49px;height:43px}.bet-input{display:flex;gap:8px;align-items:center;justify-content:center;font-size:12px}.bet-input input{width:74px;min-height:32px;border:1px solid #9b925f;border-radius:6px;color:#fff6ce;background:#132b20;text-align:center;font-weight:750}.bet-input button{padding:5px 8px;font-size:12px}.free-play-notice{font-size:15px;font-weight:650;margin:6px 0 0}.actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:end;align-items:center}.actions button{font-size:14px}.actions p{width:100%;margin:0;font-size:13px;text-align:right;min-height:2em}footer{display:flex;justify-content:space-between;font-size:11px;color:#c3cdc9}dialog{width:min(650px,94vw);max-height:90svh;color:#fff0ca;border:1px solid #b09754;border-radius:15px;background:linear-gradient(135deg,#243d2d,#081b13);padding:20px;font-size:16px;line-height:1.5}dialog::backdrop{background:#000a}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-20px;background:#132b1e;z-index:10}.dialog-heading h2{font:700 23px Georgia,serif}.option-row{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.option-row button{min-height:44px}#guests-detail .guest{position:static;width:100%;margin:16px 0;pointer-events:auto}#guests-detail .guest-cards .casino-card{width:42px}#guests-detail .guest.empty{padding:10px}#account-block a{color:#ffe397}.card-arrival{animation:arrive .3s ease-out}@keyframes arrive{from{opacity:.5;translate:0 -8px}to{opacity:1;translate:0 0}}@media(prefers-reduced-motion:reduce){.card-arrival{animation:none}}
@media(min-width:761px) and (max-height:850px){.paigow-table{grid-template-rows:minmax(84px,1fr) 30px 35px minmax(130px,1.5fr);padding-top:4px;padding-bottom:10px;gap:3px}.dealer-hands{padding-top:16px}.dealer-hands .casino-card{width:43px}.felt-print strong{font-size:15px}.felt-print span{font-size:10px}.felt-print span:last-child{display:none}.result-banner strong{font-size:20px}.result-banner span{font-size:12px}.player-area{gap:4px}.player-cards .casino-card{max-width:61px}.player-cards{padding:5px 0;gap:8px}.setting-actions button{min-height:34px;padding:6px 10px}.guest-cards .casino-card{max-width:27px}.guest-heading{padding:3px 7px}.guest small{display:none}.guest-avatar{width:25px;height:25px}.guest-result{font-size:12px}.hand-summary{font-size:12px}}
@media(max-width:1150px){.site-header{height:106px;flex-wrap:wrap;padding:7px 16px}.site-header nav{order:3;width:100%;justify-content:center}.site-header .brand{font-size:24px}.site-header nav a{padding:7px 9px}main{height:calc(100svh - 106px);padding:8px 15px;grid-template-rows:42px minmax(0,1fr) 130px 16px}.play-dock{grid-template-columns:1fr 1.5fr;gap:7px}.actions{grid-column:1/-1;justify-content:center}.actions p{width:auto;min-height:0}.bank strong{font-size:26px}.bank small:last-child{display:none}.guests{inset:20% 3% 12%}.guest{width:23%}.guest-heading strong{font-size:13px}.guest-heading span:last-child{font-size:12px}.player-area{width:58%}}
@media(max-width:760px){.site-header{height:104px;padding:6px 9px;gap:6px}.site-header .brand{font-size:21px}.brand small{font-size:8px;letter-spacing:2px}.toolbar{gap:4px}.toolbar button{font-size:12px;padding:8px}.site-header nav{gap:4px}.site-header nav a{font-size:11px;padding:7px 4px}.site-header nav a:first-child{font-size:0}.site-header nav a:first-child:after{content:'3-card';font-size:11px}main{height:calc(100svh - 104px);padding:6px 10px;grid-template-rows:34px minmax(0,1fr) 174px 14px;gap:5px}.room-heading h1{font-size:23px}.eyebrow,.deck-note{display:none}.room-heading button{font-size:12px;padding:7px 9px}.guests,.dealer,.felt-print{display:none}.paigow-table{margin:2px 0 15px;border-width:7px;border-radius:32px;padding:12px 10px;box-shadow:inset 0 0 0 1px #967432,0 7px 0 #121d13,0 11px 0 #967432,0 15px 0 #020403;grid-template-rows:76px 40px minmax(0,1fr);gap:6px}.dealer-hands{padding:0;gap:18px}.dealer-hands h2{font-size:10px}.dealer-hands h2 span{display:none}.dealer-hands .cards{gap:5px}.dealer-hands .casino-card{width:34px;max-width:none}.result-banner strong{font-size:20px}.result-banner span{font-size:12px}.player-area{width:100%;gap:6px;align-self:center}.player-title{gap:5px}.player-title span{font-size:12px}.player-title strong{font-size:12px}.player-cards{display:grid;grid-template-columns:repeat(4,53px);justify-content:center;gap:10px;padding:4px 0}.player-cards .casino-card{width:53px;max-width:none}.hand-summary{font-size:12px;gap:10px}.setting-actions{gap:6px}.setting-actions button{font-size:12px;padding:7px;min-height:37px}.play-dock{padding:4px 0;grid-template-columns:1fr;grid-template-rows:34px 77px 48px;gap:5px}.bank{display:flex;justify-content:center;gap:8px}.bank small{font-size:10px}.bank strong{font-size:24px}.bank button{font-size:11px;padding:6px}.chip-controls{grid-row:2}.chip-controls #chips{gap:14px;margin:0 0 3px}.chip-choice .chip-art{width:42px;height:34px}.bet-input{font-size:11px;gap:5px}.bet-input input{min-height:27px;width:62px}.bet-input button{padding:4px 7px}.free-play-notice{font-size:13px;margin:3px 0 0}.actions{grid-row:3;align-content:center;gap:4px 8px}.actions button{padding:7px 12px;font-size:13px}.actions p{width:100%;text-align:center;font-size:11px;min-height:0}.bank small:last-child{display:none}footer{font-size:10px}.selection-badge{font-size:9px;padding:1px 3px}.result-banner{gap:0}}
@media(max-width:760px) and (max-height:740px){main{grid-template-rows:30px minmax(0,1fr) 164px 12px;gap:3px}.paigow-table{padding:8px;grid-template-rows:62px 30px minmax(0,1fr);gap:3px}.dealer-hands .casino-card{width:28px}.dealer-hands h2{font-size:9px;margin-bottom:3px}.player-area{gap:4px}.player-cards{grid-template-columns:repeat(4,43px);gap:8px}.player-cards .casino-card{width:43px}.player-title span{font-size:11px}.hand-summary{font-size:11px}.setting-actions button{min-height:32px;padding:5px;font-size:11px}.result-banner strong{font-size:17px}.result-banner span{font-size:11px}.play-dock{grid-template-rows:30px 76px 46px;gap:3px}.player-title strong{display:none}}
@media(min-width:600px) and (max-height:550px){.site-header{height:50px;flex-wrap:nowrap;padding:5px 10px;gap:7px}.brand small{display:none}.site-header .brand{font-size:18px}.site-header nav{display:none}.toolbar button{font-size:12px;padding:7px}.site-header .toolbar{margin-left:auto}main{height:calc(100svh - 50px);padding:4px 10px 8px;grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:30px minmax(0,1fr);gap:6px 16px}.room-heading{grid-area:1/1}.room-heading h1{font-size:22px}.room-heading button{font-size:11px;padding:6px}.deck-note,.dealer,.guests,.felt-print,footer{display:none}.paigow-table{grid-area:2/1;margin:0 0 15px;padding:8px;border-width:6px;border-radius:24px;grid-template-rows:66px 32px minmax(0,1fr);gap:3px;box-shadow:inset 0 0 0 1px #967432,0 7px 0 #121d13,0 11px 0 #967432,0 15px 0 #020403}.dealer-hands{padding:0;gap:16px}.dealer-hands .casino-card{width:28px}.dealer-hands h2{font-size:9px;margin-bottom:3px}.dealer-hands h2 span{display:none}.player-area{width:100%;gap:3px}.player-title{display:none}.player-cards{display:flex;gap:6px;padding:3px 0}.player-cards .casino-card{width:clamp(28px,4.6vw,49px);max-width:none}.result-banner strong{font-size:18px}.result-banner span{font-size:11px}.hand-summary{font-size:11px;gap:8px}.setting-actions button{font-size:11px;padding:5px 7px;min-height:30px}.setting-actions{gap:5px}.play-dock{grid-area:1/2/3;grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr);gap:10px;padding:3px 0;border:0;align-items:start}.chip-controls{grid-row:1}.chip-controls #chips{gap:10px;flex-wrap:wrap;width:150px;margin:0 auto 7px}.chip-choice .chip-art{width:46px;height:40px}.bet-input{flex-wrap:wrap;font-size:12px;gap:7px}.bet-input span{width:100%;order:3}.free-play-notice{font-size:13px}.bank{grid-row:2;display:flex;flex-wrap:wrap;justify-content:center;gap:5px 8px}.bank strong{font-size:24px}.bank button{font-size:12px}.bank small:last-child{display:none}.actions{grid-row:3;grid-column:1;justify-content:center;align-content:start;gap:6px}.actions p{width:100%;font-size:12px;text-align:center}.actions button{font-size:13px;padding:7px}}

/* Reserve separate rows for cards, result text and hand-setting controls. */
@media(min-width:761px) and (min-height:551px) and (max-height:850px){
 .paigow-table{margin-top:18px;margin-bottom:24px;grid-template-rows:93px 42px minmax(181px,1fr);gap:5px;padding:8px 22px 12px}
 .felt-print{display:none}.dealer{top:-48px}.dealer-portrait{height:58px;width:48px}.dealer small{font-size:10px;padding:2px 5px}
 .dealer-hands{padding-top:0;align-items:end}.dealer-hands .casino-card{width:39px}.dealer-hands h2{font-size:11px;margin-bottom:5px}
 .dealer-hands h2 span{display:none}.player-area{align-self:center;gap:5px}.player-title{line-height:18px}.player-title strong{display:none}
 .player-cards .casino-card{max-width:57px}.player-cards{padding:4px 0 6px}.hand-summary{line-height:17px}
 .guests{inset:19% 4% 6%}.guest{width:23%;gap:4px}.guest-hands{display:flex;justify-content:center;gap:8px}.guest-cards.low{margin:0}
 .guest-cards{gap:3px}.guest-cards .casino-card{width:clamp(17px,1.8vw,26px);max-width:none}.guest-bet .chip-art{width:30px;height:27px}.guest-bet .chip-art b{font-size:10px;top:0}
 .guest-heading strong{font-size:13px}.guest-result{font-size:12px}.guest-bet{font-size:12px;min-height:17px}
}
@media(min-width:761px) and (max-width:1150px) and (min-height:551px) and (max-height:850px){
 main{grid-template-rows:36px minmax(0,1fr) 111px 14px;gap:5px}.paigow-table{margin-top:8px;margin-bottom:23px;grid-template-rows:82px 37px minmax(166px,1fr);padding-top:3px;gap:3px}
 .dealer-portrait{height:47px;width:39px}.dealer{top:-38px}.dealer-hands .casino-card{width:34px}.player-cards .casino-card{max-width:50px}
 .player-title span{font-size:12px}.setting-actions button{font-size:12px;min-height:32px}.bank button{padding:5px 7px}.actions button{padding:6px 10px}
}
@media(min-width:600px) and (max-height:550px){
 .eyebrow{display:none}.play-dock{gap:7px;grid-template-rows:auto auto minmax(0,1fr)}
 .chip-controls #chips{width:auto;flex-wrap:nowrap;gap:6px;margin-bottom:5px}.chip-choice .chip-art{width:42px;height:36px}
 .bet-input{gap:4px}.bet-input span{font-size:11px}.free-play-notice{line-height:16px;margin-top:5px}
 .actions p{font-size:11px;line-height:14px;margin:0}.bank strong{font-size:22px}.bank small{font-size:10px}.bank button{padding:5px 8px}
 .paigow-table{grid-template-rows:73px 36px minmax(0,1fr);gap:4px}.dealer-hands{align-items:start}.result-banner{align-content:start}
}

.dealer-hands{padding-bottom:10px}.guest-cards.low{margin-top:10px}
@media(min-width:761px) and (max-height:850px){.guest-cards.low{margin:0}.dealer{top:-55px}.dealer-hands{padding-bottom:10px}}
@media(min-width:761px) and (max-width:1150px){
 main{grid-template-rows:36px minmax(0,1fr) 150px 14px}.play-dock{grid-template-rows:96px 34px;gap:6px;padding-top:6px;align-items:center}
 .chip-choice .chip-art{height:36px}.chip-controls #chips{margin-bottom:3px}
}
@media(max-width:760px){.dealer-hands{padding-bottom:0}}
@media(max-width:760px) and (max-height:740px){.player-title{display:none}.player-area{gap:3px}.player-cards{gap:6px;padding:2px 0}}
@media(min-width:600px) and (max-height:550px){.dealer-hands{padding-bottom:0}.guest-cards.low{margin-top:10px}}
@media(min-width:761px) and (max-width:1000px){.guests{display:none}.player-area{width:94%}}
@media(min-width:761px) and (max-width:1000px) and (min-height:851px){.player-cards .casino-card{width:clamp(56px,8vw,72px)}}
@media(max-width:760px) and (max-height:740px) and (min-height:551px){.paigow-table{grid-template-rows:68px 30px minmax(0,1fr)}}

/* Raised low cards retain upright faces and reserve space above each row. */
.player-cards{padding-top:20px;row-gap:26px}
.player-cards .casino-card{transition:translate .15s ease-out}
.player-cards .casino-card[aria-pressed=true]{translate:0 -14px}
@media(prefers-reduced-motion:reduce){.player-cards .casino-card{transition:none}}
.chip-line{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:5px}
.chip-controls .chip-line #chips{margin:0}
.bet-spot{flex:0 0 58px;width:58px;height:58px;border:2px solid #e4c16b;border-radius:50%;padding:3px;background:#06291c;display:grid;align-content:center;gap:1px;line-height:12px;font-size:10px;box-shadow:inset 0 0 0 2px #082017,0 3px 5px #0008}
.bet-spot strong{font-size:14px;line-height:16px;color:#fff6d6}.bet-spot[aria-pressed=true]{outline:2px solid #a2e2ef;outline-offset:3px;background:#19452d}
.bet-input select{font:inherit;font-weight:750;width:115px;min-height:32px;border:1px solid #9b925f;border-radius:6px;color:#fff6ce;background:#132b20;padding:4px}
.bet-input select:focus-visible{outline:3px solid #a2e2ef;outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.fortune-paytable{width:100%;border-collapse:collapse;margin:12px 0 24px}.fortune-paytable caption{font-weight:800;text-align:left;color:#f5da8d;font-size:19px;margin-bottom:8px}.fortune-paytable th{font-weight:600;text-align:left}.fortune-paytable td{text-align:right;white-space:nowrap;font-weight:800}.fortune-paytable th,.fortune-paytable td{padding:5px 8px;border-bottom:1px solid #bfa96455}
@media(min-width:1151px) and (min-height:551px){main{grid-template-rows:48px minmax(0,1fr) 126px 18px}}
@media(min-width:761px) and (max-width:1150px) and (min-height:551px){main{grid-template-rows:36px minmax(0,1fr) 166px 14px}.play-dock{grid-template-rows:112px 34px}}
@media(max-width:760px) and (min-height:551px){
 main{grid-template-rows:34px minmax(0,1fr) 198px 14px}.play-dock{grid-template-rows:34px 101px 48px}
 .player-cards{padding-top:18px;row-gap:24px}.player-cards .casino-card[aria-pressed=true]{translate:0 -12px}
 .chip-line{gap:10px;margin-bottom:4px}.chip-controls .chip-line #chips{gap:10px}.bet-spot{width:54px;height:54px;flex-basis:54px}
 .bet-input{gap:4px}.bet-input select{width:105px;min-height:28px}.bet-input span{font-size:10px;white-space:nowrap}
 .bet-input input{width:54px}.bet-input button{padding:4px 6px}
}
@media(max-width:760px) and (max-height:740px) and (min-height:551px){
 main{grid-template-rows:30px minmax(0,1fr) 188px 12px;gap:3px}.play-dock{grid-template-rows:30px 100px 46px}
 .player-cards{display:flex;gap:3px;padding:18px 0 6px}.player-cards .casino-card{width:clamp(32px,10.2vw,43px)}
 .result-banner{min-height:39px}.paigow-table{grid-template-rows:68px 40px minmax(0,1fr)}
}
@media(min-width:600px) and (max-height:550px){
 .chip-line{gap:7px;margin-bottom:4px}.chip-controls .chip-line #chips{gap:4px}.chip-choice .chip-art{width:33px;height:32px}.chip-art b{font-size:11px;top:2px;line-height:12px}
 .bet-spot{width:47px;height:47px;flex-basis:47px;font-size:9px;line-height:10px}.bet-spot strong{font-size:12px;line-height:14px}
 .bet-input select{width:105px;min-height:28px;font-size:11px}.bet-input input{width:56px;min-height:28px}.bet-input button{font-size:11px;padding:4px}
 .player-cards{padding:16px 0 3px}.player-cards .casino-card[aria-pressed=true]{translate:0 -12px}
 .result-banner strong{font-size:16px}.result-banner span{font-size:10px}
}
@media(min-height:851px) and (min-width:1001px){.guests{inset:10% 6% 7%}}
@media(max-width:760px) and (min-height:551px){main{grid-template-rows:34px minmax(0,1fr) 216px 14px}.play-dock{grid-template-rows:34px 101px 66px}.actions p{line-height:13px}.actions{align-content:start;padding-top:3px}}
@media(max-width:760px) and (max-height:740px) and (min-height:551px){main{grid-template-rows:30px minmax(0,1fr) 206px 12px}.play-dock{grid-template-rows:30px 100px 64px}}
@media(min-width:600px) and (max-height:550px){main{grid-template-rows:30px minmax(0,1fr)}.play-dock{grid-template-rows:auto auto minmax(0,1fr);align-items:start}}

@media(max-width:760px) and (min-height:551px){
 .player-area{gap:4px}.paigow-table{grid-template-rows:76px 46px minmax(0,1fr)}
 .result-banner strong{font-size:18px;line-height:21px}.result-banner span{font-size:11px;line-height:12px}
}
@media(max-width:760px) and (max-height:740px) and (min-height:551px){
 .player-area{gap:3px}.paigow-table{padding:6px 8px;grid-template-rows:68px 46px minmax(0,1fr)}
 .result-banner strong{font-size:17px;line-height:20px}
}
@media(max-width:760px) and (min-height:741px){.player-cards{grid-template-columns:repeat(4,51px)}.player-cards .casino-card{width:51px}}

/* Both wagers are directly selectable on the felt, flanking the hand controls. */
.player-bottom{--bet-spot-size:76px;display:grid;grid-template-columns:var(--bet-spot-size) minmax(0,1fr) var(--bet-spot-size);gap:12px;align-items:center;width:min(640px,100%);justify-self:center}
.hand-controls{display:grid;gap:7px;min-width:0}
.player-bottom .bet-spot{width:var(--bet-spot-size);height:var(--bet-spot-size);font-size:14px;line-height:15px;border-width:3px;background:#06291c;box-shadow:inset 0 0 0 2px #a1864240,0 3px 7px #0007;gap:5px}
.player-bottom .bet-spot strong{font-size:17px;line-height:19px;white-space:nowrap}
.player-bottom .bet-spot[aria-pressed=true]{background:#19452d}
.player-bottom .bet-spot:disabled{opacity:1;cursor:default}
.player-bottom .hand-summary{flex-wrap:wrap;gap:3px 12px}
.player-bottom .setting-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.player-bottom .setting-actions button{padding:7px 5px;min-width:0;line-height:1.2}
@media(min-width:1151px) and (min-height:551px){main{grid-template-rows:48px minmax(0,1fr) 110px 18px}.play-dock{padding-top:5px}}
@media(min-width:761px) and (max-width:1150px) and (min-height:551px){main{grid-template-rows:36px minmax(0,1fr) 150px 14px}.play-dock{grid-template-rows:96px 34px}.player-bottom{--bet-spot-size:64px;gap:8px}.player-bottom .setting-actions button{font-size:12px}}
@media(max-width:760px) and (min-height:551px){
 .player-bottom{--bet-spot-size:56px;gap:6px}.hand-controls{gap:5px}
 .player-bottom .bet-spot{font-size:11px;line-height:12px;gap:2px;border-width:2px}
 .player-bottom .bet-spot strong{font-size:15px;line-height:17px}
 .player-bottom .setting-actions{gap:3px}.player-bottom .setting-actions button{padding:6px 2px;font-size:11px}
 main{grid-template-rows:34px minmax(0,1fr) 194px 14px}.play-dock{grid-template-rows:34px 79px 66px}
}
@media(max-width:760px) and (max-height:740px) and (min-height:551px){main{grid-template-rows:30px minmax(0,1fr) 184px 12px}.play-dock{grid-template-rows:30px 78px 64px}}
@media(min-width:600px) and (max-height:550px){
 .player-bottom{--bet-spot-size:52px;gap:6px}.hand-controls{gap:3px}
 .player-bottom .bet-spot{font-size:10px;line-height:11px;gap:1px;border-width:2px}
 .player-bottom .bet-spot strong{font-size:13px;line-height:15px}
 .player-bottom .setting-actions button{font-size:11px;padding:5px 2px}
}
@media(min-width:761px) and (min-height:551px) and (max-height:850px){.player-bottom{--bet-spot-size:64px}.player-bottom .bet-spot{font-size:12px;line-height:13px;gap:3px}.player-bottom .bet-spot strong{font-size:15px;line-height:17px}}
@media(min-width:1151px) and (min-height:551px) and (max-height:850px){.paigow-table{margin-top:0}}
/* Leave room for the cards' stock edge and shadow above both betting circles. */
.player-cards{margin-bottom:4px}
.player-bottom .bet-spot{translate:0 12px}
@media(max-height:850px){.player-bottom .bet-spot{translate:0 6px}}
@media(min-width:600px) and (max-height:550px){.player-bottom .bet-spot{translate:0 4px}}
/* Anchor the portrait above its own hand row, never over the headings or cards. */
.dealer-hands{position:relative}
.dealer-hands>.dealer{top:auto;bottom:calc(100% + 8px)}

/* Match the shared two-row navigation breakpoint on medium tablets. */
@media(min-width:1151px) and (max-width:1250px) and (min-height:551px){
 .site-header{height:106px;flex-wrap:wrap;padding:7px 16px}.site-header .brand{font-size:24px}
 main{height:calc(100svh - 106px)}
}
/* Reserve real hand/control space on short portrait phones. */
@media(max-width:760px) and (min-height:551px) and (max-height:680px){
 .site-header{height:84px;padding:5px 9px;gap:4px}.site-header .brand{font-size:20px}.brand small{display:none}
 main{height:calc(100svh - 84px);grid-template-rows:26px minmax(0,1fr) 174px;gap:3px;padding-bottom:2px}
 .room-heading{gap:7px}.room-heading h1{font-size:20px;white-space:nowrap}.room-heading button{font-size:11px;padding:5px 7px}
 .paigow-table{padding:4px 8px;grid-template-rows:50px 32px minmax(0,1fr);gap:3px}
 .dealer-hands .casino-card{width:24px}.dealer-hands h2{margin-bottom:3px}
 .result-banner{min-height:32px}.result-banner strong{font-size:16px;line-height:18px}.result-banner span{font-size:10px;line-height:12px}
 .player-area{align-self:center}.player-cards{padding-top:12px}.player-cards .casino-card{width:clamp(28px,9.5vw,38px)}
 .play-dock{grid-template-rows:28px 79px 53px;gap:3px}
 .actions{padding-top:0}.actions p{font-size:10px;line-height:12px}.actions button{padding:6px 10px;font-size:12px}
 footer{display:none}
}

@media(min-width:1151px) and (min-height:851px) and (max-height:930px){
 .player-cards .casino-card{max-width:64px}.player-bottom{--bet-spot-size:64px}
 .player-bottom .bet-spot{font-size:12px;line-height:13px;gap:3px}.player-bottom .bet-spot strong{font-size:15px;line-height:17px}
}

/* Keep all guest content outside the visitor's card and control column. */
.bet-input #bet-target-name{font-weight:800;white-space:nowrap;color:#fff0ca}
@media(min-width:1001px) and (min-height:551px){
 .player-area{width:min(690px,50%)}
 #guests .guest{width:20%;max-width:245px}
}
/* Two full-height guest hands per side need a compact row on shorter tablets. */
@media(min-width:1001px) and (min-height:851px) and (max-height:1000px){
 #guests .guest-hands{display:flex;justify-content:center;gap:8px}
 #guests .guest-cards{gap:3px}
 #guests .guest-cards.low{margin-top:0}
 #guests .guest-cards .casino-card{width:clamp(17px,1.8vw,26px);max-width:none}
}
