:root{--ink:#173d4b;--muted:#526d77;--orange:#d95225;--line:#cedde0;--paper:#f1f6f6}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #d95225;outline-offset:4px}button:disabled{opacity:.45;cursor:default}.app{max-width:1560px;margin:auto;padding:0 24px}.masthead{height:100px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:800;font-size:15px;letter-spacing:1.6px;line-height:1.3}.brand svg{width:40px;height:36px}.brand small{display:block;letter-spacing:2px;font-size:10px;color:var(--muted);font-weight:500;margin-top:4px}.header-note{display:none;color:var(--muted);font-size:14px}.share{background:transparent;color:var(--ink);border:1px solid #a8bfc6;border-radius:30px;padding:10px 17px;min-height:44px;font-size:14px;font-weight:600}.share:hover{background:#e0ebed}.layout{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;padding:24px 0}.intro{display:none}.game-shell{position:relative;isolation:isolate;border-radius:18px;overflow:hidden;background:#cbe4ef;height:min(740px,calc(100svh - 138px));min-height:470px;box-shadow:0 14px 40px #193f4c13;border:1px solid #bad1d9}canvas{display:block;width:100%;height:100%;touch-action:none}.hud{position:absolute;z-index:2;top:18px;left:18px;right:18px;display:flex;justify-content:space-between;pointer-events:none;color:#153948}.distance{padding:9px 14px;border-radius:12px;background:#f6fbf3e8;backdrop-filter:blur(8px)}.distance>span{display:block;letter-spacing:1.6px;font-size:9px;font-weight:800}.distance strong{font-size:26px;line-height:1.2;display:block;font-variant-numeric:tabular-nums}.distance b{font-weight:750}.distance small{font-size:14px;font-weight:500}.hud-right{display:flex;align-items:flex-start;gap:8px}.hud-right>span{margin-top:11px;border-radius:20px;background:#f5faf3e8;padding:5px 10px;font-size:12px;font-weight:700}#pause{pointer-events:auto;width:44px;height:44px;border:0;border-radius:50%;background:#173d4b;color:#fff;font-size:20px}.overlay{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;background:linear-gradient(0deg,#d9edf654,#ddf0f51a 65%);padding:20px 20px 90px}.overlay[hidden]{display:none}.start-card{width:min(340px,100%);text-align:center;border-radius:22px;background:#f5faf5ed;backdrop-filter:blur(14px);padding:30px 24px 23px;border:1px solid #ffffffb3;box-shadow:0 12px 50px #204e6320}.pill{font-size:10px;font-weight:800;letter-spacing:2px;color:#54766e}.start-card h2{font-size:32px;letter-spacing:-1.2px;line-height:1.1;margin:14px 0}.start-card>p{font-size:15px;color:#47626b;line-height:1.6;margin:15px 0 22px}.primary{width:100%;border:0;border-radius:11px;background:var(--orange);color:white;min-height:54px;text-align:left;padding:12px 20px;font-weight:700;display:flex;align-items:center;justify-content:space-between}.primary:hover{background:#b83e17}.primary span{font-size:24px}.start-card .hint{font-size:11px;margin:15px 0 0}.touch-controls{position:absolute;bottom:16px;left:16px;right:16px;display:flex;justify-content:space-between;gap:12px;z-index:2;user-select:none;-webkit-user-select:none}.steer{display:flex;gap:8px}.touch-controls button{height:54px;min-width:56px;border-radius:12px;border:1px solid #ffffffcc;background:#f5faf5e8;box-shadow:0 3px 10px #173d4b14;color:var(--ink);font-size:25px;touch-action:none;user-select:none}.touch-controls button:active,.touch-controls button.held{background:#173d4b;color:#fff;transform:translateY(2px)}.touch-controls .jump{font-size:14px;font-weight:750;padding:0 16px;display:flex;align-items:center;gap:18px}.jump span{font-size:26px}#toast{position:absolute;z-index:2;bottom:90px;left:16px;right:16px;text-align:center;color:#173d4b;font-size:14px;font-weight:800;text-shadow:0 1px 5px white;pointer-events:none;min-height:21px}.guide{display:none}footer{display:flex;justify-content:space-between;gap:12px;padding:0 0 22px;color:var(--muted);font-size:11px}footer span:last-child{display:none}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:var(--muted)}.guide h2{font-size:23px;line-height:1.25;letter-spacing:-.6px;margin:22px 0 30px}.obstacle{display:flex;align-items:center;gap:12px;margin-bottom:25px}.obstacle svg{width:48px;height:56px;flex-shrink:0}.obstacle strong{font-size:15px}.obstacle p{font-size:13px;color:var(--muted);margin:3px 0;line-height:1.4}.controls-guide{border-top:1px solid var(--line);margin-top:32px;padding-top:14px}.controls-guide h3{font-size:13px;margin:8px 0 18px}.controls-guide p{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:var(--muted)}kbd{display:inline-block;min-width:26px;border:1px solid #b7cdd1;border-bottom-width:3px;border-radius:5px;padding:3px 5px;text-align:center;font:11px system-ui;color:var(--ink)}.controls-guide small{display:block;font-size:11px;line-height:1.7;color:var(--muted);margin-top:20px}.tip{border-left:2px solid var(--orange);padding-left:14px;color:var(--muted);font-size:12px;line-height:1.7;margin-top:30px}@media(min-width:760px){.app{padding:0 36px}.header-note{display:block}.layout{grid-template-columns:minmax(0,1fr) 215px;gap:30px;padding:30px 0}.guide{display:block;padding-top:18px}.game-shell{height:min(790px,calc(100svh - 177px));min-height:520px}footer span:last-child{display:block}}@media(min-width:1160px){.app{padding:0 48px}.masthead{height:106px}.layout{grid-template-columns:220px minmax(0,1fr) 210px;gap:38px;padding-top:34px}.intro{display:block;padding-top:24px}.intro h1{font-size:52px;font-weight:750;line-height:1.02;letter-spacing:-2.7px;margin:32px 0 24px}.intro h1 span{color:var(--orange)}.lede{font-size:15px;color:var(--muted);line-height:1.75;max-width:190px}.record{margin-top:56px}.record>span{font-size:12px;color:var(--muted)}.record strong{display:block;font-size:36px;line-height:1.5;letter-spacing:-1.3px}.record small{font-size:17px;font-weight:400}.local-note{font-size:11px;color:var(--muted);max-width:160px}.slope-line{color:#8fb2ba;max-width:185px;margin-top:36px}.game-shell{height:min(800px,calc(100svh - 180px));min-height:540px}}@media(max-width:400px){.app{padding:0 12px}.masthead{height:78px}.brand{font-size:12px;gap:7px;letter-spacing:1px}.brand svg{width:31px}.share{font-size:12px;padding:8px 11px}.layout{padding-top:14px;gap:0}.game-shell{height:calc(100svh - 115px);min-height:450px;border-radius:14px}.touch-controls{bottom:12px;left:12px;right:12px}.start-card{padding:25px 20px}.start-card h2{font-size:29px}footer{padding-top:12px;font-size:10px}.hud{left:12px;right:12px;top:12px}}@media(max-height:540px) and (orientation:landscape){.masthead{height:65px}.layout{padding:12px 0}.game-shell{height:calc(100svh - 95px);min-height:290px}.guide,.intro{display:none}.layout{display:block}.start-card{padding:14px 22px;width:380px}.start-card h2{margin:5px 0;font-size:26px}.start-card>p{margin:7px 0;font-size:13px}.pill,.hint{display:none}.overlay{padding-bottom:65px}.hud{top:10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
/* Second descent — quieter glass HUD and a gesture-first mobile control deck. */
.game-shell{border-color:#bbd3df;box-shadow:0 22px 60px #1d4e691c,inset 0 0 0 1px #ffffff80;border-radius:22px}
.hud{top:20px;left:20px;right:20px}.distance{background:#f6fbf4dc;border:1px solid #ffffffa6;padding:11px 16px;box-shadow:0 4px 18px #34596a0d}.hud-right>span{background:#f6fbf3dc;border:1px solid #ffffff90}#pause{background:#214b60e8;box-shadow:0 4px 12px #173d4b1c}.start-card{background:#f6fbf7eb;box-shadow:0 16px 60px #17405a26;border-color:#ffffffe3}.pill{color:#326867}.primary{background:#d9572c;box-shadow:0 5px 16px #bd4b2826}.touch-controls{align-items:center;pointer-events:none}.touch-controls .steer{pointer-events:auto}.touch-controls button{height:50px;min-width:52px;background:#f8fcfae0;backdrop-filter:blur(12px);border:1px solid #ffffffbd;box-shadow:0 4px 16px #32566e1a;font-size:24px}.swipe-hint{display:flex;align-items:center;gap:9px;color:#224d63;background:#f6fbf6d6;border:1px solid #ffffff99;backdrop-filter:blur(10px);padding:7px 12px;border-radius:13px;font-size:12px;font-weight:750;line-height:1.2;pointer-events:none;user-select:none}.swipe-hint svg{width:19px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.swipe-hint small{display:block;font-size:10px;font-weight:450;color:#486c7e;margin-top:3px}.start-card .hint{font-size:10px;letter-spacing:.1px}.overlay{background:linear-gradient(0deg,#e4f1f41a,#ddf0f500 65%)}
@media(min-width:1160px){.layout{grid-template-columns:220px minmax(0,690px) 210px;justify-content:space-between;gap:34px}.game-shell{height:min(820px,calc(100svh - 180px));min-height:560px}}@media(max-width:400px){.game-shell{border-radius:17px}.hud{top:12px;left:12px;right:12px}.distance{padding:8px 12px}.swipe-hint{font-size:11px;padding:6px 9px;gap:5px}.swipe-hint small{font-size:9px}.touch-controls{left:12px;right:12px;bottom:14px}.touch-controls button{min-width:49px}.start-card{padding:25px 20px 22px}}
.course-label{position:absolute;left:50%;top:4px;transform:translateX(-50%);font-size:10px;font-weight:750;color:#244e64;background:#f4faf5d9;padding:6px 10px;border-radius:20px;white-space:nowrap;pointer-events:none}.start-card>p{font-size:14px}@media(max-width:400px){.course-label{top:0;font-size:9px;padding:5px 7px}.distance strong{font-size:24px}.hud-right{gap:5px}.hud-right>span{font-size:10px;padding:4px 7px;margin-top:12px}.hud-right #pause{width:40px;height:40px}.start-card>p{font-size:13px}}
