:root{font-family:Tahoma,Arial,sans-serif;color:#fff;background:#10384b;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:grid;place-items:center;padding:18px;background:radial-gradient(ellipse at 25% 10%,#287a86,transparent 55%),linear-gradient(140deg,#143448,#071b2c)}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #ffcd5a;outline-offset:4px}button:disabled{opacity:.4;cursor:default}
.game-shell{width:min(100%,560px);border:1px solid #ffffff40;border-radius:28px;overflow:hidden;box-shadow:0 35px 100px #001b32aa}.stage-wrap{height:min(850px,calc(100dvh - 80px));min-height:500px;position:relative;isolation:isolate;overflow:hidden;background:#8cd7eb}canvas{width:100%;height:100%;display:block;touch-action:none}
#speed-lines{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 -70px 65px -55px #143d59;transition:box-shadow .2s}#speed-lines.crash{box-shadow:inset 0 0 80px #f4555677}.topbar{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:18px 20px;background:linear-gradient(#093b66a6,transparent);pointer-events:none}.brand{display:flex;align-items:center;gap:10px;text-shadow:0 2px 5px #15374577}.brand strong{font-size:21px;font-weight:900}.brand small{display:block;font-size:10px;margin-top:5px;letter-spacing:1px;color:#e4f8fa}.brand-mark{width:40px;height:44px;display:grid;place-items:center;background:#08a6b4;border:2px solid #9dfaf0;border-radius:13px 13px 20px 20px;box-shadow:0 4px 0 #047284;font-size:21px}.toolbar{display:flex;gap:8px;pointer-events:auto}.toolbar button{width:36px;height:36px;display:grid;place-items:center;border:1px solid #ffffff70;border-radius:12px;background:#164b6788;color:white;font-size:21px;backdrop-filter:blur(8px)}
.hud{position:absolute;top:89px;left:20px;right:20px;display:flex;justify-content:space-between;pointer-events:none}.score-card{padding:11px 17px;min-width:125px;border-radius:17px;background:#153f60de;border:1px solid #ffffff4d;box-shadow:0 4px 0 #093b5277}.score-card span{font-size:10px;color:#d0e7ee}.score-card strong{display:block;font-size:31px;line-height:1.4}.score-card small{font-size:9px;color:#9ed8e2}.score-card small b{color:#e5fbff;margin-right:6px}.collect-card{height:47px;display:flex;align-items:center;gap:8px;position:relative;background:#fff5d8;padding:7px 12px;border:2px solid white;border-radius:16px;color:#8b571b;box-shadow:0 4px 0 #b4853966;min-width:90px}.collect-card strong{font-size:23px}.coin-icon{color:#ffb428;background:#ffdd69;border:2px solid #e8a227;border-radius:50%;padding:2px 5px;font-size:18px}.collect-card small{position:absolute;top:54px;font-size:10px;text-shadow:0 1px 3px white;white-space:nowrap;color:#1b536a;left:8px}
.run-info{position:absolute;top:255px;right:20px;left:20px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#134c61;pointer-events:none}.run-info>span{background:#effeffcf;padding:7px 10px;border-radius:12px}.run-info i{font-style:normal;padding:0 4px}.run-info #shield-status{background:#113f5dbc;color:#d4fcfb}.run-info #shield-status.active{background:#02a8ac;color:white;box-shadow:0 0 20px #33fff08c}
.overlay{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:18px;background:linear-gradient(#124c6530,#0a3a6080);backdrop-filter:blur(3px);overflow:auto;transition:opacity .2s}.overlay.hidden{opacity:0;pointer-events:none;visibility:hidden}.card{width:min(100%,365px);padding:12px 26px 20px;text-align:center;background:linear-gradient(155deg,#fffef3f7,#edf8f9f7);border:2px solid white;border-radius:28px;color:#153d54;box-shadow:0 18px 70px #07304755;margin:auto}.mascot-frame{height:155px;position:relative;margin-top:-9px;display:grid;place-items:center}.mascot-frame img{height:170px;position:relative;filter:drop-shadow(0 9px 6px #174b5533)}.orbit{position:absolute;width:126px;height:126px;border-radius:50%;background:linear-gradient(150deg,#71ded1,#b9efde);border:8px solid #d6f4e9;transform:rotate(-12deg);box-shadow:0 0 0 1px #5bc9c333}.eyebrow{display:block;font-size:10px;font-weight:bold;color:#158f99;margin:12px 0 7px}h1{font-size:29px;line-height:1.4;margin:0;font-weight:900;letter-spacing:-1px}h1 em{font-style:normal;color:#089b9e}p{font-size:12px;line-height:1.95;color:#527082;margin:12px 0 18px}
#start{border:1px solid #ffd160;border-radius:16px;background:linear-gradient(#ffd969,#ffc13e);box-shadow:0 5px 0 #d79825,0 9px 20px #d6ad4933;color:#473b29;width:100%;padding:14px;font-size:17px;font-weight:bold;transition:transform .15s}#start:hover{filter:brightness(1.05);transform:translateY(-1px)}#start:active{transform:translateY(3px);box-shadow:0 2px 0 #d79825}#start span{padding-right:20px}.guide{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:20px 0 11px;font-size:10px}.guide span{display:flex;align-items:center;gap:5px}.guide b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#d7eaed;color:#1b788a;font-size:16px}.hint{font-size:9px;color:#72909c}
.bottom-hud{position:absolute;bottom:18px;left:20px;right:20px;pointer-events:none}.mission{width:190px;margin:0 auto 14px;text-align:center;font-size:10px;font-weight:bold;color:white;text-shadow:0 1px 4px #102b43}.progress{height:5px;width:140px;margin:7px auto;background:#10355099;overflow:hidden;border-radius:20px}.progress i{display:block;width:0;height:100%;background:#ffd35d;transition:width .2s}.mobile-controls{display:flex;justify-content:center;gap:12px;pointer-events:none}.mobile-controls button{pointer-events:auto;width:48px;height:45px;color:white;border:1px solid #ffffff70;border-radius:14px;background:#164b6585;backdrop-filter:blur(6px);font-size:25px;box-shadow:0 3px 0 #10375466;user-select:none}.mobile-controls button:active{transform:translateY(2px);background:#02aeb9}
.toast{position:absolute;z-index:6;top:180px;left:50%;width:max-content;max-width:90%;text-align:center;transform:translate(-50%,-10px);padding:12px 18px;border:1px solid #b5fff1;border-radius:15px;background:#0f5367ed;color:#fff;font-size:12px;line-height:1.7;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 7px 20px #15486044}.toast.show{opacity:1;transform:translate(-50%,0)}footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px 17px;background:#113b4f;font-size:9px;color:#d6ecee}footer i{font-style:normal;color:#8ebcc8;padding-right:8px}footer b{color:#7fa7b2;padding:0 4px}
@media(min-width:1000px){.game-shell{width:540px}}@media(max-width:600px){body{padding:0}.game-shell{border:none;border-radius:0;width:100%;height:100dvh}.stage-wrap{height:100dvh;min-height:0}footer{display:none}.topbar{padding-top:max(16px,env(safe-area-inset-top))}.bottom-hud{bottom:max(18px,env(safe-area-inset-bottom))}}
@media(max-height:700px){.card{padding:7px 22px 15px;max-width:340px}.mascot-frame{height:100px}.mascot-frame img{height:120px}.orbit{width:90px;height:90px}.eyebrow{margin-top:8px}h1{font-size:23px}p{font-size:11px;margin:8px 0 12px}.guide{margin:14px 0 8px}#start{padding:11px}.stage-wrap{min-height:0}.run-info{top:230px}.hud{top:76px}.toast{top:160px}}
@media(max-height:480px) and (orientation:landscape){.card{max-width:470px;padding:12px 22px}.mascot-frame{float:right;height:190px;width:120px;margin:0 0 0 16px}.mascot-frame img{height:170px}h1{font-size:20px}.guide{font-size:9px}.hint{display:none}.hud{top:70px}.score-card{min-width:95px;padding:6px 12px}.score-card strong{font-size:21px}.run-info{top:205px}.mission{display:none}.mobile-controls{justify-content:space-between}.mobile-controls button{width:45px;height:39px}.toast{top:130px}}
.environment-badge{position:absolute;bottom:118px;right:18px;padding:7px 11px;border-radius:12px;background:#153f60c9;color:#f1f8e9;border:1px solid #ffffff38;font-size:10px;pointer-events:none;max-width:calc(100% - 36px)}
.toolbar .back-to-games{display:grid;place-items:center;min-width:75px;height:36px;padding:0 9px;border:1px solid #ffffff70;border-radius:12px;background:#164b6788;color:white;text-decoration:none;font-size:12px;font-weight:bold;backdrop-filter:blur(8px)}.toolbar .back-to-games:focus-visible{outline:3px solid #ffcd5a;outline-offset:3px}
.stage-wrap:fullscreen{width:100vw;height:100dvh;min-height:0}
.toolbar #fullscreen{font-size:23px;line-height:1}
@media(max-height:480px){.environment-badge{bottom:70px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
