[hidden]{display:none!important}
.hero-art{z-index:0!important;background-image:url('/bg-maxwow-mostwanted.webp')!important;background-position:center center!important;filter:saturate(1.02) contrast(1.02)!important}
.hero-shade{z-index:1!important;background:linear-gradient(90deg,#07090d88 0%,#080b0d30 35%,transparent 68%),linear-gradient(0deg,#07090d55 0%,transparent 45%,#07090d12 100%)!important}
.topbar,main{position:relative;z-index:2!important}.topbar{z-index:10!important}
.menu-stage{position:fixed!important;inset:0!important;width:100%!important;min-height:100dvh!important;margin:0!important;padding:0!important;justify-content:center!important;align-items:center!important}
.page-logo{display:block;width:220px;height:auto;filter:drop-shadow(0 4px 9px #000)}
.brand-logo{width:270px!important}
.menu-shell:before{inset:-10px!important;background:url('/frame-login-panel.webp') center/100% 100% no-repeat!important;border:0!important;z-index:2!important;opacity:.96}
.menu-shell:after{display:none!important}
.menu-shell{background:linear-gradient(145deg,#20272aee,#0d1113e8 55%,#181d1fe8)!important;border:0!important;box-shadow:0 24px 80px #000c!important}
.menu-heading{justify-content:center!important}
.menu-action,.game-item.primary-item{background-image:url('/button-racing.webp')!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;border:0!important;box-shadow:none!important;text-shadow:0 2px 2px #000!important}
.menu-action:hover,.game-item.primary-item:hover{background-image:url('/button-racing.webp')!important;filter:brightness(1.16)!important}
.menu-action{height:58px!important;color:#f6f4ec!important}
.game-item.primary-item{height:72px!important;padding:0 24px!important;display:flex!important;align-items:center!important}
@media(max-width:720px){
  body{overflow:hidden!important}
  .page-logo{width:165px}
  .menu-shell:before{inset:-7px!important}
  .hero-art{background-position:62% center!important}
  .menu-stage{padding:env(safe-area-inset-top,12px) max(14px,env(safe-area-inset-right)) env(safe-area-inset-bottom,12px) max(14px,env(safe-area-inset-left))!important;justify-content:center!important;align-items:center!important;overflow-y:auto!important;overflow-x:hidden!important;touch-action:pan-y;-webkit-overflow-scrolling:touch}
  .auth-shell,.game-shell{width:100%!important;max-width:430px!important}
  .tabbar button{min-height:44px;padding-top:12px;padding-bottom:12px}
  .menu-action{min-height:56px!important}
  .game-item{min-height:56px;padding-top:16px;padding-bottom:16px}
}
@media(orientation:landscape) and (max-height:600px){
  .page-logo{width:132px}
  .menu-stage{padding:8px max(18px,env(safe-area-inset-right)) 8px max(18px,env(safe-area-inset-left))!important}
  .menu-shell{transform:scale(.72);transform-origin:center center}
}
.graphics-panel{position:absolute;z-index:12;inset:12% 8%;padding:24px;color:#eee;background:rgba(10,12,15,.97);border:1px solid #b34a24;box-shadow:0 18px 60px #000;display:grid;gap:14px}.graphics-panel[hidden]{display:none}.graphics-panel label{display:grid;grid-template-columns:1fr auto;gap:8px;color:#bbb;font-size:11px;letter-spacing:.08em}.graphics-panel select,.graphics-panel input[type=range]{grid-column:1/-1}.graphics-panel select{background:#17191b;color:#fff;border:1px solid #555;padding:8px}.graphics-panel input[type=checkbox]{justify-self:end;accent-color:#d25a2a}.graphics-panel output{color:#f3a05e}.graphics-panel .panel-action{justify-self:end;padding:9px 18px;background:#241817;color:#f3a05e;border:1px solid #a84928;font-weight:700}@media(max-width:700px){.graphics-panel{inset:5% 4%;padding:18px;overflow:auto}}

/* Keep the racing menu readable in short landscape viewports. Scaling the
   whole panel down made its text and controls difficult to use. */
@media(orientation:landscape) and (max-height:600px){
  .menu-stage{position:fixed!important;inset:0!important;width:100%!important;min-height:100dvh!important;padding:56px 14px 12px!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;overflow-x:hidden!important;overflow-y:auto!important;z-index:2!important}
  .menu-shell{width:min(430px,100%)!important;margin:0 auto!important;transform:none!important}
  .page-logo{width:132px!important}
  .menu-heading{height:54px!important;padding-inline:20px!important}
  .menu-logo{width:178px!important}
  .tabbar button{min-height:44px!important;padding-block:10px!important}
  form{gap:10px!important;padding:14px 20px!important}
  input{height:44px!important}
  .message{min-height:12px!important;padding-bottom:8px!important}
}

/* Clear keyboard focus, touch-sized navigation, and respect motion settings. */
.maxwow-link,.topbar nav button{min-height:44px;display:inline-flex;align-items:center}
.tabbar button{min-height:44px}
.game-item{min-height:44px}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--yellow-bright)!important;outline-offset:3px!important;box-shadow:0 0 0 5px #050709!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(max-width:720px){input{font-size:16px!important}}
/* Preserve the hidden attribute when the short-landscape stage uses flex. */
.menu-stage[hidden]{display:none!important}
