/* Local UI review. Shared page chrome; game canvases and controls retain their layout. */
:root{--ui-text:#eff5ff;--ui-muted:#b2bfd4;--ui-surface:#101a2b;--ui-border:#31405a}
body.ui-page{color:var(--ui-text);line-height:1.65}
body.ui-page :is(main,.wrap,.container,.profile-shell,.store-wrap){min-width:0}
body.ui-page :is(.muted,.hint,.subtitle,.section-subtitle){color:var(--ui-muted)}
body.ui-page :is(h1,h2,h3){letter-spacing:0;line-height:1.45}
body.ui-page h1{font-size:clamp(26px,3.3vw,44px)}
body.ui-page :is(.hero,.panel,.settings-card,.form-card){border-radius:20px;border-color:var(--ui-border);box-shadow:0 12px 32px #0003}
body.ui-page :is(.btn,.button,button:not(.gh-nav-toggle):not(#game-audio-toggle),.game-button){min-height:44px;line-height:1.4}
body.ui-page :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea){max-width:100%;min-height:44px;font-size:16px;line-height:1.5;border-radius:12px;padding:10px 12px}
body.ui-page :is(input[type=checkbox],input[type=radio]){width:20px;height:20px;min-height:20px!important;accent-color:#37d9c6;vertical-align:middle;flex-shrink:0}
body.ui-page :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #76e7ff;outline-offset:3px}
body.ui-page :is(.notice,.msg,.error-msg){padding:14px 18px;border-radius:14px;line-height:1.8}
body.ui-page .error-msg{background:#451e2b;color:#ffe4e9;border:1px solid #b74b6b}
body.ui-page :is(.tabs,.filter-group){gap:8px}
.ui-table-scroll{width:100%;max-width:100%;overflow:auto;overscroll-behavior-inline:contain;border:1px solid var(--ui-border);border-radius:14px;scrollbar-width:thin}
.ui-table-scroll table{width:100%;margin:0}
.ui-table-scroll th{position:sticky;top:0;background:#142138;color:#a3ecf9;z-index:1;text-align:start}
.ui-table-scroll :is(th,td){padding:13px 16px!important;vertical-align:middle}
.ui-table-scroll tbody tr:nth-child(even){background:#ffffff03}
.ui-table-scroll tbody tr:hover{background:#25d4e409}
.ui-skip-link{position:fixed;inset-block-start:-100px;inset-inline-start:16px;z-index:200000;background:#ccf8ff;color:#071321;padding:10px 18px;border-radius:12px}
.ui-skip-link:focus{inset-block-start:12px}
body.ui-page .control-row{gap:14px;padding-block:16px;border-bottom:1px solid #ffffff10}
body.ui-page .control-row label{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
body.ui-page .control-row input[type=number]{width:100px}
body.ui-page .game-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid #31415d}
body.ui-page .game-info{display:flex;flex-direction:column;flex:1;gap:8px}
body.ui-page .game-info :is(h3,p){margin:0}
body.ui-page .game-info p{line-height:1.85;color:#bdcbe0}
body.ui-page .game-info .game-button{margin-top:auto}
body.ui-page .game-img{height:180px!important}
body.ui-page .game-img img{width:100%;height:100%;object-fit:cover}
body.ui-page.home-v2 .hero{padding:36px 20px 30px}
body.ui-page.home-v2 .hero h1{font-size:clamp(29px,4vw,46px)}
body.ui-page.home-v2 .games-section{max-width:1400px;margin-inline:auto}
body.ui-page.home-v2 .section-title{font-size:clamp(23px,3vw,32px);margin-bottom:24px}
body.ui-page.home-v2 .stats-grid{margin-top:22px}
body.ui-page.home-v2 .stat-card{box-shadow:none}
body.ui-auth{min-height:100dvh;height:auto;padding:28px 16px;background:radial-gradient(ellipse at top,#172c48,#090e19 65%)}
body.ui-auth :is(.login-container,.box){width:min(460px,100%);border:1px solid #344b71;padding:32px;border-radius:24px;background:#101827;box-shadow:0 24px 75px #0006}
body.ui-auth .footer-links,body.ui-auth .links{line-height:2}
body.ui-page .admin-rail{width:238px;padding:18px 12px;background:#0a1220}
body.ui-page .admin-rail a{font-size:14px;box-shadow:none}
body.ui-page .admin-rail a.active{background:#1c3048;border-color:#4bcadb}
body.ui-page .admin-rail h2{font-size:18px;color:#eaf6ff}
body.ui-page .admin-menu-toggle{z-index:10020}
body.ui-page .admin-rail{z-index:10010}
@media(min-width:1001px){body.ui-page .gh-smart-nav{flex-wrap:wrap!important;height:auto!important}body.ui-page.home-v2{padding-top:86px}}
@media(max-width:1000px){
 body.ui-page .gh-smart-nav{position:sticky!important;top:0!important;display:flex!important;flex-wrap:nowrap!important;width:100%!important;height:62px!important;min-height:62px!important;padding:8px 12px!important;z-index:10000}
 body.ui-page.home-v2{padding-top:0!important}
 body.ui-page .gh-smart-nav>.logo,body.ui-page .gh-smart-nav>.brand{width:auto!important;margin:0 auto 0 0!important;min-width:0;font-size:19px!important}
 body.ui-page .gh-smart-nav .gh-nav-tools{display:flex;gap:8px;flex-shrink:0}
 body.ui-page .gh-smart-nav .gh-nav-toggle{display:grid!important;min-width:44px!important;width:44px!important;height:44px!important;place-content:center;gap:4px}
 body.ui-page .gh-smart-nav .gh-nav-menu{position:absolute!important;inset:calc(100% + 6px) 10px auto!important;display:none!important;flex-direction:column!important;align-items:stretch!important;max-height:75dvh!important;overflow:auto!important;background:#101a2b!important;border:1px solid #3a4c6a!important;border-radius:16px!important;padding:12px!important;box-shadow:0 24px 60px #0009!important}
 body.ui-page .gh-smart-nav .gh-nav-menu.open{display:flex!important}
 body.ui-page .gh-smart-nav .gh-nav-menu :is(.nav-links,.auth-buttons){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;margin:0!important;padding:0!important;width:100%;list-style:none}
 body.ui-page .gh-smart-nav .gh-nav-menu a{display:flex!important;align-items:center;justify-content:center;min-height:46px;width:auto!important;padding:10px!important;font-size:14px!important;white-space:normal!important;border:1px solid #304460;border-radius:10px;color:#e8f5ff!important}
 body.ui-page .gh-smart-nav .gh-nav-menu>span{white-space:normal!important}
}
@media(max-width:650px){
 body.ui-page :is(.wrap,.profile-shell,.store-wrap,.admin-container){width:calc(100% - 24px);margin-inline:auto}
 body.ui-page :is(.hero,.panel,.settings-card,.form-card){padding:18px;border-radius:16px}
 body.ui-page .control-row{display:flex;flex-wrap:wrap;align-items:center}
 body.ui-page .control-row>strong{width:100%}
 body.ui-page .control-row>form{display:flex;gap:8px;flex-wrap:wrap}
 body.ui-page .ui-table-scroll table{min-width:580px}
 body.ui-page.home-v2 .hero{padding:26px 14px}
 body.ui-page.home-v2 .games-section{padding:24px 12px}
 body.ui-page .game-img{height:165px!important}
 body.ui-page .game-info h3{font-size:19px!important}
 body.ui-page .game-info p{font-size:14px!important}
 body.ui-page .game-info{padding:18px!important}
 body.ui-page .home-game-filters{padding-bottom:5px}
 body.ui-auth :is(.login-container,.box){padding:24px}
}
@media(prefers-reduced-motion:reduce){body.ui-page *,body.ui-page *:before,body.ui-page *:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
body.ui-page.home-v2{padding-top:0!important}body.ui-page.home-v2>nav{position:sticky!important;top:0!important}body.ui-page.home-v2 .stat-card{min-height:112px;height:auto;padding:16px 20px}body.ui-page.home-v2 .stat-card h3{margin:4px 0}body.ui-page.home-v2 .stat-card p{margin:0;font-size:13px}
body.ui-page.home-v2{padding-top:0!important}body.ui-page.home-v2>nav.gh-smart-nav{position:sticky!important;top:0!important}
@media(max-width:720px){body.ui-page.home-v2{padding-top:0!important}body.ui-page.home-v2>nav.gh-smart-nav{position:sticky!important;top:0!important}}
