:root {
    --casino-green: #1a5e20;
    --casino-dark: #0a2e10;
    --table-border: #f1c40f;
    --red: #e74c3c;
    --black: #2c3e50;
    --green: #27ae60;
    --gold: #f1c40f;
    --text: #ecf0f1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: var(--text);
    display: flex;
    justify-content: center;
    padding: 20px 10px;
}

#main-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1600px;
    align-items: flex-start;
}

#left-panel, #right-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 240px;
    min-width: 240px;
    flex-shrink: 0;
}

#game-container {
    max-width: 1000px;
    flex: 1;
    background-color: var(--casino-dark);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--table-border);
}

/* History Log */
#history-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
}

#history-list {
    display: flex;
    gap: 5px;
}

.history-item {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: radial-gradient(circle at top left, rgba(255,255,255,0.2), transparent);
}

/* Wheel Section */
#wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.wheel-outer {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 12px solid #1a0f08;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.9),
        0 8px 40px rgba(0,0,0,0.8),
        0 0 0 3px #b8860b,
        0 0 0 6px #1a0f08;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
}

.wheel-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transition: transform 5s cubic-bezier(0.15, 0.8, 0.2, 1);
}

.wheel-pocket {
    position: absolute;
    top: -178px; /* Extend upward from center to near edge */
    left: -12px;
    width: 24px;
    height: 88px; /* Height of the visible pocket area */
    transform-origin: 12px 178px; /* Rotate around the center point */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    /* Chrome/gold fret dividers */
    border-left: 1px solid #c9a227;
    border-right: 1px solid #c9a227;
}

/* Pocket inner section (colored part) */
.wheel-pocket::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 1px;
    right: 1px;
    height: 70px;
    border-radius: 3px 3px 50% 50%;
    background: inherit;
    box-shadow: 
        inset 0 -8px 15px rgba(0,0,0,0.6),
        inset 2px 0 4px rgba(0,0,0,0.3),
        inset -2px 0 4px rgba(0,0,0,0.3);
}

.wheel-pocket span {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    z-index: 2;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    text-shadow: 
        1px 1px 2px rgba(0,0,0,0.95),
        -1px -1px 2px rgba(0,0,0,0.95),
        0 0 4px rgba(0,0,0,0.8);
}

/* Inner decorative ring */
.wheel-outer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    background: radial-gradient(circle,
        #1a1a1a 0%,
        #0d0d0d 40%,
        #1a1a1a 60%,
        #0a0a0a 100%);
    border: 3px solid #b8860b;
    border-radius: 50%;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.8),
        0 0 15px rgba(0,0,0,0.5);
    z-index: 5;
    pointer-events: none;
}

/* Center turret/cone */
.wheel-outer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: 
        radial-gradient(circle at 30% 30%, #4a4a4a 0%, #2a2a2a 30%, #1a1a1a 60%, #0a0a0a 100%);
    border: 4px solid #c9a227;
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.9),
        inset 0 -10px 20px rgba(0,0,0,0.5),
        inset 0 5px 10px rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 10;
}

/* Pocket Colors */
.red-pocket {
    background: linear-gradient(180deg, #d32f2f 0%, #b71c1c 50%, #8b0000 100%);
}

.red-pocket::before {
    background: linear-gradient(180deg, #ef5350 0%, #d32f2f 40%, #b71c1c 100%) !important;
}

.black-pocket {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 50%, #0d0d0d 100%);
}

.black-pocket::before {
    background: linear-gradient(180deg, #3d3d3d 0%, #2d2d2d 40%, #1a1a1a 100%) !important;
}

.green-pocket {
    background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 50%, #0d3d12 100%);
}

.green-pocket::before {
    background: linear-gradient(180deg, #43a047 0%, #2e7d32 40%, #1b5e20 100%) !important;
}

/* Roulette Ball */
.wheel-ball {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #e8e8e8 30%, #c0c0c0 70%, #999 100%);
    border-radius: 50%;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.5),
        inset 0 -2px 4px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.8);
}

@keyframes ball-spin {
    0% {
        top: 18px;
        transform: translateX(-50%) rotate(0deg);
    }
    30% {
        top: 18px;
    }
    70% {
        top: 35px;
    }
    100% {
        top: 40px;
        transform: translateX(-50%) rotate(-1440deg);
    }
}

.wheel-ball.spinning {
    animation: ball-spin 5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.wheel-pointer {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 28px solid #c9a227;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.8));
    z-index: 20;
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -28px;
    left: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 14px solid #fff8dc;
}

#result-display {
    margin-top: 25px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #111, #333);
    border: 2px solid #d4a017;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    min-width: 180px;
    text-align: center;
}

#winning-number {
    font-size: 3.5rem;
    font-weight: 900;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

#winning-color {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    font-weight: 700;
}

/* Status Bar */
#status-bar {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: linear-gradient(to bottom, #001a08, #000);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.status-item {
    font-size: 1.4rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

#balance-amount { color: #2ecc71; }
#bet-amount { color: var(--gold); }

/* Chip Selector */
#chip-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.chip-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chip-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px dashed rgba(255,255,255,0.6);
    background: #555;
    color: white;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.chip-btn:hover { 
    transform: scale(1.1) translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.6);
}

.chip-btn.active {
    border-style: solid;
    border-color: #f1c40f;
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 0 20px #f1c40f, 0 8px 15px rgba(0,0,0,0.6);
}

.chip-actions {
    display: flex;
    gap: 6px;
}

.chip-action {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.4);
    color: #aaa;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding-bottom: 2px;
}

.chip-action:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: scale(1.1);
}

.chip-action.add-action.active {
    background: linear-gradient(145deg, #27ae60, #1e8449);
    border-color: #2ecc71;
    color: #fff;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}

.chip-action.remove-action.active {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    color: #fff;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.chip-btn[data-value="5"] { background: radial-gradient(circle, #3498db, #2980b9); }
.chip-btn[data-value="10"] { background: radial-gradient(circle, #e74c3c, #c0392b); }
.chip-btn[data-value="25"] { background: radial-gradient(circle, #27ae60, #219150); }
.chip-btn[data-value="100"] { background: radial-gradient(circle, #9b59b6, #8e44ad); }

/* Betting Table Grid */
#board-container {
    overflow-x: auto;
    background-color: var(--casino-green);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--table-border);
    margin-bottom: 25px;
}

.roulette-table {
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    grid-template-rows: auto auto;
    min-width: 800px; /* Slightly wider for better spacing */
    user-select: none;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.bet-cell {
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 800;
    min-height: 55px;
    transition: all 0.2s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.bet-cell:hover {
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.bet-cell.green { 
    background: radial-gradient(circle, #2ecc71, #27ae60);
}
.bet-cell.red-bg { 
    background: radial-gradient(circle, #e74c3c, #c0392b);
}
.bet-cell.black-bg { 
    background: radial-gradient(circle, #444, #111);
}

.outside {
    background: rgba(0,0,0,0.2);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Main Numbers Grid */
#numbers-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: column;
}

/* Zero spacing */
.bet-cell.special.green {
    grid-row: span 3;
}

.column-bets {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
}

.outside-bets-container {
    grid-column: 2 / 3;
}

.dozens-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.even-money-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

/* Chips in Cells */
.chip {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 20%, var(--gold) 21%);
    border: 2px dashed #333;
    color: #000;
    font-size: 10px;
    font-weight: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Winning Highlight */
@keyframes winning-pulse {
    0% { box-shadow: inset 0 0 0 0px var(--gold), 0 0 0 0px var(--gold); }
    50% { box-shadow: inset 0 0 0 4px var(--gold), 0 0 20px 5px var(--gold); border-color: var(--gold); }
    100% { box-shadow: inset 0 0 0 0px var(--gold), 0 0 0 0px var(--gold); }
}

.winning-highlight {
    animation: winning-pulse 1s infinite ease-in-out;
    z-index: 10;
    border-color: var(--gold) !important;
}

/* Controls */
#controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

#controls button {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.1s;
}

#spin-btn {
    background-color: var(--gold);
    color: #000;
}

#spin-btn:hover { background-color: #e2b607; }
#spin-btn:active { transform: scale(0.95); }
#spin-btn:disabled { background-color: #555; cursor: not-allowed; }

#clear-btn {
    background-color: #444;
    color: #fff;
}

#clear-btn:hover { background-color: #555; }

/* Disclaimer */
#disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
    padding: 10px;
}

/* Probability Side Panel */
#probability-panel {
    background: linear-gradient(135deg, var(--casino-dark), #051a08);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Generic Side Panel Styles */
.side-panel {
    background: linear-gradient(135deg, var(--casino-dark), #051a08);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.side-panel h3 {
    text-align: center;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(241, 196, 15, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side-panel h4 {
    color: var(--gold);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.side-panel .panel-content {
    font-size: 0.8rem;
    line-height: 1.4;
}

.side-panel p {
    margin-bottom: 8px;
    color: #ccc;
}

.side-panel ul {
    margin: 8px 0;
    padding-left: 18px;
}

.side-panel li {
    margin-bottom: 4px;
    color: #bbb;
}

/* Rules Panel */
#rules-panel .rule-section {
    background: rgba(0,0,0,0.25);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 3px solid var(--green);
}

#rules-panel .rule-section h4 {
    margin-bottom: 5px;
}

#rules-panel .rule-section p {
    margin-bottom: 0;
    font-size: 0.75rem;
}

#rules-panel .rule-section ul {
    margin: 5px 0 0 0;
    padding-left: 15px;
    font-size: 0.72rem;
}

#rules-panel .rule-section li {
    margin-bottom: 3px;
}

/* Settings Panel */
#settings-panel .setting-section {
    background: rgba(0,0,0,0.25);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #9b59b6;
}

.setting-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.setting-label span:last-child {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.8rem;
}

.music-toggle-btn {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--green);
    border-radius: 8px;
    background: linear-gradient(145deg, #27ae60, #1e8449);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.music-toggle-btn:hover {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    transform: scale(1.02);
}

.music-toggle-btn.music-off {
    background: linear-gradient(145deg, #555, #333);
    border-color: #666;
}

.music-toggle-btn.music-off:hover {
    background: linear-gradient(145deg, #666, #444);
}

.volume-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0,0,0,0.4);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.1s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Explanation Panel */
#explanation-panel .explain-section {
    background: rgba(0,0,0,0.25);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #3498db;
}

#explanation-panel .explain-section h4 {
    margin-bottom: 5px;
    color: #3498db;
}

#explanation-panel .formula {
    background: rgba(0,0,0,0.4);
    padding: 6px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #2ecc71;
    margin: 8px 0;
    text-align: center;
}

#explanation-panel .example {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
    margin-top: 5px;
}

#explanation-panel .payout-list {
    font-size: 0.72rem;
    padding-left: 15px;
}

#explanation-panel .payout-list li {
    margin-bottom: 2px;
}

#explanation-panel .coverage-table {
    width: 100%;
    font-size: 0.72rem;
    border-collapse: collapse;
    margin-top: 8px;
}

#explanation-panel .coverage-table td {
    padding: 4px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#explanation-panel .coverage-table tr td:first-child {
    color: #aaa;
}

#explanation-panel .coverage-table tr td:last-child {
    color: #2ecc71;
    text-align: right;
}

#probability-panel h3 {
    text-align: center;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(241, 196, 15, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#probability-content {
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
}

#probability-content .no-bets {
    color: #888;
    font-style: italic;
    text-align: center;
    font-size: 0.85rem;
    padding: 20px 0;
}

.prob-item {
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 3px solid var(--gold);
}

.prob-item .bet-type {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.prob-item .bet-value {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
}

.prob-item .bet-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.prob-item .win-chance {
    color: #2ecc71;
}

.prob-item .payout {
    color: var(--gold);
}

#probability-summary {
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(241, 196, 15, 0.2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row span:first-child {
    color: #aaa;
}

#overall-chance {
    color: #2ecc71;
    font-weight: 700;
}

#expected-value {
    font-weight: 700;
}

#expected-value.positive {
    color: #2ecc71;
}

#expected-value.negative {
    color: #e74c3c;
}

/* Toast Notification */
.game-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    pointer-events: auto;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    border: 2px solid;
}

.game-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.game-toast.win {
    background: linear-gradient(135deg, #1a5e20, #0d3d12);
    border-color: #2ecc71;
    color: #2ecc71;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.game-toast.lose {
    background: linear-gradient(135deg, #3d1010, #2a0a0a);
    border-color: #e74c3c;
    color: #e74c3c;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

/* Result display color indicator */
#winning-number.result-red {
    color: #e74c3c;
}

#winning-number.result-black {
    color: #ffffff;
}

#winning-number.result-green {
    color: #2ecc71;
}

@keyframes result-pop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

#winning-number.result-animate {
    animation: result-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Focus styles for keyboard navigation */
.bet-cell:focus {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.5);
    z-index: 3;
}

.chip-btn:focus,
.chip-action:focus,
#spin-btn:focus,
#clear-btn:focus,
.music-toggle-btn:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #main-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }

    #left-panel, #right-panel {
        width: 100%;
        min-width: unset;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    #left-panel .side-panel,
    #right-panel .side-panel {
        flex: 1;
        min-width: 220px;
        max-width: 400px;
    }

    #game-container {
        order: -1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px 5px;
    }

    #game-container {
        padding: 12px;
    }

    #board-container {
        padding: 5px;
    }

    .roulette-table {
        min-width: 800px;
    }

    .wheel-outer {
        transform: scale(0.74);
        margin: -25px 0;
    }

    #winning-number {
        font-size: 2.5rem;
    }

    #chip-selector {
        gap: 10px;
        flex-wrap: wrap;
    }

    .chip-btn {
        width: 48px;
        height: 48px;
        font-size: 0.9rem;
    }

    #status-bar {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        padding: 12px;
    }

    .status-item {
        font-size: 1.1rem;
    }

    #controls {
        flex-direction: column;
        gap: 10px;
    }

    #controls button {
        padding: 12px 20px;
        width: 100%;
    }

    #left-panel .side-panel,
    #right-panel .side-panel {
        min-width: 100%;
    }
}
