:root{color-scheme:dark;font-family:Arial,sans-serif;color:#e8edf5;background:#070d18}*{box-sizing:border-box}html,body{margin:0;height:100%;width:100%;overflow:hidden;overscroll-behavior:none}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:none}button:focus-visible{outline:2px solid #dfbd82;outline-offset:4px}[hidden]{display:none!important}#app{position:relative;width:100%;height:100%;height:100dvh;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}canvas{position:absolute;width:100%;height:100%;object-fit:contain;inset:0;background:#080f1c}.screen{position:absolute;inset:0;z-index:10}#start{background:#0a1424 url('assets/forest.jpg') 62% center/cover no-repeat}.veil{position:absolute;inset:0;background:linear-gradient(90deg,#050c16f5 0%,#07101de5 24%,#07101d88 47%,transparent 77%),linear-gradient(0deg,#060c18cf,transparent 28%)}.intro{position:relative;margin-left:7vw;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-bottom:25px;max-width:550px}.eyebrow{display:flex;align-items:center;gap:12px;color:#d3b991;font-size:9px;letter-spacing:3px}.eyebrow img{width:46px;height:33px;object-fit:contain}.series{letter-spacing:4px;color:#a4b8ce;font-size:9px;margin:24px 0 15px}h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(58px,7.3vw,114px);line-height:.78;letter-spacing:3px;margin:0;text-shadow:0 3px 28px #92b7eb33;color:#eef1f2}h1 span{display:block;font-size:.91em;letter-spacing:6px;margin-top:14px}.rule{width:66px;height:1px;background:#b6986a;margin:24px 0 0}.tagline{font:italic clamp(15px,1.7vw,23px)/1.5 Georgia,serif;color:#d1d7df;margin:17px 0 10px}.description{font-size:11px;line-height:1.8;letter-spacing:.3px;color:#9caec3;margin:0 0 22px}.primary{border:1px solid #d2b68c;min-width:245px;background:linear-gradient(110deg,#dfc49c,#b79a73);padding:17px 20px;font-size:10px;font-weight:bold;letter-spacing:2px;color:#101824;display:flex;justify-content:space-between;gap:30px;align-items:center}.primary:disabled{opacity:.6;cursor:wait}.primary:hover:not(:disabled){background:#ebd4b0}.primary span{font-size:20px;line-height:12px}.intro-links{display:flex;gap:23px;align-items:center;margin-top:18px;font-size:7px;letter-spacing:1.4px;color:#8193a9}.intro-links button{background:none;border:0;border-bottom:1px solid #93a0b655;padding:6px 0;font-size:8px;letter-spacing:1.5px}.bottom{position:absolute;bottom:20px;left:7vw;right:35px;display:flex;justify-content:space-between;color:#72859e;font-size:7px;letter-spacing:2px}.chapter-card{position:absolute;right:5%;bottom:14%;border-left:1px solid #d7b88480;padding-left:18px;display:flex;flex-direction:column;gap:9px}.chapter-card span{font-size:8px;letter-spacing:3px;color:#d6b88b}.chapter-card b{font:italic 22px Georgia,serif;font-weight:400}.chapter-card small{font-size:9px;color:#a6b6c9;letter-spacing:.5px}#hud{position:absolute;top:max(18px,env(safe-area-inset-top));left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between;gap:20px;pointer-events:none}.identity{display:flex;align-items:center;gap:10px}.identity img{width:50px;height:35px;object-fit:contain}.identity b{font:17px Georgia,serif;letter-spacing:3px}.identity small{display:block;font-size:7px;color:#b5bfce;letter-spacing:1.4px;margin-top:5px}.vitals{display:flex;gap:22px;padding:10px 18px;background:#07101cc9;border:1px solid #9baec433;backdrop-filter:blur(10px)}.vitals label{width:120px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px}.vitals span{font-size:7px;letter-spacing:1.6px;color:#c8b4be}.vitals b{font-size:9px;font-weight:400}.vitals i{height:3px;background:#c091a62b;width:100%}.vitals em{display:block;height:100%;width:100%;background:#c75c7a;transition:width .1s}.vitals .moon em{background:#9ac9ef}.moon span{color:#b5d0e5}.tools{display:flex;gap:7px;pointer-events:auto}.tools button{border:1px solid #a7bac53b;width:33px;height:33px;background:#081425ae;font-size:16px}#objective{position:absolute;top:85px;left:max(26px,env(safe-area-inset-left));font-size:10px;color:#cfdbec;letter-spacing:.5px;display:flex;flex-direction:column;gap:9px}.track{width:170px;position:relative;height:2px;background:#d4d8df30}.track i{display:block;width:0;height:100%;background:#d5b683}.track b{position:absolute;right:-15px;top:-9px;font-size:17px;color:#d5b683}#score{font-size:8px;letter-spacing:2px;color:#d6bb97}#controls{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:max(28px,env(safe-area-inset-left));right:max(28px,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:end;pointer-events:none}.directions,.actions{display:flex;gap:12px;align-items:end;pointer-events:auto}#controls button{width:60px;height:60px;border-radius:50%;border:1px solid #b4c6e35e;background:linear-gradient(145deg,#32425a77,#0b172a9c);backdrop-filter:blur(5px);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:40px;line-height:1;position:relative;overflow:hidden}.actions span{font-size:27px}.actions small{font-size:7px;letter-spacing:1px;margin-top:5px}.actions .jump{width:76px!important;height:76px!important;border-color:#e0c091ad!important;color:#f4dcb5}.actions .attack{width:70px!important;height:70px!important;border-color:#e6a0b48c!important;color:#f0c4cf}.actions .form{color:#b8dbfb}.actions #bats{color:#c3b5f3}#controls button.held{background:#6684a18c;box-shadow:0 0 18px #9ac9ef55}#bats i{position:absolute;bottom:0;left:0;right:0;background:#060a17a8;pointer-events:none;transition:height .1s}#toast{position:absolute;left:50%;top:24%;transform:translateX(-50%);color:#f5d7ac;background:#081221e8;border:1px solid #c9b28a55;padding:12px 22px;opacity:0;transition:opacity .2s;font:italic 17px Georgia,serif;text-align:center;pointer-events:none;z-index:4;max-width:80%}#toast.show{opacity:1}#boss{position:absolute;top:93px;left:37%;width:30%;text-align:center;font-size:8px;letter-spacing:3px;color:#e8b2a0}#boss i{display:block;height:4px;margin-top:8px;background:#492e37}#boss em{display:block;height:100%;background:#d8997c}.glass{background:#050d1bd9;backdrop-filter:blur(12px);display:grid;place-items:center}.panel{max-width:600px;width:88%;border:1px solid #b6c2d333;background:linear-gradient(135deg,#142238,#070e1a);padding:35px 45px}.panel h2{font:italic 34px Georgia,serif;margin:18px 0;color:#ebdcc5}.panel p{font-size:12px;line-height:1.9;color:#b7c6d7}.panel .primary{margin-top:24px;min-width:100%}.secondary{background:none;border:0;border-bottom:1px solid #9d865d;color:#bba782;padding:10px 0;margin-top:12px;font-size:9px;letter-spacing:1px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 24px;margin:20px 0;font-size:11px;color:#aabed3}.help-grid b{display:block;color:#e6d1ad;margin-bottom:5px;font-size:10px;letter-spacing:1px}.help-grid kbd{font:9px monospace;padding:2px 4px;background:#8a9fbc22}#cinematic{background:#03070d}#film{width:100%;height:100%;object-fit:contain}.cinema-label{position:absolute;bottom:24px;left:5%;right:5%;display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:3px;color:#d4bc94}.cinema-label button{background:#0a1429b8;border:1px solid #d4bc9466;padding:12px 18px;font-size:9px;letter-spacing:2px}#rotate{display:none;position:absolute;inset:0;background:#091222f7;z-index:30;flex-direction:column;align-items:center;justify-content:center;gap:15px}#rotate span{font-size:65px;color:#b7d7ef}#rotate b{font:italic 25px Georgia,serif}#rotate p{font-size:12px;color:#9cacc1}#error{position:absolute;z-index:50;bottom:5px;color:#ffb5b5;background:#151019;padding:10px;font-size:12px}@media(orientation:portrait) and (max-width:900px){#rotate{display:flex}}@media(max-height:600px){.intro{padding-bottom:18px}.series{margin:13px 0 12px}h1{font-size:67px}.rule{margin-top:19px}.tagline{font-size:17px;margin:12px 0 8px}.description{font-size:10px;margin-bottom:15px}.primary{padding:14px 18px}.intro-links{margin-top:10px}.bottom{bottom:12px}.eyebrow img{height:23px;width:37px}.chapter-card b{font-size:18px}.chapter-card{bottom:13%}.panel{padding:23px 32px}.panel h2{font-size:27px;margin:12px 0}.help-grid{gap:10px;font-size:10px;margin:13px 0}.panel .primary{margin-top:15px}}@media(max-height:430px){#hud{top:max(9px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right))}.vitals{padding:7px 12px;gap:14px}.vitals label{width:100px}.identity img{width:36px}.identity b{font-size:13px}.identity small{font-size:6px}.tools button{width:28px;height:28px}#objective{top:64px;font-size:9px}.track{width:140px}#controls{bottom:max(12px,env(safe-area-inset-bottom));left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right))}#controls button{width:49px;height:49px}.actions .jump{width:62px!important;height:62px!important}.actions .attack{width:57px!important;height:57px!important}.directions,.actions{gap:9px}.actions small{font-size:6px}.actions span{font-size:22px}.series{font-size:7px;letter-spacing:3px;margin:10px 0}h1{font-size:49px}h1 span{margin-top:9px}.eyebrow{font-size:7px}.tagline{font-size:14px;line-height:1.4;margin:10px 0}.rule{margin-top:14px}.description{font-size:9px;line-height:1.5;margin-bottom:13px}.primary{padding:12px 16px;min-width:210px;font-size:9px}.intro-links{font-size:6px;margin-top:9px}.intro-links button{font-size:7px}.bottom{font-size:6px;letter-spacing:1px}.intro{margin-left:max(6vw,env(safe-area-inset-left))}.chapter-card{right:5%;bottom:18%}#boss{top:71px}.panel h2{font-size:24px}.panel p{font-size:10px;line-height:1.6}.panel{padding:20px 28px}.help-grid{font-size:9px;gap:9px 18px}.help-grid b{font-size:9px}#toast{font-size:14px;padding:9px 15px}}
.identity img,.eyebrow img{mix-blend-mode:screen}.tools #pause{font-size:0}.tools #pause:after{content:'Ⅱ';font-family:Georgia,serif;font-size:16px}
.tools #pause:after{content:'';display:inline-block;width:5px;height:10px;border-left:2px solid #dce6ef;border-right:2px solid #dce6ef;box-sizing:content-box}
/* Five illustrated story cards. Advance at the reader's pace; soundtrack begins in gameplay. */
#story{background:#050b15;overflow:hidden;z-index:15}#story-art{position:absolute;inset:0;background-size:cover;background-position:center 38%;transform:scale(1.02);will-change:transform}#story-art.drift{animation:story-drift 25s ease-out both}.story-shade{position:absolute;inset:0;background:linear-gradient(0deg,#040914 0%,#040914f2 11%,#040914d9 24%,#04091455 47%,#04091400 68%),linear-gradient(180deg,#030812b8,transparent 23%)}.story-header{position:absolute;top:max(25px,env(safe-area-inset-top));left:max(5vw,env(safe-area-inset-left));right:max(5vw,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between}.story-header .eyebrow{color:#e8d6b8;font-size:9px;text-shadow:0 1px 8px #000}.story-header button{background:#07101b7a;border:1px solid #c9bda24d;padding:12px 16px;font-size:8px;letter-spacing:2px;color:#e2caa7}.story-copy{position:absolute;left:max(6vw,env(safe-area-inset-left));right:6vw;bottom:112px;max-width:800px}#story-chapter{color:#d6b78b;font-size:8px;letter-spacing:3px}.story-copy h2{font:italic clamp(27px,3.5vw,48px)/1.12 Georgia,serif;color:#f4e9d6;margin:12px 0 15px;text-shadow:0 2px 15px #030710}.story-line{width:55px;height:1px;background:#d2b990;margin-bottom:14px}.story-copy p{font:clamp(12px,1.25vw,17px)/1.85 Georgia,serif;letter-spacing:.15px;color:#d0d9e5;max-width:720px;margin:0;text-shadow:0 2px 6px #000}.story-footer{position:absolute;bottom:max(26px,env(safe-area-inset-bottom));left:max(6vw,env(safe-area-inset-left));right:max(5vw,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:center;gap:20px}.story-position{display:flex;align-items:center;gap:22px}#story-page{font-size:9px;letter-spacing:2px;color:#cfb68d}#story-pips{display:flex;gap:7px}#story-pips i{height:3px;width:24px;background:#a7b4c133}#story-pips i.current{background:#e4c493}#story-pips i.read{background:#9f896b}.story-navigation{display:flex;align-items:center;gap:24px}#story-back{background:none;border:0;padding:13px 0;color:#b9c5d3;font-size:8px;letter-spacing:2px}#story-back:disabled{opacity:.25;cursor:default}.story-navigation .primary{min-width:230px;font-size:9px;padding:15px 19px}@keyframes story-drift{from{transform:scale(1.02)}to{transform:scale(1.11)}}@media(max-height:600px){.story-header{top:max(16px,env(safe-area-inset-top))}.story-copy{bottom:96px;max-width:720px}.story-copy h2{font-size:33px;margin:9px 0 12px}.story-copy p{font-size:13px;line-height:1.7}.story-line{margin-bottom:11px}.story-footer{bottom:max(20px,env(safe-area-inset-bottom))}.story-shade{background:linear-gradient(0deg,#040914 0%,#040914f5 16%,#040914bf 37%,#04091400 76%),linear-gradient(180deg,#0308129a,transparent 24%)}}@media(max-height:430px){.story-header{top:max(12px,env(safe-area-inset-top))}.story-header .eyebrow{font-size:7px;letter-spacing:2px}.story-header button{font-size:7px;padding:9px 12px}.story-header img{height:25px}.story-copy{bottom:81px;right:7vw;max-width:650px}.story-copy h2{font-size:27px;margin:8px 0 10px}.story-copy p{font-size:11px;line-height:1.65;max-width:620px}.story-line{margin-bottom:9px}.story-footer{bottom:max(15px,env(safe-area-inset-bottom))}.story-navigation .primary{min-width:200px;font-size:8px;padding:12px 15px}.story-navigation{gap:19px}.story-position{gap:13px}#story-pips i{width:17px}#story-page{font-size:8px}#story-chapter{font-size:7px}.story-shade{background:linear-gradient(0deg,#040914 0%,#040914f5 14%,#040914ce 35%,#04091400 83%),linear-gradient(180deg,#030812ab,transparent 32%)}}@media(prefers-reduced-motion:reduce){#story-art.drift{animation:none}#story-art{will-change:auto}}
#story-motion{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;background:#08101c}.story-shade{pointer-events:none}.story-tools{display:flex;align-items:center;gap:9px}.story-tools #story-motion-toggle{font-size:7px;padding:12px;color:#bacddd;border-color:#afc6dc3b;background:#09142672;min-width:96px}.story-tools #story-motion-toggle[aria-pressed="false"]{color:#a9a7a4}.story-header{z-index:2}.story-copy,.story-footer{z-index:2}@media(max-height:430px){.story-tools #story-motion-toggle{padding:9px;font-size:6px;min-width:80px}.story-tools{gap:6px}}
#ending{z-index:22;background:#050d1b}#ending-canvas{width:100%;height:100%;object-fit:cover}.ending-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#061020df 0%,#06102000 34%,#06102000 80%,#06102077 100%)}.ending-top{position:absolute;left:max(5vw,env(safe-area-inset-left));right:max(5vw,env(safe-area-inset-right));top:max(23px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center;gap:20px;color:#cde6f6;font-size:8px;letter-spacing:3px}.ending-top div{display:flex;gap:8px}.ending-top button,#ending-replay{background:#07142488;color:#c9dce9;border:1px solid #aacfe64d;padding:11px 14px;font-size:8px;letter-spacing:1.5px}#ending-title{position:absolute;left:6vw;right:6vw;bottom:174px;opacity:0;transform:translateY(8px);transition:opacity 2s ease,transform 2s ease;pointer-events:none}#ending-title.visible{opacity:1;transform:none}#ending-title span{font-size:8px;color:#bdddf4;letter-spacing:5px}#ending-title h2{font:italic clamp(32px,5vw,64px)/1.1 Georgia,serif;margin:14px 0;color:#edf8ff;text-shadow:0 0 35px #b3dcff77}#ending-title p{font:italic 15px Georgia,serif;letter-spacing:.3px;color:#cbe4f8}.ending-bottom{position:absolute;left:max(6vw,env(safe-area-inset-left));right:max(6vw,env(safe-area-inset-right));bottom:max(28px,env(safe-area-inset-bottom))}#ending-caption{font:italic clamp(15px,1.6vw,22px) Georgia,serif;color:#e0f0fc;margin:0 0 22px;text-shadow:0 2px 15px #000}#ending-result{display:flex;justify-content:space-between;align-items:center;gap:20px}#ending-result small{color:#b3cfe1;font-size:8px;letter-spacing:1.3px}#ending-result>div{display:flex;align-items:center;gap:14px}#ending-result .primary{min-width:180px;padding:14px 18px;background:linear-gradient(120deg,#c5e3f7,#8eb1d1);border-color:#c0e5fb}#ending-replay{border:0;border-bottom:1px solid #b5d5e355;background:none;padding:11px 0}@media(max-height:430px){.ending-top{top:max(12px,env(safe-area-inset-top));font-size:7px}.ending-top button{font-size:6px;padding:9px}.ending-bottom{bottom:max(17px,env(safe-area-inset-bottom))}#ending-caption{font-size:14px;margin-bottom:13px}#ending-title{bottom:118px}#ending-title h2{font-size:36px;margin:10px 0}#ending-title p{font-size:12px}#ending-result small{font-size:7px}#ending-result .primary{min-width:150px;padding:12px 14px;font-size:8px}#ending-replay{font-size:7px}#ending-result>div{gap:14px}}@media(prefers-reduced-motion:reduce){#ending-title{transition:none;transform:none}}
