/* The felt fills the room. Players sit on the rim; cards stay small until picked up. */
.room-screen{background:radial-gradient(circle at 10% 20%,#bda96717 0 1px,transparent 2px) 0 0/31px 43px,radial-gradient(circle at 80% 70%,#bda96712 0 1px,transparent 2px) 0 0/59px 67px,linear-gradient(145deg,#111c19,#08110f);}
.room-header{background:#0a1715e8}.bank-panel{color:#e8dfc0}.bank-profit b{color:#bdd09b}
.full-table{top:calc(104px + env(safe-area-inset-top));bottom:calc(var(--dock-height,119px) + 7px)}
.full-table:before{inset:5px 24px;border-radius:46%/25%;opacity:.055}
.felt-border{inset:5px 27px 8px;border:7px solid transparent;border-radius:49%/25%;background:radial-gradient(ellipse at 50% 40%,var(--felt-light),var(--felt)) padding-box,linear-gradient(120deg,#9a8056,#edce91 23%,var(--rim) 48%,#a08c63 70%,#ebce99) border-box;box-shadow:0 0 0 6px #252b25,0 0 0 9px #090f0da8,0 15px 25px #0006,inset 0 0 0 2px #f5e6b52b,inset 0 0 70px #04140b77}
.felt-border:after{inset:12px;border:1px solid #d4d5b219;border-radius:48%/25%}
#felt .watermark{top:31%;opacity:.5;color:#d0d3b926}#felt .watermark strong{font-size:21px;letter-spacing:4px}#felt .watermark>span{font-size:11px}
#felt .seat{width:126px}#felt .seat-1{left:13%;top:49%}#felt .seat-2{left:27%;top:15%}#felt .seat-3{left:73%;top:15%}#felt .seat-4{left:87%;top:49%}
#felt .seat-0{left:50%;top:auto;bottom:10px;width:min(78vw,330px);transform:translateX(-50%)}
#felt .seat-top{gap:6px}#felt .profile-button{min-width:44px;min-height:44px;position:relative;display:grid;place-items:center}
#felt .seat-avatar{width:42px;height:44px;border-radius:10px;border:2px solid #d2c19883;box-shadow:0 3px 8px #0007;background:var(--seat-color);font-size:20px}
#felt .seat-name{font-size:11px;line-height:1.4;color:#efe7d4}#felt .seat-wallet{font:600 13px/1.2 'DM Sans',sans-serif;margin-top:3px;color:#e7cb86}
#felt .seat.bank .seat-avatar{border-color:#f0cc77;box-shadow:0 0 0 2px #775126,0 0 14px #e7c77635}
#felt .bank-crown{top:-12px;padding:0 7px;font-size:8px;border-radius:5px;z-index:6}
#felt .seat-status{margin-top:4px;min-height:14px;line-height:1.4;font-size:8px;color:#b9c6ac}
#felt .seat:has(.seat-score:not([hidden])) .seat-status{visibility:hidden}
#felt .seat-hand{height:55px;margin-top:7px;gap:3px}#felt .seat-hand canvas{height:50px;width:auto;max-height:none;aspect-ratio:5/7;border-radius:4px;margin:0;transform:none;box-shadow:0 3px 6px #0006}
#felt .seat:is(.seat-1,.seat-4) .seat-hand{height:44px}#felt .seat:is(.seat-1,.seat-4) .seat-hand canvas{height:40px}
#felt .seat-human .seat-hand{height:88px;gap:6px;margin:0}#felt .seat-human .seat-hand canvas{height:82px;max-height:none;width:auto;border-radius:5px}
#felt .seat-human .player-card{transform:none}#felt .seat-human .seat-top{margin-top:7px}#felt .seat-human .seat-avatar{width:34px;height:36px}#felt .seat-human .profile-button{min-height:36px;min-width:36px}
#felt .seat-human .seat-status{font-size:9px;margin:1px 0 0}#felt .seat-human .seat-wallet{display:none}
#felt .seat-bet{top:61px;right:6px}#felt .seat-bet .note{width:44px;height:21px;font-size:10px}#felt .seat-human .seat-bet{right:10%;top:23px}
#felt .seat-score{position:absolute;top:calc(100% + 4px);left:50%;transform:translateX(-50%);line-height:1.25;padding:2px 6px;background:#ddd8b6;color:#173429;border:0;border-radius:5px;font-size:10px;white-space:nowrap}
#felt .seat-human .seat-score{position:static;transform:none}#felt .seat-score[data-multiplier]:after{top:-6px;right:-9px}
#felt .seat-result{position:static;transform:none;display:inline-flex;align-items:center;gap:4px;margin-top:5px;padding:3px 6px;background:#143b2c;border:1px solid #d4bc7c55;border-radius:6px;color:#f2d89b;text-shadow:none;line-height:1.3;white-space:nowrap}
#felt .seat-result small{font-size:9px}#felt .seat-result b{font:700 16px/1.2 'DM Sans',sans-serif}#felt .seat-result[data-result=loss]{background:#432e2b;color:#eebba7;border-color:#be8d7855}
#felt .seat-result[data-result=tie]{background:#263c30;color:#b7c5b1;border-color:#82957b55}
#felt .seat-human .seat-result{display:none}
#felt .seat.caught .profile-button:after{content:attr(data-capture-order);position:absolute;right:-4px;bottom:-3px;width:17px;height:17px;border-radius:50%;background:#e3c687;color:#1a3326;display:grid;place-items:center;font:700 10px/1 sans-serif;border:1px solid #f8e8b6}
#felt .seat.catchable .seat-avatar{border-color:#f3d28b;box-shadow:0 0 0 2px #e4c57655,0 0 18px #e8c47955}
#felt .seat.catchable .seat-hand{cursor:pointer}#felt .seat.catchable .seat-hand canvas{box-shadow:0 0 0 1px #e8ce8b,0 3px 8px #0007}
.catch-button{display:inline-block;margin-top:5px;min-height:32px;min-width:70px;padding:4px 10px;border:1px solid #f2d99d;border-radius:7px;background:linear-gradient(120deg,#efd59a,#c7a967);color:#243b28;font-size:11px;font-weight:600;line-height:1.5}
#felt .seat.voided .seat-hand{opacity:.25}#felt .seat.voided .seat-status{visibility:visible;color:#d9cba5}#felt .seat.voided .seat-avatar{filter:saturate(.4)}
#felt .table-deck{width:27px;height:38px}#felt .table-deck i{font-size:18px}
#felt .table-pot{top:43%}#felt .table-pot strong{font-size:26px}#felt .table-pot small{font-size:8px}
#felt .round-message{top:57%;width:44%;font-size:10px;line-height:1.7}#felt .turn-clock{top:66%;font-size:9px}
#felt .result-panel{top:47%;width:51%;max-width:290px;padding:12px 10px;border-radius:15px;box-shadow:0 12px 28px #07130b55}
#felt .result-panel h2{font-size:18px}#felt .result-panel>strong{font-size:36px}#felt .result-hands{flex-direction:column;gap:3px;padding-top:6px}#felt .result-hands>span{min-width:0;padding:2px 5px;gap:5px}#felt .result-hands b{font-size:10px}#felt .result-hands small{font-size:8px}#felt .result-panel>p{font-size:8px;line-height:1.4}
.room-controls{background:linear-gradient(145deg,#172720f7,#07130ffc);border-color:#d1bb7d40;box-shadow:0 -8px 20px #0004}
body[data-phase=comparing] .table-deck,body[data-phase=comparing] .table-pot,body[data-phase=comparing] .watermark{display:none}
body[data-phase=comparing] .round-message{top:43%!important}body[data-phase=comparing] .turn-clock{top:54%!important}
body[data-phase=finished] #felt .seat-human .seat-status,body[data-phase=finished] #felt .seat-human .seat-score{display:none}
body[data-phase=finished] #felt .seat:not(.seat-human) .seat-hand{margin-top:7px}
@media(max-width:390px){.felt-border{inset:5px 23px 8px;border-width:6px}#felt .seat{width:114px}#felt .seat-avatar{width:37px;height:40px}#felt .profile-button{min-width:40px;min-height:40px}#felt .seat-name{font-size:10px}#felt .seat-wallet{font-size:11px}#felt .seat-hand{height:49px}#felt .seat-hand canvas{height:45px}#felt .seat:is(.seat-1,.seat-4) .seat-hand canvas{height:35px}#felt .seat:is(.seat-1,.seat-4) .seat-hand{height:39px}#felt .seat-human .seat-hand{height:82px}#felt .seat-human .seat-hand canvas{height:76px}#felt .seat-result b{font-size:14px}#felt .result-panel>strong{font-size:32px}#felt .result-panel h2{font-size:17px}#felt .seat-score{font-size:9px}}
@media(min-width:800px) and (min-height:501px){.felt-border{left:10%;right:10%;border-width:10px;border-radius:48%/36%}#felt .seat{width:180px}#felt .seat-1{left:14%}#felt .seat-4{left:86%}#felt .seat-avatar{width:50px;height:52px}#felt .profile-button{min-width:52px;min-height:52px}#felt .seat-name{font-size:13px}#felt .seat-wallet{font-size:15px}#felt .seat-hand{height:70px}#felt .seat-hand canvas{height:64px}#felt .seat:is(.seat-1,.seat-4) .seat-hand{height:62px}#felt .seat:is(.seat-1,.seat-4) .seat-hand canvas{height:56px}#felt .seat-human .seat-hand{height:107px}#felt .seat-human .seat-hand canvas{height:100px}#felt .result-panel{width:300px}#felt .result-panel>strong{font-size:46px}#felt .result-panel h2{font-size:22px}#felt .round-message{font-size:13px}}
@media(max-height:500px) and (min-width:600px){.full-table{top:calc(62px + env(safe-area-inset-top))}.felt-border{inset:0 35px 3px;border-width:6px;border-radius:35%/47%}#felt .seat{width:135px}#felt .seat-2{left:27%;top:23%}#felt .seat-3{left:73%;top:23%}#felt .seat-1{left:13%;top:64%}#felt .seat-4{left:87%;top:64%}#felt .seat-0{bottom:7px;width:230px}#felt .seat-avatar{width:28px;height:30px;border-radius:7px}#felt .profile-button{min-width:30px;min-height:30px}#felt .seat-name{font-size:9px}#felt .seat-wallet{font-size:10px}#felt .seat-status{display:none}#felt .seat-hand{height:34px;margin-top:21px}#felt .seat-hand canvas{height:30px}#felt .seat:is(.seat-1,.seat-4) .seat-hand{height:34px}#felt .seat:is(.seat-1,.seat-4) .seat-hand canvas{height:30px}#felt .seat-human .seat-hand{height:54px;margin:0}#felt .seat-human .seat-hand canvas{height:50px}#felt .seat-human .seat-top{margin-top:3px}#felt .seat-human .seat-avatar{height:25px;width:24px}#felt .seat-human .profile-button{min-height:25px;min-width:24px}#felt .seat-score{font-size:9px;top:calc(100% + 3px)}#felt .seat-result{margin-top:3px;padding:2px 5px}#felt .seat-result b{font-size:13px}#felt .seat-result small{font-size:8px}#felt .result-panel{top:35%;width:230px;padding:8px 12px}#felt .result-panel h2{font-size:16px}#felt .result-panel>strong{font-size:32px;margin:0 0 4px}#felt .result-hands{flex-direction:row;padding-top:4px}#felt .result-panel>p{font-size:7px}#felt .round-message{top:15%;font-size:9px;width:30%}#felt .turn-clock{top:53%;font-size:8px}.catch-button{min-height:29px;min-width:65px;font-size:10px;margin-top:3px}body[data-phase=comparing] #felt .round-message{top:26%!important}body[data-phase=comparing] #felt .turn-clock{top:43%!important}body[data-phase=finished] #felt .seat:not(.seat-human) .seat-hand{margin-top:21px}}

#felt .seat-hand{position:relative}#felt .seat-hand[data-natural]:after{content:'AUTO';position:absolute;left:50%;bottom:9px;transform:translateX(-50%);min-width:53px;padding:2px 8px;border:1px solid #e8d69c;border-radius:6px;background:linear-gradient(115deg,#ad8b4b,#f6e4ab 45%,#b08d49);color:#705126;text-align:center;font:700 9px/1.2 Georgia,serif;letter-spacing:1px;box-shadow:0 2px 5px #0005;pointer-events:none}#felt .seat-human .seat-hand[data-natural]:after{bottom:20px;min-width:74px;font-size:11px}#felt .seat.voided .seat-hand[data-natural]:after{display:none}
/* Eight seats remain on the oval rim; the center stays clear for captures. */
body[data-seat-count="8"] #felt .seat{width:104px}
body[data-seat-count="8"] #felt .seat-1{left:13%;top:75%}
body[data-seat-count="8"] #felt .seat-2{left:12%;top:50%}
body[data-seat-count="8"] #felt .seat-3{left:23%;top:25%}
body[data-seat-count="8"] #felt .seat-4{left:50%;top:12%}
body[data-seat-count="8"] #felt .seat-5{left:77%;top:25%}
body[data-seat-count="8"] #felt .seat-6{left:88%;top:50%}
body[data-seat-count="8"] #felt .seat-7{left:87%;top:75%}
body[data-seat-count="8"] #felt .seat-0{left:50%;top:auto;bottom:8px;width:min(72vw,310px)}
body[data-seat-count="8"] #felt .seat-avatar{width:35px;height:37px}
body[data-seat-count="8"] #felt .profile-button{min-width:38px;min-height:38px}
body[data-seat-count="8"] #felt .seat-top{gap:4px}
body[data-seat-count="8"] #felt .seat-name{font-size:9px}
body[data-seat-count="8"] #felt .seat-wallet{font-size:11px;margin-top:2px}
body[data-seat-count="8"] #felt .seat-status{font-size:7px;min-height:12px}
body[data-seat-count="8"] #felt .seat-hand{height:44px;margin-top:7px;gap:2px}
body[data-seat-count="8"] #felt .seat-hand canvas{height:39px}
body[data-seat-count="8"] #felt .seat:is(.seat-2,.seat-6) .seat-hand{height:40px}
body[data-seat-count="8"] #felt .seat:is(.seat-2,.seat-6) .seat-hand canvas{height:35px}
body[data-seat-count="8"] #felt .seat-human .seat-hand{height:75px;margin:0;gap:5px}
body[data-seat-count="8"] #felt .seat-human .seat-hand canvas{height:69px}
body[data-seat-count="8"] #felt .seat-human .seat-top{margin-top:5px}
body[data-seat-count="8"] #felt .seat-score{font-size:9px;padding:2px 5px}
body[data-seat-count="8"] #felt .seat-result{padding:2px 5px;margin-top:4px}
body[data-seat-count="8"] #felt .seat-result small{font-size:8px}
body[data-seat-count="8"] #felt .seat-result b{font-size:14px}
body[data-seat-count="8"] #felt .seat-bet{right:0;top:53px}
body[data-seat-count="8"] #felt .seat-bet .note{width:37px;height:18px;font-size:9px}
body[data-seat-count="8"] #felt .seat-human .seat-bet{right:12%;top:19px}
body[data-seat-count="8"] #felt .result-panel{top:47%;width:49%;padding:10px 8px}
body[data-seat-count="8"] #felt .result-panel>strong{font-size:33px}
body[data-seat-count="8"] #felt .catch-button{min-width:61px;min-height:29px;padding:3px 8px;font-size:10px;margin-top:4px}
body[data-seat-count="8"] #felt .seat-hand[data-natural]:after{min-width:45px;padding:1px 5px;bottom:7px;font-size:8px}
body[data-seat-count="8"] #felt .seat-human .seat-hand[data-natural]:after{min-width:64px;bottom:17px;font-size:10px}
@media(max-width:390px){body[data-seat-count="8"] #felt .seat{width:94px}body[data-seat-count="8"] #felt .seat-avatar{height:33px;width:31px}body[data-seat-count="8"] #felt .profile-button{min-height:34px;min-width:34px}body[data-seat-count="8"] #felt .seat-name{font-size:8px}body[data-seat-count="8"] #felt .seat-wallet{font-size:10px}body[data-seat-count="8"] #felt .seat-hand{height:40px}body[data-seat-count="8"] #felt .seat-hand canvas{height:35px}body[data-seat-count="8"] #felt .seat-human .seat-hand{height:69px}body[data-seat-count="8"] #felt .seat-human .seat-hand canvas{height:63px}body[data-seat-count="8"] #felt .seat-result b{font-size:13px}body[data-seat-count="8"] #felt .result-panel>strong{font-size:29px}body[data-seat-count="8"] #felt .result-panel h2{font-size:16px}body[data-seat-count="8"] #felt .result-hands b{font-size:9px}}
@media(min-width:800px) and (min-height:501px){body[data-seat-count="8"] #felt .seat{width:160px}body[data-seat-count="8"] #felt .seat-avatar{height:48px;width:46px}body[data-seat-count="8"] #felt .profile-button{min-height:50px;min-width:48px}body[data-seat-count="8"] #felt .seat-name{font-size:12px}body[data-seat-count="8"] #felt .seat-wallet{font-size:14px}body[data-seat-count="8"] #felt .seat-hand{height:61px}body[data-seat-count="8"] #felt .seat-hand canvas{height:55px}body[data-seat-count="8"] #felt .seat:is(.seat-2,.seat-6) .seat-hand{height:55px}body[data-seat-count="8"] #felt .seat:is(.seat-2,.seat-6) .seat-hand canvas{height:49px}body[data-seat-count="8"] #felt .seat-human .seat-hand{height:95px}body[data-seat-count="8"] #felt .seat-human .seat-hand canvas{height:88px}body[data-seat-count="8"] #felt .result-panel{width:290px}body[data-seat-count="8"] #felt .result-panel>strong{font-size:44px}}
@media(max-height:500px) and (min-width:600px){body[data-seat-count="8"] #felt .seat{width:120px}body[data-seat-count="8"] #felt .seat-1{left:13%;top:77%}body[data-seat-count="8"] #felt .seat-2{left:12%;top:43%}body[data-seat-count="8"] #felt .seat-3{left:27%;top:18%}body[data-seat-count="8"] #felt .seat-4{left:50%;top:12%;display:flex;align-items:center;justify-content:center;gap:5px;width:205px}body[data-seat-count="8"] #felt .seat-5{left:73%;top:18%}body[data-seat-count="8"] #felt .seat-6{left:88%;top:43%}body[data-seat-count="8"] #felt .seat-7{left:87%;top:77%}body[data-seat-count="8"] #felt .seat-0{bottom:5px;width:215px}body[data-seat-count="8"] #felt .seat-avatar{height:23px;width:22px}body[data-seat-count="8"] #felt .profile-button{min-height:24px;min-width:24px}body[data-seat-count="8"] #felt .seat-name{font-size:8px}body[data-seat-count="8"] #felt .seat-wallet{font-size:9px}body[data-seat-count="8"] #felt .seat-score{font-size:8px;top:calc(100% + 2px);padding:1px 4px}body[data-seat-count="8"] #felt .seat-hand{height:28px;margin-top:17px}body[data-seat-count="8"] #felt .seat-hand canvas{height:25px}body[data-seat-count="8"] #felt .seat:is(.seat-2,.seat-6) .seat-hand{height:28px}body[data-seat-count="8"] #felt .seat:is(.seat-2,.seat-6) .seat-hand canvas{height:25px}body[data-seat-count="8"] #felt .seat-4 .seat-hand{margin:0;min-width:62px}body[data-seat-count="8"] #felt .seat-4 .seat-score{position:static;transform:none}body[data-seat-count="8"] #felt .seat-4 .seat-result,body[data-seat-count="8"] #felt .seat-4 .catch-button{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:3px}body[data-seat-count="8"] #felt .seat-human .seat-hand{height:49px;margin:0}body[data-seat-count="8"] #felt .seat-human .seat-hand canvas{height:45px}body[data-seat-count="8"] #felt .seat-human .seat-top{margin-top:3px}body[data-seat-count="8"] #felt .seat-result{padding:1px 4px;margin-top:3px}body[data-seat-count="8"] #felt .seat-result b{font-size:11px}body[data-seat-count="8"] #felt .seat-result small{font-size:7px}body[data-seat-count="8"] #felt .catch-button{min-height:25px;font-size:9px;margin-top:3px}body[data-seat-count="8"] #felt .result-panel{top:45%;width:220px;padding:6px 9px}body[data-seat-count="8"] #felt .result-panel h2{font-size:15px}body[data-seat-count="8"] #felt .result-panel>strong{font-size:29px}body[data-seat-count="8"] #felt .result-hands{gap:3px;padding-top:3px}body[data-seat-count="8"] #felt .result-hands>span{gap:3px;padding:1px 3px}body[data-seat-count="8"] #felt .result-hands b{font-size:8px}body[data-seat-count="8"] #felt .result-panel>p{font-size:7px;margin-top:3px}}
body[data-seat-count="8"] #felt .seat-1{left:15%}body[data-seat-count="8"] #felt .seat-2{left:14.5%}body[data-seat-count="8"] #felt .seat-6{left:85.5%}body[data-seat-count="8"] #felt .seat-7{left:85%}
body[data-seat-count="8"] #felt .seat-name{min-width:0;max-width:64px;overflow:hidden;text-overflow:ellipsis}
#felt .seat.bank .bank-crown{display:block}
#felt .profile-button:before{content:'';position:absolute;inset:-3px;border-radius:10px}
@media(max-height:500px) and (min-width:600px){body[data-seat-count="8"] #felt .seat-1{left:13%;top:78%}body[data-seat-count="8"] #felt .seat-2{left:12%;top:42%}body[data-seat-count="8"] #felt .seat-6{left:88%;top:42%}body[data-seat-count="8"] #felt .seat-7{left:87%;top:78%}body[data-seat-count="8"] #felt .result-hands{display:none}body[data-seat-count="8"][data-phase=finished] #felt .seat-human .seat-score{display:inline-flex}body[data-seat-count="8"][data-phase=comparing] #felt .round-message{top:51%!important}body[data-seat-count="8"][data-phase=comparing] #felt .turn-clock{top:62%!important}}
