/* A compact information rail and one control dock leave the felt to the cards. */
.room-header{height:49px;padding:5px max(13px,env(safe-area-inset-right)) 5px max(13px,env(safe-area-inset-left));gap:10px;background:#07130c80}
.room-header .icon-button{width:40px;height:40px;font-size:25px;border:0}
.room-title{display:flex;align-items:baseline;gap:9px;min-width:0}
.room-title>span{font-size:15px}.room-title small{font-size:9px;margin:0;white-space:nowrap}
.wallet-pill small{font-size:8px;margin:0}.wallet-pill b{font-size:17px}
.bank-panel{top:54px;left:max(15px,env(safe-area-inset-left));right:max(15px,env(safe-area-inset-right));gap:7px;height:32px}
.bank-panel>div:nth-child(2)>strong{font-size:11px}.bank-panel small{font-size:8px}
.bank-seal{font-size:23px}.bank-pot strong{font-size:18px;margin:0}.bank-profit{margin-left:10px}.bank-profit b{font-size:15px;margin:0}
.warning-line{top:89px;left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));font-size:7px;line-height:1.3}
.full-table{top:105px;bottom:calc(114px + env(safe-area-inset-bottom));left:env(safe-area-inset-left);right:env(safe-area-inset-right);min-height:0;max-width:1500px;width:auto;margin:auto}
.felt-border{inset:0 3px;border-radius:110px;border-color:color-mix(in srgb,var(--rim) 25%,transparent)}
.felt-border:after{inset:5px;border-radius:105px}
.seat{width:140px}.seat-1{left:18%;top:48%}.seat-4{left:82%;top:48%}.seat-2{left:27%;top:16%}.seat-3{left:73%;top:16%}
.seat-avatar{width:38px;height:38px}.seat-name{font-size:12px}.seat-wallet{font-size:10px}
.seat-hand{height:clamp(68px,11svh,104px)}.seat-hand canvas{height:clamp(64px,10svh,96px);width:auto;aspect-ratio:5/7}
.seat-status{font-size:9px;min-height:17px;margin-top:5px}
.seat-0{top:80%;width:min(84vw,370px)}
.seat-human .seat-hand{height:clamp(125px,21svh,187px);gap:9px}
.seat-human .seat-hand canvas{height:clamp(119px,20svh,178px);width:auto;aspect-ratio:5/7}
.seat-human .seat-avatar{height:30px;width:30px}.seat-human .seat-top{margin-top:6px}.seat-human .seat-status{font-size:10px}
.seat-human .seat-bet{right:8%;top:30px}.seat-bet{top:54px;right:0}.seat-bet .note{width:48px;height:24px;font-size:10px}
.seat-score{font-size:9px;top:calc(100% + 3px)}
.watermark{top:35%;opacity:.65}.watermark strong{font-size:25px;letter-spacing:5px}.watermark small{display:none}.watermark>span{font-size:13px}
.table-pot{top:45%}.table-pot small{font-size:8px}.table-pot strong{font-size:25px;margin-top:1px}
.round-message{top:57%;width:52%;font-size:10px;line-height:1.8}.turn-clock{top:64%;font-size:10px}
.room-controls{left:max(9px,env(safe-area-inset-left));right:max(9px,env(safe-area-inset-right));bottom:0;padding:8px 11px calc(7px + env(safe-area-inset-bottom));border:1px solid #c7c79725;border-bottom:0;border-radius:19px 19px 0 0;background:linear-gradient(145deg,#172b24f5,#081914fa);box-shadow:0 -9px 30px #03110b40;backdrop-filter:blur(18px)}
.action-row{min-height:46px;gap:9px}.bet-summary{min-width:103px;padding:5px 9px;border-color:#d6ca9530;border-radius:10px}
.bet-summary small{font-size:8px}.bet-summary strong{font-size:21px}.bet-summary>span{font-size:8px;margin-left:8px}
.main-actions{gap:7px;flex-wrap:wrap}.room-controls .button{min-height:46px;padding:10px 15px;font-size:13px;border-radius:10px}
.social-toolbar{position:relative;margin-top:6px;padding-top:5px;gap:10px;min-height:39px;justify-content:space-between}
.tool-button{min-height:39px;min-width:44px;flex:1;gap:2px;padding:1px 0;flex-direction:row;justify-content:center}
.tool-button>span{font-size:22px}.tool-button small{font-size:8px;white-space:nowrap}
.toolbar-latest{display:none}.cooldown-label{font-size:10px;position:absolute;right:0;top:-14px;pointer-events:none;background:#12281ff0;border-radius:8px;padding:1px 4px}
.cooldown-label:empty{display:none}
.music-tool[aria-pressed=false]>span{opacity:.4}.music-tool[aria-pressed=true]>span{color:#edcf89}
.music-volume{margin:0!important;max-width:160px}
.squeeze-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:radial-gradient(ellipse at 50% 43%,var(--felt-light),var(--felt) 75%);box-shadow:none}
.squeeze-dialog::backdrop{background:#06180f;backdrop-filter:none}
.squeeze-stage{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0}
.squeeze-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab;outline:0!important}
.peek-icon{position:absolute;z-index:2;right:max(17px,env(safe-area-inset-right));top:max(15px,env(safe-area-inset-top));width:44px;height:44px;display:grid;place-items:center;border:1px solid #eff4d72b;border-radius:50%;background:#071b1260;color:#e2e9cc;font-size:29px;backdrop-filter:blur(8px)}
#flip-btn{top:auto;bottom:max(20px,env(safe-area-inset-bottom))}.peek-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:800px) and (min-height:501px){.room-controls{max-width:950px;margin:auto}.seat{width:200px}.seat-0{width:420px}.seat-1{left:15%}.seat-4{left:85%}.seat-avatar{width:45px;height:45px}.seat-name{font-size:14px}.tool-button{flex:0 1 100px}.toolbar-latest{display:block}.round-message{font-size:13px;width:40%}.watermark strong{font-size:35px;letter-spacing:7px}}
@media(max-width:390px){.room-title{gap:6px}.room-title>span{font-size:13px}.seat{width:120px}.seat-name{font-size:11px}.seat-avatar{width:33px;height:33px}.seat-0{width:85vw}.seat-human .seat-hand canvas{max-height:145px}.tool-button{flex-direction:column}.tool-button small{font-size:7px}.room-controls .button{font-size:12px;padding-inline:12px}.seat-human .seat-bet{right:6%}}
@media(max-height:730px) and (max-width:600px){.seat-hand{height:65px}.seat-hand canvas{height:61px}.seat-0{top:79%}.seat-human .seat-hand{height:118px}.seat-human .seat-hand canvas{height:112px}.seat-status{font-size:8px}.seat-avatar{width:30px;height:30px}.seat-name{font-size:10px}.seat-bet{top:45px}.seat-score{font-size:8px}}
@media(max-height:500px) and (min-width:600px){.room-header{height:44px}.bank-panel{top:8px;left:32%;right:25%;height:29px}.bank-panel .bank-seal,.bank-panel>div:nth-child(2)>small,.bank-profit{display:none}.bank-panel .bank-pot small{font-size:7px;display:block}.bank-pot strong{font-size:15px}.warning-line{top:43px;left:35%;right:26%;font-size:6px}.full-table{top:62px;bottom:calc(76px + env(safe-area-inset-bottom));left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right))}.room-controls{padding-top:5px;padding-bottom:calc(4px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:15px}.action-row{flex:1;min-height:45px}.social-toolbar{margin:0;padding:0 0 0 10px;border-top:0;border-left:1px solid #ffffff18;gap:7px;min-width:230px}.tool-button{flex-direction:column;min-width:39px}.room-controls .button{min-height:42px;padding:7px 13px}.seat{width:145px}.seat-avatar{width:28px;height:28px}.seat-name{font-size:10px}.seat-hand{height:55px}.seat-hand canvas{height:51px;width:auto}.seat-2,.seat-3{top:24%}.seat-1,.seat-4{top:60%}.seat-0{top:73%;width:230px}.seat-human .seat-hand{height:94px}.seat-human .seat-hand canvas{height:88px;width:auto}.seat-status{display:none}.seat-human .seat-top{margin-top:4px}.seat-human .seat-avatar{width:23px;height:23px}.seat-bet{top:25px}.seat-bet .note{height:18px;width:39px;font-size:9px}.seat-human .seat-bet{right:0;top:20px}.watermark{top:30%}.watermark strong{font-size:17px}.watermark>span{display:none}.table-pot{top:44%}.table-pot small{display:none}.table-pot strong{font-size:18px}.round-message{top:56%;width:30%;font-size:8px}.turn-clock{top:66%;font-size:8px}.seat-score{font-size:7px}.cooldown-label{top:-8px}}

/* The native web view fills the display; keep controls clear of the camera and home gesture. */
.lobby-screen{padding-top:calc(28px + env(safe-area-inset-top));padding-bottom:calc(22px + env(safe-area-inset-bottom))}
.room-header{top:env(safe-area-inset-top)}
.bank-panel{top:calc(54px + env(safe-area-inset-top))}
.warning-line{top:calc(89px + env(safe-area-inset-top))}
.full-table{top:calc(105px + env(safe-area-inset-top))}
.social-toolbar,.tool-button{min-height:44px}
.full-table{bottom:calc(119px + env(safe-area-inset-bottom))}
@media(max-height:500px) and (min-width:600px){.bank-panel{top:calc(8px + env(safe-area-inset-top))}.warning-line{top:calc(43px + env(safe-area-inset-top))}.full-table{top:calc(62px + env(safe-area-inset-top));bottom:calc(76px + env(safe-area-inset-bottom))}.round-message{top:15%}.social-toolbar,.tool-button{min-height:44px}}
/* Anchor the local hand above the dock, including when its buttons wrap. */
.full-table{bottom:calc(var(--dock-height,119px) + 6px)}
.seat-0{top:auto;bottom:12px;transform:translateX(-50%)}
.seat-1{left:23%}.seat-4{left:77%}
.seat:not(.seat-human) .seat-hand canvas{max-height:86px}
.seat-human .seat-hand:has(> :nth-child(3)) canvas{height:clamp(104px,17svh,145px)}
@media(min-width:800px) and (min-height:501px){.seat-1{left:15%}.seat-4{left:85%}}
@media(max-height:500px) and (min-width:600px){.seat-1{left:17%}.seat-4{left:83%}.seat-0{bottom:9px}.seat-human .seat-hand:has(> :nth-child(3)) canvas{height:88px}}

.seat:not(.seat-human) .seat-hand{height:clamp(57px,8svh,76px)}
.seat:not(.seat-human) .seat-hand canvas{height:clamp(52px,7.5svh,68px)}
/* Keep the oval seating at showdown; compact hands support prominent result badges. */
.result-panel{position:absolute;z-index:8;left:50%;top:45%;transform:translate(-50%,-50%);width:50%;max-width:290px;padding:13px 10px 12px;text-align:center;border:1px solid #e2c98777;border-radius:18px;background:linear-gradient(145deg,#193a2bf8,#0c241cf8);box-shadow:0 14px 40px #06190c55;color:#f1d68f;pointer-events:none}
.result-panel[data-result=loss]{color:#f4b49b;border-color:#e5a58b66;background:linear-gradient(145deg,#342d26f7,#162b21fa)}
.result-panel[data-result=tie]{color:#e1e7cb;border-color:#c4d1b055}
.result-panel>small{display:none}
.result-panel h2{font-size:19px;font-weight:500;margin:0;line-height:1.5}
.result-panel>strong{font:600 clamp(30px,9vw,42px)/1.15 'DM Sans',sans-serif;display:block;letter-spacing:-1px;margin:2px 0 8px}
.result-hands{display:flex;flex-direction:column;align-items:center;gap:3px;padding-top:7px;border-top:1px solid #d8dcb420;line-height:1.4}
.result-hands>span{display:flex;justify-content:center;gap:7px;align-items:center;padding:2px 8px;background:#ffffff08;border-radius:6px;color:#d7dfc7;min-width:105px}
.result-hands small{font-size:8px;color:#9fb299;line-height:1.4}.result-hands b{font-size:11px;font-weight:400;line-height:1.4;white-space:nowrap}
.result-panel>p{font-size:8px;color:#c7cdb5;margin:6px 0 0;line-height:1.4}
body[data-phase=settling] .seat-result{visibility:hidden}
body[data-phase=finished] :is(.table-deck,.table-pot,.watermark,.round-message,.seat-bet){display:none}
body[data-phase=finished] .seat:not(.seat-human){width:24%}
body[data-phase=finished] .seat:not(.seat-human).seat-1{left:13%;top:47%}
body[data-phase=finished] .seat:not(.seat-human).seat-2{left:28%;top:13%}
body[data-phase=finished] .seat:not(.seat-human).seat-3{left:72%;top:13%}
body[data-phase=finished] .seat:not(.seat-human).seat-4{left:87%;top:47%}
body[data-phase=finished] .seat:not(.seat-human) .seat-avatar{width:27px;height:27px;box-shadow:0 0 0 2px #143322}
body[data-phase=finished] .seat:not(.seat-human).bank .seat-avatar{box-shadow:0 0 0 2px #e2bf71}
body[data-phase=finished] .seat:not(.seat-human) .seat-top{gap:4px}
body[data-phase=finished] .seat:not(.seat-human) .seat-name{font-size:10px}
body[data-phase=finished] .seat:not(.seat-human) .seat-wallet{font-size:8px;margin-top:1px}
body[data-phase=finished] .seat:not(.seat-human) .bank-crown,body[data-phase=finished] .seat:not(.seat-human) .seat-status{display:none}
body[data-phase=finished] .seat:not(.seat-human) .seat-hand{height:48px;margin-top:26px;gap:3px}
body[data-phase=finished] .seat:not(.seat-human) .seat-hand canvas{height:43px;width:auto;margin:0;transform:none;border-radius:3px;box-shadow:0 3px 5px #0003}
body[data-phase=finished] .seat:is(.seat-1,.seat-4) .seat-hand{height:37px;gap:2px}
body[data-phase=finished] .seat:is(.seat-1,.seat-4) .seat-hand canvas{height:33px}
body[data-phase=finished] .seat-score{font-size:11px;font-weight:500;line-height:1.4;padding:2px 7px;top:calc(100% + 4px);border:0;color:#17372a;background:#dbdbba;border-radius:5px}
body[data-phase=finished] .seat-result{position:static;transform:none;display:inline-flex;align-items:center;justify-content:center;gap:5px;margin-top:5px;padding:3px 6px;font-size:17px;line-height:1.3;text-shadow:none;color:#f2d18c;background:#123a29d9;border:1px solid #dfc47f55;border-radius:7px;white-space:nowrap}
body[data-phase=finished] .seat-result small{font-size:9px;font-weight:400}
body[data-phase=finished] .seat-result b{font:600 17px/1.25 'DM Sans',sans-serif}
body[data-phase=finished] .seat-result[data-result=loss]{color:#f4b69f;background:#492f29c9;border-color:#d99d8655}
body[data-phase=finished] .seat-result[data-result=tie]{color:#d3ddc4;background:#233c2ad9;border-color:#a2b79544}
body[data-phase=finished] .seat-human :is(.seat-status,.seat-score,.seat-result){display:none}
body[data-phase=finished] .seat-human .seat-hand{height:clamp(105px,16svh,148px);gap:7px}
body[data-phase=finished] .seat-human .seat-hand canvas{height:clamp(99px,15svh,140px);width:auto;transform:none!important}
body[data-phase=finished] .player-card{transform:none}
body[data-phase=finished] .seat-human .seat-top{margin-top:8px}
body[data-phase=finished] .main-actions{justify-content:stretch}
body[data-phase=finished] .main-actions .button{flex:1}
@media(max-width:390px){body[data-phase=finished] .seat:not(.seat-human) .seat-hand{height:43px;gap:2px}body[data-phase=finished] .seat:not(.seat-human) .seat-hand canvas{height:38px}body[data-phase=finished] .seat:is(.seat-1,.seat-4) .seat-hand{height:37px}body[data-phase=finished] .seat:is(.seat-1,.seat-4) .seat-hand canvas{height:33px}body[data-phase=finished] .seat:not(.seat-human) .seat-avatar{width:23px;height:23px}body[data-phase=finished] .seat:not(.seat-human) .seat-name{font-size:9px}.result-panel h2{font-size:18px}body[data-phase=finished] .seat-result b{font-size:16px}}
@media(min-width:800px) and (min-height:501px){body[data-phase=finished] .seat:not(.seat-human){width:190px}body[data-phase=finished] .seat:not(.seat-human).seat-1{left:18%}body[data-phase=finished] .seat:not(.seat-human).seat-4{left:82%}body[data-phase=finished] .seat:not(.seat-human) .seat-hand{height:68px}body[data-phase=finished] .seat:not(.seat-human) .seat-hand canvas{height:62px}body[data-phase=finished] .seat:not(.seat-human) .seat-name{font-size:12px}body[data-phase=finished] .seat:not(.seat-human) .seat-avatar{height:34px;width:34px}.result-panel{width:320px;max-width:none;padding:20px}.result-panel h2{font-size:23px}.result-panel>strong{font-size:48px}.result-hands{flex-direction:row}.result-panel>p{font-size:10px}}
@media(max-height:500px) and (min-width:600px){body[data-phase=finished] .seat:not(.seat-human){width:130px}body[data-phase=finished] .seat:not(.seat-human).seat-1{left:14%;top:64%}body[data-phase=finished] .seat:not(.seat-human).seat-2{left:28%;top:22%}body[data-phase=finished] .seat:not(.seat-human).seat-3{left:72%;top:22%}body[data-phase=finished] .seat:not(.seat-human).seat-4{left:86%;top:64%}body[data-phase=finished] .seat:not(.seat-human) .seat-avatar{height:23px;width:23px}body[data-phase=finished] .seat:not(.seat-human) .seat-hand{height:32px;margin-top:21px}body[data-phase=finished] .seat:not(.seat-human) .seat-hand canvas{height:30px}body[data-phase=finished] .seat:not(.seat-human) .seat-name{font-size:9px}body[data-phase=finished] .seat:not(.seat-human) .seat-wallet{display:none}body[data-phase=finished] .seat-result{margin-top:3px;padding:2px 6px}body[data-phase=finished] .seat-result b{font-size:14px}body[data-phase=finished] .seat-score{font-size:10px;padding:1px 6px}body[data-phase=finished] .seat-human .seat-hand{height:54px}body[data-phase=finished] .seat-human .seat-hand canvas{height:50px}.result-panel{top:34%;width:230px;max-width:none;padding:8px 12px}.result-panel h2{font-size:17px}.result-panel>strong{font-size:35px;margin:0 0 4px;line-height:1.15}.result-hands{padding-top:5px;flex-direction:row}.result-hands>span{min-width:0}.result-panel>p{font-size:8px;margin-top:5px}}

.squeeze-dialog,.squeeze-stage{touch-action:none;overscroll-behavior:none;user-select:none;-webkit-user-select:none}

.seat-score[data-multiplier]:after{content:attr(data-multiplier) '×';position:absolute;right:-9px;top:-8px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border:1px solid #ecd89a;border-radius:6px;background:#e2bc68;color:#183325;font:700 10px/1 sans-serif;box-shadow:0 2px 5px #0004}
.result-hands>span{flex-wrap:wrap;row-gap:1px;max-width:100%}.result-hands .hand-rate{color:#ebce85;font-size:9px;white-space:nowrap}

/* Cached covering card: drag changes only a compositor transform, never its bitmap. */
.squeeze-stage #squeeze-cover{position:absolute;z-index:1;pointer-events:none;cursor:inherit;touch-action:none;user-select:none;will-change:transform;backface-visibility:hidden;transform:translate3d(0,0,0);transform-origin:50% 50%;box-shadow:0 8px 22px #0007;contain:layout style}
