
/* ZUMİ V8 • horizontal-first toy-storybook UI. Original game mechanics preserved. */
:root{--z8-glass:rgba(255,255,255,.90);--z8-sky:#d5f5ff;--z8-ink:#295882;--z8-gold:#ffd56d;--z8-tap:48px;color-scheme:light}
html,body{touch-action:pan-y;-webkit-text-size-adjust:100%}
body,.app-shell{background:radial-gradient(ellipse 52% 45% at 7% 5%,#ffffc9a0,transparent),radial-gradient(ellipse 60% 55% at 86% 90%,#f9a4e776,transparent),linear-gradient(125deg,#d8f5ff 0,#e4e7ff 49%,#fce8cc 100%)!important}
.topbar{min-height:64px;height:64px!important;background:linear-gradient(96deg,#ffffffed,#ecfaffed 65%,#ffe8f8ed)!important;box-shadow:0 6px 20px #376fa72b}
.z7-brand-mark{width:52px;height:52px}.brand{min-height:54px}.brand-caption strong{font-size:22px}
.view{padding:15px 0 27px}.footer{background:#fffdfab5;color:#4e7290}
.home-hero{min-height:min(67vh,520px)!important;border-radius:38px!important;border:6px solid #fff!important;box-shadow:0 12px 0 #87d7e0ab,0 24px 53px #4b92b65b!important;background:linear-gradient(90deg,#124d7dba 0%,#1365997a 37%,#073e6520 72%),url('../assets/scenes/zuzibu-istasyon.webp') center 49% / cover no-repeat!important}
.home-hero::before{background:radial-gradient(circle at 77% 18%,#ffecc25c,transparent 26%),linear-gradient(0deg,#27557850,transparent 25%)}
.hero-content{padding:22px 30px 78px;max-width:590px;width:59%}
.hero-content .display{font-size:clamp(35px,4.7vw,65px)!important;line-height:1.04!important}
.hero-content .subcopy{font-size:clamp(11px,1.13vw,14px)}
.hero-status{bottom:12px!important;right:14px!important;z-index:4}
.z7-home-mascot{width:min(42%,470px);height:88%;right:1%;bottom:0;filter:drop-shadow(0 20px 3px #3b7e9a72) drop-shadow(0 0 24px #fff9dcb4)}
.z8-hero-shortcuts{position:absolute;left:28px;bottom:15px;display:flex;gap:8px;flex-wrap:wrap;z-index:6;max-width:65%}
.z8-hero-shortcuts button{display:flex;align-items:center;gap:5px;background:#fffef1ef;border:2px solid #fff;box-shadow:0 4px 0 #61bad3ac,0 9px 13px #103c5f4b;color:#316888;font-size:14px;border-radius:16px;padding:7px 11px;min-height:42px;font-weight:900}
.z8-hero-shortcuts button:active{transform:translateY(3px);box-shadow:0 2px 0 #61bad3ac}
.z8-hero-shortcuts button:focus-visible{outline:3px solid #eab356;outline-offset:3px}
.z8-drawer-legal{display:flex;gap:7px;flex-wrap:wrap;font-size:10px;letter-spacing:0}.z8-drawer-legal a{color:#e6fffc!important}
.drawer{background:linear-gradient(153deg,#3c87b8,#236a9e 45%,#5658a1)!important;color:#fff;border-left:4px solid #fff4b8!important;overflow-y:auto;max-height:100%;padding:18px!important}
.drawer>button{min-height:44px;border-radius:13px!important;background:#ffffff18!important;border:1px solid #ffffff48!important;padding:8px 12px!important;color:#fff;font-weight:900}
.drawer-title{padding-bottom:9px!important}.drawer-bottom{color:#fff8da!important}
.nav-backdrop{background:#1034557d}
.dash-grid,.v6-home-grid{gap:12px}.dash-card,.v6-home-card{transition:transform .14s ease}
.dash-card:hover,.v6-home-card:hover{transform:translateY(-3px)}
.screen-heading{margin:12px 0 16px}.section-title{font-size:clamp(26px,3.8vw,46px)!important}
.act-tabs,.shop-tabs{scrollbar-width:thin;scrollbar-color:#7bd8df transparent}
.act-tab,.shop-tab{min-height:43px}
.character-picker{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:9px!important}
.character-option{border-radius:21px!important}.character-option>img{height:126px!important;object-fit:contain!important;object-position:center bottom!important}
.character-option b{color:#3675a8!important;font-family:'Trebuchet MS',Arial,sans-serif;font-size:clamp(12px,1.45vw,18px)!important}
.character-option small{font-size:10px;color:#5d789e!important}
.chapter-band,.gear-card,.profile-panel,.record-card{box-shadow:0 13px 35px #4679a733!important;border-color:#fff!important}
.button{min-height:var(--z8-tap);font-size:clamp(11px,1.2vw,14px)}
.button:focus-visible,.control:focus-visible{outline:4px solid #ffd66b;outline-offset:3px}
.game-viewport{background:#81d0e5!important}
.game-viewport:before{display:none}
.game-playing .rotate-tip,.rotate-tip{display:none!important}
.game-playing .control{border-radius:18px!important;border:3px solid #fff5e2!important;box-shadow:0 4px 0 #1c5c8a9c,0 7px 12px #1343794b!important}
.game-playing .control.primary{background:linear-gradient(165deg,#ffb6d0ed,#e974a8df)!important}
.game-playing .control.special{background:linear-gradient(165deg,#d1b0ffeb,#a773dbed)!important}
.game-playing .control.move{background:linear-gradient(165deg,#76e6e2eb,#2aa4bbdd)!important}
.game-playing .control.pressed{transform:translateY(3px) scale(.97)!important;background:#ffca65!important}
/* The new interactive screens: no purchases, no timers, no network required. */
.z8-special-screen{max-width:1210px;margin:0 auto}
.z8-daily-stage{position:relative;overflow:hidden;display:grid;grid-template-columns:48% 52%;align-items:center;gap:0;min-height:365px;background:linear-gradient(145deg,#88e3e6,#d8c9ff 54%,#ffe4bc);border:6px solid #fff;border-radius:32px;box-shadow:0 18px 42px #427bb64b}
.z8-daily-stage::before{content:'✦ ✿ ✦';font-size:70px;color:#fff5bb71;position:absolute;right:6%;top:4%;letter-spacing:1.5em;pointer-events:none}
.z8-daily-portrait{height:min(51vh,385px);display:flex;align-items:center;justify-content:center;position:relative;z-index:1}
.z8-daily-portrait:after{content:'';position:absolute;bottom:20px;left:22%;right:22%;height:22px;background:#1746702b;filter:blur(12px);border-radius:50%}
.z8-daily-portrait img{height:98%;max-width:90%;object-fit:contain;animation:z7-mascot-idle 3.7s ease-in-out infinite;filter:drop-shadow(0 16px 7px #4174a34d)}
.z8-daily-copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:13px;padding:20px 23px 20px 0;color:#39658d}
.z8-daily-copy h2{font-size:clamp(22px,3.5vw,42px);color:#fff;text-shadow:0 3px 3px #4286ac}
.z8-daily-copy p{font-weight:800;line-height:1.45;max-width:380px;font-size:clamp(11px,1.4vw,15px)}
.z8-daily-copy small{font-size:11px;color:#4f7b90;font-weight:800}
.z8-daily-sparkles{font-size:27px;letter-spacing:.45em}
.z8-daily-reward{display:block;background:#ffffffdb;padding:13px 18px;border-radius:17px;color:#d68a2c;box-shadow:0 5px 0 #8cb4c766}
.z8-photo-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.8fr);gap:16px;align-items:stretch}
.z8-photo-stage{min-width:0;max-width:100%;position:relative;min-height:350px;aspect-ratio:16/9;background-size:cover;background-position:center;border:7px solid #fff;border-radius:29px;overflow:hidden;box-shadow:0 15px 35px #447bad55;isolation:isolate}
.z8-photo-stage:after{position:absolute;inset:0;content:'';pointer-events:none;background:linear-gradient(0deg,#183e6488,transparent 45%);z-index:0}
.z8-photo-hero{position:absolute;left:50%;bottom:0;transform:translateX(-50%);height:92%;max-width:72%;object-fit:contain;filter:drop-shadow(0 14px 8px #305e8588);z-index:2;animation:z8-pose 3.3s ease-in-out infinite}
@keyframes z8-pose{0%,100%{transform:translateX(-50%) translateY(0) rotate(-1deg)}50%{transform:translateX(-50%) translateY(-9px) rotate(1deg)}}
.z8-photo-spark{position:absolute;right:12%;top:10%;color:#fff8bc;font-size:84px;text-shadow:0 0 23px #fff;animation:z7-sparkle 2.5s infinite}
.z8-photo-badge{position:absolute;left:5%;bottom:5%;z-index:3;padding:8px 14px;font-weight:1000;border:2px solid #fff;color:#4776a8;background:#fffcebdc;border-radius:16px;font-size:12px}
.z8-photo-menu{min-width:0;padding:19px;background:#ffffffd9;border:4px solid #fff;border-radius:26px;display:flex;flex-direction:column;gap:13px;color:#35668b;box-shadow:0 12px 28px #597d9d40}
.z8-photo-menu>strong{font-size:clamp(15px,1.7vw,21px)}
.z8-photo-menu p{font-size:12px;line-height:1.5;font-weight:750;color:#64839c}
.z8-photo-scenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.z8-scene-choice{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;min-height:58px;border:2px solid #b9ddeb;background:linear-gradient(160deg,#f7ffff,#e0f0ff);border-radius:15px;font-size:23px;color:#3c7592;box-shadow:0 3px 0 #a3c9da}
.z8-scene-choice small{font-size:10px;font-weight:1000}
.z8-scene-choice.chosen{background:linear-gradient(135deg,#ffeadb,#ffcae5);border-color:#ffb26c}
.z8-photo-menu>.button{width:100%;font-size:12px}
/* All navigation screens are landscape-first in browsers and on large tablets. */
@media (orientation:landscape) and (max-height:1100px){
 body:not(.game-playing) .footer{display:none!important}
 body:not(.game-playing) .view{height:calc(100dvh - 64px);min-height:0!important;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:10px 3px 24px;width:calc(100% - 30px);max-width:1420px}
 body:not(.game-playing) .home-hero{min-height:min(77vh,520px)!important}
 body:not(.game-playing) .drawer{max-height:100dvh}
 .z8-photo-stage{min-height:290px}
}
@media(orientation:landscape) and (max-height:510px){
 .topbar{min-height:54px;height:54px!important;padding-block:1px}.brand{min-height:50px}.z7-brand-mark{height:46px;width:46px}.brand-caption strong{font-size:19px}.brand-caption small{font-size:8px}
 body:not(.game-playing) .view{height:calc(100dvh - 54px)}
 .home-hero{min-height:calc(100dvh - 74px)!important;max-height:none!important;border-width:4px!important;border-radius:24px!important}
 .hero-content{padding:12px 20px 62px;width:65%;max-width:540px}
 .hero-content .eyebrow{font-size:9px;padding:5px 9px}
 .hero-content .display{font-size:clamp(27px,4.1vw,45px)!important;margin:7px 0!important}
 .hero-content .subcopy{font-size:clamp(9px,1.2vw,12px);line-height:1.3;max-width:390px}
 .hero-content .button-row{margin-top:9px;gap:7px}
 .hero-content .button-row .button{min-height:37px!important;font-size:11px;padding:8px 12px!important}
 .z7-home-mascot{height:95%;width:43%;right:2%;bottom:-2%}
 .z8-hero-shortcuts{left:20px;bottom:10px;max-width:65%;gap:5px}.z8-hero-shortcuts button{min-height:34px;padding:4px 8px;font-size:11px;border-radius:12px;box-shadow:0 2px 0 #61bad3ac}
 .hero-status{bottom:10px!important;right:10px!important;min-width:135px;padding:5px 8px;max-width:30%}
 .hero-status strong{font-size:12px}
 .character-picker{grid-template-columns:repeat(7,minmax(0,1fr))!important}
 .character-option>img{height:105px!important}
 .screen-heading{margin:4px 0 11px}
 .z8-daily-stage{min-height:260px}.z8-daily-portrait{height:245px}.z8-daily-copy{gap:6px}.z8-daily-copy .button{min-height:35px;padding:8px 12px}
 .z8-photo-stage{min-height:0;height:230px;aspect-ratio:auto}.z8-photo-menu{padding:11px;gap:7px}.z8-scene-choice{min-height:48px}.z8-photo-layout{grid-template-columns:1.3fr .9fr}
 .drawer{width:min(360px,66vw)}
}
@media (orientation: landscape) and (min-height:700px) and (max-width:1150px){
 .character-picker{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .z8-photo-layout{grid-template-columns:1fr minmax(225px,.65fr)}
}
/* Portrait physical phone/tablet: display the whole application as a rotated, landscape canvas,
   not just the gameplay. CSS gives immediate landscape UI without asking for browser permission.
   The Android build is natively orientation-locked on launch. */
@media (orientation:portrait) and (pointer:coarse), (orientation:portrait) and (max-width:600px){
 html,body{width:100vw;height:100dvh;min-height:0;overflow:hidden!important;overscroll-behavior:none;touch-action:none}
 body .app-shell,body.game-playing .app-shell{
  position:fixed!important;left:100vw!important;top:0!important;right:auto!important;bottom:auto!important;
  width:100dvh!important;height:100vw!important;min-height:0!important;max-height:none!important;
  transform-origin:top left!important;transform:rotate(90deg)!important;overflow:hidden!important;
  display:flex!important;flex-direction:column!important;isolation:isolate;
 }
 .grain,body::after{display:none!important}
 body:not(.game-playing) .topbar{flex:0 0 55px;min-height:55px;height:55px!important;padding:2px 12px;z-index:12}
 body:not(.game-playing) .view{flex:1 1 auto;max-width:100%;width:calc(100% - 20px)!important;margin:0 10px!important;height:auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;padding:6px 0 18px!important;touch-action:pan-y}
 body:not(.game-playing) .footer{display:none!important}
 .brand{min-height:50px}.z7-brand-mark{height:46px;width:46px}.brand-caption strong{font-size:19px}.brand-caption small{font-size:8px}
 .topbar-right{gap:7px}.pill{height:32px;min-width:0}.menu-button{height:42px;width:45px}
 .home-hero{height:calc(100vw - 72px);min-height:260px!important;max-height:490px;border-width:4px!important;border-radius:23px!important}
 .hero-content{width:66%;max-width:490px;padding:12px 12px 58px!important;align-self:start}
 .hero-content .eyebrow{padding:5px 8px;font-size:9px}
 .hero-content .display{font-size:clamp(26px,4.4vw,39px)!important;line-height:1!important;margin:6px 0!important}
 .hero-content .subcopy{font-size:clamp(9px,1.1vw,12px)!important;max-width:310px;line-height:1.3}
 .hero-content .button-row{margin-top:9px;gap:5px}
 .hero-content .button-row .button{min-height:37px!important;padding:7px 10px!important;font-size:11px}
 .z7-home-mascot{height:90%;width:42%;right:0;bottom:0}
 .z8-hero-shortcuts{left:13px;bottom:8px;max-width:67%;gap:5px}
 .z8-hero-shortcuts button{min-height:33px;padding:3px 7px;border-width:1px;font-size:11px;box-shadow:0 2px 0 #61bad3ac}
 .hero-status{right:6px!important;bottom:7px!important;max-width:29%;min-width:120px;padding:5px 7px}.hero-status strong{font-size:11px!important}
 .character-picker{grid-template-columns:repeat(5,minmax(0,1fr))!important}.character-option>img{height:102px!important}
 .character-option b{font-size:12px!important}.character-option small{font-size:9px}
 .screen-heading{margin:3px 0 9px}.section-title{font-size:clamp(24px,3.3vw,37px)!important}
 .chapter-band{grid-template-columns:165px 1fr auto!important}.chapter-band-right{grid-column:3!important}.z7-map-art{height:140px}
 .profile-layout{grid-template-columns:minmax(210px,.73fr) 1fr!important}.portrait-panel{min-height:360px!important;max-height:none}
 .gear-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .dash-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.dash-card:first-child{grid-column:auto!important}
 .z8-photo-layout{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}.z8-photo-stage{min-height:0;height:230px;aspect-ratio:auto}.z8-photo-menu{padding:11px;gap:8px}
 .z8-daily-stage{min-height:260px}.z8-daily-portrait{height:250px}.z8-daily-copy{gap:5px}.z8-daily-copy h2{font-size:clamp(19px,3vw,27px)}
 .nav-backdrop{position:absolute!important;inset:0!important;z-index:59}.drawer{position:absolute!important;top:0!important;right:0!important;bottom:0!important;width:min(370px,72%)!important;height:100%!important;max-height:100%!important;overflow-y:auto!important;z-index:60}
 .modal-wrap{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:100%!important;z-index:80}
 .toast{position:absolute!important;bottom:16px;z-index:90}
 /* Gameplay stays horizontal even if a physical phone is being held upright. */
 body.game-playing .topbar,body.game-playing .footer{display:none!important}
 body.game-playing .view{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;flex:none!important}
 body.game-playing .game-section{animation:none!important;transform:none!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;margin:0!important;padding: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;box-shadow:none!important;overflow:hidden!important}
 body.game-playing .game-top{position:absolute;top:6px;left:9px;right:9px;width:auto;margin:0;z-index:22;gap:7px;pointer-events:none}
 body.game-playing .game-title{max-width:32%}
 body.game-playing .game-title b{font-size:clamp(11px,1.8vh,18px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.game-playing .game-title span{font-size:8px}
 body.game-playing .game-top-right{gap:6px;pointer-events:auto}
 body.game-playing .mini-hp{width:clamp(85px,19%,150px)}
 body.game-playing .mini-hp div:first-child{font-size:9px}
 body.game-playing .mini-hp-track{height:10px}
 body.game-playing .fullscreen-button,body.game-playing .pause-button{width:40px;height:40px;border:2px solid #fafffc;border-radius:11px;background:#367ca9;font-size:20px}
 body.game-playing .game-hud{top:53px;left:10px;right:10px;z-index:9}
 body.game-playing .mission-hud{max-width:32%;padding:5px 7px;background:#183d66ce;border:2px solid #fff0ae;border-radius:9px}
 body.game-playing .mission-hud small{font-size:8px}.game-playing .mission-hud strong{font-size:10px;line-height:1.3}
 body.game-playing .hud-energy{right:100px;left:auto;top:59px;width:110px}
 body.game-playing .touch-ui{position:absolute;left:9px;right:9px;bottom:8px;z-index:23;display:flex;align-items:flex-end;justify-content:space-between;gap:6px;touch-action:none}
 body.game-playing .touch-left,body.game-playing .touch-right{display:flex;align-items:flex-end;gap:6px}
 body.game-playing .control{min-width:0!important;width:clamp(49px,15vw,66px)!important;height:clamp(49px,15vw,66px)!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:20px}
 body.game-playing .control small{font-size:8px;line-height:1}
 body.game-playing .game-bottom,body.game-playing .rotate-tip{display:none!important}
 body.game-playing .modal-wrap{padding:5px 12px}
 body.game-playing .dialog{width:min(560px,88%);max-height:calc(100% - 10px);overflow-y:auto;padding:12px 16px;border-radius:16px}
 body.game-playing .dialog h2{font-size:clamp(22px,4vw,34px);margin:5px 0 8px}
 body.game-playing .dialog p{font-size:11px;line-height:1.3}
 body.game-playing .dialog .button{min-height:36px;padding:7px 12px}
}
@media (prefers-reduced-motion:reduce){.z8-photo-hero,.z8-daily-portrait img{animation:none!important}}

