:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #101b22; color: #edf3f5; --gold: #edc56e; --muted: #aebfc7; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1450px; margin: auto; padding: 28px; }
header, .round-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
h1 { font-size: clamp(26px, 4vw, 40px); margin: 5px 0 22px; }
h2 { font-size: 20px; margin: 8px 0; }
p { line-height: 1.5; }
.eyebrow { color: var(--gold); font-size: 12px; letter-spacing: 1.5px; margin: 0; font-weight: 700; }
.score, .legend, .round-bar p, details p { color: var(--muted); font-size: 13px; }
.settings { display: flex; gap: 15px; align-items: flex-end; flex-wrap: wrap; padding: 20px; border: 1px solid #32444e; background: #192830; border-radius: 12px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
button, select { font: inherit; border-radius: 7px; border: 1px solid #50646e; padding: 10px 12px; background: #243943; color: #fff; }
button { cursor: pointer; font-weight: 600; }
button:hover:not(:disabled) { filter: brightness(1.2); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.primary { color: #142028; background: var(--gold); border-color: var(--gold); }
.round-bar { margin: 25px 0 14px; }
.spin-controls { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.ball { width: 65px; height: 65px; display: grid; place-items: center; border: 3px solid #d9e5e8; border-radius: 50%; font-size: 25px; font-weight: 800; background: #36505b; }
.ball.red { background: #b43140; }.ball.black { background: #152125; }.ball.green { background: #146e4d; }
#feedback { min-height: 42px; padding: 8px 0; font-weight: 600; color: var(--gold); }
#feedback.error { color: #ffb2a7; }#feedback.success { color: #90e4b9; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.table-panel, .bets-panel { background: #192830; border: 1px solid #32444e; padding: 18px; border-radius: 12px; }
.table-scroll { overflow-x: auto; padding: 22px 12px 15px; background: #0c563e; border-radius: 8px; }
.table { min-width: 670px; }
.number-layout { display: grid; grid-template-columns: 56px 1fr 65px; }
.zeros, .columns { display: grid; }
.number-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(3, 68px); position: relative; }
.cell { display: grid; place-items: center; border: 1px solid #c1d9cc; color: #fff; font-weight: 650; font-size: 17px; position: relative; }
.cell.red { background: #ae2e3b; }.cell.black { background: #172825; }
.cell.covered { box-shadow: inset 0 0 0 4px #ffe4a2; }
.cell.landed { text-decoration: underline; text-underline-offset: 5px; }
.columns .cell { font-size: 12px; }
.outside { margin-left: 56px; margin-right: 65px; }
.dozens { display: grid; grid-template-columns: repeat(3, 1fr); }
.evens { display: grid; grid-template-columns: repeat(6, 1fr); }
.outside .cell { min-height: 68px; font-size: 13px; }
.chip { position: absolute; transform: translate(-50%, -50%); width: 32px; height: 32px; border: 3px dashed #fff3cd; background: #efce79; color: #12231c; border-radius: 50%; padding: 0; font-size: 12px; font-weight: 850; z-index: 2; box-shadow: 0 2px 5px #0008; }
.cell > .chip { top: 72%; left: 50%; }
.chip:disabled { opacity: 1; }
.legend { margin: 15px 0; }
details { margin-top: 20px; font-size: 13px; color: var(--muted); }
summary { cursor: pointer; color: var(--gold); }
.reference { margin-top: 12px; line-height: 1.8; }
.bets-panel h2 { margin: 0 0 15px; }
#bets { display: grid; gap: 10px; }
.bet-card { border: 1px solid #41535d; padding: 12px; border-radius: 8px; background: #21333d; }
.bet-card.flagged { border-color: #ed9c86; }.bet-card.paid { border-color: #73c89c; }
.bet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bet-name { font-weight: 700; font-size: 14px; }
.bet-id { color: var(--gold); }
.bet-meta { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.remove { font-size: 12px; padding: 6px 8px; }
.payout { margin-top: 12px; display: flex; gap: 8px; }
.payout select { min-width: 0; flex: 1; }
.payout button { font-size: 12px; }
.answer-note { color: #90e4b9; font-size: 13px; margin: 10px 0 0; }
.empty { color: var(--muted); font-size: 14px; }
@media (max-width: 1050px) { .workspace { grid-template-columns: minmax(0, 1fr); } #bets { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } }
@media (max-width: 600px) { main { padding: 16px; } header { align-items: flex-start; } .score { text-align: right; max-width: 135px; } .round-bar { align-items: flex-start; } .spin-controls { flex-direction: column; gap: 8px; } .settings { gap: 12px; padding: 14px; } .settings label { flex: 1 1 140px; } .settings .primary { width: 100%; } .table-panel { padding: 12px; } }
