*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#082a36;color:#f8f6e9;font-family:Arial,sans-serif}body{display:grid;place-items:center;min-height:100dvh}main{width:min(1200px,100%);padding:0 24px}header{height:90px;display:flex;align-items:center;justify-content:space-between;gap:20px}.logo{font-size:25px;font-weight:950;letter-spacing:-1px;text-decoration:none;color:#f8f6e9}.logo span{display:block;font-size:8px;letter-spacing:2.6px;margin-top:5px}.edition,footer{font-size:9px;letter-spacing:2px;color:#9fbdc0}button{cursor:pointer;font:inherit;touch-action:none;-webkit-tap-highlight-color:transparent}#pause{width:40px;height:40px;border-radius:50%;border:1px solid #b7d0d066;background:#174453;color:white}#stage{height:min(70dvh,650px);min-height:380px;position:relative;border-radius:16px;overflow:hidden;isolation:isolate;background:#8dcdd1;box-shadow:0 25px 70px #00151c66}canvas{width:100%;height:100%;display:block;touch-action:none}#overlay{position:absolute;inset:0;padding:6% 6%;background:linear-gradient(90deg,#092f3cf2 0%,#092f3cce 37%,#092f3c00 80%);display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.kicker{font-size:9px;letter-spacing:2px;font-weight:bold;color:#c1e98b}h1{font-size:clamp(38px,6.7vw,82px);font-weight:950;line-height:.92;letter-spacing:-3px;margin:20px 0}h1 em{font-style:normal;color:#d8f691}#story{font-size:13px;line-height:1.6;color:#d0e1dc;max-width:310px;margin:0}#chapters{display:flex;gap:22px;font-size:8px;letter-spacing:1px;margin:24px 0}#chapters b{color:#d8f691;margin-right:5px}#start{background:#d8f691;color:#173b3e;border:0;border-radius:6px;padding:18px 20px;font-size:11px;font-weight:800;letter-spacing:1px;min-width:260px;text-align:left}#start span{float:right;font-size:17px}#instructions{font-size:10px;line-height:1.6;color:#b0ccc9;margin-bottom:0}#hud{position:absolute;left:28px;right:28px;top:22px;display:flex;justify-content:space-between;gap:20px;text-shadow:0 1px 6px #154453}#hud span{font-size:10px;font-weight:700;letter-spacing:1.5px}#hud strong{display:block;font-size:17px;margin-top:6px}.right{text-align:right}#life{color:#ffdbb3}.progress{position:absolute;top:64px;left:0;right:0;height:3px;background:#fff4}.progress i{display:block;background:#d8f691;height:100%;width:0}#caption{position:absolute;top:110px;left:15%;right:15%;text-align:center;font-weight:bold;font-size:14px;color:white;text-shadow:0 2px 6px #092f3c;pointer-events:none}#controls{position:absolute;bottom:20px;left:24px;right:24px;display:flex;justify-content:space-between;align-items:end;pointer-events:none}#controls button{pointer-events:auto;user-select:none;background:#103c51c9;border:1px solid #ffffff70;color:white;border-radius:12px;height:60px;width:65px;font-size:26px}#surfControls{display:flex;gap:10px}#controls #jump{margin-left:auto;width:125px;background:#d8f691;color:#193e42;font-size:12px;font-weight:bold;border:0}footer{display:flex;justify-content:space-between;padding:23px 0;gap:15px;font-size:8px}[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:3px solid white;outline-offset:3px}@media(max-width:600px){main{padding:0 10px}header{height:70px}.edition{display:none}#stage{height:75dvh;min-height:490px}#overlay{padding:30px 24px;background:linear-gradient(90deg,#092f3ce8,#092f3c60)}h1{font-size:57px}#chapters{gap:12px;font-size:7px}#hud{left:18px;right:18px}#hud strong{font-size:13px}#tip{max-width:165px;text-align:right;line-height:1.6}#caption{font-size:12px;left:8%;right:8%}}@media(max-height:500px) and (orientation:landscape){main{padding:0}header{height:45px;padding:0 20px}.logo{font-size:17px}.logo span{font-size:6px}#stage{height:calc(100dvh - 45px);min-height:0;border-radius:0}footer{display:none}#overlay{padding:20px 35px}h1{font-size:44px;margin:12px 0}#story{font-size:11px;max-width:330px}#chapters{margin:12px 0}#start{padding:13px 18px}#instructions{font-size:9px}#hud{top:12px}#caption{top:93px}#controls{bottom:12px}#controls button{height:48px}}
/* Cinematic frame; preserve artwork proportions on every display. */
body{background:radial-gradient(ellipse at 50% 30%,#294550,#0b202e 75%)}main{width:min(1440px,100%)}header{height:76px}.logo{letter-spacing:-.5px}.edition{color:#c0beb1}#stage{height:auto;aspect-ratio:11/6;min-height:0;max-height:780px;border:1px solid #67868a55;border-radius:14px;background:#173645}#overlay{background:linear-gradient(90deg,#0b263bec,#0b263bad 40%,#0b263b00 85%)}#start,#controls #jump{background:#ffdc96;color:#293a41;box-shadow:0 3px 0 #b8935b}h1 em{color:#ffdc96}.kicker,#chapters b{color:#ffdc96}#hud{left:25px;right:25px;top:22px}#hud strong{font-size:15px;letter-spacing:.8px}#hud span{font-size:9px}.progress{background:#e5eff027}.progress i{background:#ffdc96}#threat{position:absolute;left:25px;top:109px;width:156px;pointer-events:none}#threat span{font-size:8px;font-weight:800;letter-spacing:1px;color:#f8e5bd;text-shadow:0 2px 5px #183849}#threat>div{height:4px;margin-top:8px;background:#132f42aa;border-radius:8px;overflow:hidden}#threatFill{display:block;height:100%;background:#ffb87e;transition:width .08s linear}#life.critical{color:#ff997c}#stage.danger{border-color:#e79c6e}#caption{top:152px;font-size:12px;letter-spacing:.3px}#controls{bottom:17px}#controls button{backdrop-filter:blur(8px);background:#153f55bb;height:53px}#controls #jump{height:53px;width:125px}footer{padding:18px 0}#instructions{max-width:350px}
@media(max-width:600px) and (orientation:portrait){main{padding:0 8px}header{height:65px}#stage{aspect-ratio:auto;height:72dvh;min-height:440px}#overlay{padding:26px 23px;background:linear-gradient(90deg,#0b263bf2,#0b263b80)}h1{font-size:52px}#hud{left:15px;right:15px;top:17px}#hud strong{font-size:10px}#hud span{font-size:8px;letter-spacing:.6px}#threat{left:15px;top:97px;width:138px}#caption{top:139px;font-size:11px}#controls{bottom:18px;left:15px;right:15px}#controls button{height:58px}#controls #jump{height:58px}#chapters{gap:9px}#story{font-size:12px}}
@media(max-height:500px) and (orientation:landscape){header{height:39px}#stage{height:calc(100dvh - 39px);aspect-ratio:auto;min-height:0;border-radius:0}#hud{top:12px}#hud strong{font-size:11px;margin-top:3px}.progress{top:43px}#threat{top:64px;width:140px}#caption{top:98px;font-size:11px}#controls{bottom:10px}#controls button,#controls #jump{height:42px}#overlay{padding:17px 32px}h1{font-size:40px;margin:10px 0}#story{font-size:10px;max-width:310px}#instructions{font-size:8px}#chapters{margin:10px 0}}
#sound{margin-left:auto;border:1px solid #9db7b755;background:#174453;color:#f8e8c7;border-radius:20px;font-size:9px;font-weight:700;letter-spacing:1px;padding:10px 12px;white-space:nowrap}header .edition{margin-left:auto}#fullscreen{flex:none;width:36px;height:36px;padding:0;display:grid;place-items:center;border:1px solid #9db7b755;background:#174453;color:#f8e8c7;border-radius:50%}header{gap:10px}@media(max-width:600px){header{gap:10px}}
#loading{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#102f41;color:#ffdc96;letter-spacing:1px}#loading p{font-size:12px;color:#c7d9d9;letter-spacing:0}#loadProgress{width:220px;height:8px;accent-color:#ffdc96}#start:disabled{opacity:.5;cursor:wait}#skip{position:absolute;right:20px;bottom:18px;z-index:5;border:1px solid #e9dec480;background:#102f41d9;color:#f6e4bb;padding:12px 15px;border-radius:20px;font-size:10px;letter-spacing:1px}
#practice{margin-top:10px;color:#ffe0a3;background:#143a4cbb;border:1px solid #d4cda257;border-radius:6px;padding:11px 18px;font-size:10px;letter-spacing:1px;min-width:260px;text-align:left}#practice:disabled{opacity:.5;cursor:wait}#controls #jump.cooling{opacity:.45}@media(max-height:500px) and (orientation:landscape){#practice{padding:7px 18px;margin-top:6px}#instructions{margin-top:7px}#overlay{padding-top:12px;padding-bottom:12px}h1{font-size:35px}}
