@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#070e16;color:#e5e9df;font-family:Manrope,Arial,sans-serif}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #b3c9bb38;background:#0b1721b8;border-radius:5px;transition:background .15s}button:hover{background:#344d49}button:focus-visible{outline:2px solid #e5cc8b;outline-offset:4px}#game{position:relative;height:100%;width:100%;overflow:hidden}canvas{width:100%;height:100%;display:block;touch-action:none}header{position:absolute;inset:28px 34px auto;display:flex;justify-content:space-between;align-items:center;pointer-events:none;z-index:3}header>*{pointer-events:auto}.brand{font:600 23px Georgia,serif;color:#eee6ce;text-decoration:none;letter-spacing:4px;text-shadow:0 2px 8px #000}.brand span{display:block;font:9px Manrope,Arial,sans-serif;letter-spacing:5px;margin-top:5px;color:#bbcabf}.topbuttons{display:flex;gap:8px}.topbuttons button{min-width:38px;height:36px;font-size:15px}#sound{font-size:9px;letter-spacing:1px;padding:0 12px}.overlay{position:absolute;inset:0;z-index:5;display:flex;align-items:center;background:linear-gradient(90deg,#020d19e8,#06121d6b 60%,#06121d12)}[hidden]{display:none!important}.intro{margin-left:10%;max-width:670px}.eyebrow{font-size:10px;letter-spacing:3px;color:#d1bd85;font-weight:700}h1{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;font-size:clamp(70px,9vw,140px);letter-spacing:-3px;line-height:.9;margin:30px 0;color:#ece8d8}h1 span{display:block;font-size:.43em;letter-spacing:6px;color:#c9d9ca;margin-top:18px}.lead{font:18px/1.9 Georgia,serif;color:#c0cbbf;margin:34px 0}.primary{background:#d8c18a;color:#17231e;border:0;padding:18px 30px;letter-spacing:2px;font-size:11px;font-weight:700;min-width:220px;display:flex;justify-content:space-between;gap:30px;align-items:center}.primary:hover{background:#f5ddaa}.primary:disabled{opacity:.5;cursor:wait}#loading{font-size:10px;color:#abbcb7}.introkeys{display:flex;gap:28px;margin-top:32px;font-size:10px;color:#99aaa7}.introkeys b{display:block;color:#d9dfd4;font-size:10px;margin-bottom:8px}.credit{position:absolute;bottom:24px;left:10%;font-size:9px;letter-spacing:2px;color:#a1b2aa}.credit span{margin:0 12px;color:#d1bd85}#hud{position:absolute;inset:0;pointer-events:none;z-index:2}.vitals{position:absolute;top:103px;left:34px;width:235px;padding:12px 15px;background:#07121bc7;border:1px solid #a8bdab26;border-radius:6px}.barrow{display:flex;align-items:center;gap:10px;margin:8px 0}.barrow span{font-size:8px;letter-spacing:1px;width:48px;color:#b9c7bb}.barrow b{font-size:10px;font-weight:500;width:24px}.track{height:4px;background:#ffffff1c;flex:1;overflow:hidden}.track i{height:100%;display:block;background:#98b598;transition:width .15s}#charge{background:#e8c879}#area{position:absolute;top:35px;left:50%;transform:translateX(-50%);font:11px Georgia,serif;letter-spacing:3px;color:#d5dfd3;text-shadow:0 1px 5px black}.lighttools{position:absolute;bottom:61px;left:34px;display:flex;gap:8px;pointer-events:auto}.lighttools button{font-size:11px;padding:12px;color:#96a9a8;min-width:80px}.lighttools span{font-size:8px;letter-spacing:1px;margin-left:7px}.lighttools .selected{border-color:#d4c28a;color:#e9d39d;background:#302f25cf}.lighttools .locked{opacity:.4}.journey{position:absolute;bottom:32px;left:34px;right:34px;height:2px;background:#ffffff20;display:flex;justify-content:space-between}.journey i{position:absolute;left:0;height:2px;background:#d2c28e}.journey span{margin-top:9px;font-size:7px;letter-spacing:2px;color:#b7bdb0}.controlhint{position:absolute;bottom:76px;right:34px;font-size:8px;letter-spacing:1px;color:#b9c5b4}#notice{position:absolute;top:23%;left:50%;transform:translateX(-50%);max-width:80%;background:#081420dc;border:1px solid #c0caa62d;padding:14px 24px;font:15px/1.5 Georgia,serif;opacity:0;text-align:center;transition:opacity .3s;box-shadow:0 5px 30px #0004}#notice.visible{opacity:1}#bossbar{position:absolute;bottom:135px;left:28%;width:44%;text-align:center}#bossbar span{font:12px Georgia,serif;letter-spacing:4px;color:#e8c7ae}#bossbar .track{margin-top:10px;height:6px;background:#060b10}#bosshp{background:#be8d69}#modal{background:#030b13c9;justify-content:center;backdrop-filter:blur(6px)}article{width:min(550px,90%);padding:35px;background:#0e1a23;border:1px solid #d8d6b334}h2{font:48px Georgia,serif;margin:20px 0;color:#ede4c9}#modalbody{font-size:13px;line-height:1.9;color:#c4d0c4;margin-bottom:25px}#modalbody p{margin:8px 0}#restart{margin-top:16px;padding:10px 18px;font-size:10px}#touch{display:none;position:absolute;bottom:85px;left:18px;right:18px;justify-content:space-between;pointer-events:auto;touch-action:none}#touch>div{display:flex;gap:8px}#touch button{width:52px;height:50px;font-size:22px;background:#071522aa;touch-action:none;user-select:none}#touch .fire{border-color:#d6c28c;color:#eed58c}#error{position:absolute;inset:35%;z-index:10;color:#fff;background:#5c2525;padding:20px}@media(pointer:coarse){#touch{display:flex}.controlhint{display:none}.lighttools{bottom:29px}.journey{bottom:10px}.journey span{display:none}}@media(max-width:700px){header{inset:16px 18px auto}.brand{font-size:17px}.brand span{font-size:7px}.vitals{top:75px;left:18px;width:190px;padding:6px 10px}.intro{margin-left:7%;margin-top:30px}h1{font-size:68px}.lead{font-size:15px;margin:24px 0}.eyebrow{font-size:8px;letter-spacing:2px}.introkeys{gap:14px;font-size:8px}.introkeys b{font-size:8px}.credit{left:7%;font-size:7px;bottom:15px}#area{top:67px;font-size:8px}.lighttools{left:18px;gap:4px}.lighttools button{min-width:54px;padding:9px 7px}.lighttools span{font-size:7px;margin-left:3px}#notice{font-size:13px;top:24%;width:80%}#bossbar{bottom:155px;left:20%;width:60%}}@media(max-height:520px){.intro{margin-top:35px}h1{font-size:65px;margin:15px 0}.lead{font-size:13px;margin:15px 0}.introkeys{margin-top:14px}.credit{display:none}.primary{padding:12px 22px}#loading{margin:5px 0}.vitals{top:75px}.lighttools{bottom:24px}#touch{bottom:65px}.controlhint{bottom:35px}}
/* Quiet, letterboxed story scenes. */
#cinematic{position:absolute;inset:0;background:#010408;z-index:8;overflow:hidden;touch-action:manipulation}.shot{position:absolute;inset:7.5% 0;background-position:center;background-size:cover;animation:shotdrift 12s linear both}.shot:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#01050be8,transparent 40%,#0002)}#thought{position:absolute;bottom:15%;left:10%;right:10%;text-align:center;font:italic clamp(20px,3vw,36px)/1.5 Georgia,serif;color:#e1e3db;text-shadow:0 2px 20px #000;min-height:1.5em;letter-spacing:.3px}#sceneActions{position:absolute;bottom:3%;right:5%;display:flex;align-items:center;gap:22px}#sceneActions button{font-size:10px;letter-spacing:1px;padding:8px 12px;border-color:#b9c6bc38;color:#bac8c0;background:transparent}#sceneProgress{font-size:9px;letter-spacing:2px;color:#899e9c}.scene-title{position:absolute;top:3%;left:5%;font:10px Georgia,serif;letter-spacing:4px;color:#b4c5bc}#musicControls{position:absolute;z-index:6;right:34px;top:78px;padding:12px 16px;background:#07121bec;border:1px solid #b7c6b533;display:flex;align-items:center;gap:12px;font-size:10px;max-width:calc(100vw - 40px)}#musicControls label{display:flex;align-items:center;gap:10px}#musicVolume{width:110px;accent-color:#d8c18a}#musicFile{max-width:180px;font-size:10px}.topbuttons #musicToggle{font-size:9px;letter-spacing:1px;padding:0 10px}@media(max-width:600px){.shot{background-position:35% center}#musicControls{right:18px;flex-wrap:wrap}#thought{bottom:18%;left:7%;right:7%;font-size:21px}}

#cinematic.reveal{background:transparent}#storyBlack{position:absolute;inset:0;background:#000;opacity:0;z-index:3;pointer-events:none}#thought{z-index:2}#sceneActions,.scene-title{z-index:4}.shot{will-change:opacity,transform}#cinematic .scene-title{opacity:.65}

.layered-shot{overflow:hidden;transform:none!important;background:#07101b}.cine-back{position:absolute;inset:-4%;background-size:cover;background-position:center;will-change:transform}.cine-depth{position:absolute;inset:-8%;background:url(assets/foreground.png) center/cover no-repeat;opacity:.22;filter:blur(1.5px);will-change:transform}.shot-actor{position:absolute;top:-1%;left:19%;height:225%;width:auto;aspect-ratio:430/1199;overflow:hidden;transform-origin:48% 20%;filter:brightness(.94) saturate(.92);will-change:transform}.shot-actor.side{left:13%;aspect-ratio:530/1199}.cine-haze{position:absolute;inset:0;background:linear-gradient(0deg,#07111c55,transparent 50%);pointer-events:none}@media(max-width:700px){.shot-actor{left:1%;height:195%}.shot-actor.side{left:-10%}}

.photo-actor{position:absolute;top:0;left:12%;height:112%;width:auto;max-width:none;transform-origin:50% 35%;will-change:transform}.controlhint{max-width:45%;text-align:right}@media(max-width:700px){.photo-actor{left:-12%;height:105%}}

@keyframes shotdrift{from{transform:translate(-1%,0) scale(1)}to{transform:translate(1%,.5%) scale(1.22)}}
@keyframes cineBackground{from{transform:translate(-2%,0) scale(1.035)}to{transform:translate(2%,1%) scale(1.12)}}
@keyframes cineNear{from{transform:translate(4%,0) scale(1.07)}to{transform:translate(-4%,1.5%) scale(1.17)}}
@keyframes cineActor{from{transform:translate(0,0) scale(1)}to{transform:translate(2%,1.2%) scale(1.26)}}
.shot-actor{transform-origin:48% 12%}.photo-actor{transform-origin:50% 32%}

/* Layered performances in every story scene. The outer camera never restarts on text changes. */
.portrait-camera{position:absolute;left:12%;top:0;height:112%;aspect-ratio:3/4;transform-origin:50% 32%;will-change:transform}
.portrait-performance{height:100%;width:100%;transform-origin:50% 85%;animation:portraitBreath 5.6s ease-in-out infinite;translate:calc(var(--reaction,0)*-7px) calc(var(--reaction,0)*-2px)}
.face-sprite{height:100%;width:100%;background-size:200% 200%;background-position:0 0;background-repeat:no-repeat}
.intro-camera{left:19%;height:130%;top:-1%;transform-origin:50% 28%}.intro-hd{height:100%;width:100%;object-fit:contain;object-position:top center}
.cine-fog{position:absolute;inset:30% -35% -20%;pointer-events:none;background:radial-gradient(ellipse at 28% 70%,#a7c9db33,transparent 40%),radial-gradient(ellipse at 70% 45%,#6b9cae22,transparent 48%);filter:blur(18px);animation:sceneFog 23s ease-in-out infinite alternate;opacity:.55}
.fog-near{inset:45% -45% -30%;opacity:.4;animation-duration:14s;animation-direction:alternate-reverse;filter:blur(10px)}
.cine-motes{position:absolute;inset:0;pointer-events:none;overflow:hidden}.cine-motes i{position:absolute;bottom:-5%;width:2px;height:2px;border-radius:50%;background:#c7d9d0;opacity:0;animation:sceneMote 18s linear infinite}
.cine-light{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 12% 86%,#f2bd6830,transparent 46%);mix-blend-mode:screen;animation:lanternWander 8.5s ease-in-out infinite alternate}
.cine-giant{position:absolute;height:110%;width:auto;right:-6%;top:12%;opacity:.48;filter:brightness(.38) saturate(.5) blur(1px);transform-origin:50% 90%;animation:giantPresence 7s ease-in-out infinite}
.shot[data-scene="night"] .cine-depth{opacity:.35}.shot[data-scene="night"] .cine-fog{opacity:.75}
.shot[data-scene="medium"] .portrait-performance{animation-duration:4.8s}.shot[data-scene="giant"] .portrait-performance{animation-duration:4.2s}
.shot[data-scene="ending"] .portrait-camera{animation-name:endingCamera!important}.shot[data-scene="ending"] .cine-light{opacity:.45}.shot[data-scene="ending"] .portrait-performance{animation-duration:6.5s}
@keyframes portraitBreath{0%,100%{transform:translate(0,0) rotate(-.2deg) scale(1)}48%{transform:translate(.18%,-.35%) rotate(.2deg) scale(1.008,1.012)}}
@keyframes sceneFog{from{transform:translate(-7%,2%) scale(1)}to{transform:translate(11%,-3%) scale(1.12)}}
@keyframes sceneMote{0%{transform:translate(0,0);opacity:0}15%,70%{opacity:.3}100%{transform:translate(65px,-65vh);opacity:0}}
@keyframes lanternWander{from{transform:translate(-3%,3%);opacity:.4}to{transform:translate(4%,-4%);opacity:.8}}
@keyframes giantPresence{0%,100%{transform:translateY(1%) rotate(-.7deg)}50%{transform:translateY(-1%) rotate(.8deg)}}
@keyframes endingCamera{from{transform:translate(2%,1%) scale(1.18)}to{transform:translate(-1%,0) scale(1)}}
@media(max-width:700px){.portrait-camera{left:-12%;height:105%}.intro-camera{left:0;height:125%}.cine-giant{right:-28%;opacity:.38}}

/* Give every gaze space to lead into the forest. */
.shot[data-scene="intro"] .intro-camera{left:4%;height:124%}
.shot[data-scene="intro"]:has(.intro-hd[src*="front"]) .intro-camera{left:30%;height:124%}
.shot[data-scene="firstkill"] .portrait-camera{left:36%;height:110%}
.shot[data-scene="medium"] .portrait-camera{left:42%;height:111%}
.shot[data-scene="night"] .portrait-camera{left:39%;height:109%}
.shot[data-scene="giant"] .portrait-camera{left:1%;height:113%}
.shot[data-scene="ending"] .portrait-camera{left:8%;height:108%}
@media(max-width:700px){
.shot[data-scene="intro"] .intro-camera{left:-15%;height:112%}
.shot[data-scene="intro"]:has(.intro-hd[src*="front"]) .intro-camera{left:6%;height:113%}
.shot[data-scene="firstkill"] .portrait-camera{left:10%;height:100%}
.shot[data-scene="medium"] .portrait-camera{left:23%;height:99%}
.shot[data-scene="night"] .portrait-camera{left:20%;height:100%}
.shot[data-scene="giant"] .portrait-camera{left:-23%;height:104%}
.shot[data-scene="ending"] .portrait-camera{left:-16%;height:102%}
}

#fieldThought{position:absolute;z-index:4;left:10%;right:10%;bottom:19%;pointer-events:none;text-align:center;font:italic clamp(20px,3vw,36px)/1.5 Georgia,serif;color:#e1e3db;text-shadow:0 2px 20px #000,0 1px 6px #000;opacity:0;min-height:1.5em;letter-spacing:.3px}

/* Responsive cover menu: independently composed wide and portrait artwork. */
#menu{background:#02080d;isolation:isolate}.menu-art,.menu-shade{position:absolute;inset:0;pointer-events:none}.menu-art{z-index:-2}.menu-art img{width:100%;height:100%;object-fit:cover;object-position:58% 53%}.menu-shade{z-index:-1;background:linear-gradient(90deg,#01080ee8 0%,#020a10bb 22%,#020a1033 48%,transparent 75%),linear-gradient(0deg,#0007,transparent 28%)}
#menu .intro{margin-left:6%;width:min(460px,38%);max-width:none;position:relative;z-index:1}#menu .eyebrow{font-size:9px;letter-spacing:3.5px;color:#d6c592;margin-bottom:25px}.game-title{font-family:'Cinzel Decorative','Cormorant Garamond',Georgia,serif!important;text-transform:uppercase;letter-spacing:2px;color:#e2decb;text-shadow:0 3px 3px #000,0 0 35px #06111b}
#menu h1{font-size:clamp(42px,6.2vw,100px);line-height:1.12;margin:0 0 36px;white-space:nowrap;letter-spacing:1px}#menu h1 span{font:400 clamp(11px,1.2vw,17px) Manrope,Arial,sans-serif;letter-spacing:7px;margin:13px 0 0 5px;color:#b8cabe}
.main-menu{display:flex;flex-direction:column;gap:8px;width:min(340px,100%)}.menu-choice{display:grid;grid-template-columns:24px 1fr 22px;align-items:center;gap:16px;min-height:58px;text-align:left;padding:12px 16px;background:#040c1399;border:1px solid #b5c3ad35;border-radius:0;color:#e2e3d5;backdrop-filter:blur(5px);font:22px Georgia,serif;transition:background .2s,border-color .2s,transform .2s}.menu-choice:hover,.menu-choice:focus-visible{background:#172b32d9;border-color:#d0bf87;transform:translateX(5px)}.menu-choice:disabled{opacity:.5;cursor:wait}.menu-number{font:9px Manrope,Arial,sans-serif;color:#c8b989;letter-spacing:1px}.menu-arrow{font-size:19px;color:#d1c18a;opacity:.7}#menu #loading{font:9px/1.5 Manrope,Arial,sans-serif;letter-spacing:1px;margin-top:17px;color:#aabdb8}#menu .credit{left:6%;bottom:25px;font-size:8px}.build-version{position:absolute;right:28px;bottom:25px;font-size:8px;letter-spacing:2px;color:#9aada7}
.menu-page{position:absolute;inset:0;z-index:9;overflow-y:auto;padding:35px 20px;display:flex;align-items:flex-start;justify-content:center;background:linear-gradient(#02090ef0,#02090ef5),url(assets/menu-cover-wide.png) 60% center/cover}.menu-sheet{width:min(660px,100%);padding:clamp(22px,4vw,48px);margin:auto;border:1px solid #b7c3aa2e;background:#09151dec;box-shadow:0 20px 90px #0007;color:#cbd4c9}.menu-sheet .eyebrow{text-align:center;font-size:9px}.menu-sheet h2{text-align:center;font:clamp(31px,5vw,52px) Georgia,serif;margin:18px 0 26px}.help-intro{font:15px/1.8 Georgia,serif;color:#c8d4c8;text-align:center}.controls-list{margin:25px 0}.controls-list>div{display:grid;grid-template-columns:140px 1fr;gap:18px;padding:10px 0;border-bottom:1px solid #e0ddbb13}.controls-list dt{font:11px/1.7 Manrope,Arial,sans-serif;letter-spacing:.4px;color:#e2d19e}.controls-list dd{margin:0;font:12px/1.7 Manrope,Arial,sans-serif}.help-footnote{font:11px/1.8 Manrope,Arial,sans-serif;color:#a0b4ac}.page-back{display:block;margin:27px auto 0;padding:12px 20px;border-radius:0;border-color:#d1c28c60;font-size:10px;letter-spacing:1px;color:#ded7bd;background:#0b1c25}.page-back:hover{background:#243a3e}
.about-sheet{text-align:center;width:min(690px,100%)}.about-sheet h2.game-title{font-size:clamp(32px,6vw,72px);letter-spacing:2px;margin:22px 0 35px}.credits-list p{margin:24px 0;font-size:13px;line-height:1.8}.credits-list span{display:block;color:#9db0a8;font-size:11px;letter-spacing:1px}.credits-list strong{display:block;font:400 clamp(20px,3vw,27px)/1.7 Georgia,serif;color:#e3e2d3}.sound-credit{color:#b8c8be}.sound-credit a{color:#e4d6a8;text-underline-offset:4px}.videomagi-logo{width:min(240px,67%);height:auto;display:block;margin:35px auto 16px;filter:invert(1) grayscale(1);mix-blend-mode:screen}.copyright{font-size:9px;color:#8fa69d;letter-spacing:.5px;line-height:1.8}
@media(max-aspect-ratio:3/2){.menu-art img{object-position:50% 50%}.menu-shade{background:linear-gradient(0deg,#01080ff5 0%,#01080fcc 22%,transparent 47%,transparent 70%,#01080fc4 100%)}#menu .intro{margin:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;padding:7vh 24px max(8vh,65px)}#menu .eyebrow{margin:0 0 12px;font-size:8px;letter-spacing:2.8px}#menu h1{font-size:clamp(34px,9vw,65px);margin:0;text-align:center}#menu h1 span{font-size:10px;letter-spacing:6px;margin-top:9px}.main-menu{margin-top:auto;width:min(330px,100%);gap:7px}.menu-choice{min-height:49px;font-size:19px;padding:10px 14px;background:#06121ccc}#menu #loading{margin:10px 0 0;font-size:8px}#menu .credit{left:20px;bottom:17px;font-size:7px}.build-version{right:20px;bottom:17px;font-size:7px}.menu-page{background-image:linear-gradient(#02090ef0,#02090ef5),url(assets/menu-cover-portrait.png);padding:18px 14px}.menu-sheet{padding:25px 20px}.controls-list>div{grid-template-columns:100px 1fr;gap:10px}.controls-list dt{font-size:10px}.controls-list dd{font-size:11px}.menu-sheet h2{font-size:32px}.about-sheet h2.game-title{font-size:clamp(26px,8.5vw,47px)}}
@media(max-height:550px) and (min-aspect-ratio:3/2){#menu .intro{margin-top:0;width:40%}#menu .eyebrow{margin-bottom:10px}#menu h1{font-size:clamp(36px,6vw,62px);margin-bottom:18px}#menu h1 span{font-size:9px;margin-top:6px;letter-spacing:5px}.main-menu{gap:5px;width:290px}.menu-choice{min-height:42px;font-size:17px;padding:8px 12px}#menu #loading{margin-top:8px}.build-version{bottom:12px}#menu .credit{display:none}}

@media(min-aspect-ratio:4/5) and (max-aspect-ratio:3/2){.menu-art img{object-fit:contain;object-position:center}#menu .intro{padding-top:4vh;padding-bottom:5vh}#menu h1{font-size:clamp(36px,6vw,64px)}.menu-choice{min-height:44px;font-size:18px}.main-menu{width:300px}}

/* Press-and-hold controls contain SVG paths, never selectable glyphs. */
#game{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button,button *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none;-webkit-user-drag:none}button{touch-action:manipulation}button svg{width:21px;height:21px;display:block;flex-shrink:0;pointer-events:none}.topbuttons button{display:flex;align-items:center;justify-content:center;padding:7px!important}.sound-muted{display:none}#sound.muted .sound-muted{display:block}.lighttools button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.lighttools button svg{width:19px;height:19px}.lighttools span{margin-left:0}.vital-caption svg{display:none}.vital-word{font:inherit!important;display:inline!important;width:auto!important}.vital-caption{display:flex;align-items:center}.topbuttons #navMenu{color:#ddcfaa}body[data-state="menu"] #navMenu,body[data-state="menu"] #pause{display:none}#sceneActions button{display:inline-flex;align-items:center;justify-content:center;gap:7px}#sceneActions svg{width:17px;height:17px}#modalMenu{margin-top:12px;width:100%;text-align:center}#modal #restart{display:block;width:100%}
#touch [data-depth] .depth-near,#touch [data-depth] .depth-path,#touch [data-depth] .depth-far{opacity:.28}#touch [data-depth="1"] .depth-near,#touch [data-depth="0"] .depth-path,#touch [data-depth="2"] .depth-far{opacity:1;stroke:#eed49b}
@media(pointer:coarse){
 header{inset:calc(10px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) auto auto}.brand,#help,#sound{display:none}.topbuttons{gap:4px}.topbuttons button{min-width:36px;width:36px;height:36px;padding:7px!important;background:#07131b70;border-color:#b3c9bb30}.topbuttons button svg{width:20px;height:20px}
 .vitals{top:calc(10px + env(safe-area-inset-top));left:calc(14px + env(safe-area-inset-left));width:120px;padding:5px 7px;background:#07121b9c;border-color:#a8bdab20}.barrow{margin:3px 0;gap:5px}.barrow .vital-caption{width:14px;min-width:14px}.vital-caption svg{display:block;width:13px;height:13px}.vitals .vital-word{display:none!important}.barrow b{font-size:9px;width:23px}.vitals .track{height:3px}
 #area,.journey,.controlhint{display:none}#notice{top:calc(58px + env(safe-area-inset-top));font-size:12px;padding:7px 12px;max-width:75%;width:auto}
 #touch{bottom:calc(16px + env(safe-area-inset-bottom));left:calc(14px + env(safe-area-inset-left));right:calc(14px + env(safe-area-inset-right));align-items:flex-end;gap:12px}#touch>div{gap:6px}#touch .move-pad{display:flex}#touch button{width:48px;height:48px;min-width:0;display:flex;align-items:center;justify-content:center;padding:9px;border-radius:8px;background:#06131c88;border-color:#bccbb74d;touch-action:none;-webkit-tap-highlight-color:transparent}#touch button:active{background:#40554bba}#touch button svg{width:25px;height:25px}#touch .action-pad{display:grid;grid-template-columns:40px 40px 54px;grid-template-rows:40px 40px;gap:6px}#touch .action-pad button{width:40px;height:40px;padding:7px}#touch [data-key="up"]{grid-column:1;grid-row:1}#touch [data-key="down"]{grid-column:1;grid-row:2}#touch [data-key="jump"]{grid-column:2;grid-row:1}#touch [data-key="front"]{grid-column:2;grid-row:2}#touch .action-pad .fire{grid-column:3;grid-row:1/3;width:54px;height:86px;border-color:#d3bd8380;background:#302b1e94;color:#eed49b}#touch .fire svg{width:29px;height:29px}
 .lighttools{left:calc(14px + env(safe-area-inset-left));bottom:calc(76px + env(safe-area-inset-bottom));gap:5px}.lighttools button{min-width:0;width:31px;height:31px;padding:6px;background:#07131b99;border-color:#b3c9bb3d;border-radius:6px;touch-action:none}.lighttools button svg{width:19px;height:19px}.lighttools .control-label,#layer{display:none!important}.lighttools [data-light="1"]{color:#baabdf}.lighttools [data-light="2"]{color:#e5c982}
 #bossbar{top:calc(63px + env(safe-area-inset-top));bottom:auto;left:27%;width:46%}#bossbar span{font-size:8px;letter-spacing:2px}#bossbar .track{height:4px;margin-top:5px}
 #fieldThought{top:20%;bottom:auto;font-size:clamp(16px,3vw,25px);left:9%;right:9%}#sceneActions{bottom:calc(12px + env(safe-area-inset-bottom));right:calc(14px + env(safe-area-inset-right));gap:8px}#sceneActions button{width:38px;height:34px;padding:7px}#sceneActions button span,#sceneProgress{display:none}#sceneActions svg{width:19px;height:19px}.scene-title{top:calc(12px + env(safe-area-inset-top))}
 #musicControls{top:calc(56px + env(safe-area-inset-top));right:14px;max-width:calc(100% - 28px);flex-wrap:wrap;background:#07121bf5}#musicControls #musicFile,#musicControls #musicLabel{display:none}#musicControls label:has(#musicFile){display:none}#musicControls label{flex:1 1 160px;justify-content:space-between}
}
