:root{color-scheme:dark;--bg:#0b0b10;--panel:#131319;--panel2:#1b1922;--border:#2b2934;--text:#eeedf3;--muted:#9894a5;--accent:#bda3ed;--purple:#72539c;--green:#294d43;--red:#753442;--silver:#c1bdcb;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation;border:1px solid var(--border);border-radius:7px;padding:11px 16px;min-height:44px;background:#22202b;color:var(--text);transition:background .2s,transform .2s}button:hover{background:#302a3c;border-color:#746484}button:active{transform:scale(.98)}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.primary{background:var(--accent);border-color:var(--accent);color:#21172f;font-weight:650}.primary:hover{background:#cfb8f8}.ghost{background:transparent}.danger{color:#ffadb8}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:12px;color:var(--accent);font-weight:600}.brand{font-size:23px;font-weight:500;letter-spacing:.29em;white-space:nowrap}.brand small{display:block;font-size:10px;letter-spacing:.3em;color:var(--silver);margin-top:5px}.mark{font-size:45px;letter-spacing:-.1em;font-weight:200;color:var(--accent);padding-right:22px}.boot{height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:36px;letter-spacing:.3em}.boot span{font-size:14px;letter-spacing:0;margin-top:20px;color:var(--muted)}.gate{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr;max-width:1440px;margin:auto}.gate-art{position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:64px;background:radial-gradient(ellipse at 20% 55%,#35204366,transparent 65%);border-right:1px solid var(--border)}.gate-art .wordmark{display:flex;align-items:center}.gate-art h1{font-size:clamp(36px,4vw,62px);font-weight:350;line-height:1.13;letter-spacing:-.04em;margin:0 0 24px}.gate-art p{color:var(--muted);max-width:340px;line-height:1.7}.gate-art .small{font-size:12px}.gate-form{display:flex;align-items:center;justify-content:center;padding:48px}.gate-form form{width:100%;max-width:365px}.gate-form h2{font-size:27px;letter-spacing:-.025em;font-weight:450;margin:14px 0}.gate-form p{color:var(--muted);line-height:1.6;font-size:14px;margin:0 0 25px}label{display:block;font-size:14px;color:var(--silver);margin:16px 0 8px}input,select{width:100%;background:#17161e;border:1px solid #37313f;border-radius:7px;color:var(--text);padding:13px;min-height:46px}input::placeholder{color:#6e697b}.gate-form .primary{width:100%;margin-top:24px}.gate-wheel{width:230px;height:230px;opacity:.3;align-self:center;filter:saturate(.4);pointer-events:none}.form-error{color:#ffabb9;font-size:14px;line-height:1.5;min-height:21px;margin-top:16px}.topbar{height:92px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:16px;background:#101015}.topbar .wordmark{display:flex;align-items:center}.top-actions{display:flex;gap:14px;align-items:center}.balance{text-align:right;padding-right:10px}.balance span{font-size:12px;color:var(--muted);display:block;margin-bottom:4px}.balance strong{font-size:24px;font-weight:500;letter-spacing:-.03em}.balance small{font-size:12px;color:var(--accent)}.avatar{display:flex;align-items:center;gap:9px;font-size:14px}.avatar i{width:32px;height:32px;background:#30243e;border:1px solid #503d67;border-radius:50%;display:grid;place-items:center;font-style:normal;color:var(--accent)}.shell{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:calc(100dvh - 92px)}.sidebar{border-right:1px solid var(--border);padding:28px 18px;display:flex;flex-direction:column;gap:8px;background:#101015}.sidebar .eyebrow{padding:0 12px;margin:6px 0 10px;color:#746e80}.nav{background:transparent;border-color:transparent;text-align:left;font-size:14px;display:flex;gap:12px;align-items:center}.nav .ico{font-size:20px;width:24px;color:var(--muted)}.nav.selected{background:#292232;color:#ddc8fa;border-color:#453550}.nav.selected .ico{color:var(--accent)}.sidebar .bottom{margin-top:auto;padding:24px 12px 0;font-size:12px;color:#7f788b;line-height:1.65}.online-title{display:flex;align-items:center;justify-content:space-between;margin:35px 12px 12px;font-size:12px;color:var(--muted)}.online-title b{font-weight:400;background:#282332;border-radius:4px;padding:2px 6px}.online-list{font-size:14px;display:flex;flex-direction:column;gap:12px;padding:0 12px}.online-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.online-list span:before{content:'';display:inline-block;width:5px;height:5px;background:#8daf9e;border-radius:50%;margin-right:10px}.main{padding:28px 28px 40px;min-width:0;max-width:1600px;width:100%;margin:auto}.view-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.view-head h1{font-weight:450;font-size:27px;letter-spacing:-.025em;margin:6px 0}.view-head p{font-size:14px;color:var(--muted);margin:6px 0}.live{display:flex;gap:8px;align-items:center;font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:#a4bdaf}.live i{width:6px;height:6px;background:#8cae9c;border-radius:50%}.panel{background:var(--panel);border:1px solid var(--border);border-radius:10px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:16px 20px;font-size:14px}.panel-head h2{font-size:15px;font-weight:500;margin:0}.round-badge{color:var(--muted);font-size:12px}.roulette-stage{display:grid;grid-template-columns:310px minmax(0,1fr);padding:24px;gap:25px;align-items:center}.wheel-area{text-align:center}.wheel-wrap{position:relative;width:270px;height:270px;max-width:100%;margin:4px auto 12px}.wheel-svg{width:100%;height:100%;filter:drop-shadow(0 10px 18px #0009)}.wheel-rotor{transform-origin:150px 150px;transition:transform 6.5s cubic-bezier(.12,.65,.16,1)}.ball-orbit{position:absolute;inset:0;transition:transform 6.5s cubic-bezier(.12,.65,.16,1)}.ball{position:absolute;left:calc(50% - 4px);top:26px;width:8px;height:8px;border-radius:100%;background:#fff;box-shadow:0 0 5px #fff9}.wheel-pointer{position:absolute;top:4px;left:calc(50% - 6px);width:12px;height:13px;clip-path:polygon(0 0,100% 0,50% 100%);background:var(--silver);z-index:2}.wheel-caption{font-size:12px;color:var(--muted);letter-spacing:.07em}.wheel-result{font-size:22px;color:var(--silver);font-weight:450;margin-top:8px}.betting-area{min-width:0}.table{display:grid;grid-template-columns:44px repeat(12,minmax(0,1fr)) 45px;gap:3px}.table button{padding:0;border-radius:3px;min-height:44px;font-size:14px;position:relative;border-color:#59525a66;font-weight:500;background:#272831}.table button.red{background:#63303d}.table button.black{background:#22232c}.table button.green{background:#21483e}.table .zero{grid-column:1;grid-row:1 / 4;min-height:138px;font-size:18px}.table .col{grid-column:14;background:#1b312b;font-size:12px}.table .dozen{grid-row:4;grid-column:span 4;background:#1a342d;min-height:44px}.table .outside{grid-row:5;grid-column:span 2;background:#1a342d;min-height:44px;font-size:12px}.table .spacer{grid-column:1;grid-row:4 / 6}.table .chip-count{position:absolute;right:1px;bottom:1px;max-width:100%;background:#d3baf3;color:#24172f;border-radius:10px;font-size:9px;min-width:17px;line-height:14px;padding:0 3px;pointer-events:none}.betting-area .table-note{color:var(--muted);font-size:12px;margin:13px 0;line-height:1.5}.chip-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-top:1px solid var(--border);padding-top:17px}.chip-row span{font-size:12px;color:var(--muted);margin-right:4px}.chip{border-radius:50%;width:47px;height:47px;padding:0;background:#22212a;border:3px dashed #77707e;outline:2px solid #35313f;outline-offset:-6px;font-size:12px}.chip.selected{border-color:var(--accent);background:#3f2f53;box-shadow:0 0 0 2px #bda3ed33}.round-status{margin:18px 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.round-status strong{font-size:22px;font-weight:450;color:var(--accent)}.timer-track{height:3px;background:#24202b;margin-top:12px;border-radius:3px;overflow:hidden}.timer-fill{height:100%;background:var(--accent);transition:width .2s}.result-history{display:flex;align-items:center;gap:6px;padding:14px 20px;border-top:1px solid var(--border);overflow:hidden}.result-history .label{font-size:12px;color:var(--muted);white-space:nowrap;margin-right:8px}.result-number{display:inline-grid;place-items:center;min-width:27px;height:27px;border-radius:4px;font-size:12px;background:#25252c}.result-number.red{background:#69313e}.result-number.green{background:#244f42}.lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.list-body{padding:0 20px;max-height:260px;overflow-y:auto}.row{padding:13px 0;border-bottom:1px solid #26232d;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:14px}.row:last-child{border:0}.row small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.row strong{font-weight:500;white-space:nowrap}.row .win{color:#a3ccae}.empty{padding:25px 20px;color:var(--muted);font-size:14px;line-height:1.6}.bet-summary{display:flex;gap:20px;padding:14px 20px;border-bottom:1px solid var(--border);font-size:12px;color:var(--muted)}.bet-summary b{color:var(--silver);font-size:14px;font-weight:500;margin-left:5px}.lobby-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.game-card{padding:25px;text-align:left;min-height:220px;display:flex;flex-direction:column;align-items:flex-start;background:linear-gradient(145deg,#211a2b,#131319 70%)}.game-card .game-glyph{font-size:46px;color:#a58aba;height:76px;font-weight:200}.game-card h2{font-size:21px;font-weight:450;margin:10px 0}.game-card p{color:var(--muted);font-size:14px;line-height:1.6;margin:0}.game-card .tag{margin-top:auto;padding-top:20px;font-size:12px;color:var(--accent);letter-spacing:.08em;text-transform:uppercase}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}th,td{padding:16px 20px;border-bottom:1px solid var(--border)}th{font-weight:400;color:var(--muted);font-size:12px}td:nth-child(3){color:var(--accent)}.rank{color:var(--muted);width:60px}.you{background:#221b2b}.footnote{font-size:12px;color:var(--muted);line-height:1.6;margin:18px 0}.big-balance{font-size:36px;font-weight:400;letter-spacing:-.04em;margin:10px 0}.big-balance small{font-size:16px;color:var(--accent);letter-spacing:0}dialog{color:var(--text);background:#18151f;border:1px solid #4a3a5c;border-radius:14px;padding:28px;max-width:470px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);box-shadow:0 24px 100px #0009}dialog::backdrop{background:#000b;backdrop-filter:blur(6px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.modal-head h2{margin:5px 0;font-weight:450;font-size:24px}.close{border:0;background:transparent;padding:0;min-width:36px;font-size:25px;color:var(--muted)}.presets{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:18px 0}.presets button{padding:9px 4px;font-size:12px}.modal-submit{width:100%;margin-top:22px}.modal-note{font-size:12px;color:var(--muted);line-height:1.6;margin-top:15px}.modal-success{padding:35px 0;text-align:center}.modal-success .check{margin:auto auto 20px;border:1px solid #688576;width:64px;height:64px;border-radius:50%;color:#b0d9bd;display:grid;place-items:center;font-size:30px;animation:pop .3s ease-out}.modal-success h3{font-size:25px;font-weight:450}.modal-success p{color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);padding:14px 22px;border:1px solid #665174;border-radius:9px;background:#271f31;box-shadow:0 8px 25px #0008;font-size:14px;opacity:0;pointer-events:none;transition:.2s;z-index:100;max-width:calc(100% - 30px)}#toast.visible{opacity:1;transform:translate(-50%,0)}.connection{font-size:12px;color:#e3b5aa;text-align:center;min-height:18px;margin-bottom:6px}.slots-stage{padding:38px 25px;text-align:center;background:radial-gradient(ellipse at center,#38274377,transparent 70%)}.reels{display:flex;justify-content:center;gap:12px;margin:18px auto 32px}.reel{width:120px;height:150px;border:1px solid #51415e;border-radius:12px;background:linear-gradient(#14111a,#302538,#14111a);display:grid;place-items:center;font-size:65px;color:#c8b2e1;text-shadow:0 3px 10px #000}.reels.spinning .reel{animation:reel .12s infinite}.reels.spinning .reel:nth-child(2){animation-delay:.03s}.reels.spinning .reel:nth-child(3){animation-delay:.06s}.game-controls{display:flex;gap:10px;justify-content:center;align-items:end;flex-wrap:wrap}.game-controls label{margin-top:0;text-align:left}.game-controls input{max-width:150px}.game-message{min-height:30px;text-align:center;font-size:17px;color:var(--accent);margin-top:20px}.payouts{padding:20px;display:flex;flex-wrap:wrap;gap:20px;justify-content:center;color:var(--muted);font-size:14px}.payouts b{font-size:21px;color:var(--accent);display:block;margin-bottom:6px}.bj-stage{padding:28px 20px;background:radial-gradient(ellipse at center,#25372e55,transparent 70%);min-height:370px;text-align:center}.bj-label{font-size:12px;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);margin:10px 0 18px}.cards{display:flex;justify-content:center;gap:8px;margin-bottom:24px}.card{width:68px;height:96px;border-radius:7px;background:#dad6e1;color:#25232a;box-shadow:0 5px 12px #0005;text-align:left;padding:8px;font-size:23px;animation:pop .25s ease-out;line-height:1.2}.card.red{color:#873747}.card.hidden{color:#bba4d7;border:4px solid #705a89;background:repeating-linear-gradient(45deg,#2b1f3d,#2b1f3d 3px,#38274a 3px,#38274a 6px);display:grid;place-items:center}.card small{font-size:20px;display:block}.hands{display:flex;justify-content:center;gap:35px;flex-wrap:wrap}.hand.active{border-bottom:2px solid var(--accent)}.hand .cards{margin-bottom:8px}.hand p{font-size:14px;color:var(--muted)}.admin-tools{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.admin-panels{display:grid;gap:20px}.admin-row-actions{display:flex;gap:6px}.admin-row-actions button{font-size:12px;padding:8px}.admin-tools button{font-size:14px}.admin-info{font-size:14px;line-height:1.6;color:var(--muted);margin-bottom:20px}@keyframes pop{from{opacity:0;transform:translateY(12px) scale(.95)}to{opacity:1;transform:none}}@keyframes reel{0%{transform:translateY(-5px);filter:blur(2px)}100%{transform:translateY(5px);filter:blur(3px)}}@media(min-width:1400px){.main{padding:35px 42px}.roulette-stage{grid-template-columns:350px 1fr;padding:30px;gap:40px}.wheel-wrap{width:300px;height:300px}.table button{min-height:50px}.table .zero{min-height:156px}}@media(max-width:1180px){.shell{grid-template-columns:175px 1fr}.sidebar{padding:22px 10px}.main{padding:24px 20px}.roulette-stage{grid-template-columns:240px 1fr;padding:18px;gap:15px}.wheel-wrap{width:225px;height:225px}.table{grid-template-columns:34px repeat(12,minmax(0,1fr)) 34px}.table button{font-size:12px}.topbar{padding:0 22px}.avatar{display:none}.brand{font-size:20px}.top-actions{gap:10px}.table .outside{font-size:10px}.lobby-grid{gap:12px}.game-card{padding:20px}}@media(max-width:960px){.roulette-stage{grid-template-columns:1fr}.wheel-wrap{width:220px;height:220px}.wheel-area{display:grid;grid-template-columns:220px 1fr;align-items:center;gap:20px}.wheel-caption{grid-column:2;grid-row:1}.wheel-result{grid-column:2;grid-row:1;margin-top:55px}.roulette-stage .table button{min-height:44px;font-size:14px}.roulette-stage .table .outside{font-size:12px}.table .zero{min-height:138px}.lower-grid{grid-template-columns:1fr}.gate-art{padding:40px}.gate-form{padding:30px}}@media(max-width:700px){.gate{grid-template-columns:1fr}.gate-art{padding:30px;border:0;border-bottom:1px solid var(--border);min-height:215px}.gate-art h1{font-size:32px;margin:24px 0 0}.gate-art p,.gate-wheel,.gate-art .small{display:none}.gate-form{padding:28px}.topbar{height:auto;min-height:88px;flex-wrap:wrap;padding:17px;gap:14px}.topbar .mark{display:none}.brand{font-size:18px}.brand small{font-size:9px}.top-actions{gap:8px}.balance strong{font-size:19px}.balance span{display:none}.top-actions .primary{font-size:11px;padding:10px}.top-actions .logout{display:none}.shell{display:block}.sidebar{border-right:0;border-bottom:1px solid var(--border);display:flex;flex-direction:row;overflow-x:auto;padding:10px;gap:3px;position:sticky;top:0;z-index:5}.sidebar .eyebrow,.sidebar .online-title,.sidebar .online-list,.sidebar .bottom{display:none}.nav{font-size:12px;padding:9px;white-space:nowrap;min-height:44px;gap:4px}.nav .ico{font-size:17px;width:17px}.main{padding:22px 12px}.view-head h1{font-size:24px}.view-head p{font-size:12px}.view-head .live{font-size:10px}.roulette-stage{padding:14px 10px;gap:15px}.wheel-area{grid-template-columns:175px 1fr;gap:12px}.wheel-wrap{width:175px;height:175px}.wheel-result{font-size:19px}.table{grid-template-columns:27px repeat(12,minmax(0,1fr)) 27px;gap:2px}.roulette-stage .table button{min-height:44px;font-size:11px}.roulette-stage .table .outside{font-size:10px}.roulette-stage .table .col{font-size:9px}.table .zero{min-height:136px}.table .chip-count{font-size:8px;min-width:13px}.chip-row{gap:12px}.chip-row span{display:none}.chip{width:44px;height:44px}.result-history{padding:14px 10px}.lobby-grid{grid-template-columns:1fr}.game-card{min-height:170px}.game-card .game-glyph{height:50px;font-size:36px}.game-card .tag{padding-top:12px}.view-head{gap:10px}.reel{width:90px;height:120px;font-size:55px}.slots-stage{padding:25px 15px}.card{width:56px;height:80px;font-size:20px}.admin-row-actions{flex-wrap:wrap}th,td{padding:14px 12px}.panel-head{padding:14px}.big-balance{font-size:32px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:700px){.table{grid-template-columns:repeat(3,minmax(0,1fr)) 54px 54px;gap:3px}.table .zero{grid-column:1 / span 3!important;grid-row:1!important;min-height:44px!important}.table [data-type="number"]:not(.zero){grid-column:calc(4 - var(--r))!important;grid-row:var(--c)!important;font-size:16px!important}.table .col{grid-row:14!important;grid-column:calc(4 - var(--r))!important;font-size:12px!important}.table .dozen{grid-column:4!important;grid-row:calc(2 + (var(--d) - 1)*4) / span 4!important;font-size:12px!important}.table .outside{grid-column:5!important;grid-row:calc(2 + var(--o)*2) / span 2!important;font-size:12px!important}.table .spacer{display:none}.table .chip-count{font-size:10px;min-width:20px;line-height:18px}.roulette-stage .table button{min-height:44px}.sidebar .bottom{display:none}}

.mobile-only{display:none}@media(max-width:700px){.mobile-only{display:flex}}
/* Sound Control follows the lounge palette and keeps targets touch-friendly. */
.audio-consent{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;margin-bottom:24px;border:1px solid #51415f;border-radius:14px;background:linear-gradient(120deg,#21182b,#111016)}
.audio-consent h2{font-size:22px;margin:8px 0}.audio-consent p{color:#aaa3b5;max-width:560px;line-height:1.5}
.sound-panel{margin-bottom:26px}.sound-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;padding:24px}.sound-grid>div{min-width:0}
.sound-grid select{width:100%;background:#17141f;color:#f3eff9;border:1px solid #393040;border-radius:8px;min-height:46px;padding:10px;font:inherit}
.sound-grid input[type=file]{padding:12px;max-width:100%;font-size:14px}.sound-grid input[type=file]::file-selector-button{background:#31213e;color:#e8d9fc;border:0;border-radius:6px;padding:10px;margin-right:10px}
.sound-grid input[type=range]{padding:0;width:100%;accent-color:#bc9de9;min-height:44px}.sound-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.sound-actions button{min-height:44px}
.sound-all,.sound-player{display:flex!important;align-items:center;gap:12px}.sound-all input,.sound-player input{width:22px!important;height:22px!important;min-height:22px!important;flex-shrink:0;accent-color:#bc9de9}
.sound-players{max-height:270px;overflow-y:auto;margin:14px 0;border:1px solid #302838;border-radius:10px}.sound-player{padding:13px;margin:0!important;border-bottom:1px solid #292230;cursor:pointer}.sound-player:last-child{border-bottom:0}.sound-player>span:nth-child(2){flex:1;min-width:0}.sound-player small{display:block;color:#ada3ba;font-weight:400;margin-top:5px;line-height:1.4;overflow-wrap:anywhere}.sound-status{font-size:11px;color:#a59aac;text-transform:uppercase}.sound-status.ready{color:#b5d6ba}
#sound-upload-button{margin-top:16px}#sound-command-message{font-size:13px;color:#c7b6dc;min-height:20px}#audio-toggle{font-size:11px;white-space:normal;max-width:125px;min-height:44px}
@media(max-width:800px){.sound-grid{grid-template-columns:1fr;padding:18px;gap:24px}.audio-consent{display:block;padding:18px}.audio-consent .sound-actions{margin-bottom:0}#audio-toggle{max-width:90px;font-size:10px;padding:8px}.sound-panel>.panel-head{gap:12px;flex-wrap:wrap}}
