/* Shared-room additions to the established oval table. */
#room-screen.live-shared #felt{top:calc(63px + env(safe-area-inset-top))}
#room-screen.live-shared #felt .seat.bank .seat-avatar{border:2px solid #ffdb83;box-shadow:0 0 0 3px #c19b4360,0 0 0 7px #e9bf4720,0 0 20px #e7bf625c;animation:live-bank-glow 3s ease-in-out infinite}
#room-screen.live-shared #felt .bank-crown{top:-18px;left:50%;min-width:55px;padding:3px 7px;border:1px solid #ffecb4;border-radius:7px;background:linear-gradient(120deg,#b18a3e,#ffe7a3 48%,#d6b165);box-shadow:0 3px 9px #0006;color:#25331e;font:700 10px/1.2 'DM Sans',sans-serif;letter-spacing:.7px;white-space:nowrap;z-index:7}
#room-screen.live-shared #felt .seat-human .bank-crown{left:50%;top:-19px}
#room-screen.live-shared #felt .is-vacant .seat-avatar{border:1px dashed #b4bd8e77;background:#15352840;color:#b2bf96;box-shadow:none;border-radius:50%}
#room-screen.live-shared #felt .is-vacant .profile-button{opacity:.8}
#room-screen.live-shared #felt .is-vacant .profile-button:focus-visible{outline:2px solid #e8cf8e;outline-offset:5px}
#room-screen.live-shared #felt .is-vacant .seat-name{font-size:8px;color:#91a78c}
#room-screen.live-shared #felt .is-vacant :is(.seat-wallet,.seat-hand,.seat-bet,.seat-result,.seat-score){display:none!important}
#room-screen.live-shared #felt .vacant-mark{font:26px/1 sans-serif}
#room-screen.live-shared #felt .seat-0:not(.seat-human) .seat-top{flex-direction:row;justify-content:center;gap:7px}
#room-screen.live-shared #felt .seat-0:not(.seat-human) .seat-hand{top:-80px}
#room-screen.live-shared #felt .seat-0:not(.seat-human) .seat-bet{top:-106px}
#room-screen.live-shared #felt .seat-0:not(.seat-human) .seat-score{top:-31px}
#room-screen.live-shared #felt .seat-0:not(.seat-human) .seat-result{top:-8px}
#room-screen.live-shared #felt .table-deck{display:block;pointer-events:none;filter:drop-shadow(0 0 5px #edc86c66)}
#room-screen.live-shared #felt .watermark{display:block}
#room-screen.live-shared #felt .table-pot{display:block;top:43%}
#room-screen.live-shared #felt .round-message{top:58%!important}
.live-actions{display:flex;align-items:center;flex:1;gap:7px;min-width:0}
#room-screen .live-actions .bet-summary{flex:1;min-width:0;max-width:190px;min-height:47px}
#room-screen .live-actions>.button{min-height:46px;min-width:0;padding:9px 12px;border-radius:13px;font-size:11px;line-height:1.8;flex:1}
#room-screen .live-actions #live-capture-all{font-size:10px}
.live-bet-banner{position:absolute;z-index:14;left:50%;top:calc(50% + 45px);transform:translateX(-50%);display:grid;grid-template-columns:1fr auto;gap:4px 11px;width:142px;padding:9px 12px;border:1px solid #d3ba7666;border-radius:12px;background:#123325f5;box-shadow:0 4px 15px #0005;color:#e7ce91;font-size:10px;line-height:1.7;pointer-events:none}
.live-bet-banner>b{font:600 16px/1.4 'DM Sans',sans-serif;color:#ffe0a0;font-variant-numeric:tabular-nums}
.live-bet-banner>i{grid-column:1/-1;height:2px;background:#b9bd8b25;overflow:hidden;border-radius:3px}
.live-bet-banner em{display:block;height:100%;background:#e7c67d;transform-origin:left;transition:transform .1s linear}
.live-connection{position:absolute;z-index:30;bottom:calc(var(--dock-height,75px) + 10px);left:50%;transform:translateX(-50%);max-width:85%;padding:6px 12px;border:1px solid #d8ba7159;border-radius:9px;background:#162f24f2;font-size:10px;line-height:1.8;color:#e9d5a1;text-align:center}
.live-peek-clock{position:absolute;z-index:10;right:20px;top:calc(20px + env(safe-area-inset-top));padding:6px 13px;border:1px solid #ddc27d80;border-radius:12px;background:#133827;color:#f7d991;font:600 19px/1.4 'DM Sans',sans-serif;font-variant-numeric:tabular-nums;pointer-events:none}
.live-peek-back{position:absolute;z-index:10;left:16px;top:calc(20px + env(safe-area-inset-top));min-height:39px;border:1px solid #ddc27d40;border-radius:12px;background:#153727e8;color:#e8d39e;padding:8px 12px;font-size:10px}
.live-bet-clock{font-size:10px;line-height:1.8;color:#f0d492;margin:0 0 12px}
@keyframes live-bank-glow{50%{box-shadow:0 0 0 3px #c19b4360,0 0 0 8px #e9bf4728,0 0 24px #e7bf6266}}
@media(max-width:360px){.live-bank-hint{font-size:8px;max-width:150px}.live-bank-current{font-size:10px}.live-bank-order{left:8px;right:8px;padding:8px}.live-bank-chain>span{font-size:8px}}
@media(max-height:500px) and (min-width:600px){.live-bank-order{left:170px;right:60px;top:calc(8px + env(safe-area-inset-top));padding:4px 9px;gap:2px 8px}.live-bank-current{font-size:9px}.live-bank-hint{font-size:8px}.live-bank-chain>span{font-size:7px;padding:0 6px}#room-screen.live-shared #felt{top:calc(65px + env(safe-area-inset-top))}.live-bet-banner{top:47%;padding:5px 9px}}
@media(prefers-reduced-motion:reduce){#room-screen.live-shared #felt .seat.bank .seat-avatar{animation:none}.live-bet-banner em{transition:none}}

#room-screen.live-shared #felt .live-portrait{display:block;width:100%;height:100%;border-radius:inherit;background-image:url(art/avatar-atlas.png);background-size:500% 200%;background-repeat:no-repeat}
#room-screen.live-shared #felt .table-deck{opacity:1}
#room-screen.live-shared #felt .live-actions{width:58%;max-width:280px;bottom:185px}
#room-screen.live-shared #felt .live-actions .bet-summary{width:100%;min-width:0;max-width:190px;min-height:45px}
#room-screen.live-shared #felt .live-actions>.button{flex:1;min-width:0}
#room-screen.live-shared #felt .live-actions:has(#live-capture-all:not([hidden])) .bet-summary{display:none}
#room-screen.live-shared #felt .live-actions:has(#live-join:not([hidden])){bottom:65px;width:50%}
@media(max-height:500px) and (min-width:600px){#room-screen.live-shared #felt .live-actions{bottom:125px;width:35%}#room-screen.live-shared #felt .live-actions:has(#live-join:not([hidden])){bottom:12px;width:25%}}

/* Keep money controls below the table and away from cards and microphone. */
#room-screen.live-shared>.live-actions{position:absolute;z-index:22;left:16px;right:78px;bottom:calc(15px + env(safe-area-inset-bottom));width:auto;max-width:310px;min-height:49px;transform:none;display:flex;gap:8px}
#room-screen.live-shared>.live-actions .bet-summary{max-width:none;min-height:49px;width:100%;padding:9px 13px;border:1px solid #d6ba7c60;border-radius:14px;background:linear-gradient(120deg,#294a36f2,#163426f2);box-shadow:0 5px 16px #0004}
#room-screen.live-shared>.live-actions .bet-summary:disabled{opacity:.7}#room-screen.live-shared>.live-actions .bet-caption{display:flex;gap:8px;align-items:center;flex:1;text-align:left}#room-screen.live-shared>.live-actions .bet-caption small{font-size:9px;line-height:1.8}#room-screen.live-shared>.live-actions .bet-caption strong{font:600 18px/1.3 system-ui;color:#ecd39b}#room-screen.live-shared>.live-actions .bet-edit{font-size:10px;color:#e3c787}
#room-screen.live-shared>.live-actions>.button{min-height:49px;flex:1;border-radius:14px;font-size:12px}
#bet-dialog.live-bet-sheet{width:min(410px,calc(100% - 24px));padding:19px 19px 17px;max-height:calc(var(--modal-viewport-height,100dvh) - 24px);border-radius:23px;background:radial-gradient(ellipse at 100% 0,#bba56b12,transparent 60%),linear-gradient(150deg,#193b2c,#0b241a)}
#bet-dialog.live-bet-sheet h2{font-size:19px;line-height:1.8;margin:0 0 12px;padding-right:100px}#bet-dialog.live-bet-sheet .sheet-grip{margin-top:-9px;margin-bottom:13px;width:29px;height:3px}#bet-dialog.live-bet-sheet .live-bet-clock{margin:0 0 7px;font-size:10px;line-height:1.7;color:#bca775}#bet-dialog.live-bet-sheet .bet-leave{top:48px;right:19px;min-height:36px;border-color:#bda67430;font-size:10px;padding:5px 10px}
#bet-dialog.live-bet-sheet .bet-wallet{margin-bottom:17px;padding:10px 12px}#bet-dialog.live-bet-sheet .bet-wallet span{font-size:10px}#bet-dialog.live-bet-sheet .bet-wallet strong{font-size:16px}#bet-dialog.live-bet-sheet .bet-number{margin-bottom:15px;gap:12px}#bet-dialog.live-bet-sheet .bet-number input{font-size:38px}#bet-dialog.live-bet-sheet .amount-step{width:42px;height:42px;border-radius:12px}#bet-dialog.live-bet-sheet .bet-presets{margin-bottom:15px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}#bet-dialog.live-bet-sheet .bet-presets button{min-width:0;min-height:39px;font-size:11px;padding:6px 3px}#bet-dialog.live-bet-sheet .range-labels{margin-bottom:13px}#bet-dialog.live-bet-sheet .bet-review{padding:10px 0}#bet-dialog.live-bet-sheet .cash-preview{display:none}#bet-dialog.live-bet-sheet .bet-review>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1}#bet-dialog.live-bet-sheet .bet-review strong{font-size:19px}#bet-dialog.live-bet-sheet .hint{margin:9px 0 13px}#bet-dialog.live-bet-sheet #place-bet-btn{min-height:48px;font-size:13px}
@media(max-height:500px){#bet-dialog.live-bet-sheet{padding:13px 17px;display:grid;grid-template-columns:1fr 1fr;column-gap:18px}#bet-dialog.live-bet-sheet:not([open]){display:none}#bet-dialog.live-bet-sheet .sheet-grip{display:none}#bet-dialog.live-bet-sheet .live-bet-clock{grid-column:1/-1}#bet-dialog.live-bet-sheet h2{grid-column:1;padding:0;margin:0 0 9px;font-size:16px}#bet-dialog.live-bet-sheet .bet-leave{top:12px;right:17px;min-height:30px}#bet-dialog.live-bet-sheet .bet-wallet{grid-column:1;grid-row:3;margin:0 0 8px;padding:8px}#bet-dialog.live-bet-sheet .field-label{grid-column:1;grid-row:4}#bet-dialog.live-bet-sheet .bet-number{grid-column:1;grid-row:5;margin-bottom:8px;gap:6px}#bet-dialog.live-bet-sheet .bet-number input{font-size:29px}#bet-dialog.live-bet-sheet .amount-step{width:33px;height:34px}#bet-dialog.live-bet-sheet .bet-presets{grid-column:2;grid-row:3/5;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:8px}#bet-dialog.live-bet-sheet #bet-slider{grid-column:1;grid-row:6}#bet-dialog.live-bet-sheet .range-labels{grid-column:1;grid-row:7;margin-bottom:0}#bet-dialog.live-bet-sheet .bet-review{grid-column:2;grid-row:5;padding:8px 0}#bet-dialog.live-bet-sheet .hint{grid-column:2;grid-row:6/8;font-size:8px;margin:4px 0 0}#bet-dialog.live-bet-sheet .dialog-actions{grid-column:1/-1;margin-top:10px}#bet-dialog.live-bet-sheet #place-bet-btn{min-height:40px}#room-screen.live-shared>.live-actions{left:16px;right:auto;width:220px;bottom:calc(10px + env(safe-area-inset-bottom))}}

#home-rules-body:has(#active-game-rules)>p{display:none}#active-game-rules h3{font-size:16px;font-weight:500;line-height:1.9;margin:15px 0}#active-game-rules dl{margin:0}#active-game-rules dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px;padding:10px 0;border-bottom:1px solid #c2ac7222;font-size:11px;line-height:1.9}#active-game-rules dt{color:#8fa78e}#active-game-rules dd{margin:0;text-align:right;color:#dfd3ac;overflow-wrap:anywhere}#active-game-rules details{margin:14px 0}#active-game-rules summary{font-size:12px;color:#d1bb81;cursor:pointer}

/* The same server deadline drives the private bar and the active profile border. */
#room-screen.live-shared #felt .turn-progress{position:absolute;inset:-5px;width:calc(100% + 10px);height:calc(100% + 10px);overflow:visible;pointer-events:none;z-index:8;fill:none;stroke-width:4}
#room-screen.live-shared #felt .turn-progress[hidden]{display:none}
.turn-track{stroke:#e4ce8725}.turn-remaining{stroke:#f4d681;stroke-dasharray:100;stroke-dashoffset:0;stroke-linecap:round;transition:stroke-dashoffset .1s linear}
.turn-progress.is-urgent .turn-remaining{stroke:#efa78a}
#room-screen.live-shared #felt .profile-button.is-turn .seat-avatar{box-shadow:0 0 18px #eed18332}
.live-peek-clock{width:min(220px,calc(100% - 154px));padding:8px 10px;border-color:#ddc27d45;border-radius:11px;background:#102e23f2;font:10px/1.8 'Noto Sans Myanmar',sans-serif}
.live-peek-clock>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}
.live-peek-clock span{font-size:10px;line-height:1.7;color:#c6d1ae}
.live-peek-clock b{font:600 17px/1.4 system-ui;white-space:nowrap;color:#f6d68d;font-variant-numeric:tabular-nums}
.live-peek-track{height:4px;margin-top:6px;border-radius:4px;background:#e0cd8b26;overflow:hidden}
.live-peek-track i{display:block;height:100%;width:100%;border-radius:inherit;background:#ebce81;transform-origin:left;transition:transform .1s linear}
@media(prefers-reduced-motion:reduce){.turn-remaining,.live-peek-track i{transition:none}}
