:root{color-scheme:dark;--glass:rgba(12,20,30,.76);--line:rgba(255,255,255,.2);--accent:#8bf0d0}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#111923;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;touch-action:none}body{overscroll-behavior:none}button{font:inherit;color:#f5f8ff;border:1px solid var(--line);background:linear-gradient(145deg,rgba(38,53,68,.94),rgba(13,23,34,.94));box-shadow:0 8px 24px #0004,inset 0 1px #ffffff15;border-radius:16px;min-width:54px;min-height:48px;padding:10px 14px;font-weight:800;letter-spacing:.035em;touch-action:none;user-select:none;-webkit-user-select:none}button:active,.active{transform:scale(.96);border-color:#8bf0d0aa;background:linear-gradient(145deg,#245d5c,#142b3a)}#game{position:fixed;inset:0}canvas{display:block;width:100%;height:100%;touch-action:none;outline:0}#loading{position:fixed;inset:0;z-index:20;display:grid;place-content:center;text-align:center;gap:12px;padding:24px;background:radial-gradient(ellipse at 50% 35%,#28495b,#101721 70%);color:#f5f8ff;transition:opacity .35s}#loading.hidden{opacity:0;pointer-events:none}.loader-mark{width:54px;height:54px;margin:auto;border:3px solid #ffffff28;border-top-color:var(--accent);border-radius:50%;animation:spin .9s linear infinite}.load-title{font-weight:900;font-size:clamp(20px,3vw,32px);letter-spacing:.1em}.load-sub{color:#b8c6d4;font-size:13px}.load-error{max-width:420px;color:#ffd0b9;font-size:13px;line-height:1.5}@keyframes spin{to{transform:rotate(360deg)}}#hud{position:fixed;inset:0;z-index:4;color:white;pointer-events:none;text-shadow:0 2px 8px #0009}.topbar{position:absolute;left:clamp(10px,2vw,26px);right:clamp(10px,2vw,26px);top:clamp(10px,2vh,22px);display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.brand,.status-card,.help-card,.hint{background:var(--glass);border:1px solid #ffffff1a;box-shadow:0 10px 28px #0002;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-radius:14px;padding:10px 14px}.brand{font-size:clamp(11px,1.4vw,16px);font-weight:900;letter-spacing:.11em}.brand span{color:var(--accent)}.topright{display:flex;gap:8px;align-items:flex-start}.status-card{font-size:12px;color:#d7e2eb}.status-card strong{display:block;color:#fff;font-size:13px;margin-bottom:2px}.help-card{font-size:11px;line-height:1.55;color:#dce7f1;text-align:right}.help-card b{color:#fff}.stats{position:absolute;top:76px;left:clamp(10px,2vw,26px);display:flex;gap:7px;flex-wrap:wrap}.stat{background:#111c2bbd;border:1px solid #ffffff18;border-radius:9px;padding:6px 9px;font-size:11px;color:#dce8f3}.stat strong{color:#fff}.hint{position:absolute;left:50%;bottom:clamp(112px,16vh,155px);transform:translateX(-50%);font-size:12px;white-space:nowrap;color:#f1f7fc;max-width:calc(100vw - 24px);overflow:hidden;text-overflow:ellipsis}#mobile-controls{position:fixed;inset:0;z-index:6;pointer-events:none}.stick{position:absolute;left:clamp(15px,3vw,42px);bottom:clamp(16px,3vh,34px);width:clamp(106px,18vh,150px);height:clamp(106px,18vh,150px);border-radius:50%;border:2px solid #ffffff62;background:radial-gradient(circle,#ffffff0d,#ffffff16);box-shadow:inset 0 0 28px #fff1;pointer-events:auto;touch-action:none}.stick:after{content:"";position:absolute;inset:13%;border:1px solid #ffffff17;border-radius:50%}.nub{position:absolute;width:40%;height:40%;left:30%;top:30%;border-radius:50%;background:linear-gradient(145deg,#e9fff9e8,#8adbcdbd);border:2px solid #fff;box-shadow:0 4px 18px #0005;pointer-events:none;transform:translate(0,0);will-change:transform}.controls-right{position:absolute;right:clamp(14px,3vw,40px);bottom:clamp(16px,3vh,34px);display:grid;grid-template-columns:repeat(2,minmax(64px,clamp(70px,11vw,100px)));gap:clamp(6px,1vw,12px);pointer-events:auto}.control{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:clamp(54px,10vh,76px);font-size:clamp(10px,1.25vw,13px)}.control .ico{font-size:clamp(17px,2.4vh,24px);line-height:1}.control small{font-size:9px;color:#b8c7d4;letter-spacing:.12em}.camera-tip{position:absolute;right:clamp(14px,3vw,40px);top:50%;transform:translateY(-50%);padding:8px 10px;border-radius:10px;background:#101a29a8;color:#dce7ef;font-size:10px;letter-spacing:.04em;pointer-events:none}.drive-mode .foot-only{display:none}.foot-mode .drive-only{display:none}.drive-only{display:none}.drive-mode .drive-only{display:flex}.foot-mode .drive-only{display:none}#pause{pointer-events:auto;min-width:40px;min-height:38px;padding:7px 10px;border-radius:12px;font-size:11px}#rotate{display:none;position:fixed;inset:0;z-index:30;background:radial-gradient(ellipse at 50% 38%,#244653,#0c131c 72%);color:white;align-items:center;justify-content:center;text-align:center;padding:28px}#rotate .rotate-inner{max-width:330px}#rotate .phone{font-size:56px;display:block;animation:tilt 1.6s ease-in-out infinite alternate;margin-bottom:16px}#rotate h2{margin:0 0 8px;font-size:24px}#rotate p{margin:0;color:#b9c9d5;line-height:1.6;font-size:14px}@keyframes tilt{from{transform:rotate(0)}to{transform:rotate(90deg)}}#pause-menu{display:none;position:fixed;inset:0;z-index:15;align-items:center;justify-content:center;background:#07101bcc;backdrop-filter:blur(12px);padding:20px;color:white}#pause-menu.open{display:flex}.menu-panel{width:min(420px,92vw);border:1px solid #ffffff24;border-radius:22px;padding:24px;background:linear-gradient(145deg,#243442,#101923);box-shadow:0 24px 80px #0008}.menu-panel h2{margin:0 0 6px}.menu-panel p{color:#b9c8d4;font-size:13px;line-height:1.6}.menu-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0}.menu-row label{font-size:13px}.menu-row input{width:45%;accent-color:#8bf0d0}.menu-actions{display:flex;gap:10px}.menu-actions button{flex:1}@media (orientation:portrait) and (max-width:800px){#rotate{display:flex}.topbar{top:8px}.help-card{display:none}.stats{top:65px}.hint{display:none}}@media (max-height:420px) and (orientation:landscape){.topbar{top:7px}.brand,.status-card{padding:7px 10px}.stats{top:52px}.stick{width:98px;height:98px}.controls-right{grid-template-columns:repeat(2,68px)}.control{min-height:46px;padding:6px}.hint{bottom:105px}.camera-tip{top:44%}}@media (min-width:900px){.stick{opacity:.78}.controls-right{opacity:.92}}
#loading.load-failed{opacity:1;pointer-events:auto}#loading.load-failed .loader-mark{display:none}#loading.load-failed .load-title{color:#ffd0b9}#loading.load-failed .load-error{margin-top:4px}
