/* Light, responsive application layer. */
:root{color:#25394b;background:#f2f5f9}body,body[data-in-game="true"]{background:#f2f5f9}header b{color:#5e788a}.badge{background:#eef3f7;border-color:#dce7ed;color:#6b8597}.panel,body[data-in-game="true"] .panel{border-color:#e0e7ef;box-shadow:0 4px 18px #233b5903}.game-card{background:linear-gradient(145deg,#fff,#f7faff);border-color:#dce5ef}.game-card>strong{color:#314f69}.game-card.maple{background:linear-gradient(135deg,#2d5f83,#203e60);border-color:#365e7d}.game-card.maple:hover{background:linear-gradient(135deg,#386b90,#294c70)}.game-card.maple .game-emblem{background:#ffffff0d;border-color:#ffffff22;color:#d8edff}.game-card.maple>strong{color:#f3f8ff}.game-card.maple .game-type,.game-card.maple .game-description{color:#b5cde1}.game-card.maple .game-card-bottom b{color:#dbeeff}.site-notice{background:#ecf4fc;border-color:#dce8f4;color:#7d95ac}.draw-card{background:#fff;border-color:#dce7f2}.draw-card:before{background:linear-gradient(90deg,#76acd5,#e4eff9)}.draw-card-body{background:#f6faff;border-color:#e3edf8}.draw-card-header h2{color:#365d7c}.draw-card-header h2:before{background:#7bb4dd}.draw-card-tag{background:#eff6ff;border-color:#dfedfd;color:#82a2c1}.draw-card-body .draw-card-field>span{color:#91a8bf}.draw-card-body .draw-card-field>strong{color:#3a6485}.draw-card-body .draw-card-result{border-color:#e0ebf7}.draw-card-balls b.ice:nth-child(3n+1){background:linear-gradient(#fff5f4,#fbdedd);border-color:#f0c5c4;color:#be6465}.draw-card-balls b.ice:nth-child(3n+2){background:linear-gradient(#f1f8ff,#dbeaff);border-color:#c7dff8;color:#4d88bd}.draw-card-balls b.ice:nth-child(3n){background:linear-gradient(#f3fff7,#dcefe3);border-color:#c9e4d2;color:#578866}.draw-card-balls .draw-sum{color:#3b678b}.game-wallet{background:linear-gradient(110deg,#315a76,#24445d);border-color:#385b75}.game-wallet strong{color:#f2f8ff}.game-wallet span{color:#bdd0e0}.game-wallet small{color:#97b3c9}.ball{background:linear-gradient(#fff,#fafcff);border-color:#e0e8f2;color:#557b9b}.ball small{color:#a0b0c0}.ball.active{background:#eaf4ff;border-color:#6797c4;color:#3c729f}.ball.active small{color:#7b9ab7}.ball.active:after{color:#6292ba}.tabs button.active,.chips button.active,.play-strip.tabs button.active{background:#426e93;border-color:#426e93;color:white}.play-strip.tabs button{background:#f6f9fc;border-color:#e0e8f0;color:#8399ad}.rule,body[data-in-game="true"] .rule{background:#f6f9fc;border-color:#e3ebf3;color:#8a9eaf}.primary{background:linear-gradient(110deg,#497da7,#325e85);color:#fff;box-shadow:0 4px 12px #38689015}.primary:hover{background:#396e98;color:#fff}.mobile-betbar .primary{color:#fff}.mobile-betbar strong{color:#4d789b}.summary .row:nth-child(2) b{color:#507b9d}.game-card-bottom b{color:#678caf}.profile-balance{background:linear-gradient(110deg,#3c6a89,#244862);border-color:#3d6480}.profile-balance strong{color:#eff7ff}.profile-balance>span,.profile-balance p{color:#abc4d7}
.app-dialog{border:1px solid #dce7f2;border-radius:20px;padding:25px;width:min(440px,calc(100vw - 28px));max-height:85dvh;overflow:auto;box-shadow:0 25px 90px #18324930;color:#39566c;background:#fff}.app-dialog::backdrop{background:#18324c66;backdrop-filter:blur(5px)}.app-dialog label,.profile-form label{display:grid;gap:9px;margin:18px 0;font-size:13px;color:#839bad}.app-dialog input,.profile-form input{width:100%;font-size:16px;border-color:#dce7f1;background:#fbfdff;color:#466782}.dialog-title{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-title h2{margin:0;font-size:19px}.dialog-title>button{font-size:22px;min-width:38px;padding:4px 10px;border:0;background:#f4f8fc;color:#9ab0c4}.app-dialog .primary{width:100%}.dialog-links{display:flex;justify-content:space-between;margin-top:16px;gap:10px}.dialog-links button{font-size:12px;background:none;border:0;padding:9px 0;color:#7a99b3}.app-dialog [role=alert]{font-size:12px;line-height:1.8;color:#b16c68}.confirm-options{max-height:28dvh;overflow:auto;border-top:1px solid #e4ecf4;border-bottom:1px solid #e4ecf4}.confirm-options .row{font-size:13px;gap:20px}.confirm-options span{overflow-wrap:anywhere}.confirm-options b{white-space:nowrap;font-size:12px;color:#84a0b9}.recovery-code{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f8fd;padding:16px;border:1px solid #e1edf7;border-radius:10px}.guest-profile{text-align:center;padding:35px 22px}.guest-profile .profile-avatar{margin:0 auto 20px}.guest-profile h2{margin-top:20px}.profile-form{max-width:500px}.history-filters{display:flex;gap:10px;margin:18px 0}.history-filters>*{min-width:0;flex:1;font-size:14px}.message-item{padding:20px 0;border-bottom:1px solid #e5edf5;font-size:14px}.message-item p{font-size:12px;color:#96aabb}#gameCountdown{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 17px;background:#fff;border:1px solid #dfe9f3;border-radius:11px;margin:-3px 0 17px;font-size:11px;color:#8fa6b8;flex-wrap:wrap}#gameCountdown b{color:#587d9d;font-size:14px;margin-left:5px;font-weight:600}.countdown-status{background:#edf6f2;color:#729887;padding:6px 9px;border-radius:6px;font-size:10px}.profile-menu small{color:#91a9bd}.profile-menu button{background:#f9fbff;border-color:#e0e9f3;color:#6688a3}
@media(max-width:820px){.app-dialog{padding:23px 20px;border-radius:17px}.app-dialog h2{font-size:18px}#gameCountdown{padding:12px;gap:8px;font-size:10px}#gameCountdown b{font-size:13px;margin-left:4px}.draw-card-body .draw-card-result>span{color:#98acc0}nav button.active{background:#edf5ff;color:#5b87ad}nav button.active:before{color:#749bbf}.history-filters{flex-wrap:wrap}.game-card.maple .game-card-bottom{border-color:#ffffff13}.guest-profile h2{font-size:19px}.profile-form label{font-size:12px}}
.lobby-account{background:#fff;border:1px solid #dfe8f2;border-radius:15px;padding:22px 24px;margin:18px 0 22px;box-shadow:0 4px 15px #24465b03}.lobby-account .row{margin:0 0 18px}.lobby-account span{font-size:12px;color:#93a8ba}.lobby-account strong{display:block;margin-top:10px;font-size:30px;letter-spacing:-.5px;color:#426b8d;font-weight:650}.lobby-account>.row button{background:#eff5fc;border-color:#dce8f4;color:#7899b6;font-size:12px;min-height:40px}.lobby-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;border-top:1px solid #e8eff6;padding-top:17px}.lobby-shortcuts button{background:#f7faff;border-color:#e4edf6;color:#8ba2b7;font-size:12px;padding:11px 5px;min-height:42px}@media(max-width:820px){.lobby-account{padding:19px 16px;margin:15px 0 20px;border-radius:14px}.lobby-account strong{font-size:27px}.lobby-shortcuts{gap:6px}.lobby-shortcuts button{font-size:11px}.lobby-account>.row button{font-size:11px}}
/* Minimal guest entry; authenticated lobby opens directly to games. */
#siteNotice{display:none}
.lobby-auth{display:flex;justify-content:flex-end;gap:10px;margin:9px 0 17px}
.lobby-auth button{min-width:90px;min-height:42px;padding:10px 20px;border-color:#dbe7f2;color:#7797b1;background:#fff;font-size:13px}
.lobby-auth .primary{background:linear-gradient(110deg,#497da7,#325e85);color:#fff;border:0}
