@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --bg-dark: #0d0d1a;
    --bg-surface: #161625;
    --bg-card: #1c1c30;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --gold: #f0c040;
    --accent: #00e676;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --glass: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.08);
    --radius: 8px;
    --roulette-red: #c0392b;
    --roulette-black: #2c3e50;
    --roulette-green: #27ae60;
    --felt-green: #0d5c2e;
}

.roboroulette-game {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.4;
}

.roboroulette-game * { box-sizing: border-box; }

/* ---- Layout ---- */
.roboroulette-game .poker-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.roboroulette-game .table-column { width: 100%; }

.roboroulette-game .track-container {
    background: radial-gradient(ellipse at 50% 30%, #1a472a 0%, #0f2d1a 60%, #0a1f12 100%);
    border: 3px solid #3d2b1f;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 0 30px rgba(0,0,0,0.6), inset 0 0 60px rgba(0,0,0,0.3);
    position: relative;
}

/* ---- Title Overlay ---- */
.table-title-overlay {
    text-align: center;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.table-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 8px rgba(240,192,64,0.4);
}

.table-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tutorial-btn-inline {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--gold);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.tutorial-btn-inline:hover {
    background: rgba(240,192,64,0.15);
}

/* ---- Wheel ---- */
.wheel-area {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0.75rem auto;
    max-width: 360px;
    padding: 1.25rem;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(10,15,10,0.3) 40%, rgba(10,15,10,0.85) 75%, rgba(10,15,10,0.98) 100%),
        url('/assets/people_at_a_roulette_table_in__Nano_Banana_Pro_12345.jpg') center/cover no-repeat;
    box-shadow: 0 0 40px rgba(39,174,96,0.15), 0 0 80px rgba(0,0,0,0.5);
}

#roulette-wheel {
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 1;
}

.wheel-result-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.result-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    border: 3px solid var(--gold);
    box-shadow: 0 0 20px rgba(240,192,64,0.5);
}

.result-number.num-red { background: var(--roulette-red); color: #fff; }
.result-number.num-black { background: var(--roulette-black); color: #fff; }
.result-number.num-green { background: var(--roulette-green); color: #fff; }

/* ---- History Strip ---- */
.history-strip {
    display: flex;
    gap: 4px;
    justify-content: center;
    padding: 0.5rem 0;
    flex-wrap: wrap;
    min-height: 30px;
}

.history-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.history-dot.dot-red { background: var(--roulette-red); }
.history-dot.dot-black { background: var(--roulette-black); }
.history-dot.dot-green { background: var(--roulette-green); }

/* ---- Desktop Table Grid ---- */
.roulette-table-desktop {
    margin: 0.75rem auto;
    max-width: 600px;
}

.table-grid {
    display: grid;
    grid-template-columns: 40px repeat(12, 1fr) 40px;
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    overflow: visible;
    margin-bottom: 4px;
}

.grid-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: filter 0.15s, box-shadow 0.15s;
    position: relative;
    min-height: 38px;
    user-select: none;
}

.grid-cell:hover {
    filter: brightness(1.3);
    box-shadow: inset 0 0 8px rgba(255,255,255,0.2);
    z-index: 2;
}

.grid-cell.highlighted {
    box-shadow: inset 0 0 12px rgba(240,192,64,0.5);
    filter: brightness(1.4);
}

.zero-cell {
    grid-row: 1 / 4;
    grid-column: 1;
    background: var(--roulette-green);
    font-size: 1rem;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    border-radius: 4px 0 0 4px;
}

.num-red { background: var(--roulette-red); }
.num-black { background: var(--roulette-black); }

.col-cell {
    grid-column: 14;
    background: var(--bg-card);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}
.col-cell[data-selections="[3]"] { grid-row: 1; }
.col-cell[data-selections="[2]"] { grid-row: 2; }
.col-cell[data-selections="[1]"] { grid-row: 3; }

/* Chip indicator on table */
.chip-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    font-size: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    z-index: 3;
}

/* ---- Split / Corner / Street Overlays ---- */
.bet-overlay {
    position: absolute;
    z-index: 5;
    cursor: pointer;
    background: transparent;
    transition: background 0.15s;
}
.bet-overlay:hover {
    background: rgba(240, 192, 64, 0.45);
}

/* Right edge — split with number to the right (n, n+3) */
.ov-right {
    right: 0; top: 8%;
    width: 12px; height: 84%;
    transform: translateX(50%);
}
/* Bottom edge — split with number below (n-1, n) */
.ov-bottom {
    bottom: 0; left: 8%;
    width: 84%; height: 12px;
    transform: translateY(50%);
}
/* Left edge — zero splits */
.ov-left {
    left: 0; top: 8%;
    width: 12px; height: 84%;
    transform: translateX(-50%);
}
/* Corner — intersection of 4 cells */
.ov-corner {
    bottom: 0; right: 0;
    width: 16px; height: 16px;
    border-radius: 50%;
    transform: translate(50%, 50%);
    z-index: 6;
}
/* Street — bottom edge of bottom-row cells */
.ov-street {
    bottom: 0; left: 8%;
    width: 84%; height: 10px;
}
/* Six-line — bottom-right of bottom-row cells */
.ov-sixline {
    bottom: 0; right: 0;
    width: 16px; height: 16px;
    border-radius: 50%;
    transform: translateX(50%);
    z-index: 6;
}

/* Overlay tooltip label */
.overlay-label {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.92);
    color: var(--gold);
    font-size: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    display: none;
    z-index: 20;
}
.bet-overlay:hover .overlay-label {
    display: block;
}

/* ---- Outside Bets ---- */
.outside-row {
    display: grid;
    gap: 2px;
    margin-top: 2px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dozens-row {
    grid-template-columns: repeat(3, 1fr);
    padding-left: 42px;
    padding-right: 42px;
}

.evens-row {
    grid-template-columns: repeat(6, 1fr);
    padding-left: 42px;
    padding-right: 42px;
}

.outside-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.4rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: filter 0.15s, box-shadow 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    user-select: none;
}

.outside-cell:hover {
    filter: brightness(1.3);
    box-shadow: inset 0 0 8px rgba(255,255,255,0.15);
}

.outside-cell.highlighted {
    box-shadow: inset 0 0 12px rgba(240,192,64,0.5);
    filter: brightness(1.4);
}

.red-cell { background: var(--roulette-red); }
.black-cell { background: var(--roulette-black); }

/* ---- Racetrack ---- */
.racetrack-section {
    text-align: center;
    margin: 0.75rem auto;
    max-width: 700px;
}

.racetrack-toggle-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--gold);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.racetrack-toggle-btn:hover { background: rgba(240,192,64,0.12); }

.racetrack-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.5rem;
}

.racetrack-oval {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    padding: 0.5rem;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 60px;
    margin-bottom: 0.75rem;
}

.racetrack-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.racetrack-num:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(240,192,64,0.5);
}

.racetrack-num.rt-red { background: var(--roulette-red); }
.racetrack-num.rt-black { background: var(--roulette-black); }
.racetrack-num.rt-green { background: var(--roulette-green); }

.racetrack-num.rt-highlight {
    box-shadow: 0 0 10px var(--gold);
    transform: scale(1.15);
}

.racetrack-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.racetrack-bet-btn {
    background: linear-gradient(135deg, rgba(240,192,64,0.15), rgba(240,192,64,0.05));
    border: 1px solid rgba(240,192,64,0.3);
    color: var(--gold);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.racetrack-bet-btn:hover { background: rgba(240,192,64,0.25); }

.neighbor-picker {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.neighbor-picker select {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

/* ---- Mobile Picker ---- */
.roulette-mobile-picker {
    display: none;
    margin: 0.75rem auto;
}

.mobile-tabs {
    display: flex;
    gap: 2px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.mobile-tab {
    flex: 1;
    padding: 0.5rem 0.25rem;
    background: var(--bg-card);
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.mobile-tab.active {
    background: rgba(240,192,64,0.15);
    color: var(--gold);
}

.mobile-tab-content { padding: 0.5rem 0; }

.mobile-bet-type-selector {
    margin-bottom: 0.75rem;
}

.mobile-bet-type-selector select {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.mobile-number-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 0.75rem;
}

.mobile-num-btn {
    padding: 0.5rem 0;
    border: 2px solid transparent;
    border-radius: 6px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

.mobile-num-btn.num-red { background: var(--roulette-red); }
.mobile-num-btn.num-black { background: var(--roulette-black); }
.mobile-num-btn.num-green { background: var(--roulette-green); }

.mobile-num-btn:hover { transform: scale(1.05); }

.mobile-num-btn.selected {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(240,192,64,0.5);
    transform: scale(1.08);
}

.mobile-selection-info {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.mobile-add-bet-btn {
    width: 100%;
}

.mobile-outside-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.mobile-outside-btn {
    padding: 0.6rem 0.25rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-outside-btn:hover { background: rgba(255,255,255,0.1); }
.mobile-outside-btn.red-btn { background: var(--roulette-red); }
.mobile-outside-btn.black-btn { background: var(--roulette-black); }

.mobile-call-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

/* ---- Betting Section ---- */
.roboroulette-game .betting-section {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.roboroulette-game .bet-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.roboroulette-game .balance-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.roboroulette-game .balance-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.roboroulette-game .balance-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
}

.roboroulette-game .chip-selector { display: flex; }

.roboroulette-game .chip-tray {
    display: flex;
    gap: 6px;
}

.roboroulette-game .chip {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.roboroulette-game .chip:hover { transform: scale(1.1); }
.roboroulette-game .chip.selected {
    transform: scale(1.15);
    box-shadow: 0 0 12px var(--gold);
    border-color: var(--gold);
}

.roboroulette-game .chip-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

.roboroulette-game .chip-5 { background: #c0392b; }
.roboroulette-game .chip-10 { background: #2563eb; }
.roboroulette-game .chip-25 { background: #16a34a; }
.roboroulette-game .chip-50 { background: #ea580c; }
.roboroulette-game .chip-100 { background: linear-gradient(135deg, #1a1a2e, #0d0d1a); border-color: var(--gold); }

.roulette-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: filter 0.2s, box-shadow 0.2s;
}

.roulette-btn:hover { filter: brightness(1.15); }
.roulette-btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }

.spin-btn {
    background: linear-gradient(135deg, var(--roulette-green), #1a8a4a);
    color: #fff;
    box-shadow: 0 2px 12px rgba(39,174,96,0.4);
    min-width: 120px;
}

.spin-btn:not(:disabled):hover { box-shadow: 0 4px 20px rgba(39,174,96,0.6); }

.rebet-btn {
    background: linear-gradient(135deg, #c8960e, #e0b040);
    color: #111;
    box-shadow: 0 2px 12px rgba(224,176,64,0.3);
}
.rebet-btn:not(:disabled):hover { box-shadow: 0 4px 20px rgba(224,176,64,0.5); }

.clear-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.roboroulette-game .active-bets {
    width: 100%;
    max-width: 500px;
}

.roboroulette-game .active-bets-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    text-align: center;
}

.roboroulette-game .bets-list {
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.roboroulette-game .no-bets {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 0.4rem 0;
}

.roboroulette-game .bet-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    font-size: 0.8rem;
}

.bet-entry .bet-desc { color: var(--text-primary); }
.bet-entry .bet-amt {
    font-family: 'JetBrains Mono', monospace;
    color: var(--gold);
    font-weight: 600;
}

.bet-entry .bet-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0 4px;
}

@keyframes betFlash {
    0% { background: rgba(240,192,64,0.2); }
    100% { background: rgba(255,255,255,0.03); }
}

.bet-entry.bet-flash { animation: betFlash 0.5s ease-out; }

/* ---- Bottom Panels ---- */
.roboroulette-game .bottom-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.roboroulette-game .panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 0.75rem;
}

.roboroulette-game .panel h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.roboroulette-game .no-results {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.roboroulette-game .results-history {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.roboroulette-game .payout-details {
    font-size: 0.8rem;
    max-height: 150px;
    overflow-y: auto;
}

.payout-line {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.payout-line.payout-win { color: var(--success); }
.payout-line.payout-lose { color: var(--text-secondary); }

.payout-total {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0 0;
    font-weight: 700;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.3rem;
}

.payout-total.net-positive { color: var(--success); }
.payout-total.net-negative { color: var(--danger); }

.roboroulette-game .rules-panel ul {
    margin: 0;
    padding: 0 0 0 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Tutorial ---- */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    padding: 1rem;
}

.tutorial-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.tutorial-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/people_at_a_roulette_table_in__Nano_Banana_Pro_12345.jpg') center/cover no-repeat;
    opacity: 0.08;
    border-radius: var(--radius);
    pointer-events: none;
    z-index: 0;
}

.tutorial-content > * { position: relative; z-index: 1; }

.tutorial-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, rgba(26,26,46,0.95), rgba(22,33,62,0.8)),
                url('/assets/people_at_a_roulette_table_in__Nano_Banana_Pro_12345.jpg') center/cover no-repeat;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 2;
}

.tutorial-title {
    font-weight: 700;
    color: var(--gold);
    font-size: 0.95rem;
}

.tutorial-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
}

.tutorial-body { padding: 1rem; }

.tutorial-section h3 {
    margin: 0 0 0.5rem;
    color: var(--gold);
    font-size: 1rem;
}

.tutorial-section p, .tutorial-section li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.tutorial-section ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.tutorial-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.tutorial-prev-btn, .tutorial-next-btn {
    padding: 0.4rem 1rem;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.tutorial-prev-btn:hover, .tutorial-next-btn:hover { background: rgba(240,192,64,0.12); }
.tutorial-prev-btn:disabled, .tutorial-next-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.tutorial-step-indicator {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .roulette-table-desktop { display: none; }
    .racetrack-section { display: none; }
    .roulette-mobile-picker { display: block; }

    .roboroulette-game .bottom-panels {
        grid-template-columns: 1fr;
    }

    .wheel-area { max-width: 240px; }
    #roulette-wheel { width: 240px; height: 240px; }

    .roboroulette-game .chip {
        width: 34px;
        height: 34px;
    }
}

@media (min-width: 769px) {
    .roulette-mobile-picker { display: none !important; }
}

@media (max-width: 480px) {
    .table-title { font-size: 1.15rem; }
    .mobile-number-grid { grid-template-columns: repeat(6, 1fr); gap: 3px; }
    .mobile-num-btn { padding: 0.4rem 0; font-size: 0.75rem; }
    .roboroulette-game .chip { width: 30px; height: 30px; }
    .roboroulette-game .chip-value { font-size: 0.6rem; }
}
