:root { font-family: Inter, system-ui, sans-serif; color: #f0f6f2; background: #071a15; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% -10%, #164735, transparent 35%), #071a15; }
.brand { font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
.account, .eyebrow, .footnote { color: #93b5a5; }
.page { max-width: 1480px; margin: 0 auto; padding: 36px 28px 80px; }
.page.game-page { padding-top: 18px; }
.page.standalone { min-height: 100vh; padding-top: 10vh; }
.app-frame { min-height: 100vh; }
.sidebar { position: fixed; z-index: 5; top: 16px; left: 16px; bottom: 16px; width: 260px; display: flex; flex-direction: column; padding: 24px 12px; border: 1px solid #0c4637; border-radius: 24px; background: linear-gradient(160deg, #001c16f5, #00120eee); box-shadow: 0 20px 55px #0008; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 4px 12px 30px; }
.brand-mark { font-size: 66px; line-height: .8; font-weight: 1000; font-style: italic; letter-spacing: -.15em; color: #3cf069; text-shadow: 0 4px 20px #07c45955; }
.sidebar-brand strong { display: block; color: white; font-size: 26px; letter-spacing: -.05em; }
.sidebar-brand small { display: block; margin-top: 4px; color: #d6e2db; white-space: nowrap; font-size: 11px; }
.sidebar nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 19px; width: 100%; min-height: 58px; padding: 11px 18px; border: 1px solid transparent; border-radius: 16px; background: transparent; color: #e1ebe6; text-align: left; font-weight: 600; font-size: 16px; }
.nav-item svg { width: 27px; height: 27px; flex: none; color: #a9c0b5; }
.nav-item:hover { background: #104633; }
.nav-item:disabled, .nav-item:disabled:hover { border-color: #30443c; background: #24352edb; color: #81958a; box-shadow: none; cursor: not-allowed; }
.nav-item:disabled svg { color: #778a80; }
.nav-item.selected { border-color: #078b50; background: linear-gradient(100deg, #08bb66, #063c2d 23%, #00251c); color: white; box-shadow: inset 5px 0 #3ff07d; }
.nav-item.selected svg { color: #b1ffd2; }
.nav-logout { margin-top: auto; border-top: 1px solid #1a4b3c; border-radius: 0; color: #ffb2ae; }
.nav-logout svg { color: #ff9b95; }
.app-main { min-height: 100vh; margin-left: 292px; background: linear-gradient(180deg, #001b14bb 0, #001b1466 260px, #001b14ef 100%), url('../roulette-home.png') center top / cover fixed, #001b14; }
.balance-chip { display: flex; align-items: center; gap: 16px; min-height: 58px; border: 1px solid #124b3b; border-radius: 19px; background: #001c18dd; padding: 10px 20px; }
.balance-chip { border-color: transparent; background: #001c1888; font-size: 19px; }
.coin-icon { color: #ffd34a; font-size: 30px; line-height: 1; }
.account-chip { min-width: 210px; }
.account-chip { color: #f0f6f2; font-weight: 500; }
.account-chip:hover { border-color: #2a8a63; background: #0b3c2c; }
.account-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 1100px; }
.account-forms .panel { max-width: none; padding: 22px; }
.account-forms h2 { margin: 0; font-size: 20px; }
.account-forms .footnote { margin: 0; }
.account-avatar { display: grid; place-items: center; width: 33px; height: 33px; border: 2px solid #82b6a4; border-radius: 50%; }
.account-avatar svg { width: 25px; height: 25px; }
.account-chevron { margin-left: auto; font-size: 22px; }
.home-page { max-width: 1540px; padding-top: 115px; }
.home-layout { display: grid; grid-template-columns: minmax(360px, .96fr) minmax(450px, 1.04fr); gap: 18px; align-items: stretch; }
.home-new-card, .home-panel { border: 1px solid #098c4e; border-radius: 22px; background: linear-gradient(150deg, #00271cdd, #001b14ee); box-shadow: 0 18px 46px #0009; }
.home-new-card { display: flex; flex-direction: column; justify-content: flex-start; min-height: 640px; padding: 32px; }
.home-new-card h1 { margin: 0 0 8px; color: white; font-size: clamp(29px, 3vw, 43px); }
.home-new-card p { margin: 0; color: #bfd1c8; }
.home-new-form { display: grid; gap: 18px; margin: 34px 0 18px; }
.home-input-card { display: flex; align-items: center; gap: 22px; padding: 24px; border: 1px solid #1a6747; border-radius: 17px; background: #001b16bb; color: white; font-size: 17px; }
.home-input-icon { width: 66px; flex: none; color: #ffd465; font-size: 45px; line-height: 1; text-align: center; }
.home-input-card > span:last-child { flex: 1; min-width: 0; }
.home-input-card input, .home-input-card select { width: 100%; margin-top: 9px; padding: 11px 16px; border: 1px solid #3c8062; border-radius: 12px; background: #001b16; color: white; font-size: 25px; font-weight: 700; }
.start-session { width: 100%; min-height: 72px; margin-top: 22px; border: 1px solid #62fa6a; border-radius: 36px; background: linear-gradient(105deg, #e2ea6d, #05bc70 42%, #02d390); color: white; font-size: 22px; box-shadow: 0 12px 28px #00a75d44; }
.start-session:disabled { border-color: #56635d; background: #414b46; color: #b7c0b9; box-shadow: none; opacity: 1; cursor: not-allowed; }
.home-right { display: grid; align-content: start; gap: 16px; }
.home-panel { padding: 22px; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.home-section-heading h2 { margin: 0; color: white; font-size: 25px; letter-spacing: -.035em; }
.device-note { display: flex; align-items: center; gap: 9px; color: #c7dcd0; font-size: 13px; white-space: nowrap; }
.device-note i { width: 13px; height: 13px; border-radius: 50%; background: #00da78; }
.home-active-card { position: relative; margin-top: 12px; padding: 18px 22px; overflow: hidden; border: 1px solid #168b51; border-radius: 17px; background: #003121a8; }
.home-active-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 8px; background: #3eea68; }
.active-card-title { display: flex; justify-content: space-between; align-items: center; padding-left: 10px; font-size: 24px; }
.users-layout { display: grid; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); align-items: start; gap: 18px; }
.users-layout .settings-panel { display: grid; gap: 14px; }
.users-layout .settings-panel h2, .users-list h2 { margin: 0; }
.users-layout label, .managed-user-edit label { display: grid; gap: 6px; }
.users-layout input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #397f5d; border-radius: 9px; background: #061f18; color: white; font: inherit; }
.users-list { display: grid; gap: 12px; }
.managed-user { padding: 14px; border: 1px solid #326b50; border-radius: 12px; background: #092a20; }
.managed-user-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.managed-user-head > div { display: grid; gap: 3px; min-width: 0; }
.managed-user-head small { color: #abc5b5; overflow-wrap: anywhere; }
.managed-user-state { padding: 5px 9px; border-radius: 20px; background: #12774d; font-size: 12px; white-space: nowrap; }
.managed-user-state.blocked { background: #873443; }
.managed-user .footnote { margin: 8px 0; }
.managed-user details { margin: 10px 0; }
.managed-user summary { cursor: pointer; }
.managed-user-edit { display: grid; gap: 10px; margin-top: 12px; }
@media (max-width: 850px) { .users-layout { grid-template-columns: 1fr; } }
.users-heading { align-items: center; }
.users-heading .footnote { margin: 6px 0 0; }
.users-directory { padding: 0; overflow: hidden; }
.users-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 18px; border-bottom: 1px solid #285b47; }
.users-search { display: grid; gap: 5px; flex: 1 1 240px; max-width: 380px; color: #b7d0c3; font-size: 12px; }
.users-search input, .user-modal input { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid #397f5d; border-radius: 9px; background: #061f18; color: white; font: inherit; }
#users-selected-count { margin-left: auto; color: #b7d0c3; white-space: nowrap; }
.users-directory #users-message { margin: 0; padding: 0 18px; }
.users-directory #users-message:not(:empty) { padding-top: 12px; }
.users-table-wrap { width: 100%; overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; min-width: 820px; text-align: left; }
.users-table th, .users-table td { padding: 13px 16px; border-bottom: 1px solid #214b3a; white-space: nowrap; }
.users-table th { color: #afc8b9; font-size: 12px; font-weight: 600; background: #092a20; }
.users-table td { font-size: 14px; }
.users-table tr:hover td { background: #103a2c; }
.users-table tr[hidden] { display: none; }
.users-table input[type=checkbox] { width: 17px; height: 17px; accent-color: #10c77d; }
.users-table td:nth-child(2) { display: flex; align-items: center; gap: 10px; }
.user-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #126746; color: white; font-weight: 700; }
.user-self { color: #b3cabe; }
.user-row-action { min-height: 34px; padding: 5px 12px; }
.users-directory > .footnote { padding: 0 18px 14px; }
.user-modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: #000b; }
.user-modal { display: grid; gap: 15px; width: min(100%, 470px); max-height: 90vh; overflow: auto; padding: 24px; background: #08271e; }
.user-modal-head, .user-modal-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.user-modal-head h2 { margin: 0; }
.user-modal label { display: grid; gap: 6px; }
.user-modal-actions { justify-content: end; }
.page.users-page { width: 100%; max-width: none; margin: 0; padding: 28px 30px 80px; }
.users-page .users-heading { margin-bottom: 20px; }
.users-page .users-heading h1 { margin: 0; }
.users-page .users-directory { width: 100%; max-width: none; border: 0; border-top: 1px solid #285341; border-radius: 0; background: #061e18d9; box-shadow: none; }
.users-page .users-toolbar { align-items: center; gap: 8px; padding: 12px 4px 22px; border-bottom: 0; }
.users-page .users-toolbar button { min-height: 38px; padding: 7px 12px; border-radius: 7px; font-size: 13px; }
.users-page .users-toolbar #users-add { background: transparent; color: #44e7a0; border: 1px solid transparent; }
.users-page .users-toolbar #users-add:hover { background: #0d4430; }
.users-page .users-toolbar .users-search { flex: 0 1 260px; max-width: 300px; margin-left: auto; }
.users-page .users-toolbar .users-search input { min-height: 36px; }
.users-page #users-selected-count { margin-left: 8px; font-size: 13px; }
.users-page .users-table-wrap { overflow-x: auto; }
.users-page .users-table { width: 100%; min-width: 0; table-layout: fixed; }
.users-page .users-table th, .users-page .users-table td { padding: 10px 12px; border-bottom: 1px solid #315545; overflow: hidden; text-overflow: ellipsis; }
.users-page .users-table th { background: transparent; color: #b8d0c3; font-weight: 500; }
.users-page .users-table td { background: #08251c66; }
.users-page .users-table td:nth-child(2) { display: table-cell; }
.users-page .users-table th:first-child { width: 46px; }
.users-page .users-table th:nth-child(2) { width: 25%; }
.users-page .users-table th:nth-child(3) { width: 29%; }
.users-page .users-table th:nth-child(4) { width: 14%; }
.users-page .users-table th:nth-child(5) { width: 20%; }
.users-page .users-table th:last-child { width: 90px; }
.users-page .user-avatar { display: inline-grid; margin-right: 9px; vertical-align: middle; }
.users-page .users-directory > .footnote { padding: 12px 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 900px) { .page.users-page { padding: 22px 14px 60px; } .users-page .users-table { min-width: 780px; } .users-page .users-toolbar .users-search { flex-basis: 100%; max-width: none; margin-left: 0; } }
.active-card-device { margin-left: auto; color: #b6d4c5; font-size: 13px; font-weight: 600; text-align: right; }
.active-card-meta { display: grid; grid-template-columns: 1.6fr .7fr 1fr; gap: 10px; margin: 18px 0 14px; padding: 0 10px 14px; border-bottom: 1px solid #285b47; }
.active-card-meta span { display: grid; gap: 5px; color: #bdcec4; font-size: 13px; }
.active-card-meta strong { color: white; font-size: 18px; font-weight: 500; }
.positive { color: #00ec8c !important; }
.negative { color: #ff5266 !important; }
.active-card-actions { display: flex; gap: 12px; }
.active-card-actions button { flex: 1; min-width: 0; }
.active-card-actions .ghost { border-color: #d4be55; }
.text-button { padding: 7px; background: none; color: #e3efe8; font-size: 14px; }
.completed-table { border: 1px solid #124635; border-radius: 13px; overflow: hidden; }
.completed-head, .completed-row { display: grid; grid-template-columns: .8fr 1.55fr .6fr 1fr 16px; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; }
.completed-head { color: #b8d0c3; font-size: 13px; }
.completed-row { border-top: 1px solid #24533e; border-radius: 0; background: #001e17aa; color: white; text-align: left; font-size: 14px; font-weight: 400; }
.completed-row:hover { background: #104c34; }
.completed-row strong { font-weight: 700; }
.info-explanations h2 { margin-top: 0; }
.info-rounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.info-rounds > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #315b47; }
.info-rounds strong, .info-explanation-grid h3 { color: #4ee0a0; }
.info-explanations { margin-top: 32px; }
.info-explanation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.info-explanation-grid .panel { max-width: none; padding: 20px; }
.info-explanation-grid h3 { margin: 0 0 10px; }
.info-explanation-grid p { margin: 0; color: #b9cec2; }
.game-picker-row { display: flex; align-items: stretch; gap: 10px; }
.game-picker-row .session { flex: 1; }
.game-picker-row > .ghost { white-space: nowrap; }
.game-page-heading { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 15px; min-height: 88px; margin: 0 0 12px; padding: 10px 18px; border-bottom: 1px solid #1a4b3c; background: #001b16f2; backdrop-filter: blur(14px); }
.game-heading-title { display: flex; align-items: center; gap: 20px; }
.game-heading-title .session-balance { min-height: 54px; gap: 11px; padding: 8px 18px; border-color: #be9c43; background: linear-gradient(120deg, #173b2a, #09251c); box-shadow: 0 0 18px #c69d3540; font-size: 23px; white-space: nowrap; }
.game-heading-title .session-balance .coin-icon { font-size: 30px; }
.game-page-heading h1 { margin: 0; font-size: 30px; }
.game-page-heading p { margin: 2px 0 0; color: #eef8ef; font-size: 17px; font-weight: 700; }
.game-page-heading .game-live { margin-left: 0; color: #25da8b; font-size: 14px; }
.game-heading-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.game-heading-actions > button, .game-heading-actions #complete-header-slot button { min-height: 46px; }
.game-heading-actions #session-settings-open { display: flex; align-items: center; gap: 8px; }
.game-heading-actions #session-settings-open svg { width: 21px; height: 21px; color: #efcb65; }
.game-page-heading #complete-header-slot button { min-width: 170px; }
.game-page-heading #complete-session { border: 1px solid #e0bc5c; background: linear-gradient(120deg, #7a5420, #bd8533); color: #fff8df; box-shadow: 0 0 14px #c4974b44; }
.game-page-heading #unlink-session { border-color: #739b88; color: #c8ded1; }
.session-settings-dialog { width: min(430px, calc(100vw - 32px)); padding: 24px; border: 1px solid #21885d; border-radius: 18px; background: #0b2b21; color: #f1f8f3; box-shadow: 0 20px 60px #000a; }
.session-settings-dialog::backdrop { background: #000a; }
.session-settings-dialog form { display: grid; gap: 16px; }
.session-settings-dialog h2 { margin: 0; }
.session-settings-dialog label { display: grid; gap: 7px; }
.session-settings-dialog input, .session-settings-dialog select { width: 100%; padding: 12px; border: 1px solid #4b866a; border-radius: 11px; background: #092019; color: white; font: inherit; }
.session-settings-dialog .heading-actions { justify-content: flex-end; }
.game-live { margin-left: 12px; color: #25da8b; font-size: 14px; }
.game-top-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(115px, 150px) minmax(200px, 260px); gap: 10px; padding: 12px; margin-bottom: 10px; border: 1px solid #078a50; border-radius: 18px; background: #05271df2; }
.game-page .game-top-panel { display: flex; flex-direction: column; gap: 0; padding: 0 16px; }
.game-play-controls, .game-play-middle, .game-play-bottom { display: flex; align-items: center; gap: 18px; padding: 13px 0; border-bottom: 1px solid #235e44; }
.game-play-controls .game-select-label { display: grid; gap: 5px; width: 270px; flex: 0 0 270px; color: #e8f8ed; font-weight: 700; }
.game-play-controls #game-header-actions { display: flex; gap: 10px; margin: 0; }
.game-play-controls #game-header-actions button { min-width: 105px; padding: 11px 20px; border-radius: 24px; color: white; font-weight: 800; box-shadow: inset 0 1px 5px #ffffff45, 0 2px 12px #0006; }
.game-play-controls #start-game, .game-play-controls #resume-game { border: 1px solid #39ee9c; background: linear-gradient(135deg,#23d67b,#005534); }
.game-play-controls #pause-game, .game-play-controls #pause-placeholder { border: 1px solid #ffcf54; background: linear-gradient(135deg,#ffd76b,#574716); }
.game-play-controls #stop-game, .game-play-controls #stop-placeholder { border: 1px solid #ff6573; background: linear-gradient(135deg,#ee4359,#550e23); }
.game-play-controls #game-header-actions button:disabled { opacity: .45; cursor: not-allowed; }
.game-play-middle { align-items: stretch; }
.game-targets { flex: 1 1 55%; min-width: 0; }
.game-targets-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.game-targets-heading button { padding: 6px 12px; }
.game-target-slots { display: grid; grid-template-columns: repeat(12,minmax(26px,1fr)); gap: 5px; }
.game-target-slot { display: grid; place-items: center; min-height: 36px; border: 1px solid #658274; border-radius: 8px; background: #18252a; color: #fff; font-weight: 800; }
.game-target-slot.red { background: #b52339; }.game-target-slot.green { background: #09895b; }.game-target-slot.vacant { color: #729584; background: #0b2c23; }
.game-indicators { display: flex; flex: 1 1 45%; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; min-width: 0; }
.game-indicators .hot-signal-row, .game-indicators .risk-preview, .game-indicators .recent-game-strip { margin: 0; }
.game-indicators .risk-preview { flex-direction: column; gap: 3px; font-size: 11px; }
.game-indicators .recent-game-strip { flex-wrap: nowrap; }
.game-indicators .recent-game-strip i { width: 7px; flex-basis: 7px; height: 27px; }
.a3e-change { padding: 7px 10px; border: 1px solid #397157; border-radius: 10px; color: #9de8bb; font-size: 12px; white-space: nowrap; }
.a3e-change.changed { border-color: #f0ba48; color: #ffdc79; }
.game-play-bottom { align-items: stretch; border-bottom: 0; }
.game-bets { display: flex; align-items: center; gap: 12px; flex: 1 1 55%; min-width: 0; }
.game-bets .game-bet-status { min-width: 135px; padding: 0; gap: 4px; }
.game-bets .game-bet-status strong { padding: 8px; }
.game-bets .game-bet-plan { padding: 0; }
.game-bets .game-bet-steps { margin-top: 9px; }
.game-guidance, .game-net { display: grid; align-content: center; gap: 5px; padding: 9px 14px; border: 1px solid #315f49; border-radius: 12px; background: #0a3024; }
.game-guidance { flex: 1 1 28%; }.game-net { flex: 0 0 170px; }
.game-guidance span, .game-net span, .game-net small { color: #a9cbbc; font-size: 12px; }
.game-guidance strong { font-size: 13px; }.game-net strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.game-net.positive strong { color: #2ee18d; }.game-net.negative strong { color: #ff6473; }
.game-page .game-top-panel .game-action-bar { padding: 0 0 8px; border: 0; }
.game-page .game-top-panel { width: 880px; max-width: 880px; height: 178px; min-height: 178px; padding: 0 12px; overflow: visible; }
.game-page .game-play-row { display: flex; align-items: stretch; gap: 14px; width: max-content; margin-bottom: 10px; }
.game-page .game-play-row .game-top-panel { flex: 0 0 880px; margin-bottom: 0; }
.game-session-balance { display: flex; width: 250px; height: 178px; flex: 0 0 250px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 16px; border: 1px solid #327e59; border-radius: 18px; background: linear-gradient(145deg, #103c2b, #06231b); box-shadow: inset 0 1px 0 #ffffff16; text-align: center; }
.game-session-balance span { color: #e3f6e9; font-size: 15px; font-weight: 750; }
.game-session-balance strong { font-size: 33px; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.game-session-balance small { color: #a8cbb7; font-size: 12px; }
.game-session-balance.won strong { color: #35e58f; }
.game-session-balance.lost strong { color: #ff6675; }
.game-session-balance.even strong { color: #f0d584; }
.game-page .game-play-controls { height: 51px; min-height: 51px; gap: 12px; padding: 4px 0; }
.game-page .game-play-controls .game-select-label { display: flex; align-items: center; gap: 8px; width: 285px; flex-basis: 285px; font-size: 12px; white-space: nowrap; }
.game-page .game-play-controls .game-select-label select { width: 170px; padding: 6px 9px; }
.game-page .game-play-controls #game-header-actions button { min-width: 85px; padding: 7px 13px; font-size: 12px; }
.game-round { margin-left: auto; color: #c4decf; font-size: 12px; white-space: nowrap; }.game-round strong { color: white; font-size: 17px; }
.game-page .game-play-middle { height: 73px; min-height: 73px; gap: 12px; padding: 5px 0; }
.game-page .game-targets { position: relative; display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.game-page .game-targets > strong { width: 88px; font-size: 12px; line-height: 1.1; }
.game-page .game-target-slots { display: flex; gap: 3px; }
.game-page .game-target-slot { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-width: 28px; min-height: 28px; max-width: 28px; max-height: 28px; flex: 0 0 28px; margin: 0; padding: 0; border-radius: 50%; font-size: 12px; line-height: 1; }
.game-page .game-targets > button { padding: 6px 9px; font-size: 11px; }
.game-page .game-targets .copy-feedback { position: absolute; margin-top: 53px; font-size: 10px; }
.game-page .game-target-copy { display: flex; align-self: center; align-items: center; justify-content: center; flex: 0 0 auto; }
.game-page .game-target-copy button { height: 28px; padding: 0 10px; border-radius: 9px; font-size: 11px; white-space: nowrap; }
.game-page .game-target-copy .copy-feedback { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.game-page .game-indicators { flex: 0 0 auto; justify-content: flex-end; gap: 7px; flex-wrap: nowrap; margin-left: auto; }
.game-page .game-indicators .risk-preview > span { display: none; }
.game-page .game-indicators .risk-preview, .game-page .game-indicators .hot-signal-row { white-space: nowrap; }
.game-page .game-indicators .risk-badge, .game-page .game-indicators .hot-signal { padding: 5px 7px; font-size: 11px; }
.game-page .game-outcomes { flex: 0 0 116px; width: 116px; margin-left: auto; }
.game-page .game-outcomes .recent-game-strip { margin: 0; }
.game-page .game-outcomes .recent-game-strip { gap: 3px; }
.game-page .game-outcomes .recent-game-strip span { margin-right: 2px; font-size: 10px; }
.game-page .game-outcomes .recent-game-strip i { box-sizing: border-box; width: 3px; height: 17px; flex: 0 0 3px; margin: 0; padding: 0; border: 0; border-radius: 2px; }
.game-page .game-play-bottom { display: grid; grid-template-columns: 55px 260px 220px; align-items: center; height: 52px; min-height: 52px; justify-content: start; gap: 12px; padding: 5px 0; }
.game-page .game-play-bottom > strong { font-size: 12px; }
.game-page .game-bet-plan { display: flex; align-items: center; gap: 10px; padding: 0; }
.game-page .game-bet-plan > span { display: none; }
.game-page .game-bet-steps { align-items: center; gap: 6px; margin: 0; }
.game-page .game-bet-step { min-width: 70px; padding: 6px 8px; border-color: #586665; background: #303b3d; opacity: .65; }
.game-page .game-bet-step.current { opacity: 1; border-color: #f2d36e; background: #746022; box-shadow: 0 0 0 1px #f2d36e80; }
.game-page .game-bet-step.current strong { font-size: 17px; }
.game-page .game-last-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 220px; min-width: 220px; margin: 0; padding: 7px 13px; border: 1px solid #7caa81; border-radius: 10px; background: #17402e; box-shadow: 0 0 0 1px #2e6a47, 0 2px 12px #0005; white-space: nowrap; }
.game-page .game-last-result span { color: #e2f2e6; font-size: 12px; font-weight: 700; }
.game-page .game-last-result strong { font-size: 19px; }
.game-page .game-last-result.won strong { color: #31de86; }
.game-page .game-last-result.lost strong { color: #ff5d71; }
.game-page .game-bet-wait { display: inline-block; padding: 7px 13px; border: 1px solid #e6bd54; border-radius: 9px; background: #61491e; color: #ffe390; font-size: 15px; }
.game-selection-area { display: grid; grid-template-columns: minmax(175px, .7fr) minmax(240px, 1.3fr); align-items: start; gap: 12px; min-width: 0; }
.game-top-panel .game-selector { padding: 0; border: 0; border-radius: 0; background: transparent; }
.game-top-panel .game-selector h2 { margin-bottom: 5px; font-size: 15px; }
.game-top-panel .game-select-label { max-width: none; gap: 4px; margin: 0; }
.game-top-panel .game-select-label select { padding: 10px; }
.game-selection-area > .detail-section { margin: 0; }
.game-selection-area > .detail-section h2 { margin: 0 0 6px; font-size: 15px; }
.game-selection-area .selection-card { display: grid; gap: 6px; margin: 0; padding: 9px 11px; }
.game-selection-area .selection-card p { margin: 3px 0 0; }
.game-selection-area .selection-card .footnote { display: none; }
.game-selection-area .selection-card button { justify-self: start; padding: 7px 11px; font-size: 12px; }
.game-selection-area .copy-feedback { min-height: 0; margin: 2px 0 0; }
.game-top-panel .game-selector .selection-card { margin: 8px 0 0; }
.game-top-panel .selection-card { background: #092e24; }
.game-bet-status { display: grid; align-content: start; gap: 10px; padding: 8px; color: #cee4d8; font-size: 14px; }
.game-bet-status strong { padding: 12px; border: 1px solid #4e7b63; border-radius: 12px; color: white; font-size: 22px; text-align: center; }
.game-bet-plan { min-width: 0; padding: 8px; color: #cee4d8; font-size: 14px; }
.game-bet-steps { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.game-bet-step { position: relative; min-width: 46px; padding: 10px 5px 6px; border: 1px solid #396b52; border-radius: 9px; background: #0c3325; text-align: center; }
.game-bet-step.current { border-color: #e1c15a; }
.game-bet-step small { position: absolute; top: -9px; left: calc(50% - 9px); display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #478261; border-radius: 50%; background: #123e2b; color: #d1ead9; font-size: 11px; }
.game-bet-step.current small { border-color: #e1c15a; background: #e1c15a; color: #072117; }
.game-bet-step strong { color: white; font-size: 12px; }
.game-action-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 9px; border-top: 1px solid #255c43; }
.game-elapsed { color: #b7d4c2; font-size: 13px; white-space: nowrap; }
.game-elapsed strong { color: white; font-variant-numeric: tabular-nums; }
.game-action-bar #game-header-actions { margin: 0; }
.game-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.game-dashboard { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .95fr); gap: 16px; align-items: start; }
.game-left, .game-right { min-width: 0; }
.game-left { display: grid; gap: 12px; }
.game-left .detail-section:first-child { margin-top: 0; }
.game-selector { padding: 20px 22px; border: 1px solid #39634f; border-radius: 18px; background: #102d23; }
.game-selector h2 { margin: 0 0 14px; }
.game-selector .game-select-label { max-width: none; margin: 0 0 14px; }
#game-header-actions { margin-bottom: 12px; }
.game-selector .selection-card { margin-top: 14px; }
.game-tool-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0; }
.game-tool-row #undo-slot:empty { display: none; }
.game-tool-row #undo-slot button { height: 100%; }
.game-recent { max-width: none; padding: 14px; }
.game-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-section-heading h2 { margin: 0; font-size: 18px; }
.game-section-heading button { padding: 10px 12px; font-size: 13px; }
.game-recent-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; }
.game-recent-numbers { display: flex; flex-wrap: nowrap; align-items: center; gap: 7px; }
.game-recent-numbers .roulette-result { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #81958b; border-radius: 50%; background: #182323; color: white; font-weight: 700; }
.game-recent-numbers .roulette-result.red { background: #bb293e; }
.game-recent-numbers .roulette-result.green { background: #07945e; }
.game-recent-numbers .roulette-result.latest { width: 44px; height: 44px; border-color: #d6eadf; font-size: 17px; }
.game-recent-numbers p { margin: 0; color: #a6c2b2; }
.game-file-actions { display: flex; justify-content: flex-end; gap: 6px; }
.game-file-button { display: flex; min-width: 64px; min-height: 51px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 5px; border: 1px solid #537f69; border-radius: 8px; background: #092b22; color: #effaf3; }
.game-file-button svg { width: 20px; height: 20px; }
.game-file-button small { font-size: 10px; font-weight: 700; }
.game-file-button.danger { border-color: #8b4749; background: #381c20; color: #ff7078; }
.game-file-button:hover:not(:disabled) { filter: brightness(1.2); }
.game-keypad-panel { padding: 14px; border: 1px solid #087d4b; border-radius: 18px; background: #08291ff0; }
.game-keypad-panel > h2 { margin: 0 0 12px; font-size: 19px; }
.game-keypad-panel > .detail-section { margin: 0; }
.game-keypad-panel > .detail-section > h2 { margin: 0 0 6px; font-size: 14px; }
.game-keypad-panel > .detail-section > p { margin: 0 0 10px; color: #b7d4c2; }
.game-keypad-panel > .detail-section > #take-control { margin-top: 12px; }
.game-keypad-panel .game-controls { display: contents; }
.game-keypad-panel .game-controls > h2, .game-keypad-panel .game-controls > p:first-of-type { display: none; }
.game-keypad-panel .roulette-keypad { width: 100%; }
.game-keypad-panel .roulette-key { min-height: 38px; padding: 5px; border-radius: 7px; }
.game-keypad-panel .roulette-keypad { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(10, minmax(38px, auto)); }
.game-keypad-panel .keypad-action { display: block; min-width: 0; grid-row: 8 / span 3; }
.game-keypad-panel .keypad-undo { grid-column: 7 / span 2; }
.game-keypad-panel .keypad-action button { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 4px 1px; font-size: 24px; }
.game-keypad-panel .keypad-action small { font-size: 11px; font-weight: 600; }
.game-keypad-panel .keypad-undo button { border-color: #e9c455; background: #a97808; color: white; }
.game-keypad-panel .keypad-action button:disabled { opacity: .55; }
.game-keypad-panel .roulette-key:disabled { opacity: .75; cursor: not-allowed; }
.game-keypad-panel #keypad-actions { margin-top: 12px; }
.game-keypad-panel #keypad-actions:empty { display: none; }
.game-keypad-panel #keypad-actions button { flex: 1; }
.game-keypad-panel .game-controls details { margin-top: 12px; padding: 12px; border: 1px solid #275942; border-radius: 12px; }
.game-keypad-panel .game-import-always-open { margin-top: 12px; padding: 12px; border: 1px solid #275942; border-radius: 12px; }
.game-keypad-panel .game-import-always-open > h3 { margin: 0 0 8px; color: #d6f4df; font-size: 14px; }
.game-keypad-panel .game-import-always-open #add-history { margin-top: 16px; }
.game-keypad-panel #action-error { margin: 10px 0 0; }
.game-right .availability-panel { max-width: none; padding: 16px; background: #102d23f5; }
.availability-panel h2 { margin: 0 0 7px; font-size: 20px; }
.availability-panel p { margin: 0; color: #a8c7b6; font-size: 13px; }
.availability-panel .info-rounds { grid-template-columns: 1fr; }
.availability-panel .info-rounds > div { padding: 6px 0; font-size: 13px; }
.game-statistics { margin-top: 12px; padding: 16px; border: 1px solid #087d4b; border-radius: 18px; background: #102d23f5; }
.game-statistics h2 { margin: 0 0 14px; font-size: 19px; }
.game-statistics h2 small { color: #a6c2b2; font-size: 12px; font-weight: 400; }
.game-statistics .traffic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-statistics .traffic-card { min-height: 0; }
.game-page .game-statistics .traffic-card { animation: favorable-rise .55s cubic-bezier(.2,.75,.25,1) both; }
.game-page .game-statistics .traffic-card:nth-child(2) { animation-delay: 45ms; }
.game-page .game-statistics .traffic-card:nth-child(3) { animation-delay: 90ms; }
.game-page .game-statistics .traffic-card:nth-child(4) { animation-delay: 135ms; }
@keyframes favorable-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .game-page .game-statistics .traffic-card { animation: none; } }
.game-round-history { min-width: 0; padding: 16px; border: 1px solid #087d4b; border-radius: 18px; background: #102d23f5; }
.game-round-history h2 { margin: 0 0 14px; font-size: 19px; }
.game-round-history > p { color: #b5d1c1; font-size: 13px; }
.game-round-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid #2a5945; }
.game-round-row:last-child { border-bottom: 0; }
.game-round-row div { display: grid; gap: 3px; min-width: 0; }
.game-round-row div strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.game-round-row small { color: #a9c7b5; font-size: 10px; }
.game-round-row > strong { flex: 0 0 auto; font-size: 13px; white-space: nowrap; }
.game-round-row > strong.won { color: #31de86; }.game-round-row > strong.lost { color: #ff5d71; }
.results-dialog { width: min(900px, calc(100vw - 36px)); max-height: min(85vh, 900px); padding: 24px; border: 1px solid #277453; border-radius: 18px; background: #0d3024; color: #d5e9de; box-shadow: 0 20px 60px #0009; }
.results-dialog::backdrop { background: #000b; }
.results-dialog .heading-actions { justify-content: space-between; }
.results-dialog h2 { margin: 0; }
.results-dialog .spin-page-list { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.results-dialog .spin-page-list > div { min-height: 34px; padding: 6px 1px; border-color: #7c8091; border-radius: 2px; background: #202337; }
.results-dialog[open] { display: flex; flex-direction: column; height: min(85vh, 900px); overflow: hidden; }
.results-dialog .heading-actions { flex: none; }
.all-results-scroll { min-height: 0; margin-top: 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #4e8b6b #102d23; }
.all-results-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.all-results-grid .roulette-result { display: grid; place-items: center; min-height: 34px; border: 1px solid #7c8091; background: #202337; color: #f0f5f2; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.all-results-grid .roulette-result.red { color: #ff475b; }
.all-results-grid .roulette-result.green { color: #27de80; }
.roulette-result.red strong { color: #ff5360; }
.roulette-result.green strong { color: #27c26e; }
.roulette-result.black strong { color: #f5f5f5; }
@media (max-width: 1200px) { .game-dashboard { grid-template-columns: 1fr; } }
@media (max-width: 1300px) { .game-selection-area { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .game-top-panel { grid-template-columns: minmax(0, 1fr) minmax(130px, 170px); } .game-bet-plan { grid-column: 1 / -1; } }
@media (max-width: 760px) { .game-top-panel { grid-template-columns: 1fr; } .game-bet-status, .game-bet-plan, .game-action-bar { grid-column: 1; } .game-action-bar, .game-section-heading { flex-wrap: wrap; } .game-statistics .traffic-grid { grid-template-columns: 1fr; } }
.stats-window { color: #b9cec2; }
.traffic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.traffic-card { min-height: 98px; padding: 17px 19px; border: 1px solid #638071; border-radius: 16px; background: #173a30ee; }
.traffic-card.green { border-color: #20d787; }
.traffic-card.amber, .traffic-card.hot { border-color: #ffc35a; }
.traffic-card.red { border-color: #ff6b6b; }
.traffic-label { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; color: #f0f4f1; font-size: 13px; font-weight: 700; }
.traffic-label i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: currentColor; }
.traffic-card.green .traffic-label { color: #20d787; }
.traffic-card.amber .traffic-label, .traffic-card.hot .traffic-label { color: #ffc35a; }
.traffic-card.red .traffic-label { color: #ff6b6b; }
.traffic-card strong { display: block; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.stats-extra { margin-top: 20px; padding: 18px 20px; border: 1px solid #92743c; border-radius: 16px; background: #193a30ee; }
.stats-extra h2 { margin-top: 0; font-size: 17px; color: #ffd78a; }
.stats-extra p { color: #b9cec2; }
.stats-extra .stats-numbers { color: white; font-size: 18px; font-weight: 700; }
.stats-top-ten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; }
.stats-top-ten div { display: grid; grid-template-columns: 40px 50px 1fr; padding: 5px 8px; background: #ffffff0d; }
.stats-lower { margin-top: 20px; }
.panel, .session { background: #102d23; border: 1px solid #285341; border-radius: 20px; }
.panel { max-width: 600px; padding: 36px; }
.eyebrow { text-transform: uppercase; font-size: 12px; letter-spacing: .16em; font-weight: 700; }
h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.045em; margin: 8px 0 18px; }
p { line-height: 1.5; }
.login { margin: 0 auto; }
form, label { display: grid; gap: 10px; }
form { gap: 22px; }
label { color: #cadbd0; font-size: 14px; font-weight: 650; }
input { width: 100%; border: 1px solid #3c6b54; border-radius: 12px; background: #091d16; color: white; padding: 15px; font: inherit; outline-color: #24b57c; }
button { border: 0; border-radius: 12px; background: #09a66f; color: #042017; font: inherit; font-weight: 750; padding: 14px 20px; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button.ghost { background: transparent; border: 1px solid #47715d; color: #e6f4ea; }
.heading, .session, .session-result { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.session-list { display: grid; gap: 14px; }
.session { padding: 20px 24px; }
.session p { margin: 6px 0 0; color: #a0bcae; font-size: 14px; }
.session-button { display: flex; width: 100%; color: inherit; text-align: left; font-weight: inherit; cursor: pointer; }
.session-button:hover, .session-button:focus-visible { border-color: #37bd83; background: #17392c; }
.session-meta { display: block; margin-top: 6px; color: #a0bcae; font-size: 14px; }
.history-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px; margin: 20px 0; border: 1px solid #285341; border-radius: 18px; background: #102d23; }
.history-summary div { display: grid; gap: 5px; }
.history-summary small, .history-summary span, .history-list-heading span { color: #93b5a5; }
.history-summary strong { font-size: 22px; }
.history-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 20px 0; }
.history-toolbar label { min-width: 180px; }
.history-toolbar select { min-height: 47px; padding: 10px 12px; border: 1px solid #3c6b54; border-radius: 12px; background: #102d23; color: white; font: inherit; }
.history-toolbar .danger { border-color: #a46565; color: #ffc0c0; }
.history-select-all { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.history-select-all input, .history-row input { width: 20px; height: 20px; accent-color: #24b57c; cursor: pointer; }
.history-row { display: flex; align-items: center; gap: 14px; }
.history-row .session { flex: 1; }
.history-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.session-result { gap: 18px; }
.badge { border-radius: 99px; padding: 6px 10px; font-size: 12px; background: #2d3c35; color: #d2ded5; }
.badge.active { background: #0c654b; color: #beffdb; }
.error { color: #ff9b9b; }
.empty { padding: 30px; border: 1px dashed #4b6c59; border-radius: 16px; }
.footnote { font-size: 13px; margin-top: 28px; }
.detail-summary { max-width: none; margin-bottom: 28px; }
.detail-summary p { color: #a0bcae; margin-top: 0; }
.metrics { display: flex; flex-wrap: wrap; gap: 55px; }
.metrics div { display: grid; gap: 6px; }
.metrics span { color: #a0bcae; font-size: 13px; }
.metrics strong { font-size: 24px; }
.detail-section { margin-top: 32px; }
.detail-section h2 { font-size: 22px; }
.game-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border: 1px solid #285341; border-radius: 14px; background: #102d23; margin-top: 10px; }
.game-row p { color: #a0bcae; margin: 5px 0 0; font-size: 13px; }
.spin-list { display: flex; flex-wrap: wrap; gap: 7px; }
.spin-list span { min-width: 35px; padding: 8px; text-align: center; border: 1px solid #39634f; border-radius: 7px; background: #102d23; }
.all-spins { margin: 18px 0; padding: 16px; border: 1px solid #39634f; border-radius: 14px; background: #102d23; }
.all-spins summary { cursor: pointer; color: #79e6ac; font-weight: 700; }
.spin-page-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.spin-page-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 7px; }
.spin-page-list > div { display: grid; gap: 3px; text-align: center; padding: 7px; border: 1px solid #39634f; border-radius: 8px; }
.spin-page-list small { color: #a0bcae; }
.selection-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 19px 22px; margin-top: 12px; border: 1px solid #39634f; border-radius: 15px; background: #102d23; }
.selection-card p { color: #a0bcae; margin: 8px 0 0; }
.selection-card .number-list { color: #e8f9ef; font-size: 16px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.selection-card button { white-space: nowrap; }
.game-select-label { display: grid; gap: 8px; max-width: 360px; margin: 18px 0; }
.game-select-label select { border: 1px solid #3c6b54; border-radius: 12px; background: #102d23; color: white; padding: 13px; font: inherit; }
.settings-panel { display: grid; gap: 22px; max-width: 620px; }
.settings-panel select { width: 100%; border: 1px solid #3c6b54; border-radius: 12px; background: #091d16; color: white; padding: 15px; font: inherit; }
.settings-panel .footnote { margin: 0; }
.admin-link { display: block; margin-top: 18px; }
.admin-form { max-width: 920px; gap: 22px; }
.admin-form .panel { max-width: none; }
.admin-form h2 { margin-top: 0; }
.admin-form p { color: #a8c7b6; }
.admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-control label { max-width: 360px; }
.admin-control .footnote { margin: 0; }
#admin-feedback { min-height: 24px; margin: 0; color: #79e6ac; }
#settings-feedback { min-height: 24px; margin: 0; color: #79e6ac; }
.copy-feedback { min-height: 22px; color: #79e6ac; font-size: 13px; }
.testing-notice { border: 1px solid #b08a44; background: #3a301b; color: #ffe0a1; border-radius: 12px; padding: 12px 16px; margin: 0 0 22px; }
.heading-actions, .input-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.game-controls { display: grid; justify-items: start; gap: 16px; padding: 22px; border: 1px solid #39634f; border-radius: 16px; background: #102d23; }
.game-controls p { margin: 0; }
.game-controls label { min-width: 150px; }
.game-controls input { max-width: 150px; }
.game-controls details { width: 100%; }
.game-controls summary { cursor: pointer; color: #79e6ac; margin-bottom: 12px; }
.game-controls textarea { display: block; width: 100%; max-width: 720px; margin-bottom: 12px; border: 1px solid #3c6b54; border-radius: 12px; background: #091d16; color: white; padding: 14px; font: inherit; resize: vertical; }
.game-controls input[type="file"] { max-width: 330px; padding: 11px; }
.game-controls .danger { border-color: #a46565; color: #ffc0c0; }
.keypad-help { color: #a9c8b7; font-size: 14px; }
.roulette-keypad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: min(100%, 520px); }
.roulette-key { min-height: 46px; padding: 8px; border: 1px solid #587364; border-radius: 9px; color: #fff; font-size: 17px; font-variant-numeric: tabular-nums; }
.roulette-key.red { background: #a92e3b; }
.roulette-key.black { background: #202b31; }
.roulette-key.green { background: #087646; }
.roulette-key:hover:not(:disabled) { filter: brightness(1.22); transform: translateY(-1px); }
.roulette-key:focus-visible { outline: 3px solid #f2dc85; outline-offset: 2px; }
.statistics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.statistic-card { display: grid; gap: 8px; align-content: start; padding: 18px 20px; min-height: 118px; border: 1px solid #39634f; border-radius: 15px; background: #102d23; }
.statistic-card span { color: #79e6ac; font-size: 13px; font-weight: 700; }
.statistic-card strong { line-height: 1.45; overflow-wrap: anywhere; }
.statistic-card small { color: #a0bcae; }
@media (max-width: 620px) { .page { padding-top: 28px; } .session { align-items: flex-start; } .session-result { align-items: flex-end; flex-direction: column; gap: 7px; } }
@media (max-width: 620px) { .selection-card { align-items: stretch; flex-direction: column; } }
@media (max-width: 620px) { .history-summary { gap: 4px; padding: 12px; } .history-summary strong { font-size: 15px; } .history-summary small, .history-summary span { font-size: 10px; } .history-row { gap: 8px; } }

/* Juego conserva su disposición de escritorio; en ventanas estrechas se desplaza horizontalmente. */
body:has(.game-page) .app-frame { min-width: 1832px; }
body:has(.game-page) .sidebar { top: 16px; left: 16px; right: auto; bottom: 16px; width: 260px; height: auto; flex-direction: column; justify-content: flex-start; padding: 24px 12px; border-radius: 24px; }
body:has(.game-page) .sidebar-brand, body:has(.game-page) .nav-logout { display: flex; }
body:has(.game-page) .sidebar-brand > span:last-child, body:has(.game-page) .nav-item span { display: block; }
body:has(.game-page) .sidebar nav { display: grid; width: auto; gap: 7px; }
body:has(.game-page) .nav-item { justify-content: flex-start; gap: 19px; width: 100%; min-height: 58px; padding: 11px 18px; }
body:has(.game-page) .app-main { margin-left: 292px; padding-bottom: 0; }
body:has(.game-page) .page.game-page { width: 100%; min-width: 1540px; max-width: none; margin: 0; padding: 0 16px 80px 10px; }
body:has(.game-page) .game-page-heading { width: calc(100% + 26px); margin-left: -10px; }
body:has(.game-page) .game-top-panel { grid-template-columns: minmax(0, 1fr) minmax(115px, 150px) minmax(200px, 260px); }
body:has(.game-page) .game-selection-area { grid-template-columns: minmax(175px, .7fr) minmax(240px, 1.3fr); }
body:has(.game-page) .game-bet-plan { grid-column: auto; }
body:has(.game-page) .game-action-bar { grid-column: 1 / -1; }
body:has(.game-page) .game-dashboard { grid-template-columns: 490px 490px 350px 350px; align-items: start; }
body:has(.game-page) .game-statistics { align-self: start; margin-top: 0; }
body:has(.game-page) .game-left #export-feedback:empty { display: none; }
body:has(.game-page) .game-statistics .traffic-grid { grid-template-columns: 1fr; }
body:has(.game-page) .game-no-green { margin: 0; color: #b9d3c4; }
body:has(.game-page) .game-left { gap: 0; }
body:has(.game-page) .game-left .game-recent { width: 100%; max-width: none; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
body:has(.game-page) .game-left .game-keypad-panel { width: 100%; border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
body:has(.game-page) .game-left > :not(.game-recent):not(.game-keypad-panel) { margin-top: 12px; }
body:has(.game-page) .game-left .game-recent { padding: 8px; }
body:has(.game-page) .game-left .game-recent h2 { font-size: 12px; }
body:has(.game-page) .game-left .game-section-heading { gap: 4px; }
body:has(.game-page) .game-left .game-section-heading button { min-height: 29px; padding: 5px 9px; font-size: 11px; }
body:has(.game-page) .game-left .game-recent-numbers { gap: 3px; }
body:has(.game-page) .game-left .game-recent-numbers .roulette-result { width: 27px; height: 27px; font-size: 11px; }
body:has(.game-page) .game-left .game-recent-numbers .roulette-result.latest { width: 34px; height: 34px; font-size: 13px; }
body:has(.game-page) .game-left .game-file-button { min-width: 58px; min-height: 40px; padding: 3px; gap: 1px; }
body:has(.game-page) .game-left .game-file-button svg { width: 16px; height: 16px; }
body:has(.game-page) .game-left .game-file-button small { font-size: 9px; }
body:has(.game-page) .game-left .game-keypad-panel { padding: 8px; }
body:has(.game-page) .game-left .game-keypad-panel > h2 { margin-bottom: 5px; font-size: 13px; }
body:has(.game-page) .game-left .keypad-help { margin: 0 0 5px; font-size: 10px; }
body:has(.game-page) .game-left .roulette-keypad { gap: 3px; grid-template-rows: repeat(10, 27px); }
body:has(.game-page) .game-left .roulette-key { min-height: 27px; padding: 2px; font-size: 11px; }
body:has(.game-page) .game-left .keypad-action button { gap: 2px; font-size: 18px; }
body:has(.game-page) .game-left .keypad-action small { font-size: 9px; }
.risk-preview { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: #b9d7c8; }
.duo-notice { margin: 12px 0; padding: 12px 15px; border: 1px solid #4b7565; border-radius: 12px; background: #102d23; color: #c9e0d2; }
.duo-notice strong { color: #f5d98c; font-variant-numeric: tabular-nums; }
.recent-game-strip { display: flex; align-items: center; gap: 6px; margin: 12px 0 18px; }
.recent-game-strip span { margin-right: 5px; color: #b9d7c8; font-size: 12px; white-space: nowrap; }
.recent-game-strip i { display: block; width: 9px; height: 25px; flex: 0 0 9px; border-radius: 3px; background: #ffffff30; }
.recent-game-strip i.won { background: #37d67a; }
.recent-game-strip i.lost { background: #ff5964; }
.hot-signal-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.hot-stable-count { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 4px; border: 1px solid #d5ecdb; border-radius: 50%; background: #247a50; color: white; font-size: 12px; font-weight: 800; }
.hot-signal { padding: 7px 12px; color: white; font-size: 12px; }
.hot-signal.hot-stable { background: #247a50; }
.hot-signal.hot-watch { background: #f0a43a; color: #10251b; }
.hot-signal.hot-high { background: #d33b45; }
.hot-signal.hot-pending { background: #53675d; }
.risk-badge { display: inline-block; width: auto; border: 0; border-radius: 12px; padding: 6px 10px; color: white; font-weight: 700; white-space: nowrap; }
button.risk-badge { cursor: pointer; }
.risk-green { background: #20a464; }
.risk-amber { background: #f0a43a; color: #13231b; }
.risk-red { background: #d33b45; }
.risk-pending { background: #718079; }
.risk-dialog { max-width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid #277453; border-radius: 18px; background: #0d3024; color: #d5e9de; box-shadow: 0 20px 60px #0009; }
.risk-dialog::backdrop { background: #0009; }
.risk-dialog h3 { margin-top: 0; color: white; }
.risk-dialog p { line-height: 1.5; }
@media (max-width: 1180px) {
  .sidebar { width: 220px; }
  .sidebar-brand strong { font-size: 22px; }
  .app-main { margin-left: 252px; }
  .home-layout { grid-template-columns: minmax(330px, .95fr) minmax(390px, 1.05fr); }
  .home-new-card { padding: 24px; }
  .home-panel { padding: 18px; }
}
@media (max-width: 940px) {
  .sidebar { width: 72px; padding: 17px 7px; }
  .sidebar-brand { padding: 0 0 26px; justify-content: center; }
  .sidebar-brand .brand-mark { font-size: 42px; }
  .sidebar-brand > span:last-child, .nav-item span { display: none; }
  .nav-item { justify-content: center; gap: 0; padding: 12px; }
  .app-main { margin-left: 88px; }
  .home-layout { grid-template-columns: 1fr; }
  .home-new-card { min-height: 0; }
  .home-new-form { grid-template-columns: 1fr 1fr; }
  .start-session { grid-column: 1 / -1; }
  .home-page { padding-top: 40px; }
  .account-forms { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .sidebar { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 66px; flex-direction: row; justify-content: center; padding: 4px 8px; border-radius: 0; }
  .sidebar-brand, .nav-logout { display: none; }
  .sidebar nav { display: flex; justify-content: space-around; width: 100%; gap: 0; }
  .nav-item { width: 19%; min-height: 55px; }
  .sidebar:has(.nav-admin) .nav-item { width: 16%; }
  .nav-item svg { width: 23px; height: 23px; }
  .app-main { margin-left: 0; padding-bottom: 66px; }
  .balance-chip, .account-chip { min-width: 0; min-height: 44px; gap: 6px; padding: 5px 8px; font-size: 12px; }
  .coin-icon { font-size: 20px; }
  .account-avatar { display: none; }
  .account-chevron { display: none; }
  .home-new-form { grid-template-columns: 1fr; }
  .home-new-card { padding: 20px; }
  .home-input-card { padding: 14px; }
  .home-input-icon { width: 40px; font-size: 30px; }
  .completed-head, .completed-row { grid-template-columns: .8fr 1.6fr .55fr 1fr 8px; gap: 4px; padding: 10px 7px; font-size: 11px; }
  .admin-fields { grid-template-columns: 1fr; }
  .info-rounds, .info-explanation-grid { grid-template-columns: 1fr; }
  .traffic-grid, .stats-top-ten { grid-template-columns: 1fr; }
  .game-picker-row { flex-direction: column; }
}
