:root{color-scheme:dark;--base:#100d12;--panel:#1e181f;--gold:#eac780;--ink:#fff6df;--muted:#baaeb6;--edge:#50424b;font:15px/1.4 "Segoe UI",system-ui,sans-serif;color:var(--ink);background:var(--base)}
*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 60% 20%,#2b1b27 0,transparent 62%),var(--base)}body[data-table=baccarat]{--felt1:#5a395b;--felt2:#30233e}body[data-table=roulette]{--felt1:#2c5d49;--felt2:#143c31}body[data-table=sic-bo]{--felt1:#853c46;--felt2:#3e202e}button,select,a{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button,select{border:1px solid var(--edge);border-radius:6px;background:#30272d}button,a,summary{cursor:pointer}button:disabled{cursor:default;opacity:.42}a{text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:2px}button:hover:not(:disabled){filter:brightness(1.14)}[hidden]{display:none!important}
header{max-width:1240px;margin:auto;height:61px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 clamp(13px,4vw,50px);border-bottom:1px solid #58414d73}header a,header button{min-height:40px;display:inline-flex;align-items:center;gap:7px;color:#d7cbd3;font-size:.87rem;font-weight:650}#back{justify-self:start}#back b{font:400 1.9rem/1 Georgia}header .brand{color:var(--gold);font:700 1rem/1 Georgia;letter-spacing:.12em}header img{height:31px;width:31px;border-radius:50%}header button{justify-self:end;padding:5px 12px;min-height:34px;background:transparent}
main{max-width:1190px;margin:auto;padding:20px clamp(12px,3vw,42px) 32px}.heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.heading h1{margin:0;font:italic 500 clamp(1.95rem,4.8vw,3.8rem)/1 Georgia,serif;letter-spacing:-.048em}.bank{border:1px solid #6f58637a;border-radius:9px;background:#241a22;padding:5px 13px;text-align:right;min-width:98px}.bank small{color:var(--muted);font-size:.69rem;font-weight:650;display:block}.bank strong{font-size:1.1rem;color:var(--gold);font-variant-numeric:tabular-nums}
.table-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(238px,29%);gap:15px;align-items:start}.game-board,aside{background:linear-gradient(145deg,#261d25,#1c161d);border:1px solid #53424c;border-radius:14px;padding:12px;min-width:0}.board-heading,aside h2{font-size:.78rem;line-height:1.2;letter-spacing:.065em;text-transform:uppercase;margin:14px 2px 7px;color:#d3c2c9}.options{display:grid;gap:5px;margin:7px 0}.baccarat-bets,.sic-primary{grid-template-columns:repeat(3,minmax(0,1fr))}.spot{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:0;min-height:40px;padding:5px 2px;font-weight:700;background:linear-gradient(#3a3039,#2c252e);border:1px solid #574853;line-height:1.12}.spot b{font-size:.88rem}.spot small{font-size:.64rem;color:#d3c2b2;font-weight:550;line-height:1.3;margin-top:3px}.spot.selected{outline:2px solid var(--gold);outline-offset:-2px;background:#524536;color:#fff3d7}.spot[data-chips]:after{content:attr(data-chips);position:absolute;right:-2px;top:-4px;z-index:1;min-width:15px;height:15px;padding:0 3px;display:grid;place-items:center;border:1px dashed #ceaa68;border-radius:20px;background:#ffe5a1;color:#392911;font:700 9px/1 system-ui}.baccarat-bets .spot,.sic-primary .spot{min-height:56px}.baccarat-bets .player{background:#29384f;border-color:#4e627a}.baccarat-bets .banker,.sic-primary .big{background:#532c3a;border-color:#845060}.baccarat-bets .tie,.sic-primary .small{background:#25423a;border-color:#436555}
.roulette-numbers{grid-template-columns:repeat(12,minmax(0,1fr));gap:2px;margin-top:11px}.roulette-numbers .spot{padding:3px 1px;min-height:30px;border-radius:3px;border-color:#685954}.roulette-numbers .zero{grid-column:1/-1;min-height:25px;background:#306044}.red-number{background:#7a333d!important}.black-number{background:#24282d!important}.outside,.dozens,.six{grid-template-columns:repeat(6,minmax(0,1fr))}.outside .spot,.dozens .spot{min-height:32px}.dozens .spot b{font-size:.73rem}.six .spot b{font-size:.98rem}.two{grid-template-columns:1fr 1fr}.seven{grid-template-columns:repeat(7,minmax(0,1fr))}.additional{margin-top:9px;border:1px solid #54434b;border-radius:7px;padding:0 8px}.additional summary{padding:8px 3px;font-size:.82rem;font-weight:650;color:#dacbc5}.group-picker{display:flex;flex-wrap:wrap;gap:5px;padding:0 0 8px}.group-picker select,.pick-add{min-height:36px;padding:4px 7px;min-width:0}.pick-add{background:#725a3a;color:#fff0c9;font-weight:650}
aside{padding:15px;position:sticky;top:14px}aside h2{margin:0 0 11px}#chips{display:flex;gap:7px;align-items:center;justify-content:space-between}.chip{flex:1 1 0;max-width:45px;aspect-ratio:1;min-width:29px;border:3px dashed #bfb09d;border-radius:50%;display:grid;place-items:center;padding:0;font-size:.75rem;font-weight:780;color:#f4ede2;background:radial-gradient(circle,#39323a 0 53%,#78616c 55% 63%,#39323a 65%);box-shadow:0 2px 0 #100b13}.chip[aria-pressed=true]{border-color:#fbd584;background:radial-gradient(circle,#675231 0 54%,#b89a5a 55% 62%,#795e34 64%);color:#fff2cb;box-shadow:0 0 0 2px #6b5330}
#hint{font-size:.76rem;color:#c9bcc4;margin:11px 0 5px;min-height:1em}#bets{list-style:none;margin:6px 0;padding:0;max-height:130px;overflow:auto}#bets:empty{display:none}#bets li,.summary,.receipt-line{display:flex;justify-content:space-between;align-items:baseline;gap:10px}#bets li{font-size:.79rem;padding:4px 1px;color:#d7cad0;border-bottom:1px solid #483a43}.summary{padding:8px 1px;color:#c6b7bd;font-size:.81rem}.summary strong{font-size:1.15rem;color:#ffebbc}.play{width:100%;min-height:45px;background:linear-gradient(145deg,#f2d697,#d9af66);border-color:#e8c384;color:#302115;font-weight:800;border-radius:8px}.tools{display:flex;gap:5px;margin:7px 0}.tools button{font-size:.73rem;font-weight:600;min-height:33px;flex:1;padding:3px}.stage-result{position:absolute;bottom:11px;left:15px;right:15px;text-align:center;color:#eddbb6;font-size:.8rem;font-weight:700}.receipt-line{margin:3px 0}.receipt-line b{color:var(--gold)}#receipt{margin-top:10px}#receipt:empty{display:none}#receipt small,#receipt>span{color:var(--muted);font-size:.73rem}
dialog{max-width:min(435px,calc(100% - 22px));background:#261c26;color:var(--ink);border:1px solid #796373;border-radius:14px;padding:18px 23px;box-shadow:0 15px 70px #0009}dialog::backdrop{background:#07060ac4}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:0;font:500 1.65rem Georgia}.dialog-head button{width:35px;height:35px;font-size:1.35rem}.dialog-head+p{color:#eee4d9;line-height:1.55}#practice{color:var(--muted);font-size:.84rem}
@media(max-width:760px){.table-layout{grid-template-columns:1fr;gap:8px}.heading{margin-bottom:9px}header{height:48px}main{padding-top:12px}.game-board,aside{padding:8px;border-radius:10px}aside{position:static}.bank{padding:3px 7px}.roulette-numbers{grid-template-columns:repeat(9,minmax(0,1fr))}.roulette-numbers .spot{min-height:30px}.tools{margin-bottom:2px}aside h2{margin:2px 2px 7px}#chips{justify-content:flex-start}.chip{max-width:38px}.stage-result{bottom:8px}.baccarat-bets .spot,.sic-primary .spot{min-height:47px}.board-heading{margin-top:9px}.outside .spot b,.dozens .spot b{font-size:.68rem}.group-picker select{flex:1}.seven .spot b{font-size:.75rem}}
@media(max-width:360px){main{padding-left:7px;padding-right:7px}.outside,.dozens{gap:2px}.heading h1{font-size:1.65rem}.heading{gap:6px}.hand{--cw:39px}.bank small{font-size:.61rem}}
