/* Zumi 8.6.9: native portrait/landscape layout; one reachable page scroll area.
   Artwork/wardrobe coordinates and game/save/economy rules are unchanged. */
:root{--z869-safe-top:var(--safe-area-inset-top,env(safe-area-inset-top,0px));--z869-safe-right:var(--safe-area-inset-right,env(safe-area-inset-right,0px));--z869-safe-bottom:var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px));--z869-safe-left:var(--safe-area-inset-left,env(safe-area-inset-left,0px));--z869-control-size:72px;--z869-gap:8px;color-scheme:light}
html,html body{width:100%!important;max-width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;touch-action:auto!important;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body #app.app-shell{position:fixed!important;inset:0 auto auto 0!important;width:var(--z81-vw,100vw)!important;height:var(--z81-vh,100dvh)!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;transform:none!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
#app>.topbar{position:relative!important;width:100%!important;max-width:1600px;margin:0 auto!important;height:auto!important;min-height:64px!important;flex:0 0 auto!important;padding:max(8px,var(--z869-safe-top)) max(12px,var(--z869-safe-right)) 8px max(12px,var(--z869-safe-left))!important;gap:10px;flex-wrap:wrap;z-index:45}
#app .topbar .brand{min-width:0;max-width:none;min-height:44px;flex:1 1 125px}
#app .topbar .brand-caption{min-width:0}
#app .topbar .brand-caption strong{font-size:20px}
#app .topbar-right{flex:0 0 auto;margin-left:auto;gap:8px!important}
#app .topbar .pill{height:44px;min-width:0;padding:0 12px;transform:none}
#app .topbar .pill>*{transform:none}
#app .topbar :is(.icon-btn,.zui-nav-back,.z857-top-shop,.zui-fullscreen-entry){height:44px!important;min-height:44px!important;min-width:44px!important;flex-shrink:0}
#app #view{position:relative!important;inset:auto!important;width:100%!important;max-width:1600px!important;height:0!important;min-height:0!important;flex:1 1 0!important;margin:0 auto!important;padding:12px max(12px,var(--z869-safe-right)) max(18px,var(--z869-safe-bottom)) max(12px,var(--z869-safe-left))!important;display:block!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-x pan-y!important;scroll-padding-block:12px;scrollbar-width:thin;overflow-anchor:none}
#app #view>.screen{min-width:0!important;max-width:100%!important;transform:none!important;animation:none!important;box-sizing:border-box}
#app>.footer{display:none!important}
#app #view :is(.z857-generic-console,.z857-hero-console,.z857-shop-console){height:auto!important;min-height:100%!important;max-height:none!important;overflow:visible!important;display:flex;flex-direction:column;gap:12px;padding:0 0 8px!important}
#view :is(.z857-generic-deck,.z857-hero-deck,.z857-hero-shell){flex:0 0 auto!important;height:auto!important;min-height:0!important;overflow:visible!important}
#view :is(.z857-generic-slide,.z857-hero-page){height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:4px 2px 14px;scrollbar-gutter:auto}
#view :is(.z857-generic-console,.z857-hero-console)>.screen-heading{max-height:none!important;overflow:visible!important;padding:8px 2px!important}
#view :is(.z857-generic-tabs,.z857-hero-tabs,.z856-shop-tabs,.shop-tabs){min-width:0;max-width:100%;flex:0 0 auto;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;scrollbar-width:thin;touch-action:pan-x pan-y!important;padding-block:5px 9px!important}
#view :is(.z857-generic-tab,.z857-tab,.shop-tab,.z856-shop-tabs button){flex:0 0 auto;min-height:44px!important;font-size:12px!important;padding:10px 14px!important;white-space:nowrap}
#view :is(.z857-pagebar,.z857-hero-actions){min-width:0;flex-wrap:wrap;gap:8px}
#view .z857-pagebar{padding:8px;font-size:12px}
#view :is(.z857-pagebar button,.z857-hero-actions button,.z864-wearing-caption button){min-height:44px!important;min-width:44px;font-size:12px!important;padding:9px 12px!important}
/* Hero panels must grow before the selector, never paint over one another. */
#view .z857-hero-overview{height:auto!important;min-height:290px!important;max-height:none!important;grid-template-columns:minmax(180px,.7fr) minmax(0,1fr);align-items:stretch;gap:14px}
#view .z857-hero-overview .portrait-panel{min-height:290px!important;max-height:none!important;height:100%;padding:12px}
#view .z857-hero-overview .portrait-art{max-height:calc(100% - 40px)!important}
#view .z857-hero-info{height:auto;min-height:0;padding:18px;gap:12px}
#view .z857-hero-info h2{font-size:clamp(22px,3vw,32px)}
#view .z857-hero-info p{display:block;font-size:13px;line-height:1.45}
#view .z857-stat-chips span{font-size:12px;padding:10px;gap:8px;flex-wrap:wrap}
#view .z857-hero-page .character-picker{height:auto!important;min-height:120px!important;max-height:none!important;margin:16px 0 0!important;overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x pan-y!important;align-items:stretch;gap:10px;scroll-padding-inline:5px}
#view .z857-hero-page .character-option{flex:0 0 120px!important;min-height:120px;max-height:none!important;display:flex;flex-direction:column;align-items:center;text-align:center;padding:8px!important}
#view .z857-hero-page .character-option img{height:78px!important;max-height:78px!important;max-width:78px;object-fit:contain}
#view .z857-hero-page .character-option>span{padding:5px;gap:5px}
/* Preserve shop categories and pagination, with full-height cards and real scroll. */
#view .z857-shop-console .z856-shop-hero{height:auto!important;max-height:none!important;padding:16px;flex:0 0 auto}
#view .z857-shop-quick{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#view .z857-shop-quick button{min-height:48px!important;padding:10px 8px!important;font-size:12px!important}
#view .z857-shop-console .z856-section-heading{height:auto!important;max-height:none!important;overflow:visible!important;padding:8px 0!important}
#view .z857-shop-console :is(.z856-gear-grid,.z856-paid-grid){flex:0 0 auto!important;height:auto!important;min-height:0!important;overflow:visible!important;scrollbar-gutter:auto;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px;align-items:stretch}
#view .z857-shop-console :is(.z856-gear-card,.z856-paid-card){min-height:0!important;padding:14px!important;gap:10px!important}
#view .z857-shop-console :is(.z856-gear-card h3,.z856-paid-card h3){font-size:17px!important;line-height:1.25!important;overflow-wrap:anywhere}
#view .z857-shop-console .z856-card-top{height:auto;min-height:44px;align-items:center}
#view .z857-shop-console .z856-fav{min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important;flex-basis:44px!important;font-size:24px}
#view .z857-shop-console .z856-gear-card .gear-icon{height:76px!important;font-size:46px!important}
#view .z857-shop-console .z856-paid-art{height:70px;font-size:42px}
#view .z857-shop-console :is(.z856-preview,.gear-footer button,.z856-paid-footer button){min-height:44px!important;font-size:12px!important;padding:10px 12px!important;white-space:normal}
#view .z857-shop-console .gear-footer{height:auto;min-height:0;padding:0!important;gap:10px;align-items:center}
#view .z857-shop-console .z856-gear-actions{gap:10px;flex-wrap:wrap}
#view .z857-shop-console .z856-gear-actions strong{font-size:15px}
#view :is(.chapter-band,.record-layout,.profile-layout,.z8-photo-layout,.z8-daily-stage,.v85-parent-hero){min-width:0}
#view :is(.stage-grid,.gear-grid,.skill-grid,.pet-grid,.awards-grid,.challenge-grid,.sticker-grid){min-width:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))!important}
#view :is(.stage-grid,.gear-grid,.skill-grid,.pet-grid,.awards-grid,.challenge-grid)>*{min-width:0}
#view :is(.button,.act-tab,.v85-solid,.v85-back,.skill-item button){min-height:44px!important}
#view input:not([type=checkbox]):not([type=radio]),#view select,#view textarea{max-width:100%;min-height:44px;font-size:16px}
#view .screen-heading{max-width:100%;gap:12px;flex-wrap:wrap}
#view .screen-heading .section-title{font-size:clamp(24px,4vw,42px)!important;line-height:1.1!important;overflow-wrap:anywhere}
/* Menu cabinet retains its artwork and carousel; portrait gets a lower deck. */
#view .v85-lobby{height:max(260px,calc(var(--z81-vh,100dvh) - 88px))!important;min-height:260px!important;max-height:900px!important}
#view .v86-carousel-controls{height:44px!important;min-height:44px!important}
#view .v86-carousel-controls button{width:44px!important;height:44px!important;min-width:44px!important}
#view .v86-open{min-height:44px!important;padding:8px 14px;font-size:12px}
#view .v86-selected{min-height:56px!important;flex:0 0 auto!important}
#view .v86-selected-text strong{font-size:14px!important}
#view .z857-direct-actions button{min-height:44px!important;font-size:11px!important}
#view .v85-dock{gap:8px!important;padding:12px!important}
#view .v85-primary-actions button{min-height:48px!important}
#view .v86-rail,#view .v86-slide{touch-action:pan-y!important}
/* Dialogs and navigation use the same physical viewport, without rotated offsets. */
#app #drawer{position:absolute!important;inset:0 0 0 auto!important;transform:translateX(105%);width:min(400px,calc(100% - 18px))!important;min-width:0!important;height:100%!important;max-height:100%!important;padding:max(18px,var(--z869-safe-top)) max(16px,var(--z869-safe-right)) max(24px,var(--z869-safe-bottom)) max(16px,var(--z869-safe-left))!important;overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y!important;visibility:hidden;pointer-events:none}
#app #drawer.open{transform:none;visibility:visible;pointer-events:auto}
#app #drawer button{min-height:48px!important;min-width:44px;white-space:normal;font-size:14px!important}
#app #drawer .drawer-title{font-size:25px;padding-bottom:16px}
#app #drawer .drawer-bottom{position:static;margin-top:18px;flex-wrap:wrap;font-size:11px}
#modal-root .modal-wrap,body .zui-install-overlay{position:fixed!important;inset:0 auto auto 0!important;width:var(--z81-vw,100vw)!important;height:var(--z81-vh,100dvh)!important;max-height:none!important;transform:none!important;padding:max(12px,var(--z869-safe-top)) max(12px,var(--z869-safe-right)) max(12px,var(--z869-safe-bottom)) max(12px,var(--z869-safe-left))!important;overflow:hidden;touch-action:pan-y!important}
#modal-root .dialog,body .zui-install-card{width:min(720px,100%)!important;max-width:100%!important;max-height:100%!important;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;padding:24px!important;border-radius:22px;touch-action:pan-y!important}
#modal-root .dialog h2{font-size:clamp(23px,4vw,36px)!important;line-height:1.15}
#modal-root .dialog p{font-size:14px!important;line-height:1.5!important}
#modal-root .dialog button,body .zui-install-card button{min-height:48px!important;font-size:13px!important;padding:12px 16px!important}
/* Main adventure: controls anchored to the physical screen, scene resizes once. */
body.game-playing #app>.topbar{display:none!important}
body.game-playing #app #view{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;flex:none!important;margin:0!important;padding:0!important;overflow:hidden!important;touch-action:none!important}
body.game-playing #view>.game-section{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;overflow:hidden!important}
body.game-playing #game-viewport{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:linear-gradient(#d5f1fa,#94cde5 50%,#dff3d6)}
body.game-playing #game-canvas{display:block;width:100%!important;height:100%!important;touch-action:none!important}
body.game-playing #view .game-top{position:absolute;inset:max(8px,var(--z869-safe-top)) max(12px,var(--z869-safe-right)) auto max(12px,var(--z869-safe-left));width:auto;margin:0;gap:12px;z-index:24;display:flex;align-items:flex-start;pointer-events:none}
body.game-playing #view .game-title{min-width:0;max-width:none;flex:1 1 180px;gap:4px}
body.game-playing #view .game-title b{font-size:clamp(13px,2vw,22px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.game-playing #view .game-title>span{font-size:11px}
body.game-playing #view .game-top-right{display:flex;align-items:center;gap:8px;flex:0 0 auto;pointer-events:auto}
body.game-playing #view .game-top-right button{min-width:44px!important;min-height:44px!important;height:44px!important;max-width:none;font-size:22px;padding:5px;flex-shrink:0}
body.game-playing #view .v6-team-swap small{display:none}
body.game-playing #view .mini-hp{width:clamp(100px,17vw,190px);max-width:none;min-width:0;font-size:11px}
body.game-playing #view .game-hud{position:absolute;top:max(68px,calc(var(--z869-safe-top) + 62px));left:max(12px,var(--z869-safe-left));right:max(12px,var(--z869-safe-right));gap:12px;align-items:flex-start;pointer-events:none}
body.game-playing #view .mission-hud{width:auto;max-width:min(46%,370px);padding:8px 10px;border-radius:12px;pointer-events:none}
body.game-playing #view .mission-hud small{font-size:10px;line-height:1.35;letter-spacing:.04em}
body.game-playing #view .mission-hud strong{font-size:12px;line-height:1.35}
body.game-playing #view .way-button{min-height:44px!important;padding:8px 12px!important;font-size:11px;pointer-events:auto}
body.game-playing #view .hud-right{font-size:13px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;max-width:48%}
body.game-playing #view .hud-energy{display:block!important;top:var(--z869-energy-top,calc(122px + var(--z869-safe-top)));right:max(14px,var(--z869-safe-right));left:auto;width:min(150px,30%)}
body.game-playing #view .v5-stage-progress{top:calc(58px + var(--z869-safe-top))!important;bottom:auto!important;left:max(12px,var(--z869-safe-left))!important;right:max(12px,var(--z869-safe-right))!important;width:auto!important;height:5px!important;margin:0!important}
body.game-playing #view .touch-ui{--z869-key:min(var(--z869-control-size),calc((var(--z81-vw,100vw) - 110px)/7),18dvh);position:absolute;left:max(12px,var(--z869-safe-left))!important;right:max(12px,var(--z869-safe-right))!important;bottom:max(14px,var(--z869-safe-bottom))!important;z-index:23;display:flex;align-items:flex-end;justify-content:space-between;gap:14px;touch-action:none!important;pointer-events:none}
body.game-playing #view :is(.touch-left,.touch-right){display:flex;gap:var(--z869-gap);align-items:flex-end;pointer-events:none}
body.game-playing #view .control{width:max(48px,var(--z869-key))!important;height:max(48px,var(--z869-key))!important;min-width:0!important;min-height:0!important;padding:3px!important;flex:0 0 auto!important;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:26px;gap:3px;border-radius:18px!important;pointer-events:auto;touch-action:none!important;user-select:none;-webkit-user-select:none}
body.game-playing #view .control small{font-size:10px;line-height:1.1;letter-spacing:0;pointer-events:none}
body.game-playing #view .game-bottom,body.game-playing #view .rotate-tip{display:none!important}
@media(max-width:700px){
 #app>.topbar{gap:6px;padding:max(7px,var(--z869-safe-top)) max(10px,var(--z869-safe-right)) 7px max(10px,var(--z869-safe-left))!important;min-height:60px!important}
 #app .topbar .brand{flex-basis:100px;gap:7px}
 #app .topbar .z7-brand-mark{width:40px!important;height:40px!important;min-width:40px}
 #app .topbar .brand-caption strong{font-size:17px!important;letter-spacing:1px}
 #app .topbar .brand-caption small{font-size:7px!important;letter-spacing:1px}
 #app .topbar-right{gap:5px!important}
 #app .topbar .pill{padding:0 8px;height:40px}
 #app .topbar .level-pill{display:none}
 #app .topbar .z857-top-shop{padding:5px!important;font-size:0!important;width:44px}
 #app .topbar .z857-top-shop::before{content:'🛍️';font-size:21px;line-height:1}
 #app .topbar .zui-nav-back{padding:0 8px;font-size:12px}
 #app #view{padding:10px max(10px,var(--z869-safe-right)) max(16px,var(--z869-safe-bottom)) max(10px,var(--z869-safe-left))!important}
 #view .z857-shop-quick{grid-template-columns:repeat(2,minmax(0,1fr))}
 #view .z857-shop-console :is(.z856-gear-grid,.z856-paid-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 #view .z857-shop-console :is(.z856-gear-card,.z856-paid-card){padding:10px!important}
 #view .z857-hero-overview{grid-template-columns:minmax(0,1fr)!important;min-height:0!important}
 #view .z857-hero-overview .portrait-panel{height:280px!important;min-height:280px!important}
 #view .z857-hero-info{padding:16px}
 #view :is(.record-layout,.profile-layout,.chapter-band,.z8-photo-layout){grid-template-columns:minmax(0,1fr)!important}
 #view .chapter-band-right{grid-column:auto!important;text-align:left;align-items:flex-start;padding:16px}
 #view .z8-photo-stage{height:320px;min-height:0}
 #view .z8-daily-stage{display:flex;flex-direction:column;height:auto;min-height:0;gap:18px;padding:20px}
 #view .z8-daily-portrait{height:220px;max-width:100%}
 #view .z8-daily-copy{width:100%;min-width:0}
}
@media(max-width:370px){
 #app .topbar .brand-caption small{display:none}
 #app .topbar .brand{flex-basis:82px}
 #app .topbar .z7-brand-mark{width:34px!important;height:34px!important;min-width:34px}
 #app .topbar .brand-caption strong{font-size:14px!important}
 #view .z857-shop-console :is(.z856-gear-grid,.z856-paid-grid){grid-template-columns:minmax(0,1fr)!important}
}
@media(orientation:portrait){
 #view .v85-lobby{height:max(750px,calc(var(--z81-vh,100dvh) - 92px))!important;max-height:none!important;min-height:750px!important;border-radius:24px!important}
 #view .v85-copy{left:5%!important;top:4%!important;width:67%!important;gap:10px!important}
 #view .v85-copy h1{font-size:clamp(42px,7vw,72px)!important;line-height:.94}
 #view .v85-copy>p{display:block;font-size:14px;line-height:1.4;max-width:32ch}
 #view .v85-kicker{font-size:10px;white-space:normal;line-height:1.35}
 #view .v85-overline{font-size:11px}
 #view .v85-primary-actions{flex-wrap:wrap;gap:8px;width:100%}
 #view .v85-primary-actions button{font-size:13px;padding:8px 11px;min-width:0}
 #view .v85-next{font-size:11px}
 #view .v85-character-orbit{left:auto!important;right:-5%;top:12%!important;width:46%!important;height:39%!important}
 #view .z857-direct-actions{left:4%!important;right:4%;bottom:50.5%!important;width:auto!important;max-height:none;gap:8px}
 #view .z857-direct-actions button{padding:8px 5px;font-size:11px!important;min-height:48px!important;flex-direction:column}
 #view .z857-direct-actions button span{font-size:22px}
 #view .v85-bottom-stats{display:none!important}
 #view .v85-dock{inset:51% 4% 3% 4%!important;width:auto!important;padding:12px!important;gap:8px!important;border-radius:21px}
 #view .v85-dock-head b{font-size:23px!important}
 #view .v85-dock-head small{display:block;font-size:9px}
 #view .v86-slide.v85-tile{height:min(84%,185px)!important;gap:7px!important}
 #view .v86-slide.v85-tile .v85-tile-icon{font-size:36px!important}
 #view .v86-slide.v85-tile b{font-size:15px!important;line-height:1.2!important}
 #view .v86-slide.v85-tile small{font-size:10px!important}
 body.game-playing #view .game-top{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 body.game-playing #view .game-title{display:flex;flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap}
 body.game-playing #view .game-title b{font-size:15px;flex:1 1 150px}
 body.game-playing #view .game-title .v86-world-mark{display:none}
 body.game-playing #view .game-top-right{width:100%;justify-content:space-between;gap:8px}
 body.game-playing #view .mini-hp{flex:1 1 auto;width:auto}
 body.game-playing #view .game-hud{top:calc(116px + var(--z869-safe-top))}
 body.game-playing #view .v5-stage-progress{top:calc(106px + var(--z869-safe-top))!important}
 body.game-playing #view .mission-hud{max-width:62%;padding:8px}
 body.game-playing #view .hud-right{max-width:36%;font-size:12px;gap:6px}
 body.game-playing #view .hud-energy{top:var(--z869-energy-top,calc(178px + var(--z869-safe-top)));right:max(12px,var(--z869-safe-right));width:28%}
 body.game-playing #game-canvas{position:absolute;top:var(--z869-scene-top,calc(196px + var(--z869-safe-top)));bottom:var(--z869-scene-bottom,calc(118px + var(--z869-safe-bottom)));height:calc(100% - var(--z869-scene-top,calc(196px + var(--z869-safe-top))) - var(--z869-scene-bottom,calc(118px + var(--z869-safe-bottom))))!important;min-height:150px}
 body.game-playing #view .touch-ui{--z869-key:min(var(--z869-control-size),calc((var(--z81-vw,100vw) - 80px)/7),11dvh)}
}
@media(orientation:portrait) and (max-width:700px){
 #view .v85-copy{width:75%!important;gap:6px!important}
 #view .v85-copy>p{display:none}
 #view .v85-copy h1{font-size:44px!important}
 #view .z857-direct-actions button b{font-size:clamp(9px,2.5vw,11px);overflow-wrap:normal;word-break:normal;white-space:nowrap;letter-spacing:-.2px}
 #view .v85-primary-actions{max-width:95%;flex-direction:column;align-items:stretch}
 #view .v85-character-orbit{right:-11%;top:10%!important;width:52%!important;height:40%!important}
 #view .v85-primary-actions button{width:100%;max-width:225px}
 body.game-playing #view .touch-ui{--z869-key:min(var(--z869-control-size),calc((var(--z81-vw,100vw) - 64px)/5),12dvh);gap:10px;left:max(10px,var(--z869-safe-left))!important;right:max(10px,var(--z869-safe-right))!important}
 body.game-playing #view .touch-right{display:grid;grid-template-columns:repeat(3,max-content);gap:6px}
 body.game-playing #view .touch-left{gap:6px}
 body.game-playing #game-canvas{top:var(--z869-scene-top,calc(202px + var(--z869-safe-top)));bottom:var(--z869-scene-bottom,calc(172px + var(--z869-safe-bottom)));height:calc(100% - var(--z869-scene-top,calc(202px + var(--z869-safe-top))) - var(--z869-scene-bottom,calc(172px + var(--z869-safe-bottom))))!important}
}
@media(orientation:landscape) and (max-height:480px){
 #app>.topbar{min-height:58px!important;padding-block:max(6px,var(--z869-safe-top)) 6px!important}
 #view .v85-lobby{height:max(270px,calc(var(--z81-vh,100dvh) - 80px))!important}
 #view .v85-copy{top:6%!important;gap:7px!important}
 #view .v85-copy h1{font-size:39px!important}
 #view .v85-copy>p{display:none}
 #view .v85-dock{top:3%!important;bottom:3%!important;padding:7px!important;gap:4px!important}
 #view .v85-dock-head b{font-size:18px!important}
 #view .v85-dock-head small,#view .v86-card-spark,#view .v86-card-badge{display:none}
 #view .v86-slide.v85-tile{height:min(82%,100px)!important}
 #view .v86-slide.v85-tile .v85-tile-icon{font-size:26px!important}
 #view .v86-slide.v85-tile b{font-size:12px!important}
 #view .v86-selected{min-height:48px!important;padding:3px 5px}
 #view .z857-direct-actions{bottom:8%!important}
 #view .z857-direct-actions button{font-size:10px!important;padding:5px 3px}
 body.game-playing #view .game-title>span{font-size:9px}
 body.game-playing #view .game-title b{font-size:13px}
 body.game-playing #view .game-hud{top:calc(68px + var(--z869-safe-top))}
 body.game-playing #view .mission-hud{max-width:43%;padding:5px 7px}
 body.game-playing #view .mission-hud strong{font-size:10px}
 body.game-playing #view .hud-energy{top:var(--z869-energy-top,calc(112px + var(--z869-safe-top)))}
}
/* Short, narrow phones need both primary actions on one row above the shortcuts. */
@media(orientation:landscape) and (max-width:700px) and (max-height:480px){
 #view .v85-copy{top:3%!important;gap:5px!important}
 #view .v85-copy h1{font-size:32px!important}
 #view .v85-primary-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
 #view .v85-primary-actions button{width:100%!important;min-width:0!important;font-size:11px!important;padding:7px 5px!important;white-space:normal}
}
