/* Final mobile layer; shared backend and permissions, no alternative game state. */
.app-hub{max-width:1160px;margin:0 auto;color:#182139}.app-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:32px;border-radius:24px;background:#101322;color:#fff;margin-bottom:28px}.app-hero h2{font-size:clamp(28px,4vw,42px);line-height:1.1;margin:8px 0 14px;color:#fff;letter-spacing:-1px}.app-hero p{color:#c3ccde;max-width:620px}.app-hero .eyebrow{color:#b5ff60}.app-hero .button{flex-shrink:0;background:#b5ff60;color:#142121;border-color:#b5ff60}.app-section{margin:28px 0}.app-section h2{font-size:23px;letter-spacing:-.5px}.app-section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.app-section-title h2{margin:0}.app-game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.app-game-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #dce2ec;border-radius:18px;padding:20px;color:#172137;text-decoration:none;min-width:0;transition:border-color .15s,transform .15s}.app-game-card:hover{border-color:#5d51d8;transform:translateY(-2px)}.app-game-card strong{font-size:19px}.app-game-card small{color:#616b80;font-size:14px;line-height:1.5}.app-game-card>span:last-child{font-size:14px;color:#5545ba;margin-top:auto}.app-game-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:#eeeaff;color:#4935b8;font-weight:800;font-size:23px}.app-game-card:nth-child(2) .app-game-icon{background:#e3f8c9;color:#315819}.app-game-card:nth-child(3) .app-game-icon{background:#f4e7f0;color:#7e286b}.app-game-card:nth-child(4) .app-game-icon{background:#fff1d6;color:#795115}.app-search{display:grid;gap:6px;font-size:14px;font-weight:600}.app-search input{width:100%;padding:14px 16px;border:1px solid #cdd5e3;border-radius:12px;background:#fff;font-size:16px;color:#182139}.app-filters{display:flex;gap:8px;overflow-x:auto;padding:12px 0 14px}.app-filters button{white-space:nowrap;border:1px solid #cdd5e3;border-radius:24px;min-height:44px;padding:8px 16px;background:#fff;color:#36445d;cursor:pointer}.app-filters button[aria-pressed=true]{background:#262044;color:#fff;border-color:#262044}.app-session-list{display:grid;gap:10px}.app-session{display:flex;align-items:center;gap:14px;padding:18px;background:#fff;border:1px solid #dce2ec;border-radius:14px;text-decoration:none;color:#182139}.app-session>span:nth-child(2){display:grid;gap:5px;flex:1;min-width:0;overflow-wrap:anywhere}.app-session strong{font-size:18px}.app-session small{font-size:13px;color:#59677c}.app-session b{font-size:24px}.app-session-dot{width:10px;height:10px;flex-shrink:0;border-radius:50%;background:#b6bfd0}.app-session-dot.is-live{background:#528c20;box-shadow:0 0 0 5px #eaf4de}.app-quick-links{display:flex;flex-wrap:wrap;gap:10px}.app-quick-links a{display:block;padding:14px 18px;min-height:48px;background:#fff;border:1px solid #dce2ec;border-radius:12px;color:#3c2e95;text-decoration:none;font-weight:600}.app-help{padding:24px;border-radius:18px;background:#eaeef6}.app-help p{line-height:1.7}.app-empty{padding:24px;border:1px dashed #b1bdd1;border-radius:14px}.app-device{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff;padding:18px;border:1px solid #dce2ec;border-radius:14px;margin:14px 0}.app-device>div{display:grid;gap:8px}.app-device small{color:#59677c}.app-remember{display:flex;align-items:flex-start;gap:10px;padding:14px 0;font-size:14px}.app-remember input{width:20px;height:20px;flex-shrink:0}.app-remember small{display:block;color:#627085;font-size:12px;line-height:1.5;margin-top:5px}.app-install-dialog{max-width:440px;width:calc(100% - 32px);border:0;border-radius:20px;padding:24px;color:#182139}.app-install-dialog::backdrop{background:#101322aa}.app-install-dialog p{line-height:1.7}.app-network{position:fixed;top:0;left:0;right:0;z-index:10000;padding:12px max(16px,env(safe-area-inset-right));background:#7b240e;color:white;text-align:center;font-weight:600;font-size:14px}.app-bottom-nav,.app-back-home{display:none}.app-offline{background:#101322;color:#edf1f9;font:18px/1.6 system-ui;margin:0;min-height:100vh;display:grid;place-items:center;padding:24px}.app-offline main{max-width:480px}.app-offline h1{font-size:34px;line-height:1.15}.app-offline a{display:inline-block;padding:14px 24px;border-radius:12px;background:#b5ff60;color:#101322;text-decoration:none;font-weight:700}.app-mobile-shell [hidden]{display:none!important}.app-mobile-shell :focus-visible{outline:3px solid #8965e9;outline-offset:3px}
@media(max-width:900px){
 body.app-mobile-shell{overflow-x:hidden}.app-mobile-shell .app-shell{display:block!important;padding:0!important}.app-mobile-shell .main-panel{margin:0!important;width:100%!important;min-width:0!important;padding:0!important}.app-mobile-shell .content-area{padding:18px 16px calc(92px + env(safe-area-inset-bottom))!important;min-width:0!important;max-width:100%;overflow-wrap:anywhere}.app-mobile-shell .topbar{position:relative!important;top:auto!important;margin:0!important;padding:14px 16px!important;width:100%!important;min-height:76px;gap:10px!important;border-radius:0!important;display:flex!important;flex-wrap:wrap}.app-mobile-shell .topbar h1{font-size:20px}.app-mobile-shell .topbar>div{flex:1;min-width:0}.app-mobile-shell .topbar .eyebrow{font-size:10px;overflow-wrap:anywhere}.app-mobile-shell .topbar>form:last-child{margin-left:auto}.app-mobile-shell .topbar .tenant-switcher{order:4;width:100%;max-width:100%}.app-mobile-shell .topbar .tenant-switcher select{width:100%;font-size:16px}.app-mobile-shell .menu-button{display:inline-flex!important;min-width:44px;min-height:44px;align-items:center;justify-content:center}.app-mobile-shell .sidebar{position:fixed!important;inset:0 auto 0 0!important;width:min(85vw,330px)!important;height:100dvh!important;padding:20px 16px calc(28px + env(safe-area-inset-bottom))!important;display:flex!important;flex-direction:column!important;transform:translateX(-105%)!important;z-index:1002!important;border-radius:0!important;overflow-y:auto!important;background:#101322!important}.app-mobile-shell .sidebar.is-open{transform:translateX(0)!important}.app-mobile-shell .sidebar-brand{display:flex!important;margin-bottom:16px}.app-mobile-shell .sidebar-nav{display:flex!important;flex-direction:column!important;overflow:visible!important;gap:5px!important;padding:0!important;flex:none!important}.app-mobile-shell .sidebar-nav .nav-link,.app-mobile-shell .sidebar-nav .nav-label,.app-mobile-shell .sidebar-nav .nav-more{display:flex!important;width:100%!important;max-width:none!important;position:static!important}.app-mobile-shell .sidebar-nav .nav-link{min-height:48px;justify-content:flex-start!important;flex-direction:row!important;font-size:14px!important;color:#e0e6f2!important;white-space:normal!important}.app-mobile-shell .sidebar-nav .nav-more{display:block!important}.app-mobile-shell .sidebar-user{display:flex!important;margin-top:24px!important}.app-mobile-shell .sidebar-overlay{z-index:1001!important}.app-mobile-shell.menu-open .sidebar-overlay{display:block!important;position:fixed;inset:0;background:#080d1ca6}.app-mobile-shell.menu-open{overflow:hidden}.app-bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:1000;display:flex;background:#101322;border-top:1px solid #303748;padding:5px 8px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -3px 15px #10132215}.app-bottom-nav a,.app-bottom-nav button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;border:0;background:transparent;color:#d6dfed;font:600 11px system-ui;text-decoration:none;border-radius:10px}.app-bottom-nav span{font-size:20px}.app-bottom-nav [aria-current=page]{color:#b5ff60;background:#ffffff0b}.app-hero{padding:24px 20px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:20px;margin-bottom:24px}.app-hero h2{font-size:32px}.app-hero .button{width:100%;min-height:48px}.app-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.app-game-card{padding:16px 14px;gap:9px}.app-game-card strong{font-size:16px}.app-game-card small{font-size:12px}.app-game-icon{height:40px;width:40px;font-size:20px}.app-section h2{font-size:21px}.app-section-title>span{font-size:12px}.app-quick-links{display:grid;grid-template-columns:1fr}.app-device{align-items:flex-start;flex-direction:column}.app-device form,.app-device button{width:100%}.app-mobile-shell input,.app-mobile-shell select,.app-mobile-shell textarea{font-size:16px!important;max-width:100%}.app-mobile-shell .button{min-height:44px;white-space:normal}.app-mobile-shell .panel-card{min-width:0;max-width:100%}.app-mobile-shell .table-wrap{overflow-x:auto;max-width:100%}.app-mobile-shell .h6-control-layout{grid-template-columns:1fr!important}.app-mobile-shell .h6-control-main{display:flex;flex-direction:column;min-width:0}.app-mobile-shell .h6-control-main>.h6-director{order:-1}.app-mobile-shell .h6-main-command{min-height:64px;width:100%;font-size:20px}.app-mobile-shell .h6-command-row{display:flex;flex-direction:column;gap:10px}.app-mobile-shell .h6-auto-draw{display:flex;flex-wrap:wrap;gap:12px}.app-mobile-shell .h6-heading .button-row{display:flex;width:100%;flex-wrap:wrap}.app-mobile-shell .h6-code-card strong{font-size:40px!important;overflow-wrap:anywhere}.app-mobile-shell .h6-heading h2{font-size:24px;overflow-wrap:anywhere}.app-mobile-shell.has-mobile-director .app-bottom-nav,.app-mobile-shell.md-host-admin .app-bottom-nav{display:none}.app-mobile-shell.has-mobile-director .app-back-home,.app-mobile-shell.md-host-admin .app-back-home{display:block;position:relative;padding:12px 16px;background:#101322;color:#d5e1ef;min-height:44px;font-size:14px}.app-mobile-shell.md-host-admin .topbar{display:none!important}.app-mobile-shell.md-host-admin .content-area{padding:12px 12px 28px!important}.app-mobile-shell.has-mobile-director .content-area{padding-bottom:100px!important}.app-mobile-shell .auth-shell{min-height:100dvh}.app-mobile-shell .auth-panel{padding:20px 16px}.app-mobile-shell .auth-card{max-width:100%;padding:24px 18px}.app-is-offline .topbar{padding-top:62px!important}
}
@media(prefers-reduced-motion:reduce){.app-game-card{transition:none}}
@media(max-width:900px){body.app-mobile-shell{padding-bottom:0!important}.app-mobile-shell .topbar>form:last-child,.app-mobile-shell .topbar .tenant-switcher{display:block!important}.app-mobile-shell .sidebar-brand,.app-mobile-shell .sidebar-user,.app-mobile-shell .sidebar-nav .nav-label{color:#d5dfed!important}.app-mobile-shell .sidebar-nav>.nav-link{padding:10px!important;gap:12px!important;text-align:left!important;line-height:1.3!important}.app-mobile-shell .sidebar-nav{height:auto!important}.app-mobile-shell .sidebar-nav .nav-more summary{color:#d5dfed!important}}
.app-mobile-shell .app-hub h2{font-family:system-ui,sans-serif!important;font-weight:750!important;color:#182139!important}.app-mobile-shell .app-hub .app-hero h2{color:#fff!important}
body.app-mobile-shell.app-hub-page{background:#f1f3f8!important}.app-hub-page .content-area{background:#f1f3f8!important}.app-hub-page .app-hub p,.app-hub-page .app-hub small,.app-hub-page .app-hub .muted{color:#59677c!important}.app-hub-page .app-hub .app-hero p{color:#cbd4e4!important}.app-hub-page .app-hub .app-hero .eyebrow{color:#b5ff60!important}.app-hub-page .app-hub .app-hero .button-primary{background:#b5ff60!important;color:#142121!important;box-shadow:none!important}.app-hub-page .app-hub .button-secondary{background:#fff!important;color:#3e4562!important;border:1px solid #cdd5e3!important}.app-hub-page .app-hub .app-search input{background:#fff!important;color:#182139!important;border:1px solid #cdd5e3!important}.app-hub-page .app-hub .app-search input::placeholder{color:#727e92!important}.app-hub-page .app-hub .app-search span{color:#36445d!important}.app-mobile-shell .auth-card .field>span{color:#cbd4e4!important}
@media(max-width:900px){.app-mobile-shell .sidebar-nav>.nav-link>span{margin:0!important;flex-shrink:0}.app-mobile-shell .sidebar-nav>.nav-link{align-items:center!important}.app-mobile-shell .sidebar-brand strong{display:block!important;color:#fff!important}}
.app-drawer-close{display:none}@media(max-width:900px){.app-drawer-close{display:block;align-self:flex-end;min-height:44px;padding:8px 14px;background:#ffffff10;color:#fff;border:1px solid #ffffff30;border-radius:12px;margin-bottom:12px;cursor:pointer}}
