/* The lobby is deliberately scoped so the fitted game screens keep their own styles. */
body.home-page{background:#18184d;--home-surface:radial-gradient(ellipse at 0 0,#075857 0,transparent 52%),linear-gradient(155deg,#073e55 0,#151b50 46%,#21134e 100%);background-image:var(--home-surface);background-attachment:fixed;min-height:100dvh;color:#fff;font-family:Arial,sans-serif}
.home-page .lobby-shell{max-width:1180px;margin:0 auto;padding:0 28px}
.home-header{display:flex;align-items:center;gap:24px;height:100px;border-bottom:1px solid #c3e9e514;position:relative;z-index:2}
.home-brand{font:bold 27px Arial;letter-spacing:-1.1px;gap:10px;flex-shrink:0;color:#fff}.home-brand b{color:#8ff4d8;font-weight:800}.home-mark{width:33px;height:33px;display:grid;grid-template-columns:1fr 1fr;gap:3px;transform:rotate(-8deg)}.home-mark i{background:#ffcf4d;border-radius:4px}.home-mark i:first-child{background:#26c5d7}.home-mark i:nth-child(2){background:#f56090}.home-mark i:last-child{background:#98df60}
.home-search{display:flex;align-items:center;gap:12px;min-width:0;width:340px;margin-left:auto;padding:0 16px;height:48px;border:1px solid #c1e6e126;border-radius:14px;background:#e3f7ff14;color:#e9fffa}.home-search input{width:100%;min-width:0;background:transparent;border:0;outline:0;color:#fff;font:15px Arial}.home-search input::placeholder{color:#b6d4da}.home-search:focus-within{border-color:#7be7cf;box-shadow:0 0 0 3px #7be7cf19}.home-search svg{width:22px;height:22px}.home-icon{width:48px;height:48px;border:0;border-radius:50%;display:grid;place-items:center;background:#d4ffff0d;color:#d3f3ed;flex:none}.home-icon svg{width:26px;height:26px}
.home-page .lobby-main{padding:24px 0 126px;max-width:none;margin:0}
.account-card{position:relative;isolation:isolate;border-radius:24px;background:linear-gradient(115deg,#23666c,#304e78 64%,#405486);border:1px solid #a2e5dc5c;box-shadow:0 10px 28px #04082925,inset 0 0 0 3px #e2ffff04;overflow:hidden;padding:0 28px 18px;margin-bottom:32px}.account-card:before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 85% 5%,#64adc244,transparent 60%)}
.account-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #cee5ea22;height:46px}.account-top>span{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;letter-spacing:1.3px;color:#b5f5dc}.account-top>span i{width:6px;height:6px;background:#8decc8;border-radius:50%;box-shadow:0 0 9px #8df5d4}.account-top button{display:flex;align-items:center;gap:10px;background:transparent;border:0;min-height:44px;font-size:13px;color:#eafff7;padding:0}.account-top button svg{width:17px}
.account-main{display:flex;align-items:center;gap:16px;padding:20px 0 14px}.account-avatar{display:grid;place-items:center;width:64px;height:64px;flex:none;border:3px solid #ffdb9777;border-radius:50%;font:bold 24px Georgia;background:linear-gradient(145deg,#d9b064,#795b39);color:#fff2ce;box-shadow:0 4px 10px #0a173144}.account-identity{min-width:0}.account-identity>span{font-size:10px;letter-spacing:1.6px;color:#a9cbd6}.account-identity h1{font-size:25px;line-height:1.2;font-weight:700;letter-spacing:-.5px;margin:5px 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-identity p{font-size:13px;margin:0;color:#d2e5e7}.account-star{font-size:64px;color:#bcd5e218;margin-left:auto;margin-right:15px;line-height:1}
.account-bottom{display:flex;align-items:center;justify-content:space-between;gap:28px}.account-balances{display:grid;grid-template-columns:1fr;gap:42px;flex:1;max-width:640px}.account-balances>div{min-width:0}.account-balances>div+div{border-left:1px solid #d3e6ef2b;padding-left:36px}.account-balances span{display:flex;align-items:center;gap:7px;font-size:12px;color:#d7e3e9}.balance-coin{font-style:normal;display:grid;place-items:center;border:1px solid #ffe9a59c;border-radius:50%;height:23px;width:23px;background:linear-gradient(#ffe4a3,#bd8a30);font:bold 15px Arial;color:#75531f;box-shadow:0 2px 3px #09232955}.balance-coin.poker-coin{background:linear-gradient(#b9f1ec,#4caaaa);border-color:#a9ebe9;color:#195266}.account-balances strong{display:block;margin-top:6px;font-size:29px;font-weight:700;color:#ffeb9e;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.account-play{display:flex;align-items:center;gap:10px;border:1px solid #9dfce764;border-radius:15px;background:linear-gradient(140deg,#0fa78f,#087e88);color:#f3fff9;padding:15px 20px;min-height:58px;font-size:15px;font-weight:700;box-shadow:0 5px 12px #09274330}.account-play svg{width:24px;height:24px}.account-play b{margin-left:7px;font-size:21px}.account-note{font-size:11px;line-height:1.5;color:#bcd3de;margin:13px 0 0}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.home-section-heading h2{font:bold 25px Arial;margin:0;color:#fff;letter-spacing:-.5px}.home-section-heading>span{font-size:12px;color:#aebed5}.home-games{margin-top:30px}.home-filters{display:flex;gap:9px;margin-bottom:20px;flex-wrap:wrap}.home-filters .filter{min-height:40px;padding:9px 18px;background:#c3e6ff0b;border:1px solid #a2cde52b;color:#b7cadb;font-size:13px;border-radius:22px;margin:0;white-space:nowrap}.home-filters .filter.active{border-color:#74dccb66;background:#2e867e69;color:#c9fff1;font-weight:700}.home-filters .filter:hover{border-color:#8bded2}
.home-game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.home-game-card{min-width:0}.home-game-open{position:relative;display:block;width:100%;aspect-ratio:4/5;overflow:hidden;padding:0;border:1px solid #dec9ff35;border-radius:20px;text-align:center;background:#25355d;box-shadow:0 7px 20px #0506223d;isolation:isolate;transition:transform .18s,box-shadow .18s}.home-game-open img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}.home-game-open:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 44%,#0b102822 58%,#090e39ed 100%);z-index:0}.home-cover-title{position:absolute;bottom:13%;left:5%;right:5%;z-index:1;font:900 clamp(23px,3.1vw,39px)/.94 Georgia,serif;color:#ffefa5;text-shadow:0 3px 0 #603112,0 5px 9px #130b39;letter-spacing:-1px;text-transform:uppercase}.home-cover-title em{display:block;font-style:normal}.home-game-open small{position:absolute;bottom:5%;left:0;right:0;z-index:1;font:700 9px Arial;letter-spacing:1.7px;color:#e2ecff}.home-game-open:hover{transform:translateY(-4px);box-shadow:0 12px 27px #03031f70,0 0 0 2px #6dd6ca66}.home-game-open:hover img{transform:scale(1.04)}
.home-game-caption{display:flex;align-items:center;justify-content:space-between;gap:2px;min-height:46px;padding-left:2px}.home-game-caption>button:first-child{font:16px Arial;text-align:left;background:transparent;border:0;padding:8px 0;min-height:44px;color:#eef1fa;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}.home-favorite{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:10px;border:0;background:transparent;color:#c8d8ec;border-radius:50%}.home-favorite svg{width:21px;height:21px}.home-favorite.selected{color:#ffaacb}.home-favorite.selected svg{fill:#ff8db766}.home-favorite:hover{background:#ffffff12}
.recent-section{margin-bottom:29px}.recent-track{display:flex;gap:14px;overflow-x:auto;padding:1px 1px 10px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#56839466 transparent}.home-recent-game{position:relative;flex:0 0 112px;background:none;border:0;padding:0;text-align:left;scroll-snap-align:start;min-width:0}.home-recent-game img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:15px;border:1px solid #bfcaff35;display:block}.home-recent-game span{display:block;margin-top:8px;font-size:13px;color:#e9f1ff;white-space:nowrap}.home-recent-game:hover img{filter:brightness(1.1)}
.home-page .home-footer{display:flex;align-items:center;gap:24px;justify-content:space-between;padding:25px 0 0;margin-top:38px;border-top:1px solid #b2cbe723}.home-footer>span{font:bold 16px Arial;color:#e2e8f6;letter-spacing:-.5px}.home-footer>span b{color:#8fdacf}.home-footer small{display:block;font:11px Arial;color:#929fc1;margin-top:7px;letter-spacing:0}.home-footer p{color:#a7b4d0;font-size:11px;margin:0}.home-footer button{display:flex;gap:8px;align-items:center;border:0;background:none;color:#c0d8e3;font-size:12px;min-height:44px;padding:8px 0}.home-footer button svg{width:15px}
.home-nav{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(5,1fr);width:min(570px,calc(100% - 32px));height:80px;padding:7px 8px;z-index:30;background:linear-gradient(120deg,#ffefdedf,#e7ebefed);border:1px solid #fffaf0a6;border-radius:28px;backdrop-filter:blur(20px);box-shadow:0 8px 35px #03032066}.home-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;border:0;border-radius:22px;background:transparent;color:#777d86;font-size:12px;font-weight:600}.home-nav svg{width:26px;height:26px;stroke-width:1.9}.home-nav button.active{background:#fff8e5b8;color:#0b6572}.home-nav button.active svg{fill:#0b65721c}.home-nav button:hover{background:#fffaf6aa}
.home-page .home-stats{margin-top:10px}.home-stats .stats-grid article{background:#e5edff0b;border-color:#b4c9e333}.home-stats .stats-grid strong{color:#f9df9b}.home-stats .history{background:#c5d9ff0b;border-color:#b4c9e333}.home-stats .history-row{border-color:#b4c9e322}.home-stats .history-row b{color:#9de6cb}.home-stats .local-note{color:#bdc7df}.home-menu-list{display:grid;gap:12px;margin-top:24px}.home-menu-list button{display:flex;gap:13px;align-items:center;min-height:56px;padding:13px 17px;background:#304e51;border:1px solid #bcd9ca44;border-radius:12px;color:#f2f3e3;font-size:16px}.home-menu-list svg{width:22px;height:22px}.home-page .toast{left:50%;bottom:112px}
@media(max-width:700px){.home-page .lobby-shell{padding:0 16px}.home-header{height:76px;gap:10px}.home-brand{font-size:20px;letter-spacing:-.9px;gap:6px}.home-mark{width:25px;height:25px;gap:2px}.home-mark i{border-radius:3px}.home-search{width:auto;flex:1;height:43px;gap:7px;padding:0 10px;border-radius:12px}.home-search input{font-size:12px}.home-search svg{width:18px;height:18px}.home-icon{width:36px;height:44px;background:transparent}.home-icon svg{width:24px;height:24px}.home-page .lobby-main{padding:15px 0 118px}.account-card{padding:0 15px 14px;border-radius:21px;margin-bottom:24px}.account-top{height:39px}.account-top>span{font-size:9px;letter-spacing:1px}.account-top button{font-size:11px;gap:5px}.account-top button svg{width:14px}.account-main{padding:13px 0 14px;gap:12px}.account-avatar{width:50px;height:50px;font-size:21px;border-width:2px}.account-identity>span{font-size:8px;letter-spacing:1.2px}.account-identity h1{font-size:21px;margin:4px 0}.account-identity p{font-size:11px}.account-star{font-size:45px;margin-right:5px}.account-bottom{gap:12px;align-items:center}.account-balances{gap:12px}.account-balances>div+div{padding-left:12px}.account-balances span{font-size:9px;gap:4px;white-space:nowrap}.balance-coin{width:17px;height:17px;font-size:12px;flex:none}.account-balances strong{font-size:20px;margin-top:7px}.account-play{min-height:65px;width:72px;padding:9px 5px;flex-direction:column;justify-content:center;gap:5px;border-radius:12px;flex:none}.account-play svg{width:24px;height:24px}.account-play span{font-size:9px;white-space:nowrap}.account-play b{display:none}.account-note{font-size:9px;margin-top:12px}.home-section-heading{margin-bottom:15px}.home-section-heading h2{font-size:22px;letter-spacing:-.5px}.home-section-heading>span{font-size:10px}.home-games{margin-top:22px}.home-filters{gap:7px;margin-bottom:16px}.home-filters .filter{font-size:11px;min-height:36px;padding:8px 13px}.home-game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 10px}.home-game-open{border-radius:15px}.home-cover-title{font-size:clamp(17px,5.3vw,31px);letter-spacing:-.7px;bottom:13%}.home-game-open small{font-size:clamp(5px,1.35vw,9px);letter-spacing:.8px}.home-game-caption{padding:0;min-height:44px}.home-game-caption>button:first-child{font-size:12px}.home-favorite{width:36px;height:44px;padding:9px}.home-favorite svg{width:18px;height:18px}.recent-track{gap:11px}.home-recent-game{flex-basis:88px}.home-recent-game img{border-radius:12px}.home-recent-game span{font-size:11px}.recent-section{margin-bottom:22px}.home-page .home-footer{flex-wrap:wrap;gap:16px 12px;align-items:center;margin-top:26px;padding-top:21px}.home-footer>span{font-size:14px}.home-footer small{font-size:9px}.home-footer p{font-size:9px;text-align:right;max-width:160px;line-height:1.6}.home-footer button{font-size:11px}.home-nav{bottom:max(12px,env(safe-area-inset-bottom));height:73px;border-radius:24px;padding:6px;max-width:460px}.home-nav button{font-size:10px;border-radius:20px;gap:4px}.home-nav svg{width:24px;height:24px}}
@media(max-width:360px){.home-page .lobby-shell{padding:0 12px}.home-header{gap:7px}.home-brand{font-size:18px}.home-mark{width:22px;height:22px}.home-search{padding:0 8px}.account-card{padding-left:12px;padding-right:12px}.account-bottom{gap:9px}.account-balances{gap:8px}.account-balances>div+div{padding-left:8px}.account-balances strong{font-size:18px}.account-balances span{font-size:8px}.account-play{width:63px}.home-game-grid{gap:12px 8px}.home-favorite{width:30px}.home-game-caption>button:first-child{font-size:11px}.home-filters .filter{padding:8px 11px}}
@media(prefers-reduced-motion:reduce){.home-game-open,.home-game-open img{transition:none}}
.home-game-open[data-play="baccarat"] .home-cover-title{font-size:clamp(20px,2.55vw,32px)}
@media(max-width:700px){.home-game-open[data-play="baccarat"] .home-cover-title{font-size:clamp(14px,4.4vw,25px)}.home-favorite{width:44px}}

.home-game-open[data-play="slots"] .home-cover-title{font-size:clamp(20px,2.55vw,32px)}
@media(max-width:700px){.home-game-open[data-play="slots"] .home-cover-title{font-size:clamp(14px,4.1vw,25px)}}

.game-opening{min-height:260px;padding:50px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px}.game-opening small{color:#cfba83;letter-spacing:3px;font-size:12px}.game-opening h2{margin:0;font-size:32px}.game-opening p{margin:8px 0 20px;color:#c7d6d1}.game-opening button{min-height:48px;min-width:150px}

/* Keep the full brand and search readable on narrow phones. */
@media(max-width:480px){.home-header{display:grid;grid-template-columns:minmax(0,1fr) 44px;height:auto;gap:10px;padding:12px 0}.home-brand{font-size:23px;letter-spacing:-.8px;min-width:0}.home-icon{grid-column:2;grid-row:1;width:44px;height:44px}.home-search{grid-column:1/-1;grid-row:2;width:100%;min-width:0;height:44px}.home-search input{font-size:14px;min-width:0}.account-identity{min-width:0}.account-identity h1{overflow-wrap:anywhere}}

.account-sign-in{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:12px;padding:10px 16px;border:1px solid #a9d9d7;border-radius:10px;background:#e5fff7;color:#0b4350;font-size:14px;font-weight:700;text-decoration:none}.account-sign-in[hidden]{display:none}

/* Home/help dialogs share the lobby palette; individual game artwork stays scoped. */
.home-page #game-dialog.home-dialog{background-color:#18184d;background-image:var(--home-surface);border:1px solid #a2e5dc66;color:#fff;box-shadow:0 24px 80px #030b3266;scrollbar-color:#6db6bb #182951}
.home-page #game-dialog.home-dialog::backdrop{background:#070e29d9;backdrop-filter:blur(7px)}
.home-dialog .modal-header>span{color:#bcd8e5}.home-dialog #close-modal{min-width:44px;min-height:44px;background:#d4ffff0d;border-color:#b9e4e344;color:#eafff7}
.home-dialog #modal-content h2,.home-dialog .step h3{color:#fff}.home-dialog #modal-content .intro,.home-dialog .step p{color:#c8dcec}
.home-dialog .step{border-color:#b4c9e344}.home-dialog .step>b{color:#8ff4d8}.home-dialog .game-hint{color:#b9cde3}
.home-dialog .primary{background:linear-gradient(140deg,#0fa78f,#087e88);border-color:#9dfce764;color:#f3fff9;min-height:48px}.home-dialog .primary:hover{background:linear-gradient(140deg,#13b99e,#09909b)}
.home-dialog .home-menu-list button{background:#c5e4ff0e;border-color:#b4c9e344;color:#eff9ff}.home-dialog .home-menu-list button:hover{background:#6dd6ca22}
