/* Both states have the same square footprint. The command strip is outside
   layout, so opening the dial never displaces the center of the wheel. */
.ram-panel.rr-panel {
  --rr-size:clamp(154px,13.7vw,206px);
  position:absolute; display:block; width:var(--rr-size); height:var(--rr-size);
  left:50%; bottom:0; transform:translateX(-50%); margin:0; padding:0;
  box-sizing:border-box; border:0; background:none; overflow:visible;
  font:700 14px/1.12 system-ui,sans-serif; text-align:center; color:white;
  -webkit-tap-highlight-color:transparent;
}
@media (min-width:601px) and (min-height:541px) {
  .ram-panel.rr-panel {left:50%; bottom:-12px; --rr-size:clamp(132px,18vh,175px);}
}
/* Reserve the larger desktop wheel's extra height for every phase: no jump on turn change. */
@media (min-width:900px) and (min-height:541px) and (hover:hover) and (pointer:fine) {
  .game {--pc-wheel:clamp(178px,24.5vh,240px);--editor-room:calc(86px + var(--pc-wheel) - clamp(132px,18vh,175px));}
  .game .ram-panel.rr-panel {--rr-size:var(--pc-wheel);}
  .game .rr-panel .rr-foot button {font-size:14px;min-height:32px;min-width:48px;}
}
@media (orientation:landscape) and (max-height:540px) {
  .ram-panel.rr-panel {--rr-size:clamp(122px,33dvh,157px);left:calc(50% + min(23vw,245px));}
}
@media (max-width:600px) and (orientation:portrait) {
  .game .controls.turn-rack.ram-rack:has(.rr-panel) {height:calc(clamp(138px,39vw,168px) + 42px);margin-top:3px;}
  .ram-panel.rr-panel {--rr-size:clamp(138px,39vw,168px);left:50%;bottom:42px;}
}
.rr-panel .rr-dial:focus {outline:none;}
.rr-panel .rr-dial:focus-visible {outline:1px solid #c6ab70;outline-offset:3px;border-radius:50%;}
.rr-panel button {box-sizing:border-box;appearance:none;box-shadow:none;font:inherit;touch-action:manipulation;}
.rr-wheel,.rr-face {position:relative;display:block;width:100%;height:100%;border-radius:50%;isolation:isolate;}
.rr-wheel {background:radial-gradient(ellipse at 48% 42%,rgb(0 0 0 / .92) 0%,rgb(0 0 0 / .84) 62%,rgb(0 0 0 / .68) 100%);box-shadow:0 1px 8px #100c0645;}
.rr-panel .rr-sector {position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;padding:0;border:0;border-radius:50%;background:none;color:#fffdf5;overflow:hidden;}
.rr-s0 {clip-path:polygon(50% 50%,0 78.868%,0 0,50% 0);}
.rr-s1 {clip-path:polygon(50% 50%,50% 0,100% 0,100% 78.868%);}
.rr-s2 {clip-path:polygon(50% 50%,100% 78.868%,100% 100%,0 100%,0 78.868%);}
.rr-sector svg,.rr-dividers,.rr-dial {display:block;width:100%;height:100%;}
.rr-sector svg,.rr-dividers {pointer-events:none;}
.rr-rim {fill:none;stroke:#fbc346;stroke-width:2.6;opacity:0;}
.rr-dividers {position:absolute;inset:0;overflow:visible;fill:none;stroke:rgb(190 177 141 / .17);stroke-width:1.4;mask-image:radial-gradient(circle,black 0%,black 36%,transparent 72%);}
.rr-panel .rr-sector:is(:hover,:active,:focus-visible):not(:disabled) {background:rgb(197 174 91 / .14);color:#63ec27;outline:none;}
.rr-sector:is(:hover,:active,:focus-visible):not(:disabled) .rr-rim {opacity:1;}
.rr-panel .rr-sector:disabled {opacity:.38;}
.rr-caption {display:none;position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);color:#ffc44b;text-shadow:0 1px 3px #000,0 0 7px #000;white-space:nowrap;pointer-events:none;font:900 clamp(14px,1.25vw,19px)/1 'Arial Narrow',system-ui,sans-serif;letter-spacing:.045em;}
.rr-sector:is(:hover,:focus-visible):not(:disabled) + .rr-caption {display:block;}
.rr-wheel:has(.rr-sector:hover:not(:disabled)) .rr-sector:not(:hover) + .rr-caption {display:none;}
.rr-face {container-type:inline-size;}
.rr-dial {position:absolute;inset:0;overflow:visible;touch-action:none;user-select:none;cursor:grab;}
.rr-dial:active {cursor:grabbing;}
.rr-dial:focus-visible {outline:2px solid #fff6cd;outline-offset:3px;border-radius:50%;}
.rr-dial[aria-disabled=true] {cursor:default;}
.rr-limit {font:900 16px/1 'Arial Narrow',Impact,system-ui,sans-serif;fill:#21b628;text-anchor:middle;}
.rr-value {position:absolute;left:50%;top:37%;transform:translate(-50%,-50%);display:grid;place-items:center;width:74%;height:29%;margin:0;cursor:text;color:#ffdb70;}
.rr-value span,.rr-panel .rr-value input {font:850 min(clamp(34px,27cqw,49px),calc(112cqw / var(--amount-chars,3)))/1 system-ui,sans-serif;letter-spacing:-.055em;font-variant-numeric:tabular-nums;}
.rr-value span {display:block;width:100%;white-space:nowrap;overflow:hidden;text-align:center;text-shadow:0 1px 2px #000;}
.rr-panel .rr-value input {position:absolute;inset:0;box-sizing:border-box;min-height:0;width:100%;height:100%;padding:0;border:0;border-radius:2px;background:transparent;text-align:center;color:#ffdb70;opacity:0;}
.rr-value:focus-within span {visibility:hidden;}
.rr-panel .rr-value input:focus {opacity:1;outline:1px solid #ffc964;outline-offset:2px;}
.rr-ranges {position:absolute;inset:66% 18% 8%;display:flex;align-items:center;justify-content:space-around;pointer-events:none;}
.rr-panel .rr-range {display:grid;place-items:center;width:45%;height:100%;padding:0;background:none;color:#f5f4ed;border:0;pointer-events:auto;}
.rr-range svg {display:block;box-sizing:border-box;width:clamp(24px,15cqw,36px);height:clamp(18px,11cqw,27px);padding:1px 3px;border:2px solid currentColor;border-radius:6px 6px 4px 4px;background:#121412;pointer-events:none;}
.rr-panel .rr-range:disabled {opacity:.48;}
.rr-range:not(:disabled):is(:hover,:focus-visible) svg {color:#ffbd40;}
.rr-foot {position:absolute;top:calc(100% + 2px);left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;white-space:nowrap;gap:3px;}
.rr-panel .rr-foot button {min-width:42px;min-height:29px;padding:4px 8px;color:#efeee5;background:rgb(9 10 8 / .88);border:1px solid #6e6c60;border-radius:4px;font:700 12px/1.1 system-ui,sans-serif;}
.rr-panel .rr-foot button[type=submit] {color:#ffc44d;}
.rr-panel .rr-foot button:is(:hover,:focus-visible):not(:disabled) {color:white;border-color:#ffc44d;}
.rr-foot kbd {display:inline-block;margin-right:4px;padding:1px 3px;border:1px solid #77766b;border-radius:3px;color:#e4e2d4;font:600 9px/1.1 system-ui,sans-serif;vertical-align:1px;}
@media (pointer:coarse) {.rr-panel .rr-foot button {min-height:38px;min-width:44px;} .rr-foot kbd {display:none;}}
@media (forced-colors:active) {
  .rr-wheel,.rr-face {background:Canvas;border:1px solid ButtonText;}
  .rr-sector svg,.rr-dial {forced-color-adjust:none;}
  .rr-sector:focus-visible .rr-rim {stroke:Highlight;}
}
/* Let the full numeric string remain visible, but only its central hit area
   accepts text editing. The surrounding draggable arc belongs to the dial. */
.rr-panel .rr-value { pointer-events:none; }
.rr-panel .rr-value input { pointer-events:auto;clip-path:circle(calc(.345 * var(--rr-size)) at 50% calc(50% + .13 * var(--rr-size))); }
.game .table .raise-location{z-index:7;pointer-events:none;}
.game .table .raise-location .raise-arrow{position:absolute;left:50%;bottom:calc(100% + 1px);transform:translateX(-50%);width:clamp(12px,.90em,20px);height:auto;overflow:visible;fill:none;stroke:#000;stroke-width:3.3;stroke-linejoin:miter;stroke-linecap:butt;}
.game .table[data-phase] .seat[data-seat] .seat-rank-slot .seat-combo {
  font:850 clamp(18px,1.6vw,28px)/1.14 system-ui,sans-serif;letter-spacing:-.035em;
  padding:4px 9px;color:#fff;background:#48409b;border-radius:5px;
  width:max-content;max-width:calc(100% + 16px);text-align:center;
}
@media(max-width:600px),(max-height:540px){
 .game .table[data-phase] .seat[data-seat] .seat-rank-slot .seat-combo {font-size:clamp(14px,3.9vw,18px);padding:3px 6px;}
}
.game .table[data-phase] .pot:not(.settled-pot){display:grid;justify-items:center;align-content:center;gap:4px;width:max-content;max-width:75%;min-height:0;padding:9px 14px 10px;background:#132e21;border:0;border-radius:6px;box-shadow:none;white-space:nowrap;text-shadow:none;}
.game .table[data-phase] .pot .pot-title{font:800 36px/1.08 system-ui,sans-serif;color:#cde3cd;white-space:nowrap;}
.game .table[data-phase] .pot .pot-center{font:850 46px/1 system-ui,sans-serif;color:#ffe4a0;font-variant-numeric:tabular-nums;}
@media(max-width:600px),(max-height:540px){.game .table[data-phase] .pot:not(.settled-pot){padding:5px 10px 6px;gap:2px}.game .table[data-phase] .pot .pot-title{font-size:clamp(22px,6vw,30px)}.game .table[data-phase] .pot .pot-center{font-size:clamp(30px,8vw,38px)}}
.ledger-wager small,.turn-funds small{font:700 11px/1.2 system-ui,sans-serif;white-space:nowrap;}
.game .table .ledger-wager{display:grid;gap:1px;min-height:0;min-width:0;padding:4px 8px;border-radius:8px;background:#1a261ced;color:#fff0b6;border:1px solid #d8bf7d91;box-shadow:0 2px 5px #142e1d63;}.game .ledger-wager small{font-size:clamp(9px,.76vw,12px);color:#d1d8c7;}
.turn-funds,.watch-turn{color:#fff8e9;background:#17241fed;border:1px solid #87998388;border-radius:9px;box-shadow:0 2px 8px #0004;font:650 14px/1.15 system-ui,sans-serif;font-variant-numeric:tabular-nums;}
.turn-funds{position:absolute;right:calc(100% + 10px);top:50%;transform:translateY(-50%);width:max-content;min-width:105px;max-width:min(145px,26vw);box-sizing:border-box;padding:8px 10px;text-align:left;display:grid;gap:4px;pointer-events:none;}
.turn-funds strong,.watch-turn strong{color:#f0ce7f;font-size:12px;}.turn-funds span,.watch-turn span{display:flex;align-items:baseline;justify-content:space-between;gap:8px;}.turn-funds small{color:#ced8ce}.turn-funds [data-funds-add]{color:#ffdc84;}
.watch-turn{display:flex;align-items:center;justify-content:center;gap:14px;padding:7px 12px;width:max-content;max-width:100%;margin:auto;}.game .controls.watching-rack{align-content:center;justify-items:center;}.watch-turn span{font-size:12px;}.watch-turn strong{max-width:14ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.game .table .seat:has(.allin-seal){outline:2px solid #ffad48;outline-offset:2px;}.allin-seal{position:absolute;z-index:6;left:50%;top:100%;transform:translate(-50%,-3px);display:block;width:max-content;pointer-events:none;padding:3px 12px;color:#fff2cc;background:linear-gradient(140deg,#7b2114,#462015);border:1px solid #ffd28a;border-radius:4px;letter-spacing:.12em;font:italic 900 clamp(13px,1.55vw,23px)/1.05 system-ui,sans-serif;white-space:nowrap;box-shadow:0 2px 6px #291206a8;}
.rr-panel[data-maxed=true] .rr-face{box-shadow:0 0 0 3px #ffaf50,0 0 16px #f290363d;}.rr-panel[data-maxed=true] .rr-value{color:#ffd088;}.rr-panel[data-maxed=true] .rr-foot [type=submit]{background:#672b18;color:#fff2ca;border-color:#ffd294;}
@media(max-width:600px),(max-height:540px){.turn-funds{min-width:0;padding:6px;right:calc(100% + 4px);gap:3px}.turn-funds span{display:grid;gap:0}.turn-funds small{font-size:10px}.turn-funds b{font-size:13px}.watch-turn{gap:8px}.game .table[data-phase] .ledger-wager{padding:2px 5px;min-height:0;font-size:13px}.ledger-wager small{font-size:9px}.allin-seal{padding:2px 6px}}
.game .table[data-phase] .pot.chop-result .pot-center{white-space:normal;overflow-wrap:anywhere;text-align:center;line-height:1.15;}
.game .table[data-phase] .pot.chop-result:has(.chop-detail) .pot-center{font-size:clamp(15px,2vw,25px);}
