/* Crown Roulette — green baize, gold trim. Original CSS art only. */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, Arial, sans-serif; background: #04160f; color: #eafff4; }
.app { max-width: 980px; margin: 0 auto; padding: 10px; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 8px 4px; }
.logo { width: 42px; height: 42px; }
.title-block h1 { margin: 0; font-size: 20px; }
.subtitle { font-size: 12px; color: #9fd8c0; }
.pill { margin-left: auto; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.pill.demo { background: #14532d; color: #bbf7d0; }
.pill.real { background: #7f1d1d; color: #fecaca; }
.balance-block { text-align: right; }
.balance-label { font-size: 11px; color: #9fd8c0; }
.balance { font-size: 18px; font-weight: 800; color: #ffd75e; }
.icon-btn { background: #0b3d2a; color: #eafff4; border: 1px solid #14604a; border-radius: 8px; padding: 7px 10px; cursor: pointer; }

.stage { display: flex; gap: 14px; flex-wrap: wrap; background: radial-gradient(ellipse at center, #0d5a38 0%, #07331f 70%); border: 2px solid #7a5b14; border-radius: 16px; padding: 14px; }
.wheel-wrap { position: relative; width: 300px; height: 300px; margin: 0 auto; flex: 0 0 auto; }
.wheel-svg { width: 300px; height: 300px; }
.pocket.red { fill: #b91c1c; stroke: #0a0a0a; stroke-width: 1; }
.pocket.black { fill: #171717; stroke: #333; stroke-width: 1; }
.pocket.green { fill: #15803d; stroke: #0a0a0a; stroke-width: 1; }
.pocket.winner { fill: #ffd75e !important; }
.pocket-num { fill: #fff; font-size: 11px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.ball { fill: #f8fafc; stroke: #94a3b8; stroke-width: 1.5; }
#ballG { transform-origin: 150px 150px; }
.wheel-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; padding: 0 70px; }
.phase-label { font-weight: 800; font-size: 15px; text-shadow: 0 1px 3px #000; }
.countdown { font-size: 22px; font-weight: 800; color: #ffd75e; text-shadow: 0 1px 3px #000; }
.stage-side { flex: 1 1 240px; min-width: 220px; }
.result-line { min-height: 22px; font-weight: 800; }
.result-line.won { color: #ffd75e; }
.recent-label, .mybets-label { font-size: 12px; color: #9fd8c0; margin-top: 8px; }
.recent-strip { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; min-height: 26px; }
.ball-num { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; border: 1px solid #00000055; }
.ball-num.red { background: #b91c1c; } .ball-num.black { background: #171717; } .ball-num.green { background: #15803d; }
.slip-list { margin-top: 4px; font-size: 13px; min-height: 20px; }
.slip-item { padding: 2px 0; border-bottom: 1px dashed #14604a; }
.slip-total { margin-top: 6px; font-size: 14px; }
.small-btn { background: #c9a227; border: 0; color: #1a1405; border-radius: 8px; padding: 7px 12px; cursor: pointer; font-weight: 700; margin-right: 6px; }
.small-btn:disabled { opacity: .45; cursor: default; }
.msg-line { color: #fca5a5; min-height: 18px; font-size: 13px; margin-top: 6px; }

.felt-section { margin-top: 12px; background: #0a4a2e; border: 2px solid #7a5b14; border-radius: 16px; padding: 12px; }
.felt { position: relative; width: 100%; aspect-ratio: 14 / 3; }
.felt button { position: absolute; transform: translate(-50%, -50%); }
.cell { width: 6.4%; height: 30%; border: 1.5px solid #eafff4; background: transparent; color: #fff; font-weight: 800; font-size: clamp(11px, 2.2vw, 18px); border-radius: 6px; cursor: pointer; padding: 0; }
.cell.red { background: #b91c1c; } .cell.black { background: #171717; } .cell.green { background: #15803d; }
.cell.zero-cell { height: 96%; }
.cell.colbet { background: #0b3d2a; font-size: clamp(9px, 1.6vw, 13px); }
.cell:disabled, .dot:disabled, .outside-btn:disabled { opacity: .55; cursor: default; }
.dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #ffd75e; background: #ffd75e33; cursor: pointer; padding: 0; z-index: 3; }
.dot:hover { background: #ffd75e; }
.badge { position: absolute; top: -8px; right: -8px; background: #ffd75e; color: #1a1405; border-radius: 99px; font-size: 10px; font-weight: 800; padding: 1px 5px; z-index: 5; }
.outside-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.outside-btn { position: relative; flex: 1 1 30%; border: 1.5px solid #eafff4; background: #0b3d2a; color: #fff; border-radius: 8px; padding: 9px 4px; font-weight: 700; cursor: pointer; }
.outside-btn.red { background: #b91c1c; } .outside-btn.black { background: #171717; }
.chips-row { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.chip { width: 52px; height: 52px; border-radius: 50%; border: 4px dashed #fff; background: #1d4ed8; color: #fff; font-weight: 800; cursor: pointer; }
.chip:nth-child(2) { background: #b91c1c; } .chip:nth-child(3) { background: #15803d; }
.chip:nth-child(4) { background: #171717; } .chip:nth-child(5) { background: #7c3aed; } .chip:nth-child(6) { background: #c9a227; color: #1a1405; }
.chip.selected { outline: 3px solid #ffd75e; transform: scale(1.1); }

.howto { color: #9fd8c0; font-size: 13px; }
.panel { background: #0b3d2a; border: 1px solid #14604a; border-radius: 12px; padding: 12px; margin-top: 12px; }
.panel h2 { margin: 0 0 8px; font-size: 16px; }
.history .hist { padding: 3px 0; border-bottom: 1px dashed #14604a; font-size: 13px; }
.hist.won { color: #ffd75e; } .hist.void { color: #9fd8c0; }
.fair-row { margin: 6px 0; font-size: 13px; word-break: break-all; }
.fair-row code { color: #ffd75e; }
.fair-row input { background: #073325; border: 1px solid #14604a; color: #eafff4; border-radius: 6px; padding: 5px; width: 90px; }
.verify-result { font-size: 13px; margin-top: 6px; }
.hidden { display: none; }
@media (max-width: 640px) { .wheel-wrap { width: 260px; height: 260px; } .wheel-svg { width: 260px; height: 260px; } .dot { width: 11px; height: 11px; } }

/* Virtual League layout */
.roundbar { display: flex; gap: 14px; align-items: center; margin: 12px 0 4px; font-weight: 700; flex-wrap: wrap; }
.roundbar .phase { color: var(--gold, #f5d98a); }
.roundbar .timer { margin-left: auto; font-variant-numeric: tabular-nums; }
.fixtures { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.fixture { background: rgba(0,0,0,.25); border: 1px solid #2b3a2e; border-radius: 14px; padding: 10px; }
.fixture-head { font-weight: 800; margin-bottom: 8px; }
.markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.market-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 7px 2px 6px; border-radius: 10px; border: 2px solid #3d5a44;
  background: linear-gradient(180deg, #20301f, #121a12); color: #fff; cursor: pointer;
}
.market-btn .m-label { font-size: 11px; font-weight: 600; }
.market-btn .m-odds { font-size: 14px; font-weight: 800; color: var(--gold, #f5d98a); }
.market-btn .badge {
  position: absolute; top: 3px; right: 3px; background: var(--gold, #f5d98a); color: #111;
  border-radius: 999px; padding: 0 6px; font-size: 10px; font-weight: 700;
}
.market-btn.has-bet { outline: 2px solid var(--gold, #f5d98a); }
.market-btn:disabled { opacity: 0.55; cursor: default; }
.slip { margin-top: 8px; font-size: 13px; }
.slip-row { padding: 3px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.scores { background: rgba(0,0,0,.3); border: 1px solid #3d5a44; border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.scores-title { font-weight: 800; margin-bottom: 6px; }
.score-row { padding: 2px 0; font-variant-numeric: tabular-nums; }
.recent-wrap { margin-top: 14px; }
.recent { display: flex; flex-wrap: wrap; gap: 6px; }
.recent-chip { background: #1c2b1e; border: 1px solid #3d5a44; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
