/* Game surfaces: keep card geometry and SVG symbols independent of global art styles. */
.cards-row{container-type:inline-size;display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:0;min-height:100px}
.cards-row .playing-card{flex:0 0 auto;width:min(72px,calc((100cqw - 12px)/var(--card-count,2) - 6px));height:auto;aspect-ratio:70/100;min-width:18px;margin:0!important;position:relative;border-radius:6px;overflow:hidden}
.playing-card .card-corner{position:absolute;display:flex;align-items:center;flex-direction:column;gap:2px;top:5px;left:4px;width:16px;height:auto;font:700 16px/1 Georgia,serif;z-index:2}
.playing-card .card-corner b{font:inherit;line-height:1}
.playing-card .card-corner .suit{display:block;position:static;width:10px!important;height:10px!important;min-width:10px;max-width:10px;margin:0;fill:currentColor;flex:none;transform:none}
.playing-card .card-corner.bottom{top:auto;left:auto;bottom:5px;right:4px;transform:rotate(180deg)}
.playing-card .card-center{position:absolute;inset:30% 24%;height:auto;display:grid;place-items:center;overflow:hidden}
.playing-card .card-center .suit{position:static;display:block;width:100%!important;height:auto!important;max-height:35px;fill:currentColor}
.playing-card .card-center .charles-portrait{display:block;width:100%;height:100%;border-radius:3px}
.hands-row{gap:16px;width:100%;align-items:start}.bj-hand{min-width:0;flex:1}.dealer-area{width:100%}.blackjack-table{width:100%;overflow:visible}.table-lettering{margin:12px 0}
.coin-face{display:grid;place-items:center;overflow:hidden;box-sizing:border-box}
.coin-face .charles-portrait{display:block;width:70%!important;height:70%!important;margin:0!important;border-radius:50%;aspect-ratio:1;object-fit:cover}
.coin-face>span{display:none}.flip-coin{flex:none}
.mine-tile.bomb .charles-portrait{width:100%;height:100%;border-radius:9px;filter:contrast(1.05)}
.mine-tile.safe .charles-portrait{width:72%;height:79%}
.game-stage:has(.plinko-board){overflow:hidden}.game-stage:has(.plinko-board) #game-result{display:none}
.stage-inner:has(.plinko-board){padding-right:70px!important}.plinko-board{position:relative;overflow:visible}
.plinko-balls{position:absolute;inset:0;pointer-events:none}.plinko-puck{width:4%!important;height:5.49%!important;min-width:0;border-width:1.5px;left:50%;top:0;will-change:left,top,rotate}
.plinko-history{position:absolute;right:-64px;top:16%;display:flex;flex-direction:column;gap:5px;width:55px;pointer-events:none}
.plinko-recent{display:grid;place-items:center;width:55px;height:39px;flex:none;border-radius:6px;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums;color:#fff;background:#35536b;box-shadow:inset 0 -3px #0002;animation:multiplier-in .22s ease-out}
.plinko-recent.positive{background:#ee7437;color:#381809}.plinko-recent.negative{background:#e5ac3f;color:#44260b}
.plinko-recent:first-child{outline:2px solid #ffffffa0;outline-offset:1px}
@keyframes multiplier-in{from{transform:translateY(-15px) scale(.85);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
.roulette-layout{width:100%;max-width:790px;margin:auto}.roulette-top{display:flex;align-items:center;justify-content:center;position:relative;height:258px}.roulette-top .roulette-wheel-wrap{width:235px;height:235px;margin:0;flex:none}.roulette-top .wheel-center{width:35%;height:35%;border-width:4px}.roulette-top .wheel-outcome{bottom:10%;width:30px;height:30px;font-size:15px}.roulette-last{position:absolute;right:10%;display:flex;flex-direction:column;align-items:center;gap:6px;color:#d5e3ed}.roulette-last strong{font-size:28px;color:#fff}.roulette-last span{font-size:13px}
.roulette-ball-track{position:absolute;inset:0;pointer-events:none;--ball-radius:44%}.roulette-ball-track i{position:absolute;width:8px;height:8px;left:50%;top:calc(50% - var(--ball-radius));translate:-50% -50%;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff,#e5e8e9 65%,#b7bec1);box-shadow:0 1px 3px #0009,0 0 2px white}
.roulette-layout.is-spinning .table-spot{pointer-events:none}.roulette-table-wrap{width:100%;background:#143e36;border:1px solid #688a77;border-radius:7px;overflow:visible;padding:4px}.roulette-table{display:block;width:100%;height:auto;overflow:visible;touch-action:manipulation}
.table-spot{cursor:pointer;outline:none}.table-spot>rect{fill:#1b5245;stroke:#b6c9bb;stroke-width:1}.table-spot.red>rect{fill:#bd374a}.table-spot.black>rect{fill:#142d38}.table-spot.green>rect{fill:#247654}.table-spot>text{fill:#fff;font-size:16px;font-weight:650;pointer-events:none}.table-spot.outside>text{font-size:13px}.table-spot.inside>rect{fill:transparent;stroke:transparent}.table-spot:hover>rect,.table-spot:focus-visible>rect{fill:#d5bd57;fill-opacity:.7;stroke:#fff;stroke-width:2}.table-spot.inside:hover>rect,.table-spot.inside:focus-visible>rect{fill:#e8ca6d;fill-opacity:1}.placed-chip{pointer-events:none}.placed-chip circle{fill:#f2ca68;stroke:#fff1b3;stroke-width:2;filter:drop-shadow(0 1px 1px #0008)}.placed-chip text{fill:#382607;font-size:9px;font-weight:850}
.chip-rack{display:flex;justify-content:center;gap:10px;margin:4px 0 14px}.value-chip{display:grid;place-items:center;width:41px;height:41px;min-height:0;padding:0;border-radius:50%;border:4px dashed #fff9;outline:2px solid var(--chip-color);background:var(--chip-color);color:#0c2637;font-size:12px;font-weight:850;box-shadow:inset 0 0 0 2px #0003;cursor:pointer}.value-chip.selected{outline:3px solid #fff;transform:translateY(-3px);box-shadow:0 3px 9px #0005,inset 0 0 0 2px #0003}.value-chip:disabled{opacity:.6;cursor:default}
.table-toolbar{display:flex;justify-content:space-between;align-items:center;margin:9px 2px;color:#b9cddb;font-size:14px}.table-toolbar strong{color:#fff;margin-left:5px}.table-toolbar>div{display:flex;gap:16px}.table-toolbar button{color:#dde9f2;font-size:14px}.table-hint{font-size:13px;color:#acc4d3;margin:6px 0;text-align:center}.roulette-stage{padding:8px 16px!important}.roulette-stage+.round-result{margin-top:4px}
.dice-track{width:88%;margin:28px auto}.dice-track-line{height:13px;background:#e64b68;border:3px solid #24475d;border-radius:9px;position:relative}.dice-track-line>i{border-radius:6px;background:#a7ed55}.dice-marker{position:absolute;top:50%;translate:-50% -50%;height:33px;width:33px;border:4px solid white;border-radius:7px;background:#7dafe3;box-shadow:0 3px 7px #0005}.dice-marker:after{content:'';position:absolute;inset:7px;background:white;border-radius:50%}.dice-readout{padding-top:40px}.dice-pop{animation:dice-settle .38s ease-out}@keyframes dice-settle{0%{scale:1}50%{scale:1.25;rotate:10deg}100%{scale:1;rotate:0deg}}
.game-stage:has(.dice-track) .round-result{min-height:44px}.auth-gate{max-width:420px;margin:60px auto}.auth-gate .btn{margin-top:12px}
@media(max-width:700px){
 .cards-row{min-height:80px}.cards-row .playing-card{width:min(57px,calc((100cqw - 12px)/var(--card-count,2) - 5px))}.playing-card .card-corner{font-size:13px;width:13px;top:4px;left:3px}.playing-card .card-corner.bottom{right:3px;bottom:4px}.playing-card .card-corner .suit{width:8px!important;height:8px!important;min-width:8px;max-width:8px}.table-lettering{margin:8px 0}.hands-row{gap:8px}.bj-hand .hand-score{margin-top:6px}.card-shoe{scale:.75;transform-origin:top right}
 .stage-inner:has(.plinko-board){padding-right:53px!important}.plinko-history{right:-48px;top:14%;width:41px;gap:4px}.plinko-recent{width:41px;height:30px;font-size:11px}.plinko-board{width:100%}
 .roulette-top{height:177px}.roulette-top .roulette-wheel-wrap{height:163px;width:163px}.roulette-top .wheel-center{width:35%;height:35%}.roulette-top .wheel-outcome{width:24px;height:24px;font-size:12px;bottom:8%}.roulette-last{right:5%}.roulette-last strong{font-size:21px}.roulette-last span{font-size:11px}.roulette-stage{padding:0 7px!important}.roulette-table-wrap{padding:2px}.chip-rack{gap:9px;margin:4px 0 10px}.value-chip{height:30px;width:30px;font-size:10px;border-width:3px}.table-toolbar{font-size:12px;margin:6px 2px}.table-toolbar button{font-size:12px}.table-hint{font-size:11px;margin:3px 0}.roulette-table text{font-weight:750}.game-workspace:has(.roulette-layout) .game-controls{gap:7px}.game-workspace:has(.roulette-layout) .control-stat{display:none}.game-workspace:has(.roulette-layout) .stage-inner{min-height:0}
 .dice-readout{padding-top:20px}.dice-track{margin:22px auto}.dice-marker{height:29px;width:29px}.dice-marker:after{inset:6px}.auth-gate{margin:28px 15px}
}
@media(max-height:720px) and (max-width:700px){.roulette-top{height:146px}.roulette-top .roulette-wheel-wrap{width:133px;height:133px}.roulette-top .wheel-center{border-width:3px}.table-hint{display:none}.chip-rack{margin-bottom:6px}.value-chip{width:27px;height:27px}.roulette-top .wheel-outcome{width:20px;height:20px;bottom:8%;font-size:10px}.cards-row{min-height:73px}.cards-row .playing-card{width:min(50px,calc((100cqw - 12px)/var(--card-count,2) - 5px))}.table-lettering strong{font-size:12px}.table-lettering span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.plinko-recent,.dice-pop{animation:none}}
.reduce-motion .plinko-recent,.reduce-motion .dice-pop{animation:none}
.dice-track-line>.dice-marker{background:transparent;border:0;box-shadow:none;width:0;height:0;top:-20px;z-index:4;pointer-events:none}.dice-marker:after{display:none}.dice-marker>b{position:absolute;display:grid;place-items:center;width:58px;height:58px;bottom:0;left:-29px;background:#f8fbff;color:#dd4b66;font-size:14px;clip-path:polygon(50% 0,94% 24%,94% 73%,50% 100%,6% 73%,6% 24%);filter:drop-shadow(0 2px 3px #0005)}.dice-marker.won>b{color:#288f40}.dice-threshold{appearance:none;position:absolute;inset:-12px 0;width:100%;margin:0;background:transparent;cursor:pointer;z-index:5;height:30px}.dice-threshold::-webkit-slider-runnable-track{height:12px;background:transparent}.dice-threshold::-webkit-slider-thumb{appearance:none;width:24px;height:29px;border:3px solid #a8d8ff;border-radius:6px;background:#578dc6;margin-top:-8px;box-shadow:0 2px 4px #0005}.dice-threshold::-moz-range-track{height:12px;background:transparent}.dice-threshold::-moz-range-thumb{width:20px;height:25px;border:3px solid #a8d8ff;border-radius:6px;background:#578dc6}.dice-roll-history{position:absolute;right:20px;top:15px;display:flex;gap:5px}.dice-roll-history>span{border-radius:20px;padding:5px 9px;font-size:12px;font-weight:750;background:#35546b;color:#e6f1f9}.dice-roll-history>span.won{background:#9ee04f;color:#193b17}.dice-readout{visibility:hidden;padding-top:55px;min-height:130px}.dice-track{margin:40px auto 25px}.dice-params{margin-top:30px}.dice-stage{position:relative}
@media(max-width:700px){.dice-marker>b{width:50px;height:50px;left:-25px;font-size:12px}.dice-roll-history{right:12px;top:10px}.dice-readout{min-height:110px;padding-top:20px}.dice-track{margin:35px auto 22px}.dice-params{margin-top:20px}}
@media(max-height:720px) and (max-width:700px){.blackjack-table{min-height:224px;padding:6px 2px 8px}.cards-row{min-height:64px}.cards-row .playing-card{width:min(44px,calc((100cqw - 12px)/var(--card-count,2) - 5px))}.dealer-tag{margin-bottom:4px}.table-lettering{margin:4px 0}.table-lettering span{display:none}.hand-caption{font-size:9px;line-height:1;margin:2px 0 0}.playing-card .card-corner{font-size:12px;width:11px;top:3px}.playing-card .card-corner .suit{width:7px!important;height:7px!important;min-width:7px;max-width:7px}}
