body{overflow-x:hidden}
.app-shell{min-height:100dvh;display:block;padding-top:8px}.main-shell{min-width:0}.desktop-shell-frame,.page-wrap{width:min(var(--content-max),97vw);margin-left:auto;margin-right:auto}.desktop-shell-frame{display:grid;gap:7px}.desktop-brand-header{min-height:100px;padding:8px 14px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,var(--surface-glass-94),var(--purple-soft-2));box-shadow:var(--shadow-md);display:grid;grid-template-columns:260px minmax(0,1fr) auto;align-items:center;gap:16px;overflow:visible}.desktop-brand-logo{display:grid;align-items:center;text-decoration:none;min-width:0}.desktop-brand-logo img{display:block;width:min(242px,100%);max-height:86px;object-fit:contain;object-position:left center}.desktop-player-summary{min-width:0;display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:11px}.desktop-player-avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(140deg,var(--blue),var(--purple),var(--pink));color:var(--surface);font-size:22px;font-weight:950;box-shadow:0 0 0 3px var(--surface),0 0 0 6px var(--amber-soft)}.desktop-player-summary>div{display:grid;gap:3px;min-width:0}.desktop-player-hello{font-size:22px;line-height:1.04;color:var(--ink)}.desktop-player-summary small{color:var(--ink-soft);font-size:10px;font-weight:750}.desktop-player-progress{width:min(600px,100%);height:6px}.desktop-header-actions{display:grid;justify-items:end;gap:6px}.desktop-account-row{display:flex;align-items:center;justify-content:flex-end;gap:6px}.shell-help-button,.account-help-button{border:1px solid var(--amber-soft);background:var(--amber-soft);color:var(--amber-ink);border-radius:12px;padding:8px 11px;font-size:10px;font-weight:900}.account-help-button{width:100%;text-align:left;background:var(--amber-soft)}.shell-wallet{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.shell-wallet span{display:flex;align-items:center;gap:5px;min-width:62px;justify-content:center;padding:6px 9px;border:1px solid var(--line);border-radius:999px;background:var(--surface-glass-88);font-size:10px}.shell-wallet b{font-size:12px}.desktop-nav{min-height:46px;padding:4px 6px;border:1px solid var(--line);border-radius:18px;background:var(--surface-glass-94);box-shadow:var(--shadow-sm);display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.nav-link{border:0;background:transparent;text-decoration:none;color:var(--ink-soft);display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;padding:8px 7px;border-radius:13px;font-weight:850;text-align:center;white-space:nowrap;font-size:11px}.nav-link:hover{background:var(--surface-soft);color:var(--ink)}.nav-link.active{background:linear-gradient(135deg,var(--purple),var(--purple-deep));color:var(--surface);box-shadow:var(--shadow-sm)}.nav-icon{width:auto;text-align:center;font-size:15px}.nav-badge{margin-left:auto;border-radius:999px;background:var(--neutral-soft);padding:2px 7px;font-size:10px;color:var(--ink-soft)}.nav-link.active .nav-badge{background:var(--surface);color:var(--purple-deep)}
.account-menu-wrap{position:relative}.account-chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:5px 9px 5px 6px;display:flex;align-items:center;gap:7px;box-shadow:var(--shadow-sm)}.account-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(140deg,var(--purple),var(--pink));color:var(--surface);font-weight:900}.account-text{text-align:left;line-height:1.05}.account-text strong{display:block;font-size:11px}.account-text small{font-size:9px;color:var(--ink-soft)}.account-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:70;width:190px;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow-md);display:grid;gap:9px}.account-popover div{padding:3px 5px}.account-popover strong,.account-popover small{display:block}.account-popover strong{font-size:12px}.account-popover small{font-size:10px;color:var(--ink-soft);margin-top:2px}.account-popover button{border:0;background:var(--red-soft);color:var(--red);border-radius:10px;padding:8px;font-weight:900;font-size:11px}.account-current-game{display:block;padding:8px 10px;border-radius:10px;color:var(--purple-deep);font-size:11px;font-weight:850;text-decoration:none}.account-current-game:hover{background:var(--purple-soft)}
.page-wrap{padding:9px 0 50px}.mobile-topbar,.mobile-nav,.mobile-places-menu{display:none}.boot-screen{min-height:100dvh;display:grid;place-content:center;justify-items:center;gap:9px;color:var(--ink-soft)}.boot-screen .brand-mark{width:72px;height:72px;border-radius:26px;background:var(--surface);display:grid;place-items:center;font-size:38px;box-shadow:var(--shadow-md)}.boot-screen strong{font-size:20px;color:var(--ink)}.boot-screen span{font-size:13px}
@media(max-width:1120px){.desktop-brand-header{grid-template-columns:220px minmax(0,1fr) auto;gap:12px}.desktop-brand-logo img{width:min(205px,100%)}.desktop-player-summary{grid-template-columns:46px minmax(0,1fr)}.desktop-player-avatar{width:46px;height:46px;font-size:20px}.desktop-player-hello{font-size:20px}.desktop-nav{grid-template-columns:repeat(8,minmax(0,1fr))}.nav-link{font-size:10px;padding-left:5px;padding-right:5px}.desktop-header-actions{max-width:245px}.shell-wallet span{min-width:54px;padding:5px 7px}}
@media(max-width:840px){:root{--header-h:62px}.app-shell{display:block;padding-top:0;padding-bottom:76px}.desktop-shell-frame{display:none}.mobile-topbar{height:62px;position:sticky;top:0;z-index:35;padding:0 16px;background:var(--bg-glass-86);backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line-glass-72)}.mobile-topbar-title{display:flex;align-items:baseline;gap:8px}.mobile-topbar-title strong{font-size:17px}.mobile-topbar-title span{font-size:9px;font-weight:900;color:var(--purple-deep);background:var(--purple-soft);padding:3px 6px;border-radius:999px}.mobile-topbar .account-text{display:none}.mobile-topbar .account-chip{padding:5px}.page-wrap{width:100%;padding:18px 14px 30px}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:40;left:10px;right:10px;bottom:max(8px,env(safe-area-inset-bottom));min-height:60px;padding:6px;border:1px solid var(--line);background:var(--surface-glass-94);backdrop-filter:blur(20px);border-radius:22px;box-shadow:var(--shadow-lg)}.mobile-nav .nav-link{padding:7px 2px;gap:2px;justify-content:center;flex-direction:column;border-radius:15px;font-size:10px;white-space:normal}.mobile-nav .nav-icon{font-size:21px}.mobile-nav .nav-badge{display:none}.mobile-places-button{font:inherit}.mobile-places-menu{position:fixed;z-index:90;left:12px;right:12px;bottom:84px;padding:10px;border:1px solid var(--line);border-radius:22px;background:var(--surface-glass-94);backdrop-filter:blur(20px);box-shadow:var(--shadow-lg);gap:7px}.mobile-places-menu:not(.hidden){display:grid}.mobile-places-head{display:flex;align-items:center;justify-content:space-between;padding:3px 4px 6px 8px}.mobile-places-head strong{font-size:13px}.mobile-places-menu>a{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:9px;padding:10px;border-radius:15px;text-decoration:none;color:var(--ink);background:var(--surface)}.mobile-places-menu>a>span{font-size:24px;text-align:center}.mobile-places-menu>a div{display:grid;gap:2px}.mobile-places-menu>a strong{font-size:12px}.mobile-places-menu>a small{font-size:9px;color:var(--ink-soft)}.mobile-places-menu>a.places-current-game{background:var(--surface-soft)}}

/* Shared release identity: visible deployment verification without page-owned debug labels. */
.shell-version{display:inline-flex;align-items:center;justify-content:center;justify-self:end;padding:2px 7px;border:1px solid var(--line);border-radius:999px;background:var(--surface-glass-88);color:var(--ink-soft);font-size:8px;font-weight:850;letter-spacing:.02em;line-height:1.25}.account-version{display:block;margin:2px 0 4px;padding:4px 7px;border-radius:8px;background:var(--surface-soft);color:var(--ink-soft);font-size:9px;font-weight:800}.mobile-topbar .account-version{display:block}

/* Home retains the v1 dashboard composition; all navigation still uses the shared router. */
.app:has(.app-shell-home){background:var(--home-background);min-height:100dvh;padding:18px 12px 34px}
.app-shell-home{--ink:var(--home-ink);--ink-soft:var(--home-muted);--line:var(--home-line);--purple:var(--home-purple);--purple-deep:var(--home-purple-deep);font-family:"Trebuchet MS",Arial,sans-serif;min-height:0;width:min(var(--content-max),100%);margin:auto;padding:12px;border:1px solid var(--surface);border-radius:28px;background:var(--surface-glass-88);box-shadow:var(--shadow-lg)}
.app-shell-home .desktop-shell-frame,.app-shell-home .page-wrap{width:100%}
.app-shell-home .desktop-shell-frame{display:grid;gap:10px}
.app-shell-home .desktop-brand-header{min-height:118px;grid-template-columns:25% minmax(0,1fr) 230px;padding:10px 15px;gap:14px;background:var(--home-header);border-radius:22px}
.app-shell-home .desktop-brand-logo img{width:260px;max-height:96px;object-position:center}
.app-shell-home .desktop-player-summary{grid-template-columns:70px minmax(0,1fr);gap:14px}
.app-shell-home .desktop-player-avatar{width:62px;height:62px;font-size:28px}
.app-shell-home .desktop-player-hello{font-size:28px}
.app-shell-home .desktop-nav{min-height:52px;padding:5px 7px;gap:3px}
.app-shell-home .nav-link{font-size:10px}
.app-shell-home .desktop-header-actions{gap:7px}
.app-shell-home .shell-wallet span{min-width:65px}
.app-shell-home .shell-wallet span:last-child{display:none}
.app-shell-home .shell-version{font-size:7px;padding:1px 5px}
.shell-logout-button{border:0;background:var(--surface);color:var(--red);border-radius:12px;padding:12px;font-size:9px;box-shadow:var(--shadow-sm)}
.app-shell-home .page-wrap{padding:10px 0 0}
.app-shell-home .mobile-topbar,.app-shell-home .mobile-nav{display:none}
.route-error{padding:24px;margin-top:16px}
@media(max-width:1120px){
 .app-shell-home .desktop-brand-header{grid-template-columns:220px minmax(0,1fr) 210px;gap:10px}
 .app-shell-home .desktop-player-hello{font-size:22px}
 .app-shell-home .desktop-player-summary{grid-template-columns:52px minmax(0,1fr);gap:9px}
 .app-shell-home .desktop-player-avatar{width:46px;height:46px;font-size:22px}
}
@media(max-width:840px){
 .app:has(.app-shell-home){padding:8px 6px 90px}
 .app-shell-home{padding:10px;border-radius:24px}
 .app-shell-home .desktop-shell-frame{display:grid}
 .app-shell-home .desktop-brand-header{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px}
 .app-shell-home .desktop-brand-logo{grid-column:1/-1;justify-items:center}
 .app-shell-home .desktop-brand-logo img{width:220px;max-height:100px}
 .app-shell-home .desktop-player-hello{font-size:19px}
 .app-shell-home .desktop-player-summary small{font-size:8px}
 .app-shell-home .desktop-header-actions{max-width:150px}
 .app-shell-home .shell-wallet{gap:3px}
 .app-shell-home .shell-wallet span{min-width:0;padding:4px 6px;font-size:8px}
 .app-shell-home .shell-wallet b{font-size:9px}
 .app-shell-home .desktop-nav{display:none}
 .app-shell-home .mobile-nav{display:grid}
 .app-shell-home .page-wrap{padding:10px 0 0}
}
.shell-test-mode{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:3px 6px;background:var(--amber-soft);color:var(--amber-ink);font-size:7px;font-weight:950;letter-spacing:.05em;white-space:nowrap}
