* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(900px 500px at 50% -10%, #1d6b46, #0f3d28); color: #eafaf0;
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.cz-header { width: 100%; max-width: 560px; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.cz-header h1 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.cz-header h1 span { font-size: 0.55rem; color: #9ed3b3; font-weight: 600; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.cz-main { width: 100%; max-width: 560px; padding: 8px 16px 28px; }

.table { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 18px; }
.point { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; color: #9ed3b3; border: 2px solid #2a5e44; border-radius: 999px; padding: 5px 16px; }
.point.on { color: #2a1f00; background: #ffe082; border-color: #ffe082; }
.dice { display: flex; gap: 14px; }
.die { width: 76px; height: 76px; background: #fff; color: #1a1a1a; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; line-height: 1; box-shadow: 0 4px 0 rgba(0,0,0,0.25); }
.message { min-height: 26px; font-weight: 800; font-size: 1.05rem; color: #ffe082; text-align: center; }

#bets { margin-bottom: 16px; }
.bet-section { margin-bottom: 12px; }
.sec-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #7fc49a; margin: 0 2px 6px; }
.bet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.betbox { background: #114a30; border: 1px solid #2a5e44; border-radius: 9px; padding: 7px 4px; color: #eafaf0; cursor: pointer; font-family: inherit; text-align: center; }
.betbox:disabled { opacity: 0.4; cursor: not-allowed; }
.betbox.active { border-color: #ffe082; box-shadow: 0 0 0 1px #ffe082 inset; }
.betbox.off { opacity: 0.55; }
.bet-name { font-weight: 700; font-size: 0.82rem; }
.bet-amt { font-size: 1.05rem; font-weight: 800; color: #ffe082; margin: 2px 0; }
.bet-amt span { font-variant-numeric: tabular-nums; }
.bet-hint { font-size: 0.6rem; color: #9ed3b3; }
.action-row { display: flex; gap: 10px; align-items: center; }
.ctrl.big { padding: 12px 20px; }
@media (max-width: 460px) { .bet-grid { grid-template-columns: repeat(3, 1fr); } }

.cz-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.credit-box { font-size: 1.1rem; } .credit-box strong { color: #6fe39a; font-variant-numeric: tabular-nums; }
.chips { display: flex; align-items: center; gap: 6px; } .chips strong { color: #ffe082; }
.ctrl { background: #0f3d28; color: #eafaf0; border: 1px solid #2a5e44; border-radius: 8px; padding: 8px 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.ctrl.small { font-size: 0.72rem; padding: 5px 9px; } .ctrl:disabled { opacity: 0.45; cursor: not-allowed; }
.action-btn { background: linear-gradient(180deg,#ffe082,#f0b000); color: #2a1f00; border: none; border-radius: 10px; padding: 13px 50px; font-size: 1.15rem; font-weight: 800; cursor: pointer; }
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.version-info { position: fixed; bottom: 6px; right: 8px; font-size: 0.65rem; color: rgba(255,255,255,0.35); }
