*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#081e32;color:#fff9eb;font-family:system-ui,-apple-system,Segoe UI,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;touch-action:none;border:1px solid #ffffff25}button:focus-visible,a:focus-visible{outline:3px solid #ffdb80;outline-offset:3px}button:active{transform:translateY(2px)}[hidden]{display:none!important}#game{height:100dvh;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);max-width:1920px;margin:auto}header{height:58px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#081e32;border-bottom:1px solid #ffffff15;gap:10px}header a{font-size:14px;font-weight:900;letter-spacing:2px;text-decoration:none;color:#fff6d8}header a span{color:#f2bd68}.tag{font-size:10px;color:#9ab9c7;letter-spacing:3px}.tools{display:flex;gap:8px}.tools button{background:#142d40;border-radius:10px;height:36px;min-width:40px;padding:0 10px;font-weight:800;font-size:12px}#world{position:relative;flex:1;min-height:0;overflow:hidden}canvas{width:100%;height:100%;display:block;touch-action:none}#hud{position:absolute;top:15px;left:22px;right:22px;display:flex;justify-content:space-between;pointer-events:none;gap:8px;text-shadow:0 2px 8px #001526}#hud small{display:block;font-size:9px;letter-spacing:1.6px;color:#bdd5db;font-weight:800}#hud b{font-size:22px;display:block;margin-top:3px}#hud .clock{text-align:center}.right{text-align:right}#hearts{color:#ff8e9d;font-size:18px!important;letter-spacing:3px}#points{font-size:11px;color:#f9d995}#toast{position:absolute;top:85px;left:50%;transform:translateX(-50%);background:#082735eb;border:1px solid #ffdc8260;color:#ffe2a4;border-radius:30px;padding:9px 18px;text-align:center;font-weight:700;font-size:13px;opacity:0;transition:opacity .2s;max-width:92%;width:max-content;pointer-events:none}#toast.show{opacity:1}#hint{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);width:max-content;max-width:92%;font-size:12px;text-align:center;background:#082735df;border:1px solid #ffffff22;border-radius:12px;padding:9px 16px;color:#ffecbc;pointer-events:none}#overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-start;padding:28px 7%;background:linear-gradient(90deg,#051a2df2,#051a2dab 47%,#051a2d10)}.panel{width:450px;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:thin}.eyebrow{font-size:10px;line-height:1.7;letter-spacing:2px;color:#f6cf85;font-weight:800}h1{font-family:Georgia,serif;font-size:clamp(38px,5.7vw,80px);line-height:.94;font-weight:700;margin:20px 0;letter-spacing:-2px}h1 em{font-weight:400;color:#ffd28c}h1 span{font-size:28px;color:#ffd28c;vertical-align:top;margin-left:12px}h2{font-family:Georgia,serif;font-size:clamp(28px,5vw,48px);margin:12px 0;color:#ffe9bd}.panel p{color:#bfd2db;font-size:14px;line-height:1.65;max-width:380px}.panel .lead{font-size:17px;color:#fff6e4;margin-bottom:8px}.how{display:flex;gap:17px;margin:20px 0}.how span{font-size:10px;color:#c7d8de}.how b{display:block;font-size:24px;color:#ffde9e;margin-bottom:4px}.primary{display:block;width:100%;border:0;border-radius:12px;background:#f5cb86;color:#142839;padding:17px 20px;font-size:12px;font-weight:900;letter-spacing:1px;box-shadow:0 6px 28px #f9b94822}.primary span{float:right}.secondary{margin-top:10px;display:block;width:100%;background:#123448;border-radius:12px;padding:13px;text-align:center;text-decoration:none;color:#fff5dd;font-size:13px;border:1px solid #ffffff25}.panel .foot{font-size:10px;color:#a9bec7;text-align:center;margin:12px auto}.desktophelp{font-size:10px!important;opacity:.7}.resultstats{display:flex;gap:28px;margin:20px 0}.resultstats span{font-size:11px;color:#bfd2db}.resultstats strong{display:block;font-size:28px;color:#ffde9c}#controls{height:94px;flex-shrink:0;padding:10px 22px;background:#0a2235;display:flex;align-items:center;gap:18px;border-top:1px solid #ffffff19;user-select:none}.steering,.actions{display:flex;gap:10px}.steering button{width:64px;height:64px;background:#17394f;border-radius:18px;font-size:24px}.controlhint{font-size:9px;letter-spacing:1.5px;color:#96b3c3}.controlhint b{display:block;font-weight:400;color:#d4dfdf;letter-spacing:0;font-size:12px;padding-top:5px}.actions{margin-left:auto}.actions button{min-width:104px;height:66px;border-radius:18px;font-size:9px;letter-spacing:1px;font-weight:900}.actions span{display:block;font-size:25px;line-height:30px}.snow{background:#214a63;color:#ddf5ff}.gift{background:#bb4050;color:#fff2d3;box-shadow:inset 0 1px #ffffff40}.pressed{filter:brightness(1.4);transform:translateY(2px)}
@media(max-width:600px){header{height:48px;padding:0 12px}header a{font-size:11px;letter-spacing:1px}.tag{display:none}.tools button{height:32px;font-size:10px}#controls{height:96px;padding:10px;gap:6px}.steering{gap:6px}.steering button{width:53px;height:62px;border-radius:15px}.controlhint{display:none}.actions{gap:7px}.actions button{min-width:84px;height:64px;font-size:8px}#hud{top:12px;left:12px;right:12px}#hud b{font-size:18px}#hud small{font-size:7px;letter-spacing:.8px}#hearts{font-size:13px!important;letter-spacing:1px}#toast{top:72px;font-size:11px}#overlay{padding:20px;background:linear-gradient(90deg,#051a2df5,#051a2db0)}h1{font-size:52px;margin:14px 0}.panel{width:350px}.panel p{font-size:12px}.panel .lead{font-size:14px}.eyebrow{font-size:8px;letter-spacing:1.3px}.how{margin:12px 0;gap:24px}.primary{padding:15px}.desktophelp{display:none}#hint{font-size:10px;bottom:10px}.panel .foot{font-size:9px}}
@media(max-height:560px) and (min-width:601px){header{height:38px}#controls{height:68px;padding:4px 18px}.steering button{height:52px;width:60px}.actions button{height:54px;min-width:100px}.actions span{font-size:20px;line-height:25px}#overlay{padding:14px 5%}.panel{width:440px}.panel h1{font-size:38px;line-height:1;max-width:none;margin:8px 0}.panel h1 br{display:none}.panel h1 em{padding:0 8px}.panel p{font-size:11px;margin:6px 0}.panel .lead{font-size:13px}.how{margin:8px 0}.how b{display:inline;font-size:15px;margin-right:5px}.primary{padding:12px}.eyebrow{font-size:8px}.desktophelp{display:none}.panel .foot{margin:7px 0}.resultstats{margin:10px 0}}

/* Active play keeps only real health; objectives, time and score live in Pause. */
#hud>div:not(.right),#hud .right small,#points{display:none}#hud{justify-content:flex-end}.embedded header{display:none}

/* P02: the playfield fills the former control-bar space. One optional action cue. */
#game{position:relative}#action{position:absolute;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:3;height:48px;padding:0 12px;border-radius:24px;background:#153d55bd;color:#e5fbff;box-shadow:0 2px 18px #00172540;font-size:21px;backdrop-filter:blur(5px)}#action span{font-size:9px;letter-spacing:1px;font-weight:800;vertical-align:middle}#hint{bottom:76px;max-width:88%}#toast{top:56px}canvas{cursor:crosshair;user-select:none;-webkit-user-select:none}body.embedded #hud{top:48px}body.embedded #toast{top:82px}@media(max-height:500px){#action{height:40px;bottom:9px;right:12px}#action span{font-size:8px}#hint{bottom:57px;font-size:10px}body.embedded #hud{top:38px}body.embedded #toast{top:62px}}
