:root{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#244557;font-synthesis:none}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;overflow:hidden;background:#afcce6;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}button{font:inherit;cursor:pointer;border:0;color:inherit}button:focus-visible{outline:3px solid #ffce68;outline-offset:4px}#game{position:relative;width:100vw;height:100vh;height:100svh;height:var(--app-height,100svh);overflow:hidden}#scene{width:100%;height:100%;display:block}.hidden{display:none!important}.vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#183e661a,transparent 24%,transparent 72%,#1a355535)}header{position:absolute;left:max(3%,env(safe-area-inset-left));right:max(3%,env(safe-area-inset-right));top:max(16px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none;gap:20px}.hud{background:#20476780;backdrop-filter:blur(8px);border:1px solid #ffffff60;border-radius:9px;padding:10px 15px;color:#fff;box-shadow:0 5px 18px #1736530c}.eyebrow{display:block;font-size:8px;letter-spacing:1.6px;font-weight:700;opacity:.82}.score strong{display:block;font-size:31px;line-height:1.17;font-weight:850;font-variant-numeric:tabular-nums;letter-spacing:1px}.best{font-size:8px;opacity:.75;margin-top:4px}.best b{margin-left:6px}.brand{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:3px;font-weight:850;padding-top:7px;color:#fff;text-shadow:0 2px 8px #25465e55}.brand-icon{font-size:25px}.edition{display:block;font-size:7px;letter-spacing:2px;font-weight:500;margin-top:4px}.top-right{display:flex;gap:9px;align-items:center;pointer-events:auto}.time{min-width:110px;text-align:center}.time strong{display:block;font-size:28px;font-weight:800;font-variant-numeric:tabular-nums;margin-top:2px}.icon-button{width:32px;height:32px;border:1px solid #ffffff80;border-radius:50%;font-size:17px;background:#24476140;color:white;backdrop-filter:blur(8px)}.route{position:absolute;left:3.3%;top:113px;font-size:9px;letter-spacing:1px;color:#36566e;text-shadow:0 1px 5px #fff}.route i{display:inline-block;width:5px;height:5px;background:#427f71;border-radius:100%;margin-right:6px}.route span{display:block;font-size:7px;margin:5px 0 0 12px;letter-spacing:1.5px;opacity:.65}.health{position:absolute;left:3.3%;top:157px;display:flex;gap:4px;align-items:center;color:#456274;font-size:8px}.health span{margin-right:4px}.health i{width:16px;height:4px;border-radius:5px;background:#498b78;box-shadow:0 1px 3px #fff8}.health i.lost{background:#8e9da9}.intro{position:absolute;left:6%;top:34%;width:min(380px,39vw);text-align:left;text-shadow:0 2px 15px #fff9}.tag{font-size:9px;font-weight:750;letter-spacing:2px;color:#356e66}.tag i{display:inline-block;width:5px;height:5px;border-radius:100%;background:#47846d;margin-right:5px}h1{font-size:clamp(28px,4.3vw,52px);font-weight:950;letter-spacing:-2px;line-height:1.15;margin:12px 0;color:#183d51;white-space:nowrap}h1 span{color:#306f64}h1 em{font-style:normal;color:#e8aa3f;margin-left:2px}.intro p{font-size:11px;letter-spacing:.5px;line-height:1.6;color:#4e6a7e;margin:12px 0 20px}.primary{border-radius:7px;background:#2c6858;color:#fff;padding:12px 20px;min-width:155px;min-height:44px;font-size:13px;font-weight:750;letter-spacing:1px;box-shadow:0 4px 0 #204e44,0 10px 23px #204e4420;text-shadow:none}.primary:hover{background:#367e67}.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #204e44}.primary span{margin-left:20px;font-size:16px}.instruction{font-size:9px;color:#5d7989;margin-top:19px;line-height:1.9;letter-spacing:.3px}#game[data-mode="ready"] .bottom-left,#game[data-mode="ready"] .bottom-right,#game[data-mode="ready"] .bottom-center,#game[data-mode="ready"] .health,#game[data-mode="ready"] #pause{display:none}.bottom-left{position:absolute;left:max(5%,env(safe-area-inset-left));bottom:43px;text-align:center}#joystick{width:102px;height:102px;border-radius:100%;border:1px solid #ffffffc0;background:#b4d6ef30;position:relative;touch-action:none;backdrop-filter:blur(2px);box-shadow:inset 0 0 20px #ffffff1a}#knob{position:absolute;left:29px;top:29px;width:44px;height:44px;border-radius:100%;background:#f3fcff80;border:1px solid #fff;box-shadow:0 3px 12px #26456420;display:grid;place-items:center}#knob svg{width:25px;fill:none;stroke:#416b80;stroke-width:1.6}.arrow{position:absolute;top:32px;font-size:24px;color:#557c91}.left{left:7px}.right{right:7px}.control-label{display:block;margin-top:7px;font-size:8px;letter-spacing:2px;color:#4e6c80}.bottom-right{position:absolute;right:max(3.5%,env(safe-area-inset-right));bottom:40px;display:flex;gap:19px;align-items:center}#jump{width:67px;height:67px;border-radius:100%;border:1px solid #ffffffd0;background:#f5fcff55;backdrop-filter:blur(3px);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px}#jump:active{background:#ffcb7190;transform:scale(.95)}#jump svg{width:25px;fill:none;stroke:#3f6b81;stroke-width:2}#jump span{font-size:9px;letter-spacing:2px}#speedometer{width:108px;height:108px;text-align:center;position:relative}#speedometer svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-width:4;stroke-linecap:round}.dial-track{stroke:#ffffffa0}#dial{stroke:#5da8db;stroke-dasharray:254;stroke-dashoffset:254;transition:stroke-dashoffset .2s}#speedometer strong{display:block;padding-top:27px;font-size:34px;line-height:1.1;font-variant-numeric:tabular-nums;font-weight:850}#speedometer span{font-size:9px;letter-spacing:1px;font-weight:700}#speedometer small{display:block;margin-top:12px;font-size:7px;letter-spacing:2px;opacity:.7}.bottom-center{position:absolute;bottom:47px;left:50%;transform:translateX(-50%);display:flex;gap:9px;align-items:center;color:#4f6f85}.slope-icon{font-size:29px}.bottom-center b{display:block;font-size:9px;letter-spacing:3px}.bottom-center div span{display:block;font-size:8px;margin-top:5px}footer{position:absolute;left:3.3%;right:3.3%;bottom:15px;display:flex;justify-content:space-between;gap:15px;color:#f4faffcc;font-size:7px;letter-spacing:1.6px;pointer-events:none}footer span:first-child{font-weight:850}.panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:350px;max-width:88vw;max-height:92svh;overflow:auto;padding:25px 30px;border:1px solid #fff;border-radius:16px;background:#f0f8f9ef;backdrop-filter:blur(16px);box-shadow:0 18px 60px #1c3e6440;text-align:center}.panel h2{font-size:25px;margin:13px 0 8px;letter-spacing:-1px}.panel p{font-size:10px;color:#658091;line-height:1.6}.panel>strong{display:block;font-size:44px;margin-top:13px;font-variant-numeric:tabular-nums}.result-label{font-size:8px;letter-spacing:2px;color:#658091}.stats{display:flex;justify-content:space-between;gap:15px;margin:20px 0 25px}.stats b,.stats span{display:block}.stats b{font-size:15px}.stats span{font-size:8px;color:#658091;margin-top:5px}#toast{position:absolute;left:50%;top:26%;transform:translateX(-50%);font-size:20px;font-weight:850;white-space:nowrap;opacity:0;transition:opacity .2s;color:#2d685d;text-shadow:0 1px 8px #fff;pointer-events:none}#speedLines{position:absolute;inset:0;pointer-events:none;opacity:0;background:repeating-conic-gradient(from 4deg at 50% 38%,transparent 0deg 12deg,#ffffff70 12.1deg 12.2deg,transparent 12.4deg 26deg);mask-image:radial-gradient(ellipse,transparent 45%,#000 100%)}@media(max-height:470px) and (orientation:landscape){header{top:12px}.hud{padding:7px 11px}.score strong{font-size:26px}.time strong{font-size:24px}.eyebrow{font-size:7px}.best{font-size:7px}.brand{font-size:9px}.edition{font-size:6px}.route{top:95px;font-size:8px}.route span{display:none}.health{top:120px}.intro{top:31%;width:39vw}.intro h1{font-size:clamp(27px,4.2vw,42px);margin:10px 0}.intro p{font-size:10px;margin:8px 0 14px}.tag{font-size:8px}.instruction{font-size:8px;line-height:1.6;margin-top:14px}.primary{padding:10px 17px;min-height:42px;font-size:12px}.bottom-left{bottom:34px}#joystick{width:86px;height:86px}#knob{left:24px;top:24px;width:38px;height:38px}.arrow{top:25px}.bottom-right{bottom:29px;gap:12px}#jump{width:60px;height:60px}#speedometer{width:90px;height:90px}#speedometer strong{font-size:29px;padding-top:23px}#speedometer small{margin-top:9px}.bottom-center{bottom:39px}.panel{padding:18px 25px}.panel h2{font-size:22px;margin:10px 0}.panel>strong{font-size:34px;margin-top:7px}.stats{margin:15px 0 18px}footer{bottom:10px}#toast{font-size:17px}}
@media(orientation:portrait){.brand{display:none}.top-right{gap:6px}.icon-button{width:29px;height:29px}.time{min-width:96px}.intro{left:7%;top:26%;width:86%;text-align:center}.intro h1{font-size:37px}.intro p{font-size:11px}.route{top:110px}.health{top:151px}.bottom-center{display:none}.bottom-left{bottom:57px}.bottom-right{bottom:52px;right:3%;gap:7px}#speedometer{width:91px;height:91px}#speedometer strong{font-size:29px;padding-top:23px}#jump{width:59px;height:59px}footer{font-size:6px;letter-spacing:.5px}#toast{top:24%;font-size:16px}}

/* Mobile WebKit supports prefixed backdrop and mask properties on older releases. */
.hud{-webkit-backdrop-filter:blur(8px)}.icon-button{-webkit-backdrop-filter:blur(8px)}#joystick{-webkit-backdrop-filter:blur(2px)}#jump{-webkit-backdrop-filter:blur(3px)}.panel{-webkit-backdrop-filter:blur(16px)}#speedLines{-webkit-mask-image:radial-gradient(ellipse,transparent 45%,#000 100%)}
.rotate-hint{display:none}.intro .rotate-hint{font-size:10px;color:#52778b;margin:0 0 12px}
@media(orientation:portrait){.rotate-hint{display:block}.intro{top:24%}.intro p{margin-bottom:10px}}
header{left:max(3%,env(safe-area-inset-left));right:max(3%,env(safe-area-inset-right))}footer{bottom:max(15px,env(safe-area-inset-bottom))}.bottom-left{bottom:max(43px,calc(env(safe-area-inset-bottom) + 15px))}.bottom-right{bottom:max(40px,calc(env(safe-area-inset-bottom) + 15px))}

/* Browser chrome, landscape notches and optional fullscreen controls. */
#game:fullscreen{width:100vw;height:100vh;height:100dvh;background:#afcce6}
@media(max-width:740px){.brand{font-size:8px;letter-spacing:1px}.brand-icon{font-size:21px}.edition{letter-spacing:1px}.top-right{gap:6px}.icon-button{width:29px;height:29px}}
@media(max-width:620px){.brand{display:none}}
