
/* ZUMİ V8.1 — screen-fill, landscape-first responsive corrections. */
:root { --z81-vw: 100vw; --z81-vh: 100dvh; --z81-head: 64px; }
html { overflow-x:hidden; overscroll-behavior:none; }
body { width:100%; min-height:100dvh; overflow-x:hidden; }
.app-shell { min-height:100dvh; }
/* Site navigation is a scrollable app surface, not a narrow document column. */
body:not(.game-playing) .view { scrollbar-width:thin; scroll-padding-top:12px; }
body:not(.game-playing) .view > .screen { min-width:0; }
.home-hero { overflow:hidden; width:100%; max-width:none; box-sizing:border-box; }
.home-hero .z8-hero-shortcuts { z-index:7; }
.home-hero .hero-status { pointer-events:none; }
.home-hero .z7-home-mascot { pointer-events:none; }
/* Landscape mobile browser and landscape Android: hero occupies the first screen fully;
   next dashboard card does not peek below it on the landing view. */
@media (orientation:landscape) {
 body:not(.game-playing) .app-shell { height:var(--z81-vh); min-height:0; overflow:hidden; }
 body:not(.game-playing) .topbar { flex:0 0 64px; }
 body:not(.game-playing) .view { flex:1 1 auto; height:auto!important; min-height:0!important;
   overflow-y:auto!important; overflow-x:hidden!important; width:calc(100% - 24px)!important;
   max-width:1540px; padding:10px 0 16px!important; margin:0 auto!important; }
 body:not(.game-playing) .view:has(.home-hero) .home-hero {
   height:calc(var(--z81-vh) - 64px - 24px)!important; min-height:0!important; max-height:none!important; }
 body:not(.game-playing) .footer { display:none!important; }
}
@media (orientation:landscape) and (max-height:540px) {
 body:not(.game-playing) .topbar { flex:0 0 54px; height:54px!important; }
 body:not(.game-playing) .view:has(.home-hero) .home-hero {
   height:calc(var(--z81-vh) - 54px - 20px)!important; min-height:0!important; }
 .hero-content { padding:10px 14px 63px!important; width:64%; }
 .hero-content .display { font-size:clamp(25px,3.8vw,39px)!important; line-height:1.02!important; }
 .hero-content .subcopy { font-size:clamp(10px,1.12vw,12px); line-height:1.25!important; }
 .z8-hero-shortcuts { max-width:69%; bottom:9px!important; }
 .z8-hero-shortcuts button { font-size:11px; min-height:34px; padding:4px 8px; }
 .hero-status { max-width:30%; bottom:10px!important; }
 .character-picker { grid-template-columns:repeat(7,minmax(0,1fr))!important; }
}
@media (orientation:landscape) and (max-height:350px) {
 .home-hero .hero-content .display { font-size:clamp(21px,3.5vw,29px)!important; }
 .home-hero .hero-content .subcopy { font-size:9px; }
 .home-hero .hero-content .button-row .button { min-height:32px!important; padding:5px 9px!important; font-size:10px; }
 .z8-hero-shortcuts button { min-height:31px; font-size:10px; }
 .hero-status { display:none!important; }
 body.game-playing .mission-hud { max-width:29vw; }
 body.game-playing .hud-energy { display:none!important; }
}
/* Portrait browser: all screens are rotated in a single fitted app canvas, not
   merely the hero art. Dimensions come from the currently visible viewport,
   including dynamic Chrome URL bar shrink/expansion. */
@media (orientation:portrait) and (pointer:coarse), (orientation:portrait) and (max-width:600px) {
 html,body { margin:0!important; padding:0!important; overflow:hidden!important; width:var(--z81-vw)!important;
   height:var(--z81-vh)!important; min-height:0!important; }
 body .app-shell,body.game-playing .app-shell {
   position:fixed!important; top:0!important; left:var(--z81-vw)!important; right:auto!important; bottom:auto!important;
   width:var(--z81-vh)!important; height:var(--z81-vw)!important;
   transform-origin:0 0!important; transform:rotate(90deg)!important;
   min-width:0!important; min-height:0!important; max-width:none!important; max-height:none!important;
   overflow:hidden!important;
 }
 body:not(.game-playing) .topbar { flex:0 0 52px!important; height:52px!important; min-height:52px!important; }
 body:not(.game-playing) .view { flex:1 1 auto; height:auto!important; min-height:0!important;
   width:calc(100% - 16px)!important; margin:0 8px!important;
   padding:5px 0 12px!important; overflow-y:auto!important; overflow-x:hidden!important;
   scrollbar-width:none; }
 body:not(.game-playing) .view::-webkit-scrollbar { display:none; }
 body:not(.game-playing) .view:has(.home-hero) .home-hero {
   height:calc(var(--z81-vw) - 52px - 18px)!important;
   min-height:0!important; max-height:none!important; border-width:4px!important;
   border-radius:20px!important; }
 .hero-content { padding:8px 11px 57px!important; width:65%; }
 .hero-content .display { font-size:clamp(24px,3.8vh,36px)!important; line-height:1.02!important; }
 .hero-content .subcopy { font-size:clamp(9px,1.3vh,12px)!important; line-height:1.23!important; }
 .hero-content .button-row { gap:5px; margin-top:8px!important; }
 .hero-content .button-row .button { min-height:33px!important; padding:6px 8px!important; font-size:clamp(9px,1.15vh,11px)!important; }
 .z8-hero-shortcuts { left:12px!important; bottom:8px!important; max-width:70%!important; gap:4px!important; }
 .z8-hero-shortcuts button { min-height:31px!important; padding:3px 7px!important; font-size:10px!important; }
 .hero-status { right:5px!important; bottom:8px!important; min-width:90px!important; max-width:28%!important; }
 .hero-status strong { font-size:10px!important; }
 .character-picker { grid-template-columns:repeat(5,minmax(0,1fr))!important; }
 .screen-heading { margin:4px 0 9px!important; }
 body.game-playing .game-viewport,body.game-playing .game-section { min-width:0!important; min-height:0!important; }
 body.game-playing .touch-ui { left:8px!important; right:8px!important; bottom:8px!important; }
 body.game-playing .control { width:clamp(47px,10vh,64px)!important; height:clamp(47px,10vh,64px)!important; }
}
/* The navigation drawer always appears within the game canvas rather than
   crossing over the external browser chrome. */
.drawer.open { visibility:visible; }
.drawer button, .menu-button, .control, .button { -webkit-tap-highlight-color:transparent; }
@media (prefers-reduced-motion:reduce) {
 .home-hero * { animation-duration:0.01ms!important; animation-iteration-count:1!important; }
}
/* V8.1 regression: the scroll region must have a finite height, otherwise
   dashboard, character inventory, map and shop are clipped behind the shell. */
@media(orientation:landscape){
 body:not(.game-playing) .app-shell {display:flex!important;flex-direction:column!important;}
 body:not(.game-playing) .topbar {width:100%;max-width:1480px;margin:0 auto!important;flex-shrink:0;box-sizing:border-box;}
 body:not(.game-playing) .view {height:0!important; flex:1 1 0!important; overflow-y:auto!important; overscroll-behavior:contain; box-sizing:border-box;}
}
body.game-playing .screen.game-section {animation:none!important;transform:none!important;}

