* { box-sizing:border-box; margin:0; padding:0; }
html,body { width:600px; height:600px; overflow:hidden; background:#000; color:#eef2ec; }
body { font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",system-ui,sans-serif; font-weight:300; -webkit-font-smoothing:antialiased; user-select:none; -webkit-user-select:none; touch-action:none; }
button,input { font:inherit; color:inherit; }
button { border:1.3px solid #657568; border-radius:13px; background:#ffffff09; cursor:pointer; min-height:44px; padding:9px 14px; font-size:15px; font-weight:400; letter-spacing:.07em; transition:border-color 140ms,background 140ms,box-shadow 140ms; }
button:disabled { opacity:.3; cursor:default; }
button:not(:disabled):hover { background:#ffffff13; }
button.focus,input.focus { border-color:#ecc766 !important; box-shadow:0 0 15px #ecc76635; }
button:focus-visible,input:focus-visible { outline:2px solid #ecc766; outline-offset:3px; }
[hidden] { display:none !important; }
.stage { width:600px; height:600px; padding:26px 28px 18px; display:flex; flex-direction:column; gap:10px; position:relative; background:radial-gradient(ellipse at 50% -10%,#193d29 0%,#081a10 44%,#000 84%); }
.topbar { display:flex; align-items:center; gap:10px; height:48px; flex-shrink:0; }
.metric { flex:1; min-width:90px; display:flex; flex-direction:column; gap:3px; }
.right { text-align:right; }
.label { font-size:11px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:#bdc7ba; }
.number { font-size:27px; font-weight:300; font-variant-numeric:tabular-nums; letter-spacing:-.02em; }
.mode { font-size:11px; width:114px; padding:8px 7px; }
.mode[aria-pressed="true"] { color:#ecc766; }
.sound { font-size:11px; width:61px; padding:8px 5px; }
.screen { flex:1; min-height:0; }
.setup { display:flex; flex-direction:column; justify-content:space-evenly; gap:13px; text-align:center; }
h1 { font-size:36px; font-weight:200; letter-spacing:.09em; }
.sub { color:#b9c3b5; font-size:13px; letter-spacing:.025em; margin-top:8px; }
.small { color:#a8b4a4; font-size:12px; letter-spacing:.025em; }
.amount-picker { margin-top:12px; display:flex; justify-content:center; align-items:center; gap:10px; }
.amount-picker button { width:48px; height:48px; padding:0; font-size:28px; }
.dollar { font-size:54px; font-weight:200; margin-left:12px; }
.amount-picker input { width:136px; background:transparent; border:1px solid #62705e; border-radius:13px; font-size:54px; font-weight:200; text-align:center; appearance:textfield; padding:5px 0; margin-right:12px; font-variant-numeric:tabular-nums; }
input::-webkit-inner-spin-button { appearance:none; }
.start-rules { color:#c1cabd; font-size:14px; line-height:1.65; }
.primary { border-color:#bc9d52; color:#f1d585; background:#bb9b420e; }
.wide { width:100%; min-height:48px; font-size:17px; letter-spacing:.15em; }
.betting { display:flex; flex-direction:column; justify-content:space-evenly; text-align:center; gap:17px; }
.bet-total { font-size:66px; font-weight:200; letter-spacing:-.04em; font-variant-numeric:tabular-nums; line-height:1.2; margin-top:5px; }
.chip-rail { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.chip-stack { display:flex; flex-direction:column; align-items:center; gap:7px; }
.chip { width:66px; height:66px; padding:0; border:3px dashed #b2baab; border-radius:50%; background:#1a2b20; color:#f3e2b4; font-size:18px; }
.quantity { font-size:18px; font-variant-numeric:tabular-nums; }
.remove { min-height:36px; height:36px; width:44px; padding:0; font-size:21px; border-color:#536050; }
.bet-actions { display:flex; gap:10px; }
.bet-actions .wide { flex:1; }
.table { display:flex; flex-direction:column; gap:8px; }
.odds { display:flex; justify-content:space-between; align-items:center; min-height:51px; padding:7px 13px; border:1px solid #61715d; border-radius:13px; flex-shrink:0; }
.odds-value { font-size:29px; color:#ecc766; font-weight:400; font-variant-numeric:tabular-nums; }
.odds-detail { font-size:12px; color:#c0c9b9; margin-top:4px; }
.hand-zone { flex-shrink:0; }
.hand-heading { min-height:25px; display:flex; align-items:baseline; justify-content:space-between; padding:0 3px 4px; }
.total { font-size:18px; color:#ecc766; font-weight:400; font-variant-numeric:tabular-nums; }
.cards { height:94px; position:relative; }
.card { position:absolute; width:70px; height:94px; border-radius:9px; border:1px solid #f2f4ef; background:#f2f4ef; color:#20262b; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; box-shadow:0 3px 6px #0003; }
.card .rank { font-size:33px; font-weight:600; line-height:1; }
.card .suit { font-size:21px; line-height:1.15; }
.card.red { color:#d8323c; }
.card.back { background:repeating-linear-gradient(135deg,#1b2d1f,#1b2d1f 6px,#2b3e2d 6px,#2b3e2d 7px); border-color:#76886c; color:#dfd5b0; font-size:33px; }
.cards.fan .card { align-items:flex-start; padding-left:5px; justify-content:flex-start; padding-top:9px; }
.cards.fan .rank { font-size:24px; }
.cards.fan .suit { font-size:18px; }
.card.arrive { animation:arrive 220ms ease-out both; animation-delay:var(--delay,0ms); }
.card.reveal { animation:reveal 210ms ease-out both; }
@keyframes arrive { from { transform:translate(58px,-25px) rotate(4deg); opacity:0; } to { transform:none; opacity:1; } }
@keyframes reveal { from { transform:scaleX(.1); } to { transform:scaleX(1); } }
.hand-strip { display:flex; gap:7px; height:34px; flex-shrink:0; }
.hand-chip { flex:1; padding:4px 5px; min-height:34px; font-size:11px; letter-spacing:.015em; }
.hand-chip.current { color:#ecc766; border-color:#a38a48; }
.hand-chip:disabled { opacity:1; color:#b8c4b0; }
.hand-chip.current:disabled { color:#ecc766; }
.coach { text-align:center; min-height:45px; display:flex; flex-direction:column; justify-content:center; gap:4px; flex-shrink:0; }
.advice { font-size:20px; font-weight:400; letter-spacing:.05em; color:#ecc766; }
.reason { color:#bdc7b6; font-size:12px; letter-spacing:.01em; }
.actions { display:flex; gap:8px; margin-top:auto; }
.actions button { flex:1; padding:10px 8px; font-size:15px; }
.table>.wide { margin-top:auto; }
.normal .table { justify-content:space-evenly; }
.normal .cards { height:112px; }
.normal .card { height:112px; }
.normal .actions { margin-top:10px; }
.normal .coach[hidden] { display:none; }
.ending { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; text-align:center; }
.ending h1 { font-size:27px; }
.ending button { margin-top:14px; }
footer { text-align:center; color:#aab8a2; font-size:11.5px; letter-spacing:.045em; min-height:19px; padding-top:4px; flex-shrink:0; }
.toast { position:absolute; left:28px; right:28px; bottom:60px; background:#15241a; color:#f4dcc0; border:1px solid #b7a276; border-radius:13px; padding:14px; text-align:center; font-size:15px; z-index:3; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }
