* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f3d28; color: #eafaf0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.cz-header { width: 100%; max-width: 620px; 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: 620px; padding: 8px 14px 28px; }

.top { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 14px; }
.ball { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: #fff; background: #555; }
.ball.red { background: #c0392b; } .ball.black { background: #222; } .ball.green { background: #1e8449; }
.message { font-weight: 800; color: #ffe082; min-height: 24px; }

.history-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hist-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #7fc49a; flex-shrink: 0; }
.history { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
.history::-webkit-scrollbar { height: 0; }
.hist { flex-shrink: 0; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 0.72rem; font-weight: 800; color: #fff; padding: 0 4px; }
.hist.red { background: #c0392b; } .hist.black { background: #222; } .hist.green { background: #1e8449; }
.hist-empty { font-size: 0.72rem; color: #6f9d84; font-style: italic; }

.numgrid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; margin-bottom: 8px; }
.num { position: relative; aspect-ratio: 3/4; border: none; border-radius: 4px; color: #fff; font-weight: 700; font-size: 0.8rem; cursor: pointer; font-family: inherit; }
.num.red { background: #c0392b; } .num.black { background: #222; } .num.green { background: #1e8449; grid-row: span 1; }
.num:first-child { grid-column: span 1; }
.outside { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-bottom: 14px; }
.obet { position: relative; padding: 9px 4px; border: 1px solid #2a5e44; background: #114a30; color: #eafaf0; border-radius: 5px; font-size: 0.75rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.chip-amt { position: absolute; top: -6px; right: -6px; background: #ffe082; color: #2a1f00; border-radius: 10px; font-size: 0.62rem; padding: 0 5px; font-weight: 800; }
.chip-amt:empty { display: none; }

.cz-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.credit-box strong { color: #6fe39a; } .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.big { padding: 11px 20px; } .ctrl.small { font-size: 0.72rem; padding: 5px 9px; } .ctrl:disabled { opacity: 0.45; cursor: not-allowed; }
.action-row { display: flex; gap: 10px; align-items: center; }
.action-btn { background: linear-gradient(180deg,#ffe082,#f0b000); color: #2a1f00; border: none; border-radius: 10px; padding: 12px 40px; 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); }
