/* Zumi V8.5.8 | single-screen navigation, premium home and install-ready PWA.
   Avoid touching purchase permissions or old save values. */
[hidden]{display:none!important}
html,body{overscroll-behavior:none!important}
.view > .screen{box-sizing:border-box;min-width:0;max-width:100%}
/* Main menu: keep the original 3D cabinet, but show labels in a crisp selection panel. */
.v86-slide.v85-tile b{max-width:96%;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.15!important;overflow-wrap:anywhere!important;text-shadow:0 1px 0 #ffffffd0}
.v86-slide.v85-tile small{max-width:97%;white-space:normal!important;overflow:visible!important;line-height:1.13!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;-webkit-box-orient:vertical;overflow:hidden!important}
.v86-slide[data-slot="0"]{background:linear-gradient(146deg,#fff9da,#c8f7ff 55%,#f1dfff)!important;color:#173f6c!important}
.v86-slide[data-slot="0"] b{font-weight:1000!important;font-size:clamp(11px,1.7cqw,20px)!important;color:#173c66!important}
.v86-slide[data-slot="0"] .v86-card-badge{color:#82421b!important;border-color:#fff!important}
.v86-selected-text strong{font-weight:1000!important;color:#1b4772!important;letter-spacing:.005em}
.v86-selected-text small{color:#396b8d!important}
.v85-dock{background:linear-gradient(130deg,#f0fcfffc,#f7f2fffc 53%,#fff4def9)!important}
.v85-dock-foot{display:none!important}
.v86-spotlight{flex:1 1 auto;min-height:0!important}
.v86-rail{flex:1 1 auto!important;min-height:0}
/* Fixed shortcuts no longer sit BELOW the main game. They float inside the launch scene. */
.z857-direct-actions{position:absolute;z-index:9;left:3%;bottom:12%;width:48%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(4px,.8vw,10px);align-items:stretch;max-height:20%}
.z857-direct-actions button{display:flex;gap:5px;align-items:center;justify-content:center;min-width:0;min-height:38px;padding:6px 5px;border-radius:clamp(10px,1.45cqw,15px);border:2px solid #fff;box-shadow:0 4px 0 #194f7e77,0 7px 14px #103a6266;font:950 clamp(9px,1.05cqw,14px)/1.12 system-ui,sans-serif;letter-spacing:.005em;text-shadow:none;touch-action:manipulation;transition:transform .12s,filter .12s}
.z857-direct-actions button:active{transform:translateY(3px);filter:brightness(1.06)}
.z857-direct-actions button span{font-size:clamp(18px,2.2cqw,29px);flex:0 0 auto}
.z857-direct-actions button b{overflow-wrap:anywhere}
.z857-direct-store{background:linear-gradient(125deg,#fff2b5,#ffbd63);color:#744414}
.z857-direct-hero{background:linear-gradient(125deg,#fbeaff,#ddc8ff);color:#604889}
.z857-direct-install{background:linear-gradient(125deg,#dafdfa,#9de8df);color:#155d69}
.z857-top-shop{display:inline-flex;align-items:center;gap:6px;justify-content:center;min-height:38px;padding:5px 12px;border:2px solid #fff;border-radius:13px;background:linear-gradient(125deg,#fff0bd,#ffc16d);color:#825120;font:950 12px system-ui,sans-serif;white-space:nowrap;box-shadow:0 3px 0 #d4a0646e}
.z857-top-shop:active{transform:translateY(2px)}
/* Screen fills viewport, categories live as tabs and content is confined to a pane. */
body:not(.game-playing) .view:has(.z857-generic-console),body:not(.game-playing) .view:has(.z857-hero-console),body:not(.game-playing) .view:has(.z857-shop-console){overflow-y:hidden!important;overflow-x:hidden!important;padding-bottom:4px!important;display:flex;flex-direction:column;min-height:0!important}
.view > .z857-generic-console,.view > .z857-hero-console,.view > .z857-shop-console{height:100%!important;min-height:0!important;overflow:hidden!important;display:flex;flex-direction:column;gap:5px;padding:0 2px 4px!important;box-sizing:border-box}
.z857-generic-console > .screen-heading,.z857-hero-console > .screen-heading{flex:0 0 auto;padding:5px 8px!important;margin:0!important;max-height:30%;overflow:hidden}
.z857-generic-console > .screen-heading h1,.z857-hero-console > .screen-heading h1{font-size:clamp(17px,2.4cqw,29px);line-height:1.04;margin:2px 0}
.z857-generic-console > .screen-heading p,.z857-hero-console > .screen-heading p{display:none}
.z857-generic-tabs,.z857-hero-tabs{flex:0 0 auto;display:flex;gap:6px;overflow:auto hidden;scrollbar-width:none;max-width:100%;padding:3px 2px 6px}
.z857-generic-tabs::-webkit-scrollbar,.z857-hero-tabs::-webkit-scrollbar{display:none}
.z857-generic-tab,.z857-tab{flex:0 0 auto;max-width:190px;min-height:33px;padding:7px 13px;border:2px solid #e0eefe;border-radius:12px;background:#f8fcff;color:#255777;font:900 clamp(10px,1.16cqw,14px)/1.12 system-ui,sans-serif;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.z857-generic-tab.is-active,.z857-tab.is-active{border-color:white;background:linear-gradient(125deg,#ffe1a5,#ffad7d);color:#6a3f19;box-shadow:0 3px 0 #c88a5999}
.z857-generic-deck,.z857-hero-deck{flex:1 1 0;min-height:0!important;overflow:hidden;position:relative}
.z857-generic-slide,.z857-hero-page{height:100%;min-height:0;overflow:auto hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:5px 6px 14px;box-sizing:border-box}
.z857-generic-slide>.stage-grid,.z857-generic-slide>.gear-grid,.z857-generic-slide>.v85-game-hub{margin-top:0!important}
.z857-pagebar{display:flex;align-items:center;gap:9px;justify-content:center;padding:7px 4px 2px;background:#f3faff;border:2px solid white;border-radius:13px;color:#27618d;font:850 11px system-ui,sans-serif}
.z857-pagebar button{flex:0 0 auto;padding:7px 11px;border:1px solid #c4e1f2;border-radius:9px;background:#fff;color:#2b6690;font:850 10px system-ui,sans-serif}
.z857-pagebar button:disabled{opacity:.35}
/* Hero overview: image, attributes and instantly selectable hero strip, without vertical wandering. */
.z857-hero-shell{flex:1 1 0;display:flex;flex-direction:column;min-height:0}
.z857-hero-page{padding:3px 5px 5px}
.z857-hero-overview{display:grid;grid-template-columns:minmax(0,38%) minmax(0,1fr);gap:10px;min-height:0;height:55%;max-height:220px}
.z857-hero-overview .portrait-panel{max-height:100%;min-height:0;overflow:hidden;border-radius:18px}
.z857-hero-overview .portrait-art{max-height:calc(100% - 40px)!important;object-fit:contain!important}
.z857-hero-overview .portrait-bottom{padding:4px 6px!important}
.z857-hero-info{min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:8px 12px;border:2px solid white;border-radius:18px;background:linear-gradient(140deg,#e9f9ff,#fff2df);color:#194871}
.z857-hero-tag{font:900 10px system-ui,sans-serif;letter-spacing:.08em;color:#5281a4}
.z857-hero-info h2{font:1000 clamp(16px,2.6cqw,28px)/1.1 system-ui,sans-serif;color:#134d79;margin:0}
.z857-hero-info p{font:750 11px/1.3 system-ui,sans-serif;color:#57718a;margin:0}
.z857-stat-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.z857-stat-chips span{display:flex;justify-content:space-between;align-items:center;gap:5px;min-width:0;padding:6px 7px;border-radius:9px;border:1px solid #cce5f0;background:#ffffffe0;color:#245b80;font:900 10px system-ui,sans-serif}
.z857-stat-chips strong{color:#b16b36}
.z857-hero-actions{display:flex;gap:6px}
.z857-hero-actions button{flex:1;min-width:0;min-height:30px;border:2px solid #fff;border-radius:11px;background:linear-gradient(130deg,#ffdcaa,#ffc4a3);color:#76502b;font:900 clamp(9px,1.1cqw,12px)/1.2 system-ui,sans-serif}
.z857-hero-actions button:last-child{background:linear-gradient(130deg,#dcefff,#cbdefe);color:#285b80}
.z857-hero-page .character-picker{display:flex!important;gap:8px;overflow:auto hidden!important;max-width:100%;min-height:76px;max-height:42%;margin:7px 0 2px;padding:4px 6px 8px;scrollbar-width:thin}
.z857-hero-page .character-option{flex:0 0 clamp(95px,15%,145px)!important;min-width:0!important;padding:4px!important;max-height:100%;font-size:10px}
.z857-hero-page .character-option img{max-height:58px;max-width:50px;object-fit:contain}
.z857-hero-page .character-option small{font-size:9px}
.z857-hero-page .profile-panel{margin-bottom:5px!important}
.z857-hero-page .stat-rows,.z857-hero-page .skill-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))!important}
/* Shop: first screen contains tabs and browsable cards, adults gate checkout only. */
.z857-shop-console .z856-shop-hero{flex:0 0 auto;min-height:0;max-height:27%;padding:8px 14px}
.z857-shop-console .z856-shop-hero h1{font-size:clamp(20px,3cqw,33px)}
.z857-shop-console .z856-shop-hero p{display:none}
.z857-shop-console .z856-shop-hero img{max-height:92px}
.z857-shop-console .z856-shop-corners{display:none!important}
.z857-shop-quick{flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.z857-shop-quick button{min-height:32px;min-width:0;padding:6px 5px;border-radius:11px;border:2px solid #fff;background:linear-gradient(135deg,#e1f9ff,#e1edff);color:#27577b;font:900 clamp(9px,1cqw,13px)/1.18 system-ui,sans-serif;white-space:normal}
.z857-shop-quick button:nth-child(2){background:linear-gradient(135deg,#fff3c7,#ffdfb1);color:#855331}
.z857-shop-console .z856-shop-tabs{flex:0 0 auto;min-height:0;margin:0;padding:4px 0;scrollbar-width:none}
.z857-shop-console .z856-shop-tabs button{min-height:30px;padding:6px 10px;font-size:10px}
.z857-shop-console .z856-section-heading{flex:0 0 auto;padding:3px 2px 2px;min-height:0;max-height:32px;overflow:hidden}
.z857-shop-console .z856-section-heading h2{font-size:clamp(13px,1.7cqw,20px)}
.z857-shop-console .z856-section-heading p,.z857-shop-console .z856-section-heading span{display:none}
.z857-shop-console .z856-gear-grid,.z857-shop-console .z856-paid-grid{flex:1 1 0;min-height:0;overflow:auto hidden!important;align-content:start;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.z857-shop-console .z856-gear-card{min-height:0!important;padding:8px!important;gap:4px!important}
.z857-shop-console .z856-gear-card h3{font-size:clamp(12px,1.3cqw,16px)!important}
.z857-shop-console .z856-gear-card .gear-icon{height:35px!important;font-size:30px!important}
.z857-shop-console .z856-gear-card>p{display:none}
.z857-shop-console .z856-paid-art{height:36px;font-size:28px}
.z857-shop-console .z856-paid-card{padding:8px;gap:4px}
.z857-shop-console .z856-paid-card h3{font-size:14px}
.z857-shop-console .z856-paid-card p{display:none}
.z857-shop-console .z856-gear-card .gear-footer button{min-height:28px;padding:5px 7px}
.z857-shop-console .z857-pagebar{flex:0 0 auto}
.z857-shop-console .z856-store-spotlight,.z857-shop-console .z856-more-items{display:none}
body.z857-installed .z857-direct-install{display:none}
@media(orientation:landscape) and (max-height:450px){
 .z857-direct-actions{bottom:13%;max-height:18%}
 .z857-direct-actions button{min-height:32px;padding:4px 3px;font-size:clamp(8px,.97cqw,11px)}
 .z857-direct-actions button span{font-size:clamp(14px,1.8cqw,21px)}
 .z857-top-shop{padding:4px 9px;min-height:32px}
 .z857-generic-slide .screen-heading{display:none}
 .z857-shop-console .z856-shop-hero{max-height:21%}
 .z857-shop-console .z856-shop-hero img{max-height:70px}
 .z857-hero-info p{display:none}
 .z857-hero-tag{font-size:9px}
 .z857-hero-overview{height:60%}
 .z857-hero-info{padding:5px 8px;gap:3px}
 .z857-hero-page .character-picker{max-height:35%}
}
@media(max-width:750px) and (orientation:landscape){
 .z857-direct-actions{left:2%;width:50%;gap:3px}
 .z857-direct-actions button{font-size:8px}
 .z857-hero-overview{grid-template-columns:35% 1fr;gap:5px}
 .z857-stat-chips{gap:2px}
 .z857-shop-console .z856-gear-grid,.z857-shop-console .z856-paid-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .z857-shop-console .z856-shop-hero{display:none}
}
@media(orientation:portrait) and (pointer:coarse){
 /* The entire app rotates to landscape; constrain internal panels by logical dimensions. */
 .z857-direct-actions{bottom:11.5%;left:2%;width:49%}
 .z857-direct-actions button{font-size:clamp(8px,1.4vh,11px);padding:5px 2px;min-height:33px}
 .z857-direct-actions button span{font-size:clamp(13px,2.2vh,22px)}
 .z857-shop-console .z856-shop-hero{max-height:22%}
 .z857-hero-overview{height:62%}
}
@media(prefers-reduced-motion:reduce){.z857-direct-actions button{transition:none}}

/* Store first-screen priority: do not bury prices or purchase buttons below the viewport. */
@media (orientation:landscape) and (max-height:540px){
 .z857-shop-console .z856-shop-hero{display:none!important}
 .z857-shop-console .z857-shop-quick{gap:4px}
 .z857-shop-console .z857-shop-quick button{min-height:29px;padding:4px 5px}
 .z857-shop-console .z856-shop-tabs{padding:3px 0}
 .z857-shop-console .z856-shop-tabs button{min-height:28px;padding:5px 8px}
 .z857-shop-console .z856-section-heading{max-height:25px;padding:2px 0}
 .z857-shop-console .z856-section-heading h2{font-size:14px}
 .z857-shop-console .z856-gear-grid,.z857-shop-console .z856-paid-grid{grid-template-columns:repeat(3,minmax(0,1fr));overflow:auto hidden!important}
 .z857-shop-console .z856-gear-card{padding:5px 7px!important;gap:3px!important;border-width:2px!important}
 .z857-shop-console .z856-card-top{height:21px;min-height:21px}
 .z857-shop-console .z856-item-tag{font-size:8px;padding:3px}
 .z857-shop-console .z856-fav{width:24px;height:24px;flex-basis:24px;font-size:18px;border-radius:7px!important}
 .z857-shop-console .z856-gear-card h3{font-size:12px!important;line-height:1.06!important}
 .z857-shop-console .z856-gear-card .gear-icon{height:30px!important;font-size:27px!important}
 .z857-shop-console .z856-preview{padding:4px 5px;font-size:10px}
 .z857-shop-console .z856-gear-actions{gap:1px}
 .z857-shop-console .z856-gear-actions strong{font-size:11px}
 .z857-shop-console .gear-footer{padding:0!important;min-height:26px}
 .z857-shop-console .z856-gear-card .gear-footer button{font-size:10px!important;min-height:26px!important;padding:4px 6px!important}
 .z857-shop-console .z856-paid-card{padding:6px;gap:3px}
 .z857-shop-console .z856-paid-card small{font-size:8px}
 .z857-shop-console .z856-paid-card h3{font-size:12px;margin:0}
 .z857-shop-console .z856-paid-footer button{font-size:10px;padding:5px 7px;min-height:26px}
 .z857-shop-console .z856-paid-footer>span{font-size:10px}
}
@media(orientation:portrait) and (pointer:coarse){
 .z857-shop-console .z856-shop-hero{display:none!important}
 .z857-shop-console .z856-gear-grid,.z857-shop-console .z856-paid-grid{grid-template-columns:repeat(3,minmax(0,1fr));overflow:auto hidden!important}
 .z857-shop-console .z856-gear-card{padding:5px 6px!important;gap:3px!important}
 .z857-shop-console .z856-card-top{min-height:20px}
 .z857-shop-console .z856-item-tag{font-size:8px;padding:3px}
 .z857-shop-console .z856-fav{height:24px;width:24px;flex-basis:24px;font-size:18px}
 .z857-shop-console .z856-gear-card .gear-icon{height:28px!important;font-size:25px!important}
 .z857-shop-console .z856-gear-card h3{font-size:11px!important}
 .z857-shop-console .z856-preview{padding:4px 5px;font-size:10px}
 .z857-shop-console .z856-gear-card .gear-footer button{min-height:26px;padding:5px 6px;font-size:10px}
}
