/* The Activity is a game surface, not a scrolling dashboard. */
html,body { width:100%;height:100%;margin:0;overflow:hidden;background:#091b15; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { overscroll-behavior:none; }
button:focus-visible,input:focus-visible,select:focus-visible { outline:2px solid #ffe1a0;outline-offset:3px; }
.shell { position:relative;width:100%;height:100dvh;max-width:none;margin:0;padding:0;overflow:hidden; }
.shell>.score,.shell>.footer { display:none; }
.game-header { position:absolute;inset:0 0 auto;z-index:22;display:block;margin:0;height:0;padding:0;pointer-events:none; }
.game-brand { position:absolute;left:22px;top:14px;display:grid;justify-items:start;gap:14px; }
.game-logo { margin:0;display:flex;flex-direction:column;align-items:center;transform:rotate(-5deg);font:900 clamp(28px,3.5vw,48px)/.87 Georgia,'Times New Roman',serif;letter-spacing:-.065em;filter:drop-shadow(0 3px 0 #80501d) drop-shadow(0 5px 0 #362216) drop-shadow(0 8px 6px #0008); }
.game-logo span,.game-logo small { background:linear-gradient(#ffedac 0%,#d4a33d 37%,#fff0b7 49%,#b77a25 53%,#e8be66 82%,#ffe1a0);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-stroke:.4px #d9ab61; }
.game-logo small { font-size:.77em;letter-spacing:-.04em;line-height:1.12; }
.game-logo small b { font-size:1.15em; }
.table-menu-button { position:absolute;right:18px;top:16px;width:38px;height:38px;border:1px solid #c7c39b40;border-radius:50%;background:#152d24cc;color:#e7dfc0;font-size:19px;pointer-events:auto; }
.table-menu-button:hover { background:#31503e; }
#loungeScreen { position:absolute;inset:0;animation:none; }
.lounge-scene { position:absolute;inset:0;height:100%;border:0;border-radius:0;background:radial-gradient(ellipse at 50% 40%,#294738 0,#142c23 48%,#0a1c16 100%);box-shadow:inset 0 0 150px #0004; }
.lounge-table { top:52%;width:82%;height:63%;padding:12px;border-width:12px;border-radius:22% / 50%; }
.lounge-table>img { inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);border-radius:20% / 48%;opacity:1;filter:none; }
.lounge-table::after { inset:10px;border-radius:20% / 48%; }
.lounge-chips { inset:12px; }
.lounge-table-entry { inset:12px;border-radius:20% / 48%; }
.lounge-top { position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:12;padding:0;display:block;pointer-events:none;text-align:center; }
.table-bank { display:flex;flex-direction:column;align-items:center;gap:0; }
.table-bank>span { font-size:8px;letter-spacing:.16em;color:#c9d5bc; }
.table-bank>strong { font:500 clamp(25px,3.4vw,40px)/1.1 Georgia,serif;color:#ffe0a0;text-shadow:0 2px 8px #0008; }
.table-bank>small { font-size:10px;margin-top:2px; }
.lounge-round-status { position:fixed;top:calc(100dvh - 54px);left:50%;transform:translateX(-50%);align-items:center;gap:3px;width:240px;text-align:center; }
.round-eyebrow { font-size:8px;letter-spacing:.14em; }
.round-countdown { font-size:12px!important;color:#d9e0c3; }
.lounge-seat { width:156px;min-height:0;gap:8px;flex-direction:row;text-align:left; }
.portrait-wrap { width:clamp(40px,7.5vh,66px);height:clamp(40px,7.5vh,66px);padding:3px;cursor:pointer; }
.portrait-wrap:disabled { cursor:default;opacity:1; }
.portrait-wrap:not(:disabled):hover { transform:scale(1.08);border-color:#fff2c3; }
.portrait { font-size:20px; }
.seat-pos-0 { left:50%;top:86%; }
.seat-pos-1 { left:26%;top:85%; }
.seat-pos-2 { left:5%;top:52%;width:90px;flex-direction:column;text-align:center; }
.seat-pos-3 { left:26%;top:17%; }
.seat-pos-4 { left:50%;top:18%; }
.seat-pos-5 { left:74%;top:17%; }
.seat-pos-6 { left:95%;top:52%;width:90px;flex-direction:column;text-align:center; }
.seat-pos-7 { left:74%;top:85%; }
.player-name { font-size:11px;max-width:96px; }
.player-money { font-size:14px; }
.player-status { font-size:8px;margin-top:2px; }
.seat-stats { font-size:7px;margin-top:2px; }
.is-empty { width:auto;opacity:.65;flex-direction:column;gap:4px; }
.is-empty .player-name { font-size:8px;text-transform:uppercase;letter-spacing:.09em; }
.is-empty:hover { opacity:1; }
.remove-ghost { display:none;position:absolute;inset:0;z-index:10;border-radius:50%;place-items:center;background:#a82f35ee;border:2px solid #ffafa4;color:white;font:300 35px/1 system-ui; }
.is-ghost .portrait-wrap:not(:disabled):hover .remove-ghost,.is-ghost .portrait-wrap:focus-visible .remove-ghost { display:grid; }
.is-ghost .portrait-wrap:not(:disabled):hover .shooter-badge { opacity:0; }
.bet-clock { inset:3px; }
.lounge-actions { position:absolute;inset:0;z-index:15;margin:0;display:block;pointer-events:none; }
.lounge-actions>button { pointer-events:auto; }
#loungeReadyButton { position:absolute;left:22px;bottom:23px;min-width:118px;min-height:42px;background:linear-gradient(#eddaa4,#c5a76a);color:#263520;border:1px solid #fae7af;border-radius:7px;font-size:12px;box-shadow:0 3px 0 #76613a,0 6px 16px #0005; }
#loungeReadyButton:disabled { opacity:.7; }
#collectReadyButton { position:absolute;left:156px;bottom:23px;min-height:42px;min-width:0;padding:9px 12px;font-size:11px; }
#loungeHint { position:absolute;left:50%;top:69%;transform:translate(-50%,-50%);max-width:55%;padding:5px 9px;border-radius:20px;background:#0d2b20c9;color:#ede4c7;font-size:10px;line-height:1.3;pointer-events:none; }
#collectionSummary { display:none!important; }
#tableRollButton { position:absolute;right:23px;bottom:15px;display:flex;flex-direction:column;align-items:center;gap:12px;min-width:130px;min-height:96px;padding:12px 10px 7px;border:0;background:transparent;box-shadow:none;color:#e9d59d;border-radius:12px;font-size:11px; }
#tableRollButton:disabled { opacity:1;cursor:default; }
#tableRollButton:disabled #diceGrabLabel { color:#a5b5a0; }
.dice-grab-pair { display:flex;gap:24px;perspective:600px;transform:rotateX(18deg) rotateY(-18deg) rotateZ(-9deg);transform-style:preserve-3d;padding:4px 0; }
.dice-grab-pair .die { --die-size:35px;--die-depth:17.5px; }
.dice-grab-pair .die:nth-child(2) { margin-top:7px; }
#tableRollButton.can-roll { background:radial-gradient(ellipse,#e7b75622,transparent 70%); }
#tableRollButton.can-roll .dice-grab-pair { animation:invite-roll 1.6s ease-in-out infinite;filter:drop-shadow(0 0 9px #dfaf5a50); }
#tableRollButton.can-roll:hover { background:#dfbf5620; }
@keyframes invite-roll { 50%{transform:rotateX(18deg) rotateY(-18deg) rotateZ(-9deg) translateY(-5px)} }
.lounge-dice { opacity:0;transition:opacity .2s; }
.is-rolling .lounge-dice,.is-paying .lounge-dice { opacity:1; }
#roundRecap { display:none; }
#loungeScreen:has(.is-rolling) #tableRollButton .dice-grab-pair { opacity:0; }
.roll-reveal { width:min(340px,48%);padding:13px; }
.roll-reveal .reveal-total { font-size:60px; }
.roll-reveal .reveal-title { font-size:24px; }
/* Connection status never consumes table height; errors remain actionable. */
.activity-panel { position:absolute;right:64px;top:15px;z-index:25;max-width:300px;margin:0;padding:8px 12px;border-radius:9px;background:#152e25ed; }
.activity-panel.is-connected { display:none; }
.activity-panel.is-connected .activity-heading>b { font-size:8px;font-weight:500;color:#9dbca7; }
.activity-participants { display:none; }
/* Close betting view: one compact toolbar, the felt, then a fixed chip rail. */
.is-betting .game-brand { display:none; }
.is-betting .table-menu-button { top:8px;right:9px;width:30px;height:30px;font-size:15px; }
.is-betting .activity-panel.is-connected { display:none; }
#bettingScreen { position:absolute;inset:0;display:flex;flex-direction:column;padding:0;gap:0;background:#103c2e; }
.betting-nav { flex:0 0 48px;position:relative;top:auto;display:flex;flex-wrap:nowrap;gap:8px;margin:0;padding:5px 50px 5px 14px;z-index:21;background:#0c251e; }
.betting-nav>div:last-child { flex-wrap:nowrap;gap:8px; }
.betting-wallet { display:flex;align-items:center;gap:9px;min-width:0; }
.betting-wallet>b { font-size:18px;color:#f3dfac;font-variant-numeric:tabular-nums; }
#betOnTable { font-size:10px;color:#c7d3bc;white-space:nowrap; }
.betting-nav button { padding:7px 10px;min-height:31px;font-size:11px;white-space:nowrap;border-radius:5px; }
.betting-nav #yourBetsButton { border:0;background:none;font-size:10px;color:#bacdbb; }
#bettingTimer { font-size:11px;white-space:nowrap; }
#yourBetsPanel { position:absolute;z-index:35;top:48px;left:12px;width:min(430px,80%);background:#152b21;box-shadow:0 12px 40px #000a;margin:0; }
#yourBetsList { max-height:32vh; }
#bettingScreen .table-room { flex:1 1 0;min-height:0;position:relative;margin:0;padding:0;display:flex; }
#bettingScreen .table-card { flex:1;display:flex;flex-direction:column;min-height:0;padding:5px 8px 8px;border-width:5px;border-radius:0;box-shadow:inset 0 0 0 1px #b18449; }
#bettingScreen .table-head { margin:0 0 4px;padding:0 7px;flex:0 0 13px; }
#bettingScreen .felt-frame { flex:1;min-height:0;display:flex;border-radius:3px 3px 30px 3px; }
#bettingScreen .board { flex:1;min-height:0;height:100%;width:100%;aspect-ratio:auto;grid-template-columns:minmax(0,22fr) repeat(6,minmax(0,10fr)) minmax(0,12fr) minmax(0,6fr);grid-template-rows:24% 23% 20% 11% 15% 7%;container-type:size; }
#bettingScreen .props { grid-column:1;grid-row:1/7;grid-template-columns:1fr 1fr;grid-template-rows:.8fr repeat(4,1fr) .8fr;margin:0 8px 0 0; }
#bettingScreen .numbers { grid-column:2/8;grid-row:1; }
#bettingScreen .come-cell { grid-column:2/8;grid-row:2; }
#bettingScreen .come-cell:nth-child(2) { grid-column:8;grid-row:1/3; }
#bettingScreen .field { grid-column:2/9;grid-row:3; }
#bettingScreen .dont-odds { grid-column:2;grid-row:4; }
#bettingScreen .dont { grid-column:3/9;grid-row:4; }
#bettingScreen .rail { display:grid;grid-column:9;grid-row:1/5; }
#bettingScreen .pass { grid-column:2/10;grid-row:5; }
#bettingScreen .pass-odds { grid-column:2/10;grid-row:6; }
#bettingScreen .number { padding-top:10%; }
#bettingScreen .number .zt { font-size:clamp(20px,10cqh,64px); }
#bettingScreen .number .word-number { font-size:clamp(13px,6cqh,36px); }
#bettingScreen .come .zt { font-size:clamp(22px,10cqh,65px); }
#bettingScreen .dontcome .zt { font-size:clamp(10px,4.2cqh,27px); }
#bettingScreen .field-numbers { font-size:clamp(16px,6.5cqh,38px); }
#bettingScreen .field-double b { width:clamp(18px,6cqh,35px); }
#bettingScreen .field>.zt { font-size:clamp(18px,7cqh,40px); }
#bettingScreen .dont .zt { font-size:clamp(12px,5cqh,28px); }
#bettingScreen .pass .zt { font-size:clamp(20px,8cqh,46px); }
#bettingScreen .printed-die { width:clamp(12px,4.5cqh,29px);padding:2px; }
#bettingScreen .prop strong { font-size:clamp(10px,4cqh,22px); }
#bettingScreen .dice-prop strong { font-size:clamp(8px,2.5cqh,14px); }
#bettingScreen .controls { flex:0 0 100px;position:relative;display:flex;align-items:center;gap:18px;min-height:0;padding:9px 16px;border:0;border-radius:0;background:linear-gradient(#112b21,#0d211b); }
#bettingScreen .control-top { flex:0 0 auto;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px; }
#bettingScreen #modeHint { font-size:8px;max-width:165px;line-height:1.25; }
#bettingScreen .dock-layout { display:flex;align-items:center;gap:14px;flex:1;flex-wrap:nowrap;min-width:0; }
#bettingScreen .chip-panel { flex:0 0 auto;min-width:0; }
#bettingScreen .chip-caption { font-size:7px;margin:0 0 4px;gap:10px; }
#bettingScreen .chips { gap:4px; }
#bettingScreen .chip { width:46px;height:46px; }
#bettingScreen .chip-face { width:38px;font-size:12px; }
#bettingScreen .dice-console,#bettingScreen .dock-actions,#bettingScreen .control-foot { display:none; }
#bettingScreen .payout-bar { flex:0 0 auto;border:0;margin:0;padding:0;background:none; }
#payoutSummary { display:none; }
#collectAllButton { padding:10px 13px;min-height:36px;font-size:11px; }
#collectAllButton:disabled { display:none; }
#moveOddsOffer { position:absolute;z-index:34;top:52px;left:50%;transform:translateX(-50%);width:max-content;max-width:95%;margin:0;box-shadow:0 6px 22px #0008; }
/* Set up once, then keep the settings and longer explanations out of play. */
.setup-dialog,.table-menu { border:1px solid #b99b5e80;border-radius:18px;background:linear-gradient(145deg,#203c2d,#0e241c);color:#eee7d3;box-shadow:0 30px 90px #0009;width:min(470px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:27px;overflow:auto; }
dialog::backdrop { background:#07120cb5;backdrop-filter:blur(6px); }
.setup-dialog>.close { position:absolute;right:12px;top:12px; }
.setup-eyebrow { font-size:8px;letter-spacing:.2em;color:#d5b97c; }
.setup-dialog h2 { margin:8px 0 9px;font:500 38px/1.1 Georgia,serif;color:#f4d99c; }
.setup-dialog p { color:#bdcab8;font-size:12px;line-height:1.6; }
.setup-fields { display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0 18px; }
.setup-fields label,.setup-clock { display:flex;flex-direction:column;gap:8px;font-size:11px;color:#e4ddc5; }
.money-input { display:flex;align-items:center;border:1px solid #7e936b;border-radius:7px;background:#0c2019;padding:0 12px;gap:8px;font-size:22px;color:#f6dfaa; }
.money-input b { font-weight:400; }
.money-input input { min-width:0;width:100%;padding:12px 0;background:none;border:0;color:#fff2d0;font-size:23px;outline-offset:0; }
.setup-clock { flex-direction:row;align-items:center;justify-content:space-between; }
.setup-clock select { background:#0c2118;border:1px solid #788b65;color:#eee3c4;padding:9px 12px;border-radius:6px; }
.setup-dialog .setup-note { font-size:10px;margin:18px 0 10px; }
#setupError { color:#ffb6a3;font-size:11px;min-height:0;margin:7px 0; }
#setupError:empty { display:none; }
#startTableButton { width:100%;padding:14px;background:linear-gradient(#eedba4,#c5a56b);border:1px solid #f4dda2;border-radius:7px;color:#193523;font-size:14px;font-weight:750;margin-top:8px; }
#setupWaiting { padding:16px;border:1px solid #899b5f50;border-radius:8px; }
.table-menu { width:min(600px,calc(100vw - 24px));padding:18px; }
.table-menu .dialog-head { padding:0 0 12px; }
.table-menu .dialog-head p { font-size:11px;color:#bdcbb5; }
.menu-actions { display:flex;gap:8px;margin:8px 0 18px; }
.menu-actions button { background:#243e2e;border:1px solid #7b90675a;color:#e3dfc5;padding:8px 12px;border-radius:6px; }
.press-explainer,.fairness-note { font-size:11px;line-height:1.6;color:#b9ccb7; }
.table-menu .bottom { grid-template-columns:1fr; }
.table-menu .table-tip { display:none; }
@media(max-height:520px) {
 .game-brand { left:14px;top:10px;gap:10px; }
 .game-logo { font-size:30px; }
 .table-menu-button { right:12px;top:10px;width:32px;height:32px;font-size:16px; }
 .lounge-top { top:6px; }
 .table-bank>strong { font-size:25px; }
 .table-bank>small { font-size:8px; }
 .table-bank>span { font-size:6px; }
 .lounge-table { width:84%;height:60%;top:51%;border-width:9px;padding:9px; }
 .lounge-table>img { inset:9px;width:calc(100% - 18px);height:calc(100% - 18px); }
 .lounge-table::after { inset:8px; }
 .lounge-chips { inset:9px; }
 .lounge-table-entry { inset:9px; }
 .portrait-wrap { width:37px;height:37px;padding:2px; }
 .portrait { font-size:15px; }
 .lounge-seat { width:125px;gap:6px; }
 .seat-pos-2,.seat-pos-6 { width:64px; }
 .seat-pos-0 { top:85%; }
 .seat-pos-1,.seat-pos-7 { top:84%; }
 .seat-pos-3,.seat-pos-5 { top:18%; }
 .seat-pos-4 { top:21%; }
 .player-name { font-size:9px; }
 .player-money { font-size:11px;margin-top:0; }
 .player-status,.seat-stats { font-size:6px;margin-top:1px; }
 .is-empty { width:auto; }
 .is-empty .player-name { font-size:6px; }
 .bet-clock { inset:2px; }
 .shooter-badge { font-size:5px;padding:2px 4px;bottom:-5px; }
 .ready-tick { width:14px;height:14px;font-size:8px; }
 .table-token,.table-token.is-own { width:19px;height:19px;font-size:6px; }
 .table-token.is-own::after { top:calc(100% + 2px);font-size:5px; }
 .lounge-puck { width:22px;height:22px;font-size:7px; }
 #loungeReadyButton { left:14px;bottom:13px;min-height:33px;min-width:105px;padding:7px 10px;font-size:10px; }
 #collectReadyButton { left:130px;bottom:13px;min-height:33px;font-size:9px;padding:7px 9px; }
 #tableRollButton { bottom:7px;right:14px;min-width:105px;min-height:76px;gap:9px;font-size:9px; }
 .dice-grab-pair { gap:18px; }
 .dice-grab-pair .die { --die-size:27px;--die-depth:13.5px; }
 .lounge-round-status { top:calc(100dvh - 30px);gap:1px; }
 .round-eyebrow { font-size:6px; }
 .round-countdown { font-size:9px!important; }
 #loungeHint { font-size:8px;top:68%;max-width:56%; }
 .activity-panel.is-connected { top:22px;right:54px; }
 .roll-reveal { padding:8px; }
 .roll-reveal .reveal-total { font-size:42px; }
 .roll-reveal .reveal-title { font-size:19px; }
 .roll-reveal .reveal-kicker,.roll-reveal .reveal-detail { font-size:7px; }
 .seat-result { font-size:9px;padding:2px 5px;top:-18px; }
 .betting-nav { flex-basis:39px;padding:3px 45px 3px 10px; }
 .betting-nav button { font-size:9px;min-height:27px;padding:5px 8px; }
 .betting-wallet>b { font-size:15px; }
 #betOnTable,#bettingTimer { font-size:9px; }
 #bettingScreen .controls { flex-basis:78px;padding:6px 10px;gap:12px; }
 #bettingScreen .table-card { border-width:3px;padding:3px 5px 5px; }
 #bettingScreen .chip { width:38px;height:38px; }
 #bettingScreen .chip-face { width:32px;font-size:10px; }
 #bettingScreen .mode-switch button { padding:4px 8px;min-height:26px;font-size:9px; }
 #bettingScreen .chip-caption { font-size:6px; }
 #bettingScreen .table-head { flex-basis:10px;margin-bottom:2px; }
 #bettingScreen .table-head span,.phase { font-size:7px; }
 #bettingScreen .zs,#bettingScreen .prop small { display:none; }
 #bettingScreen .come-odds { min-height:19px;padding:4px;bottom:2px; }
 #bettingScreen .dontcome-odds { min-height:20px; }
 #bettingScreen .number { padding-top:12%; }
 #bettingScreen .number .zt { font-size:clamp(18px,10cqh,35px); }
 #bettingScreen .number .word-number { font-size:clamp(11px,6cqh,20px); }
 #bettingScreen .table-chip-stack { --chip:20px; }
 #bettingScreen .prop>.table-chip-stack { --chip:17px; }
 #bettingScreen .table-chip-value { font-size:6px; }
 #bettingScreen .point-disc { width:20px;font-size:6px; }
 #bettingScreen .betting-off { width:22px;height:22px;font-size:6px;right:5px;bottom:3px; }
 #bettingScreen .your-bet-marker { font-size:6px;padding:2px; }
 #yourBetsPanel { top:39px; }
 #moveOddsOffer { top:42px;padding:5px 8px; }
 #moveOddsOffer span { font-size:10px; }
 .setup-dialog { padding:19px 25px; }
 .setup-dialog h2 { font-size:29px;margin:5px 0; }
 .setup-dialog p { margin:6px 0;font-size:10px; }
 .setup-fields { margin:13px 0; }
 .money-input input { padding:8px 0;font-size:20px; }
 .setup-dialog .setup-note { margin:10px 0 6px;font-size:9px; }
 #startTableButton { padding:11px; }
}
@media(max-width:720px) {
 .game-brand { left:12px; }
 .game-logo { font-size:27px; }
 .lounge-seat { width:112px; }
 .seat-pos-2,.seat-pos-6 { width:65px; }
 .seat-pos-3,.seat-pos-1 { left:24%; }
 .seat-pos-5,.seat-pos-7 { left:76%; }
 .is-empty { width:auto; }
 .table-bank>small { font-size:8px; }
 .activity-panel.is-connected { display:none; }
 #bettingScreen .controls { gap:8px; }
 #bettingScreen .dock-layout { gap:7px; }
 #bettingScreen .chips { gap:1px; }
 #bettingScreen .chip { width:35px;height:35px;padding:1px; }
 #bettingScreen .chip-face { width:30px;font-size:9px; }
 #bettingScreen #modeHint { display:none; }
 #bettingScreen .mode-switch { flex-direction:column; }
 #bettingScreen .mode-switch button { min-height:23px;padding:3px 8px;font-size:8px; }
 #bettingScreen .payout-bar { margin-left:auto; }
 #collectAllButton { font-size:9px;padding:8px; }
 #betOnTable { display:none; }
 .betting-wallet { gap:5px; }
 #bettingScreen .printed-die { width:clamp(10px,4cqh,20px); }
}
@media(max-width:480px) and (orientation:portrait) {
 .game-brand { top:13px; }
 .game-logo { font-size:24px; }
 .lounge-top { left:63%; }
 .lounge-table { width:83%;height:54%; }
 .lounge-seat { width:85px;flex-direction:column;text-align:center;gap:4px; }
 .portrait-wrap { width:39px;height:39px; }
 .seat-pos-0,.seat-pos-1,.seat-pos-7 { top:83%; }
 .seat-pos-3,.seat-pos-4,.seat-pos-5 { top:19%; }
 .seat-pos-2 { left:7%; }
 .seat-pos-6 { left:93%; }
 .player-name { font-size:9px;max-width:77px; }
 .player-money { font-size:11px; }
 .player-status { font-size:7px; }
 .seat-stats { font-size:6px; }
 .lounge-round-status { top:calc(100dvh - 110px);width:200px; }
 #loungeHint { font-size:8px;max-width:60%; }
 #loungeReadyButton { bottom:14px;left:10px;min-width:100px;padding:9px;font-size:11px; }
 #collectReadyButton { bottom:65px;left:10px;font-size:9px;min-height:30px; }
 #tableRollButton { right:8px;bottom:9px;min-width:100px; }
 .dice-grab-pair .die { --die-size:28px;--die-depth:14px; }
 .betting-nav { padding-left:7px;gap:4px;flex-basis:46px; }
 .betting-nav button { font-size:8px;padding:6px; }
 .betting-wallet>b { font-size:13px; }
 #yourBetsButton { display:none; }
 #bettingTimer { font-size:9px; }
 #bettingScreen .board { grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:17% 18% 17% 9% 13% 7% 19%; }
 #bettingScreen .numbers { grid-column:1/7;grid-row:1; }
 #bettingScreen .come-cell { grid-column:1/5;grid-row:2; }
 #bettingScreen .come-cell:nth-child(2) { grid-column:5/7;grid-row:2; }
 #bettingScreen .field { grid-column:1/7;grid-row:3; }
 #bettingScreen .dont-odds { grid-column:1;grid-row:4; }
 #bettingScreen .dont { grid-column:2/7;grid-row:4; }
 #bettingScreen .rail { display:none; }
 #bettingScreen .pass { grid-column:1/7;grid-row:5; }
 #bettingScreen .pass-odds { grid-column:1/7;grid-row:6; }
 #bettingScreen .props { grid-column:1/7;grid-row:7;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:1fr 1fr;margin:3px 0 0; }
 #bettingScreen .props small { display:none; }
 #bettingScreen .prop strong { font-size:10px; }
 #bettingScreen .printed-die { width:12px; }
 #bettingScreen .controls { flex-wrap:wrap;flex-basis:110px;padding:7px;gap:5px 10px; }
 #bettingScreen .dock-layout { flex:1; }
 #bettingScreen .payout-bar { position:absolute;right:8px;bottom:5px; }
 #bettingScreen .chip-caption { font-size:6px; }
 #bettingScreen .number .zt { font-size:32px; }
 #bettingScreen .number .word-number { font-size:20px; }
 #bettingScreen .come .zt { font-size:35px; }
 #bettingScreen .dontcome .zt { font-size:17px; }
}
@media(prefers-reduced-motion:reduce) { #tableRollButton.can-roll .dice-grab-pair { animation:none; } }

/* These labels grow with the payout; let the row size itself instead of
   positioning the collect button over the ready button. */
.ready-actions { position:absolute;right:22px;left:auto;bottom:23px;display:flex;align-items:center;gap:10px;pointer-events:auto; }
#loungeReadyButton,#collectReadyButton { position:static; }
@media(max-height:520px) { .ready-actions { right:14px;left:auto;bottom:13px;gap:8px; } }
@media(max-width:480px) and (orientation:portrait) { .ready-actions { right:10px;left:auto;bottom:14px;flex-direction:column;align-items:stretch;gap:7px; } #collectReadyButton { order:-1; } }

/* Uncollected payouts stay on the felt; thrown dice sit above every chip. */
#loungeDice { z-index:10; }
.has-landed-dice .lounge-dice { opacity:1; }
.table-token.table-award { --award-gap:38px;animation:award-arrive .28s ease-out both;z-index:4;transform:translate(-50%,calc(-50% + var(--award-offset)));width:34px;height:34px;font-size:9px;outline:1px solid #b7ffd1;outline-offset:1px;color:#f0fff3;background:repeating-conic-gradient(#bbffce 0 12deg,#2eae61 12deg 45deg);box-shadow:inset 0 0 0 5px #196c39,0 3px 0 #063e24,0 0 12px #52e49488;text-shadow:0 1px 2px #062b17; }
.table-token.table-award::after { content:none; }
.table-award .award-caption { position:absolute;top:calc(100% + 3px);left:50%;transform:translateX(-50%);border-radius:3px;padding:1px 3px;background:#104a2e;color:#c9ffda;font:800 6px/1.3 system-ui;letter-spacing:.08em; }
.table-token.table-award.award-stake { background:repeating-conic-gradient(#e9f2e7 0 12deg,#748d7b 12deg 45deg);box-shadow:inset 0 0 0 5px #435e4d,0 3px 0 #233e2f;outline-color:#c8d7c7; }
#tableRollButton.is-delivering { pointer-events:none; }
#tableRollButton.is-delivering .dice-grab-pair { animation:none; }
.dice-return-stick { position:absolute;right:calc(100% - 18px);top:-16px;width:clamp(150px,25vw,310px);height:48px;border-bottom:6px solid #c39250;border-right:6px solid #d7ad6e;border-radius:0 0 13px 0;filter:drop-shadow(0 5px 3px #0009);transform:rotate(9deg);transform-origin:100% 100%; }
@media (max-height:520px),(max-width:720px) {
 .table-token.table-award { --award-gap:26px;width:23px;height:23px;font-size:7px;box-shadow:inset 0 0 0 3px #196c39,0 2px 0 #063e24,0 0 8px #52e49466; }
 .table-award .award-caption { font-size:5px; }
 .dice-return-stick { height:38px;border-width:4px; }
}
@media (prefers-reduced-motion:reduce) { .dice-return-stick { display:none; } }

@keyframes award-arrive { from { opacity:0;transform:translate(-50%,calc(-50% + var(--award-offset))) scale(.7); } to { opacity:1;transform:translate(-50%,calc(-50% + var(--award-offset))) scale(1); } }

/* Keep the shooter corner clear until dice are delivered. */
#tableRollButton.awaiting-ready { bottom:76px;min-height:0;padding:0 8px;pointer-events:none; }
.ready-actions { max-width:calc(50% - 24px);flex-wrap:wrap;justify-content:flex-end; }
.rebet-options { display:flex;gap:6px;overflow-x:auto;padding:6px 12px;flex-shrink:0; }
.rebet-options button { flex-shrink:0;border:1px solid #c9ad71;border-radius:6px;background:#173d2e;color:#f9e6b9;padding:7px 10px;font:600 11px system-ui; }
.rebet-options button:hover:not(:disabled) { background:#2b5741; }
.rebet-options button:disabled { opacity:.45; }
#bettingScreen .dontcome-cell { position:relative; }
#bettingScreen .dontcome-cell .betting-off { right:7px;top:6px;bottom:auto;width:clamp(22px,3.6vw,36px);height:auto;aspect-ratio:1;font-size:clamp(6px,1vw,10px); }
@media(max-height:520px) { #tableRollButton.awaiting-ready { bottom:62px; } .rebet-options { padding:4px 8px; } .rebet-options button { font-size:9px;padding:5px 7px; } }

/* A seven-out has one shared two-second timeline; a natural seven does not. */
.seven-out-shade { position:absolute;inset:0;z-index:11;pointer-events:none;background:radial-gradient(ellipse at 50% 48%,#16040455,#050504d9); }
.roll-reveal.is-seven-out { z-index:14;top:48%;width:min(560px,70%);background:transparent;border:0;box-shadow:none;animation:seven-out-arrival 2s both; }
.roll-reveal.is-seven-out .reveal-total { color:#f0443d;font:900 clamp(56px,9vw,126px)/1 Georgia,serif;letter-spacing:-.06em;text-shadow:0 3px 0 #580e0d,0 0 40px #ed252566; }
.roll-reveal.is-seven-out .reveal-title { color:#f2c9b8;font-size:clamp(16px,2.5vw,28px); }
.roll-reveal.is-seven-out .reveal-detail { color:#e6d5bf; }
.lost-chip-layer { z-index:7;pointer-events:none; }
.lost-token { animation:lost-wager 2s both;filter:saturate(.5); }
@keyframes seven-out-arrival { 0%{opacity:0;filter:blur(3px);scale:1.12} 15%,80%{opacity:1;filter:blur(0);scale:1} 100%{opacity:0;scale:1} }
@keyframes lost-wager { 0%,15%{opacity:.9} 80%,100%{opacity:0;translate:0 28px;scale:.25} }
.roll-reveal.reduced-effect,.lost-token.reduced-effect { animation:none!important; }
.lost-token.reduced-effect { opacity:.4;text-decoration:line-through; }
[data-reduced-motion=true] .can-roll .dice-grab-pair { animation:none!important; }
@media(prefers-reduced-motion:reduce){.roll-reveal.is-seven-out,.lost-token{animation:none!important}.lost-token{opacity:.4}}
.lounge-scene.is-seven-out .payout-flights { z-index:13; }
#loungeScreen:has(.is-seven-out) #loungeHint { visibility:hidden; }

/* Flat and odds chips occupy their own betting rows; each stack owns its tooltip. */
#bettingScreen .table-chip-group { pointer-events:auto; }
#bettingScreen .pass>.table-chip-stack,
#bettingScreen .pass-odds>.table-chip-stack { left:72%;bottom:50%;transform:translate(-50%,50%);z-index:6; }
#bettingScreen .pass-odds>.table-chip-stack { left:78%; }

/* Give pending Don’t Come chips their own area above the odds control. */
#bettingScreen .dontcome-cell { display:grid;grid-template-rows:minmax(0,1fr) auto; }
#bettingScreen .dontcome-odds { position:relative;inset:auto;max-width:none;margin:0 2px 3px; }
#bettingScreen .dontcome { min-height:0; }
#bettingScreen .dontcome>.zt { width:62%;align-self:flex-start; }
#bettingScreen .dontcome>.table-chip-stack { left:81%;bottom:50%;transform:translate(-50%,50%); }
#bettingScreen .dontcome>.other-player-chips { left:4px;right:4px;bottom:4px;max-width:none;gap:2px; }
#bettingScreen .dontcome .other-player-chip { flex-basis:calc((100% - 12px)/7);max-width:20px;width:auto;height:auto;aspect-ratio:1;font-size:clamp(5px,.6vw,7px); }
#bettingScreen .dontcome>.award-layer { right:4px;top:50%; }

/* Show the server’s crown score separately from spendable bankroll. */
.player-net { display:inline-flex;align-items:baseline;gap:4px;max-width:100%;margin-top:2px;padding:2px 5px;border:1px solid #b6c4ac35;border-radius:4px;background:#061b16d9;color:#c4d1c1;white-space:nowrap;line-height:1.15;font-variant-numeric:tabular-nums; }
.player-net small { font-size:7px;font-weight:700;letter-spacing:.05em; }
.player-net b { font-size:11px; }
.player-net.is-positive { color:#a4eab8;border-color:#75ce9540; }
.player-net.is-negative { color:#ffb3a8;border-color:#e5908040; }
@media(max-height:520px),(max-width:600px) { .player-net { padding:1px 3px;gap:3px; }.player-net small { font-size:6px; }.player-net b { font-size:8px; } }
@media(max-height:520px) and (min-width:601px) { .seat-pos-4:has(.player-net) { top:25%; } }

/* Stable seat slots keep wagers readable when everyone bets the same number. */
.lounge-chips { container-type:size; }
.table-token,.table-token.is-own { width:clamp(11px,1.8cqw,24px);height:auto;aspect-ratio:1;font-size:clamp(5px,.65cqw,9px); }
.table-token.is-center-token,.table-token.is-center-token.is-own { width:clamp(9px,1.25cqw,18px);font-size:clamp(4px,.5cqw,7px); }
.table-token.table-award { --award-gap:clamp(19px,3cqw,38px);width:clamp(13px,2cqw,28px);height:auto;font-size:clamp(5px,.7cqw,9px);outline-color:var(--player-color); }
.table-token.table-award.is-center-token { width:clamp(9px,1.25cqw,18px);font-size:clamp(4px,.5cqw,7px); }
#bettingScreen .other-player-chips { left:auto;right:4px;bottom:4px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;width:43%;max-width:85px;pointer-events:auto; }
#bettingScreen .other-player-chip { width:100%;height:auto;aspect-ratio:1;min-width:0;font-size:clamp(4px,.65vw,7px);cursor:help; }
#bettingScreen .dontcome>.other-player-chips { left:4px;right:4px;width:auto;max-width:none;grid-template-columns:repeat(7,minmax(0,1fr)); }
#bettingScreen .dontcome .other-player-chip { width:100%;max-width:20px; }
#bettingScreen .owned-award { border:2px solid var(--your-chip-color);border-radius:7px;width:auto;min-width:38px;min-height:34px;padding:3px;gap:1px;box-shadow:0 0 0 1px #132d22,0 0 10px #a8e97675; }
#bettingScreen .owned-award b { font-size:10px; }
#bettingScreen .owned-award small { font-size:6px;line-height:1.1;margin:0; }
#bettingScreen .owned-award small:last-child { max-width:60px;white-space:normal; }
@media(max-height:520px) { #bettingScreen .owned-award { min-width:25px;min-height:24px;padding:2px; }#bettingScreen .owned-award b { font-size:7px; }#bettingScreen .owned-award small { font-size:5px; } }

.table-token.is-own::after { top:auto;bottom:calc(100% + 1px);padding:0 2px;font-size:clamp(4px,.4cqw,6px); }
.table-token.table-award .award-caption { display:none; }
.table-token.table-award.has-working-stake { --award-gap:clamp(10px,1.4cqw,18px);width:clamp(11px,1.8cqw,24px);height:clamp(7px,1.05cqw,14px);aspect-ratio:auto;border-radius:5px;font-size:clamp(4px,.55cqw,7px);box-shadow:inset 0 0 0 2px #196c39,0 2px 3px #063e2488; }
.table-token.table-award.is-center-token.has-working-stake { --award-gap:clamp(7px,1cqw,13px);width:clamp(9px,1.25cqw,18px);height:clamp(6px,.75cqw,10px);font-size:clamp(3px,.4cqw,5px); }

/* Players get a separate line column; odds cannot land on the next seat's flat wager. */
.line-odds-token:not(.table-award)::before{content:'ODDS';position:absolute;top:calc(100% + 2px);font:700 clamp(4px,.45cqw,6px)/1 system-ui;color:#ecdfad}
#bettingScreen .hop-cashout{display:block;cursor:pointer;padding:3px;border:1px solid #c6c7a866;border-radius:4px;background:#16362c;color:#ecdfb9;font:600 7px/1.2 system-ui;white-space:nowrap;pointer-events:auto}
.buddy-dialog{width:min(450px,calc(100vw - 24px));max-height:calc(100dvh - 20px);box-sizing:border-box;overflow:auto;border:1px solid #a38857;border-radius:18px;padding:26px;background:radial-gradient(ellipse at top left,#314b3d,#10241c);color:#f2e9d0;box-shadow:0 20px 80px #000a}
.buddy-dialog::backdrop{background:#03110bc9;backdrop-filter:blur(4px)}
.buddy-close{position:absolute;right:12px;top:9px;border:0;background:transparent;color:#dfd7be;font-size:25px;cursor:pointer}.buddy-eyebrow{color:#dfc389;font-size:9px;letter-spacing:.18em}.buddy-dialog h2{font:32px Georgia;margin:10px 0}.buddy-balance{font-size:12px;color:#bcd0be}
.buddy-tabs{display:flex;gap:6px;margin:18px 0}.buddy-tabs button{flex:1;padding:10px;border:1px solid #7d917955;border-radius:7px;background:#173226;color:#c1cfb8;font-weight:700;cursor:pointer}.buddy-tabs button[aria-pressed=true]{background:#e4d4a2;color:#193527}
.buddy-form{display:grid;gap:12px}.buddy-form label{display:grid;gap:6px;color:#d1dabc;font-size:12px}.buddy-form select,.buddy-form input{min-width:0;width:100%;box-sizing:border-box;padding:10px;border:1px solid #91aa8466;border-radius:7px;color:#f5ebcf;background:#102a20;font:600 14px system-ui;color-scheme:dark}.buddy-preview{font-size:12px;line-height:1.5;margin:0;color:#c5d3bd}.buddy-error{color:#ffbdad;font-size:11px;min-height:13px;margin:0}.buddy-submit{padding:12px;background:linear-gradient(#ecd69f,#bc9c62);color:#17291c;border:1px solid #e5c88d;border-radius:7px;font-weight:800;cursor:pointer}.buddy-submit:disabled{opacity:.5;cursor:default}.buddy-dialog :focus-visible{outline:2px solid #ffe5a9;outline-offset:2px}
.win-burst{position:absolute;z-index:8;pointer-events:none}.win-burst i{position:absolute;width:4px;height:4px;border-radius:50%;background:var(--player-color);box-shadow:0 0 5px #fceab7;animation:small-win-firework 900ms ease-out both}.win-burst i:nth-child(even){background:#fff1b8}.win-burst.reduced-effect{color:#ffe6a3;font-size:20px;text-shadow:0 0 8px #eecb8a;transform:translate(-50%,-50%)}
@keyframes small-win-firework{0%{opacity:0;transform:translate(0,0) scale(.2)}15%{opacity:1}100%{opacity:0;transform:translate(var(--spark-x),var(--spark-y)) scale(.25)}}
@media(prefers-reduced-motion:reduce){.win-burst i{animation:none;display:none}}
@media(max-height:480px){.buddy-dialog{padding:16px 22px}.buddy-dialog h2{font-size:23px;margin:5px 0}.buddy-tabs{margin:9px 0}.buddy-form{gap:7px}.buddy-form select,.buddy-form input{padding:7px}.buddy-submit{padding:9px}}

@media(max-height:480px) and (min-width:500px){.buddy-form{grid-template-columns:minmax(0,1fr) 110px}.buddy-preview,.buddy-error,.buddy-submit{grid-column:1/-1}.buddy-error:empty{display:none}.buddy-balance{margin:6px 0}.buddy-dialog{padding:13px 22px}.buddy-tabs button{padding:8px}}


.c1000 { background:repeating-conic-gradient(#f9dd89 0deg 11deg,#67337f 11deg 45deg);color:#fff0bc;font-size:.67em; }
.c500 { background:repeating-conic-gradient(#d5f5ff 0deg 11deg,#236292 11deg 45deg);color:#e8faff; }
.c1000::before { background:#532562; }
.c500::before { background:#194975; }
#loungeRebetControls { position:absolute;left:18px;bottom:14px;max-width:min(38vw,420px);pointer-events:auto; }
#loungeRebetAll { min-width:0;min-height:34px;padding:6px 12px; }
#loungeRebetControls .rebet-options { display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;padding:4px 0; }
#loungeRebetControls .rebet-options button { flex:none;white-space:nowrap;min-width:0;min-height:30px;padding:5px 8px; }
#rollHistoryButton { pointer-events:auto;min-width:0;min-height:30px;padding:5px 10px;border:1px solid #81947274;border-radius:7px;background:#172f25ed;color:#eee5c9;font-size:11px;font-weight:650; }
#rollHistoryButton:hover { background:#2a4b38; }
.buddy-history { margin-top:12px;background:none;border:1px solid #96a38b77;border-radius:5px;color:#e3e9d3;padding:5px 10px;cursor:pointer; }
.ats-history-row { display:flex;align-items:center;gap:5px;margin:5px 0; }
.ats-history-row strong { width:86px;font-size:12px; }
.ats-history-row span,.roll-history-total { min-width:23px;padding:3px;text-align:center;background:#1c2926;border:1px solid #96a38b68;border-radius:5px; }
.ats-history-row .is-marked { background:#daaf52;color:#1f281f; }
.roll-history-list { list-style:none;padding:0; }
.roll-history-list li { display:grid;grid-template-columns:35px 42px 1fr;gap:6px;align-items:center;border-top:1px solid #ffffff24;padding:5px 0; }
.roll-history-list li small { grid-column:2/-1;color:#efce8e; }
@media(max-height:520px){#loungeRebetControls{left:10px;bottom:8px}}
