.roulette-shell { position: relative; isolation: isolate; padding: 28px; border: 1px solid rgba(215, 189, 105, .18); border-radius: 15px; background: linear-gradient(140deg, rgba(19, 43, 36, .96), rgba(8, 19, 17, .97)); box-shadow: 0 25px 75px rgba(0,0,0,.27); }
.game-mode .roulette-shell { min-height: 100vh; padding: clamp(15px, 2.2vw, 30px) max(clamp(14px, 3.2vw, 48px), env(safe-area-inset-left)) calc(32px + env(safe-area-inset-bottom)) max(clamp(14px, 3.2vw, 48px), env(safe-area-inset-right)); border: 0; border-radius: 0; background: radial-gradient(circle at 25% 10%, rgba(41, 90, 68, .24), transparent 30%), radial-gradient(circle at 80% 70%, rgba(149, 102, 39, .08), transparent 30%), linear-gradient(145deg, #07100f, #0c1d18 58%, #09100e); box-shadow: none; }
.game-chrome { display: flex; align-items: center; gap: 23px; min-height: 54px; padding-bottom: 15px; border-bottom: 1px solid rgba(215,189,105,.16); }
.game-brand { display: flex; align-items: center; gap: 10px; min-width: max-content; color: #f8efc9; }
.game-brand:hover { color: #fff; }
.game-brand .brand-mark { width: 34px; height: 34px; font-size: 16px; }
.game-brand > span:last-child { display: grid; gap: 1px; }
.game-brand b { font: 700 14px Georgia, serif; letter-spacing: .08em; }
.game-brand small { color: #6f897b; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.dealer-status { display: flex; align-items: center; gap: 10px; color: #88a095; font-size: 10px; }
.dealer-live { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; color: #9be1b7; border: 1px solid rgba(55,183,131,.24); border-radius: 4px; background: rgba(55,183,131,.08); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.dealer-live i { width: 5px; height: 5px; background: #4dd493; border-radius: 50%; box-shadow: 0 0 0 3px rgba(77,212,147,.1); }
.game-utilities { display: flex; align-items: end; flex-wrap: wrap; gap: 7px; margin-left: auto; }
.utility-control { display: grid; justify-items: center; gap: 3px; }
.utility-label { color: #72887c; font-size: 7px; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.utility-button { display: inline-flex; align-items: center; justify-content: center; min-height: 29px; padding: 0 9px; color: #98aa9f; border: 1px solid rgba(215,189,105,.15); border-radius: 5px; background: rgba(255,255,255,.025); font-size: 9px; white-space: nowrap; }
.utility-button:hover, .utility-button.is-on { color: #fff0ad; border-color: rgba(215,189,105,.48); background: rgba(215,189,105,.08); }
.utility-switch { gap: 6px; min-width: 64px; }
.switch-track { position: relative; display: inline-block; width: 25px; height: 14px; flex: 0 0 25px; border: 1px solid #64736a; border-radius: 999px; background: #28332d; }
.switch-track > span { position: absolute; top: 1px; left: 1px; width: 10px; height: 10px; border-radius: 50%; background: #d8ded4; transition: transform .16s ease; }
.utility-switch.is-on .switch-track { border-color: #62bd8c; background: #196644; }
.utility-switch.is-on .switch-track > span { transform: translateX(11px); background: #fff4bd; }
.utility-state { min-width: 18px; text-align: left; }
.utility-link { min-height: 29px; }
.utility-reset { color: #d8a7a2; border-color: rgba(200,62,77,.25); }
.utility-reset:hover { color: #fff; border-color: rgba(200,62,77,.65); background: rgba(200,62,77,.14); }
.roulette-topline { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding-bottom: 20px; }
.roulette-topline h1 { margin: 0 0 7px; color: #fff5cb; font: 700 clamp(28px, 3.4vw, 46px) Georgia, serif; }
.roulette-topline p { margin: 0; color: #93a89d; font-size: 12px; }
.roulette-session-actions { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; justify-content: end; }
.session-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #9bcbb2; border: 1px solid rgba(55,183,131,.24); border-radius: 20px; background: rgba(55,183,131,.08); font-size: 10px; font-weight: 700; }
.fairness-badge { color: #baa86b; font-size: 10px; }
.session-badge i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 3px rgba(55,183,131,.12); }
.text-button { padding: 4px 0; color: #a6b9ad; border: 0; border-bottom: 1px solid rgba(215,189,105,.45); background: transparent; font-size: 11px; }
.text-button:hover { color: var(--gold-light); }
.roulette-announcement { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 9px 12px; color: #a9c8b6; border: 1px solid rgba(55,183,131,.16); border-radius: 6px; background: rgba(55,183,131,.07); font-size: 10px; }
.roulette-announcement span { color: var(--green); }
.roulette-layout { display: grid; grid-template-columns: minmax(350px, .86fr) minmax(0, 1.35fr); gap: 16px; align-items: start; }
.roulette-wheel-panel, .roulette-board-panel, .bet-slip { min-width: 0; border: 1px solid rgba(215,189,105,.14); border-radius: 11px; background: rgba(4, 14, 12, .52); }
.roulette-wheel-panel { overflow: hidden; }
.wheel-stage { display: grid; place-items: center; min-height: 400px; padding: 26px 20px 18px; background: radial-gradient(circle at 50% 46%, rgba(104, 137, 88, .14), transparent 43%), linear-gradient(160deg, rgba(20,52,42,.7), rgba(6,16,14,.45)); }
.wheel-frame { position: relative; width: min(100%, 350px); aspect-ratio: 1; border: 6px solid #2a1e14; border-radius: 50%; background: #121816; box-shadow: 0 0 0 2px #d9bc62, 0 0 0 6px rgba(215,189,105,.12), 0 20px 45px rgba(0,0,0,.44); }
.wheel-disc { position: absolute; inset: 0; transform-origin: center; will-change: transform; }
.wheel-art { display: block; width: 100%; height: 100%; }
.wheel-pocket path { transition: stroke .16s ease, stroke-width .16s ease, filter .16s ease; }
.wheel-pocket-label { transition: fill .16s ease; }
.wheel-pocket.is-bet-pocket path { stroke: #fff0a6; stroke-width: 2.25; filter: drop-shadow(0 0 2px rgba(255, 235, 145, .72)); }
.wheel-pocket.is-bet-pocket .wheel-pocket-label { fill: #fff9cf; font-weight: 900; }
.wheel-pocket.is-hit-pocket path { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 5px rgba(255, 244, 174, .95)); }
.wheel-pocket.is-hit-pocket .wheel-pocket-label { fill: #fff; font-weight: 900; }
.wheel-pointer { position: absolute; z-index: 4; top: -9px; left: 50%; width: 0; height: 0; border-right: 9px solid transparent; border-bottom: 22px solid #fff0ac; border-left: 9px solid transparent; transform: translateX(-50%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.ball-path { position: absolute; z-index: 3; inset: 9%; transform-origin: center; pointer-events: none; will-change: transform; }
.wheel-ball { position: absolute; top: -4px; left: 50%; display: block; width: 13px; height: 13px; border: 1px solid #a6a296; border-radius: 50%; background: radial-gradient(circle at 28% 23%, #fff, #e5e1d5 56%, #7f7b71); box-shadow: 0 1px 4px rgba(0,0,0,.8); transform: translateX(-50%); }
.wheel-frame.is-css-spinning .wheel-ball { animation: wheel-ball-hops var(--wheel-spin-duration, 10000ms) linear both; }
@keyframes wheel-ball-hops {
    0% { transform: translateX(-50%); }
    70% { transform: translateX(-50%); animation-timing-function: cubic-bezier(.22,.7,.3,1); }
    72% { transform: translateX(-50%) translateY(-3.5px) scale(.93); animation-timing-function: cubic-bezier(.2,.65,.3,1); }
    74% { transform: translateX(-50%) translateY(1.2px) scale(1.04); animation-timing-function: cubic-bezier(.2,.65,.3,1); }
    77% { transform: translateX(-50%) translateY(-3px) scale(.94); animation-timing-function: cubic-bezier(.2,.65,.3,1); }
    80% { transform: translateX(-50%) translateY(1px) scale(1.035); animation-timing-function: cubic-bezier(.2,.65,.3,1); }
    83% { transform: translateX(-50%) translateY(-2.6px) scale(.95); animation-timing-function: cubic-bezier(.2,.65,.3,1); }
    86% { transform: translateX(-50%) translateY(.85px) scale(1.03); animation-timing-function: cubic-bezier(.2,.65,.3,1); }
    89% { transform: translateX(-50%) translateY(-2.15px) scale(.96); animation-timing-function: cubic-bezier(.2,.65,.3,1); }
    92% { transform: translateX(-50%) translateY(.7px) scale(1.025); animation-timing-function: cubic-bezier(.2,.65,.3,1); }
    94.5% { transform: translateX(-50%) translateY(-1.7px) scale(.97); animation-timing-function: cubic-bezier(.2,.65,.3,1); }
    96.5% { transform: translateX(-50%) translateY(.55px) scale(1.02); animation-timing-function: cubic-bezier(.2,.65,.3,1); }
    98% { transform: translateX(-50%) translateY(-1.05px) scale(.985); animation-timing-function: cubic-bezier(.2,.65,.3,1); }
    99.2% { transform: translateX(-50%) translateY(.3px) scale(1.008); }
    100% { transform: translateX(-50%); }
}
.wheel-result { position: absolute; z-index: 5; inset: 39%; display: grid; place-content: center; border: 2px solid #f0d681; border-radius: 50%; color: #fff0a9; background: radial-gradient(circle at 35% 25%, #69955c, #0b6243 63%, #053b2a); box-shadow: inset 0 0 0 7px rgba(19,46,31,.57), 0 0 0 4px rgba(215,189,105,.13); text-align: center; }
.wheel-result strong { font: 800 clamp(23px, 3vw, 31px) Georgia, serif; line-height: 1; }
.wheel-result span { display: block; margin-top: 4px; color: #d8e5c2; font-size: 8px; font-weight: 800; letter-spacing: .08em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.wheel-frame.result-red .wheel-result { background: radial-gradient(circle at 35% 25%, #e06060, #8d1d2e 63%, #480c16); }
.wheel-frame.result-black .wheel-result { background: radial-gradient(circle at 35% 25%, #56625d, #18201f 63%, #070c0b); }
.wheel-frame.result-green .wheel-result { background: radial-gradient(circle at 35% 25%, #69955c, #0b6243 63%, #053b2a); }
.wheel-controls { padding: 17px; border-top: 1px solid rgba(215,189,105,.13); }
.chip-heading { display: flex; justify-content: space-between; gap: 10px; color: #cfd5c8; font-size: 11px; font-weight: 700; }
.chip-heading small { color: #7f9288; font-size: 10px; font-weight: 500; }
.chip-heading b { color: var(--gold-light); }
.chip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 9px 5px; margin: 12px 0 18px; }
.chip { position: relative; display: grid; width: 58px; height: 58px; min-width: 58px; place-items: center; justify-self: center; padding: 0; color: #fff5c7; border: 3px solid #a82e3e; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #d45362 0 12%, #a93043 14% 64%, #651b2c 66% 100%); box-shadow: inset 0 0 0 3px rgba(255,226,130,.42), inset 0 0 0 7px rgba(44,22,18,.35), 0 3px 7px rgba(0,0,0,.42); font-size: 14px; font-weight: 850; font-variant-numeric: tabular-nums; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.chip:before { position: absolute; content: ''; inset: 5px; border: 2px dashed rgba(255,224,111,.72); border-radius: 50%; pointer-events: none; }
.chip:nth-child(3n+2) { color: #1a2620; border-color: #d4d5c5; background: radial-gradient(circle at 34% 28%, #fffef4 0 12%, #e9eadc 14% 64%, #adb4a6 66% 100%); }
.chip:nth-child(3n+2):before { border-color: rgba(59,73,62,.36); }
.chip:nth-child(3n) { color: #151b18; border-color: #e5bd4e; background: radial-gradient(circle at 34% 28%, #ffe99a 0 12%, #f3c951 14% 64%, #a97922 66% 100%); }
.chip:nth-child(3n):before { border-color: rgba(104,66,15,.48); }
.chip:hover, .chip.is-selected { transform: translateY(-3px) scale(1.04); filter: brightness(1.08); box-shadow: 0 0 0 3px rgba(215,189,105,.18), inset 0 0 0 3px rgba(255,255,255,.34), inset 0 0 0 7px rgba(44,22,18,.28), 0 5px 12px rgba(0,0,0,.45); }
.chip:disabled { opacity: .33; cursor: not-allowed; transform: none; }
.wheel-control-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.table-total { display: grid; min-width: 92px; margin-right: auto; }
.table-total span { color: #7d9087; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.table-total strong { color: #fff1b0; font-size: 17px; font-variant-numeric: tabular-nums; }
.wheel-control-row .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.wheel-control-row .button small { color: inherit; opacity: .62; font-size: 9px; }
.roulette-status { min-height: 20px; margin-top: 12px; color: #9db3a7; font-size: 10px; }
.board-heading, .bet-slip-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; padding: 17px 18px 14px; }
.board-heading .eyebrow, .bet-slip-heading .eyebrow { margin-bottom: 5px; }
.board-heading h2, .bet-slip-heading h2 { margin: 0; color: #f8edc5; font: 700 23px Georgia, serif; }
.balance-display { display: grid; justify-items: end; min-width: 100px; padding: 7px 10px; border: 1px solid rgba(55,183,131,.25); border-radius: 7px; background: rgba(55,183,131,.08); }
.balance-display span { color: #86aa98; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.balance-display b { color: #b9e3c5; font-size: 15px; font-variant-numeric: tabular-nums; }
.result-history { display: flex; align-items: center; gap: 13px; margin: 0 14px 10px; padding: 7px 9px; border: 1px solid rgba(215,189,105,.13); border-radius: 5px; background: rgba(3,16,12,.28); }
.result-history-title { display: grid; min-width: max-content; gap: 1px; color: #c9cba9; font-size: 9px; font-weight: 750; }
.result-history-title small { color: #6e8378; font-size: 8px; font-weight: 500; }
.result-history-pills { display: flex; gap: 4px; min-width: 0; overflow: hidden; }
.history-pill { display: grid; flex: 0 0 auto; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: #fff; font-size: 9px; font-weight: 800; }
.history-pill-red { background: #ad2735; }.history-pill-black { background: #121817; }.history-pill-green { background: #08794e; }.history-empty { color: #667b70; font-size: 9px; }
.table-surface { margin: 0 14px; padding: 13px 10px 12px; border: 2px solid #b18a3b; border-radius: 7px; background: linear-gradient(130deg, #0e7450, #075a40); box-shadow: inset 0 0 0 3px rgba(2,52,35,.38), 0 8px 20px rgba(0,0,0,.2); }
.number-board { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 2px; }
.zero { grid-row: 1; align-self: stretch; min-height: 121px; }
.number-grid { display: grid; grid-template-rows: repeat(3, minmax(37px, 1fr)); grid-auto-flow: column; grid-auto-columns: minmax(24px, 1fr); gap: 2px; min-width: 0; }
.column-board { display: grid; grid-template-rows: repeat(3, minmax(37px, 1fr)); gap: 2px; }
.bet-button { position: relative; min-width: 0; min-height: 37px; padding: 3px 2px; overflow: visible; color: #f7f5de; border: 1px solid rgba(242, 217, 142, .54); border-radius: 2px; background: rgba(12, 34, 27, .54); font-size: 10px; font-weight: 750; line-height: 1; text-align: center; transition: filter .15s ease, box-shadow .15s ease, transform .15s ease; }
.bet-button:hover { z-index: 2; filter: brightness(1.2); }
.bet-button:active { transform: scale(.97); }
.bet-button.red { background: rgba(161, 27, 44, .88); }
.bet-button.black { background: rgba(14, 21, 19, .94); }
.bet-button.zero { color: #fff7dc; background: #087c50; font-size: 15px; }
.bet-button.is-selected { z-index: 3; color: #0d2218; border-color: #fff2aa; background: #e6c65d; box-shadow: 0 0 0 2px rgba(255,242,170,.24), 0 2px 10px rgba(0,0,0,.28); }
.bet-button.is-selected:after { position: absolute; top: 2px; right: 2px; content: attr(data-amount); padding: 2px 3px; color: #16231b; border-radius: 3px; background: #fff4c0; font-size: 7px; line-height: 1; }
.bet-button.is-hit { outline: 2px solid #fff1a7; outline-offset: 1px; filter: brightness(1.26); animation: hit-pulse 1.3s ease-in-out infinite; }
@keyframes hit-pulse { 50% { box-shadow: 0 0 0 5px rgba(255,241,167,.11); } }
.dozen-board, .outside-board { display: grid; grid-template-columns: 34px repeat(3, minmax(0, 1fr)) 34px; gap: 2px; margin-top: 2px; }
.dozen-board .bet-button { grid-column: span 1; }
.dozen-board .bet-button:nth-child(2) { grid-column: 2; } .dozen-board .bet-button:nth-child(3) { grid-column: 3; } .dozen-board .bet-button:nth-child(4) { grid-column: 4; }
.outside-board { grid-template-columns: 34px repeat(6, minmax(0, 1fr)) 34px; }
.outside-board .bet-button { min-height: 41px; font-size: 9px; text-transform: uppercase; }
.outside-board .bet-button:nth-child(2) { grid-column: 2; } .outside-board .bet-button:nth-child(3) { grid-column: 3; } .outside-board .bet-button:nth-child(4) { grid-column: 4; } .outside-board .bet-button:nth-child(5) { grid-column: 5; } .outside-board .bet-button:nth-child(6) { grid-column: 6; } .outside-board .bet-button:nth-child(7) { grid-column: 7; }
.outside-small { color: #fff1ab; font-size: 9px; }
.inside-bet-picker { margin: 12px 14px 0; border: 1px solid rgba(215,189,105,.15); border-radius: 6px; background: rgba(4,18,13,.31); }
.inside-bet-picker summary { display: flex; justify-content: space-between; gap: 8px; padding: 10px 11px; color: #dfdba9; cursor: pointer; font-size: 10px; font-weight: 750; list-style: none; }
.inside-bet-picker summary::-webkit-details-marker { display: none; }
.inside-bet-picker summary:after { content: '+'; color: var(--gold); font-size: 16px; line-height: 10px; }
.inside-bet-picker[open] summary:after { content: '–'; }
.inside-bet-picker summary span { margin-left: auto; color: #799084; font-size: 9px; font-weight: 500; }
.inside-bet-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 10px; padding: 0 11px 9px; color: #799084; font-size: 9px; }
.inside-bet-toolbar strong { margin-left: auto; color: #f2d67c; font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inside-bet-toolbar .text-button { flex: 0 0 auto; color: #d9c477; font-size: 9px; }
.inside-bet-groups { display: grid; gap: 13px; padding: 0 11px 12px; }
.inside-bet-groups h3 { display: flex; justify-content: space-between; margin: 0 0 6px; color: #aec4b4; font-size: 10px; letter-spacing: .04em; }
.inside-bet-groups h3 small { color: var(--gold); font-size: 9px; }
.inside-buttons { display: flex; flex-wrap: wrap; gap: 3px; max-height: 130px; overflow: auto; padding-right: 3px; }
.bet-button.combo { min-height: 25px; padding: 3px 5px; color: #bfe0c9; border-color: rgba(181, 218, 164, .3); background: rgba(18, 75, 51, .75); font-size: 8px; font-weight: 600; }
.bet-button.combo.is-selected { z-index: 4; min-width: 42px; padding-top: 7px; color: #16231b; border-color: #fff0a7; background: linear-gradient(135deg, #fff1aa, #d3ac45); box-shadow: 0 0 0 2px rgba(255,242,170,.3), 0 3px 9px rgba(0,0,0,.38); filter: none; }
.bet-button.combo.is-selected:after { top: 2px; right: 2px; padding: 1px 3px; color: #14251c; background: #fff8d2; font-size: 7px; font-weight: 850; }
.board-note { display: flex; gap: 7px; margin: 12px 14px 3px; color: #9ebbaa; font-size: 9px; }
.board-note span { display: grid; flex: 0 0 auto; width: 14px; height: 14px; place-items: center; color: #0c2b1d; background: #a5c88e; border-radius: 50%; font-weight: 800; }
.bet-slip { margin-top: 16px; }
.bet-slip-heading { align-items: center; padding-bottom: 11px; border-bottom: 1px solid rgba(215,189,105,.11); }
.bet-count { color: #738a7d; font-size: 10px; }
.bet-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px 18px 17px; }
.empty-bets { grid-column: 1 / -1; padding: 15px; color: #768b80; border: 1px dashed rgba(215,189,105,.16); border-radius: 6px; font-size: 11px; text-align: center; }
.bet-line { display: grid; grid-template-columns: minmax(0,1fr) auto 22px; align-items: center; gap: 6px; min-width: 0; padding: 7px 8px; color: #afc1b6; border: 1px solid rgba(215,189,105,.13); border-radius: 5px; background: rgba(255,255,255,.025); font-size: 10px; }
.bet-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bet-line b { color: #f0d980; font-variant-numeric: tabular-nums; }
.remove-bet { display: grid; width: 21px; height: 21px; place-items: center; color: #bb837f; border: 0; border-radius: 50%; background: rgba(186,62,73,.12); font-size: 16px; line-height: 1; }
.remove-bet:hover { color: #fff; background: var(--red); }
.roulette-footer-note { display: flex; justify-content: center; gap: 8px; padding: 22px 8px 2px; color: #71867a; font-size: 10px; text-align: center; }
.roulette-footer-note span { color: var(--gold); }
.confetti-canvas { position: absolute; z-index: 8; inset: 0; display: none; width: 100%; height: 100%; pointer-events: none; }
.win-overlay { position: fixed; z-index: 30; inset: 0; display: grid; visibility: hidden; place-items: center; padding: 20px; opacity: 0; background: rgba(3, 10, 8, .75); backdrop-filter: blur(6px); transition: opacity .2s ease, visibility .2s ease; }
.win-overlay.is-open { visibility: visible; opacity: 1; }
.win-dialog { position: relative; width: min(100%, 370px); padding: 32px 27px 25px; border: 1px solid rgba(235,210,132,.5); border-radius: 13px; background: linear-gradient(145deg, #18392e, #0b1a17); box-shadow: 0 25px 80px rgba(0,0,0,.5); text-align: center; transform: translateY(10px) scale(.98); transition: transform .25s ease; }
.win-overlay.is-open .win-dialog { transform: translateY(0) scale(1); }
.win-close { position: absolute; top: 10px; right: 12px; display: grid; width: 27px; height: 27px; place-items: center; color: #a5b4aa; border: 0; border-radius: 50%; background: transparent; font-size: 21px; }
.win-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.win-icon { display: grid; width: 48px; height: 48px; place-items: center; margin: 0 auto 15px; color: #17241b; border: 2px solid #fff0a9; border-radius: 50%; background: linear-gradient(135deg, #fff0a6, #bd9030); font-size: 24px; }
.win-dialog .eyebrow { margin-bottom: 4px; }
.win-dialog h2 { margin: 0 0 2px; color: #fff2b5; font: 700 27px Georgia, serif; }
.win-profit { display: block; color: #73df9e; font-size: 33px; font-variant-numeric: tabular-nums; }
.win-dialog p { margin: 7px 0 17px; color: #a3b6aa; font-size: 11px; }
.win-stats { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; border-top: 1px solid rgba(215,189,105,.17); border-bottom: 1px solid rgba(215,189,105,.17); }
.win-stats span { display: grid; gap: 3px; padding: 10px 5px; }
.win-stats span + span { border-left: 1px solid rgba(215,189,105,.17); }
.win-stats small { color: #82978a; font-size: 9px; }
.win-stats b { color: #fff2bd; font-size: 12px; font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
    .roulette-layout { grid-template-columns: 1fr; }
    .roulette-wheel-panel { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(330px, 1fr); }
    .wheel-controls { display: flex; flex-direction: column; justify-content: center; border-top: 0; border-left: 1px solid rgba(215,189,105,.13); }
    .wheel-stage { min-height: 380px; }
}
@media (max-width: 650px) {
    .roulette-shell { padding: 12px; border-radius: 10px; }
    .game-mode .roulette-shell { padding: 11px 9px 25px; }
    .game-chrome { flex-wrap: wrap; gap: 10px; }
    .dealer-status { order: 3; flex-basis: 100%; }
    .game-utilities { width: 100%; margin-left: 0; align-items: end; justify-content: stretch; gap: 6px; }
    .utility-control { flex: 1 1 86px; min-width: 0; }
    .utility-button { width: 100%; padding-inline: 6px; }
    .utility-link, .utility-reset { width: auto; flex: 0 0 auto; }
    .game-brand b { font-size: 12px; }
    .roulette-topline { display: block; }
    .roulette-session-actions { justify-content: start; margin-top: 15px; }
    .roulette-wheel-panel { display: block; }
    .wheel-controls { border-top: 1px solid rgba(215,189,105,.13); border-left: 0; }
    .wheel-stage { min-height: 0; padding: 25px 15px 20px; }
    .wheel-frame { width: min(83vw, 330px); }
    .table-surface { margin: 0 7px; padding: 8px 5px 9px; }
    .number-board { grid-template-columns: 27px minmax(0, 1fr) 27px; }
    .number-grid, .column-board { grid-template-rows: repeat(3, minmax(33px,1fr)); }
    .bet-button { min-height: 33px; font-size: 9px; }
    .bet-button.zero { font-size: 13px; }
    .outside-board, .dozen-board { grid-template-columns: 27px repeat(6, minmax(0,1fr)) 27px; }
    .dozen-board { grid-template-columns: 27px repeat(3, minmax(0,1fr)) 27px; }
    .outside-board .bet-button { min-height: 38px; padding: 2px 1px; font-size: 7px; }
    .inside-bet-picker { margin-left: 7px; margin-right: 7px; }
    .inside-bet-picker summary span { display: none; }
    .inside-bet-toolbar { align-items: flex-start; flex-direction: column; gap: 5px; padding-inline: 9px; }
    .board-note { margin-left: 7px; margin-right: 7px; }
    .board-heading, .bet-slip-heading { padding-left: 10px; padding-right: 10px; }
    .result-history { margin-left: 7px; margin-right: 7px; gap: 8px; }
    .result-history-title small { display: none; }
    .bet-list { grid-template-columns: repeat(2, minmax(0,1fr)); padding-left: 10px; padding-right: 10px; }
    .wheel-control-row { display: grid; grid-template-columns: 1fr 1fr 1fr; }
    .table-total { grid-column: 1 / -1; margin-bottom: 2px; }
    .wheel-control-row .button:last-child { grid-column: span 1; }
}
@media (max-width: 390px) {
    .roulette-topline h1 { font-size: 31px; }
    .balance-display { min-width: 82px; padding: 5px; }
    .balance-display b { font-size: 13px; }
    .chip { width: 53px; height: 53px; min-width: 53px; font-size: 13px; }
    .number-board { grid-template-columns: 23px minmax(0,1fr) 23px; }
    .number-grid, .column-board { grid-template-rows: repeat(3, minmax(29px,1fr)); }
    .bet-button { min-height: 29px; font-size: 8px; }
    .bet-button.is-selected:not(.combo):after { display: none; }
    .outside-board, .dozen-board { grid-template-columns: 23px repeat(6, minmax(0,1fr)) 23px; }
    .dozen-board { grid-template-columns: 23px repeat(3, minmax(0,1fr)) 23px; }
    .outside-board .bet-button { min-height: 34px; font-size: 6px; }
    .bet-list { grid-template-columns: 1fr; }
}

/* The live client follows the compact roulette_lt composition: header and
   controls first, wheel beside the chip controls, then a full-width table. */
body.game-mode {
    overflow-x: hidden;
}

body.game-mode button,
body.game-mode a {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

body.game-mode .roulette-shell {
    width: min(100%, 1180px);
    margin-inline: auto;
}

body.game-mode .game-header-balance {
    display: grid;
    min-width: 104px;
    gap: 1px;
    padding: 7px 11px;
    border: 1px solid rgba(215,189,105,.34);
    border-radius: 6px;
    background: rgba(255,255,255,.025);
    text-align: right;
}

body.game-mode .game-header-balance span {
    color: #9ba99f;
    font-size: 8px;
    line-height: 1.1;
}

body.game-mode .game-header-balance b {
    color: #fff1b5;
    font-size: 17px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

body.game-mode .roulette-topline {
    padding: 8px 0 14px;
}

body.game-mode .roulette-topline .eyebrow,
body.game-mode .roulette-topline h1,
body.game-mode .roulette-session-actions {
    display: none;
}

body.game-mode .roulette-topline p {
    margin: 0;
    color: #e6d49e;
    font-size: 12px;
}

body.game-mode .roulette-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

body.game-mode .roulette-wheel-panel {
    display: grid;
    grid-template-columns: minmax(330px, .86fr) minmax(430px, 1.14fr);
    overflow: hidden;
}

body.game-mode .wheel-stage {
    min-height: 470px;
    padding: 24px 26px 21px;
}

body.game-mode .wheel-frame {
    width: min(100%, 420px);
    scroll-margin-block: 90px;
}

body.game-mode .wheel-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 30px;
    border-top: 0;
    border-left: 1px solid rgba(215,189,105,.13);
}

body.game-mode .chip-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 8px;
    max-width: 480px;
    margin: 17px 0 26px;
}

body.game-mode .chip {
    width: 62px;
    height: 62px;
    min-width: 62px;
}

body.game-mode .wheel-control-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas:
        "repeat repeat"
        "total total"
        "clear spin";
    gap: 8px;
}

body.game-mode .table-total {
    grid-area: total;
    min-width: 0;
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid rgba(215,189,105,.25);
    border-bottom: 1px solid rgba(215,189,105,.25);
}

body.game-mode #repeat-bet { grid-area: repeat; }
body.game-mode #clear-bets { grid-area: clear; }
body.game-mode #spin-button { grid-area: spin; }

body.game-mode .wheel-control-row .button {
    min-height: 42px;
    font-size: 11px;
}

body.game-mode #spin-button {
    color: #102819;
    border-color: #e5c967;
    background: linear-gradient(135deg, #fff0ab, #d6ab3c);
    box-shadow: 0 7px 20px rgba(216,171,60,.15);
}

body.game-mode #spin-button:hover {
    color: #102819;
    background: linear-gradient(135deg, #fff7ce, #e5bd53);
}

body.game-mode #spin-button:disabled {
    cursor: wait;
    opacity: .68;
    filter: saturate(.68);
    box-shadow: none;
}

body.game-mode .roulette-announcement {
    margin-bottom: 16px;
}

/* A reduced-motion preference must not collapse the game animation. The
   result is deliberately held until the 10-second wheel/ball sequence ends. */
@media (prefers-reduced-motion: reduce) {
    body.game-mode .wheel-frame.is-css-spinning .wheel-ball {
        animation-duration: var(--wheel-spin-duration, 10000ms) !important;
    }
    body.game-mode #wheel-disc,
    body.game-mode .ball-path {
        transition-duration: var(--wheel-spin-duration, 10000ms) !important;
    }
}

@media (max-width: 800px) and (min-width: 651px) {
    body.game-mode .roulette-shell {
        padding-inline: 18px;
    }
    body.game-mode .roulette-wheel-panel {
        grid-template-columns: minmax(270px, .9fr) minmax(320px, 1.1fr);
    }
    body.game-mode .wheel-stage {
        min-height: 400px;
        padding-inline: 17px;
    }
    body.game-mode .wheel-controls {
        padding-inline: 19px;
    }
    body.game-mode .chip-row {
        gap: 9px 5px;
    }
    body.game-mode .chip {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }
}

@media (max-width: 650px) {
    body.game-mode .roulette-shell {
        padding: 12px max(10px, env(safe-area-inset-left)) calc(27px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
    }

    body.game-mode .game-chrome {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        min-height: 0;
        padding-bottom: 11px;
    }

    body.game-mode .game-brand {
        min-width: 0;
    }

    body.game-mode .game-brand b {
        font-size: 13px;
    }

    body.game-mode .game-brand small {
        font-size: 7px;
    }

    body.game-mode .game-header-balance {
        grid-column: 2;
        min-width: 88px;
        padding: 6px 8px;
    }

    body.game-mode .game-header-balance b {
        font-size: 15px;
    }

    body.game-mode .dealer-status {
        grid-column: 1 / -1;
        order: 3;
        justify-content: space-between;
        min-width: 0;
        font-size: 9px;
    }

    body.game-mode .game-utilities {
        grid-column: 1 / -1;
        order: 4;
        width: 100%;
        margin-left: 0;
        align-items: end;
        justify-content: stretch;
    }

    body.game-mode .utility-control {
        flex: 1 1 100px;
        min-width: 0;
    }

    body.game-mode .utility-button {
        width: 100%;
        min-height: 33px;
    }

    body.game-mode .utility-link,
    body.game-mode .utility-reset {
        width: auto;
        flex: 0 0 auto;
    }

    body.game-mode .roulette-topline {
        padding: 10px 0 12px;
    }

    body.game-mode .roulette-topline p {
        font-size: 11px;
    }

    body.game-mode .roulette-announcement {
        margin-bottom: 13px;
        padding: 8px 9px;
        font-size: 9px;
    }

    body.game-mode .roulette-wheel-panel {
        display: block;
    }

    body.game-mode .wheel-stage {
        min-height: 0;
        padding: 20px 9px 18px;
    }

    body.game-mode .wheel-frame {
        width: min(86vw, 350px);
    }

    body.game-mode .wheel-controls {
        padding: 18px 10px 17px;
        border-top: 1px solid rgba(215,189,105,.13);
        border-left: 0;
    }

    body.game-mode .chip-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px 4px;
        max-width: none;
        margin: 14px 0 19px;
    }

    body.game-mode .chip {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 14px;
    }

    body.game-mode .wheel-control-row {
        gap: 7px;
    }

    body.game-mode .wheel-control-row .button {
        min-height: 43px;
    }

    body.game-mode .table-surface {
        margin: 0;
        padding: 8px 6px 10px;
        overflow: hidden;
    }

    body.game-mode .number-board {
        grid-template-columns: 31px minmax(0, 1fr) 31px;
        gap: 2px;
    }

    body.game-mode .number-grid,
    body.game-mode .column-board {
        grid-template-rows: repeat(3, minmax(40px, 1fr));
        grid-auto-columns: minmax(0, 1fr);
        gap: 2px;
    }

    body.game-mode .bet-button {
        min-height: 40px;
        padding: 3px 1px;
        font-size: 11px;
    }

    body.game-mode .bet-button.zero {
        min-height: 124px;
        font-size: 15px;
    }

    body.game-mode .dozen-board,
    body.game-mode .outside-board {
        grid-template-columns: 31px repeat(3, minmax(0, 1fr)) 31px;
        gap: 2px;
    }

    body.game-mode .outside-board {
        grid-template-columns: 31px repeat(6, minmax(0, 1fr)) 31px;
    }

    body.game-mode .outside-board .bet-button {
        min-height: 43px;
        font-size: 8px;
    }

    body.game-mode .inside-bet-picker {
        margin-inline: 0;
    }

    body.game-mode .board-note {
        margin-inline: 0;
    }

    body.game-mode .board-heading,
    body.game-mode .bet-slip-heading {
        padding-inline: 8px;
    }

    body.game-mode .result-history {
        margin-inline: 0;
    }

    body.game-mode .bet-list {
        padding-inline: 8px;
    }
}

@media (max-width: 390px) {
    body.game-mode .roulette-shell {
        padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right));
    }

    body.game-mode .game-brand b {
        font-size: 12px;
    }

    body.game-mode .game-header-balance {
        min-width: 82px;
    }

    body.game-mode .game-header-balance span {
        font-size: 7px;
    }

    body.game-mode .number-board {
        grid-template-columns: 29px minmax(0, 1fr) 29px;
    }

    body.game-mode .number-grid,
    body.game-mode .column-board {
        grid-template-rows: repeat(3, minmax(38px, 1fr));
    }

    body.game-mode .bet-button {
        min-height: 38px;
        font-size: 10px;
    }

    body.game-mode .bet-button.zero {
        min-height: 118px;
    }

    body.game-mode .dozen-board,
    body.game-mode .outside-board {
        grid-template-columns: 29px repeat(3, minmax(0, 1fr)) 29px;
    }

    body.game-mode .outside-board {
        grid-template-columns: 29px repeat(6, minmax(0, 1fr)) 29px;
    }

    body.game-mode .outside-board .bet-button {
        min-height: 41px;
        font-size: 7px;
    }

    body.game-mode .chip {
        width: 58px;
        height: 58px;
        min-width: 58px;
    }
}

/* Match the Roulette_LT phone composition: keep the wheel compact enough for
   the controls to remain in the first viewport, while widening the playable
   centre of the table. */
@media (max-width: 520px) {
    body.game-mode .wheel-frame {
        width: min(76vw, 280px);
    }

    body.game-mode .wheel-result {
        inset: 35%;
    }

    body.game-mode .wheel-result strong {
        font-size: clamp(21px, 7vw, 28px);
    }

    body.game-mode .wheel-result span {
        margin-top: 3px;
        font-size: 7px;
    }

    body.game-mode .number-board {
        grid-template-columns: 19px minmax(0, 1fr) 30px;
    }

    body.game-mode .number-grid,
    body.game-mode .column-board {
        grid-template-rows: repeat(3, minmax(39px, 1fr));
    }

    body.game-mode .bet-button.number {
        font-size: 13px;
    }

    body.game-mode .dozen-board {
        grid-template-columns: 19px repeat(3, minmax(0, 1fr)) 30px;
    }

    body.game-mode .outside-board {
        grid-template-columns: 19px repeat(6, minmax(0, 1fr)) 30px;
    }
}

@media (max-width: 360px) {
    body.game-mode .number-board {
        grid-template-columns: 16px minmax(0, 1fr) 26px;
    }

    body.game-mode .number-grid,
    body.game-mode .column-board {
        grid-template-rows: repeat(3, minmax(35px, 1fr));
    }

    body.game-mode .bet-button.number {
        font-size: 12px;
    }

    body.game-mode .bet-button {
        min-height: 35px;
    }

    body.game-mode .bet-button.zero {
        min-height: 106px;
    }

    body.game-mode .dozen-board {
        grid-template-columns: 16px repeat(3, minmax(0, 1fr)) 26px;
    }

    body.game-mode .outside-board {
        grid-template-columns: 16px repeat(6, minmax(0, 1fr)) 26px;
    }
}

/* Tablet/small-browser widths keep the same two-column player-side rhythm as
   Roulette_LT; only true phone widths collapse the controls below the wheel. */
@media (min-width: 521px) and (max-width: 650px) {
    body.game-mode .roulette-wheel-panel {
        display: grid;
        grid-template-columns: minmax(190px, .92fr) minmax(0, 1fr);
    }

    body.game-mode .wheel-stage {
        display: grid;
        min-height: 0;
        padding: 20px 9px 18px;
    }

    body.game-mode .wheel-frame {
        width: min(100%, 248px);
    }

    body.game-mode .wheel-controls {
        padding: 18px 14px 17px;
        border-top: 0;
        border-left: 1px solid rgba(215,189,105,.13);
    }

    body.game-mode .chip-row {
        gap: 8px 4px;
    }

    body.game-mode .chip {
        width: 52px;
        height: 52px;
        min-width: 52px;
        font-size: 13px;
    }
}
