*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%;background:#0b0812;overflow:hidden;overscroll-behavior:none}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC","Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;color:#f4efe6;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.app{position:relative;margin:0 auto;width:100%;max-width:min(480px,62vh);max-width:min(480px,62dvh);height:100vh;height:100dvh;display:flex;flex-direction:column;background:radial-gradient(120% 60% at 50% 100%,#2a1b3d 0%,#120d1c 60%,#0b0812 100%);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden}
.top{flex:none;height:48px;display:flex;align-items:center;gap:6px;padding:0 10px}
.title{flex:1;display:flex;flex-direction:column;line-height:1.1;min-width:0}
.title b{font-size:15px;letter-spacing:.02em;color:#ffcf7a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.title span{font-size:11px;color:#b9aecd;letter-spacing:.12em;white-space:nowrap}
.ibtn{width:38px;height:38px;flex:none;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);font-size:22px;line-height:1}
a.ibtn{color:#f4efe6;text-decoration:none}
.ibtn svg{width:20px;height:20px}
.ibtn.rank{background:linear-gradient(160deg,#ffcf7a,#ff9b3d);color:#2a1606;border:0}
.ibtn.muted .wave{display:none}
.ibtn.muted svg{opacity:.55}
.ibtn.dark{background:rgba(0,0,0,.25)}
.view{position:relative;flex:1 1 auto;min-height:0;margin:0 8px;border-radius:22px;overflow:hidden;background:#000;box-shadow:0 0 0 1px rgba(255,255,255,.08),0 12px 30px rgba(0,0,0,.5)}
#scene{position:absolute;inset:0;width:100%;height:100%;display:block}
.banner{position:absolute;left:50%;top:14%;transform:translateX(-50%);padding:8px 16px;border-radius:999px;font-weight:800;font-size:15px;letter-spacing:.08em;white-space:nowrap;background:rgba(10,8,18,.72);border:1px solid rgba(255,255,255,.18);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);pointer-events:none}
.banner.go{background:#19c37d;color:#04140c;border-color:#7dffc4;box-shadow:0 0 30px rgba(25,195,125,.7);animation:pop .25s ease-out}
.banner.bad{background:#ff3b4e;color:#fff;border-color:#ffb3ba;box-shadow:0 0 30px rgba(255,59,78,.7);animation:shake .4s}
.banner.warn{background:#ffb547;color:#2a1606;border-color:#ffe2a8}
@keyframes pop{from{transform:translateX(-50%) scale(.6)}to{transform:translateX(-50%) scale(1)}}
@keyframes shake{0%,100%{margin-left:0}20%{margin-left:-8px}40%{margin-left:8px}60%{margin-left:-5px}80%{margin-left:5px}}
.panel{flex:none;padding:8px 12px 10px;display:flex;flex-direction:column;gap:7px}
.stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}
.stat{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:5px 8px 6px;display:flex;flex-direction:column;line-height:1}
.stat small{font-size:10px;color:#a99dbf;letter-spacing:.1em}
.stat b{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums;margin-top:4px;letter-spacing:-.01em}
.stat i{font-style:normal;font-size:10px;color:#857a99;margin-top:2px}
.stat:nth-child(2) b{color:#7dffc4}
.status{font-size:13px;text-align:center;color:#d8cfe8;min-height:18px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status.go{color:#7dffc4;font-weight:700}.status.bad{color:#ff7d8a;font-weight:700}.status.warn{color:#ffcf7a;font-weight:700}
.pedal{position:relative;height:clamp(84px,14dvh,120px);border-radius:24px;background:linear-gradient(180deg,#2c2438,#1a1424);border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 2px 0 rgba(255,255,255,.08),0 6px 0 #07050b,0 10px 24px rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;gap:14px;touch-action:none;transition:transform .05s,box-shadow .05s}
.pedal-plate{width:96px;height:60%;border-radius:12px;background:linear-gradient(180deg,#5b5468,#3a3446);display:flex;flex-direction:column;justify-content:space-evenly;padding:0 10px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.35)}
.grip{height:4px;border-radius:2px;background:#25202d}
.pedal-label{font-size:18px;font-weight:800;letter-spacing:.12em;color:#ffcf7a}
.pedal.down{transform:translateY(5px) scale(.985);box-shadow:inset 0 2px 0 rgba(255,255,255,.05),0 1px 0 #07050b,0 4px 12px rgba(0,0,0,.5);background:linear-gradient(180deg,#3d1f2a,#24121a)}
.pedal.down .pedal-plate{transform:perspective(200px) rotateX(18deg)}
.pedal.broken{background:repeating-linear-gradient(135deg,#3a0d14 0 12px,#24080d 12px 24px)}
.pedal.broken .pedal-plate{transform:rotate(-14deg) translateY(10px);opacity:.6}
.pedal.broken .pedal-label{color:#ff7d8a}
.pedal:disabled{opacity:.55}
.overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));background:rgba(8,5,14,.62);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
.overlay[hidden]{display:none}
.card{width:100%;max-width:380px;max-height:100%;overflow:auto;background:linear-gradient(170deg,#241a35,#150f20);border:1px solid rgba(255,255,255,.12);border-radius:24px;padding:20px 18px 16px;box-shadow:0 20px 60px rgba(0,0,0,.6);display:flex;flex-direction:column;gap:12px}
.kicker{font-size:11px;letter-spacing:.18em;color:#ff9b3d;font-weight:700}
.card h1{font-size:28px;line-height:1.15;font-weight:900;letter-spacing:.02em}
.card h1 em{font-style:normal;background:linear-gradient(90deg,#ffcf7a,#ff6b4a);-webkit-background-clip:text;background-clip:text;color:transparent}
.card h2{font-size:22px;font-weight:900}
.rules{list-style:none;display:flex;flex-direction:column;gap:7px;font-size:13.5px;color:#d8cfe8;line-height:1.45}
.rules li{display:flex;gap:9px;align-items:flex-start}
.rules li b{flex:none;width:20px;height:20px;border-radius:7px;background:rgba(255,155,61,.18);color:#ffb547;display:grid;place-items:center;font-size:12px;margin-top:1px}
.rules strong{color:#ffcf7a}
.name{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:0 12px;height:46px}
.name span{font-size:12px;color:#a99dbf;flex:none}
.name input{flex:1;min-width:0;background:none;border:0;outline:0;color:#fff;font:inherit;font-size:16px;-webkit-user-select:text;user-select:text}
.cta{height:54px;border-radius:16px;background:linear-gradient(180deg,#ffb547,#ff7a2b);color:#2a1606;font-size:18px;font-weight:900;letter-spacing:.1em;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 5px 0 #a8461a,0 10px 24px rgba(255,122,43,.35)}
.cta:active{transform:translateY(3px);box-shadow:0 2px 0 #a8461a}
.cta svg{width:22px;height:22px;stroke-width:2.6}
.link{height:34px;color:#c9bde0;font-size:14px;text-decoration:underline;text-underline-offset:4px}
.big{font-size:52px;font-weight:900;font-variant-numeric:tabular-nums;line-height:1;color:#7dffc4;letter-spacing:-.02em}
.big small{font-size:16px;margin-left:4px;color:#a99dbf;font-weight:700}
.big.bad{color:#ff7d8a;font-size:40px}
.sub{font-size:13px;color:#cfc4e2;line-height:1.5}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.grid div{background:rgba(255,255,255,.05);border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:3px}
.grid small{font-size:11px;color:#a99dbf}
.grid b{font-size:17px;font-variant-numeric:tabular-nums}
.rankline{font-size:14px;color:#ffcf7a;font-weight:700;min-height:20px;text-align:center}
.sheet{align-items:flex-end;padding-bottom:0}
.sheet .card{max-height:82%;border-radius:24px 24px 0 0;padding-bottom:calc(14px + env(safe-area-inset-bottom));animation:up .25s ease-out}
@keyframes up{from{transform:translateY(40%);opacity:.3}to{transform:none;opacity:1}}
.bhead{display:flex;justify-content:space-between;align-items:flex-start}
.cols,.list li{display:grid;grid-template-columns:44px 1fr auto;gap:8px;align-items:center}
.cols{font-size:11px;color:#857a99;padding:0 10px;letter-spacing:.1em}
.list{list-style:none;display:flex;flex-direction:column;gap:4px;overflow:auto;min-height:120px}
.list li{padding:9px 10px;border-radius:12px;background:rgba(255,255,255,.04);font-size:14px}
.list li.me{background:rgba(255,181,71,.18);box-shadow:inset 0 0 0 1px rgba(255,181,71,.5)}
.list li.empty{display:block;text-align:center;color:#a99dbf;background:none}
.list .rk{font-weight:900;color:#a99dbf;font-variant-numeric:tabular-nums}
.list li:nth-child(1) .rk{color:#ffd34d}.list li:nth-child(2) .rk{color:#d9e1ea}.list li:nth-child(3) .rk{color:#e6a06a}
.list .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list .sc{font-weight:800;font-variant-numeric:tabular-nums;color:#7dffc4}
.note{font-size:11px;color:#857a99;text-align:center}
@media (max-height:640px){.top{height:42px}.stat b{font-size:20px}.panel{gap:5px;padding-top:6px}.card{gap:9px;padding:16px 14px 12px}.card h1{font-size:24px}.rules{font-size:12.5px;gap:5px}.big{font-size:44px}}
.name[hidden]{display:none}
.mini{flex:none;height:32px;padding:0 12px;border-radius:10px;background:#ffb547;color:#2a1606;font-weight:800;font-size:14px}
.rules strong{white-space:nowrap}

.meter{position:relative;height:36px;border-radius:9px;background:#2a2f3a;overflow:hidden;border:1px solid rgba(255,255,255,.12)}
.zone{position:absolute;top:0;bottom:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;letter-spacing:.04em;white-space:nowrap;overflow:hidden}
.zone span{position:relative;z-index:3;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.z-abs{background:linear-gradient(180deg,#2bd889,#16a463);color:#fff;box-shadow:inset 0 0 0 2px #8dffc8}
.z-lock{background:linear-gradient(180deg,#b9822a,#94661d);color:#fff3dc}
.z-red{left:90%;right:0;background:repeating-linear-gradient(135deg,#a3202f 0 6px,#861827 6px 12px);color:#ffe3e6}
.stress{position:absolute;left:0;top:0;bottom:0;width:0;background:#ff3b4e;box-shadow:0 0 12px #ff3b4e;z-index:1}
.meter-fill{position:absolute;left:0;top:0;bottom:0;width:0;background:rgba(255,255,255,.22);border-right:4px solid #fff;z-index:4;box-shadow:2px 0 10px rgba(255,255,255,.6)}
.meter-peak{position:absolute;top:0;bottom:0;width:2px;left:0;background:rgba(255,255,255,.55);opacity:0;z-index:4}
.meter.alarm{animation:alarm .25s infinite alternate}
@keyframes alarm{from{box-shadow:0 0 0 0 rgba(255,59,78,.0)}to{box-shadow:0 0 0 3px rgba(255,59,78,.85)}}
.road{font-style:normal;font-size:10px;margin-left:4px;padding:1px 6px;border-radius:6px;background:rgba(255,255,255,.1);color:#cfe3ff}

.pp-network,[data-pp-network]{display:none!important} /* site-wide bar replaced by .sitenav below */
@media (min-width:700px){html,body{background:#07050c}.app{box-shadow:0 0 0 1px rgba(255,255,255,.06),0 0 60px rgba(0,0,0,.6)}}
.sitenav{flex:none;display:flex;justify-content:center;align-items:center;gap:4px;height:30px;margin:0 12px 6px;border-top:1px solid rgba(255,255,255,.07);padding-top:4px}
.sitenav a{flex:1;text-align:center;font-size:11.5px;line-height:22px;color:#a99dbf;text-decoration:none;white-space:nowrap;border-radius:8px;letter-spacing:.02em}
.sitenav a:hover,.sitenav a:active{color:#ffcf7a;background:rgba(255,255,255,.05)}
.sitenav a+a{border-left:1px solid rgba(255,255,255,.08);border-radius:0}
.panel{padding-bottom:6px}
@media (max-height:640px){.sitenav{height:26px;margin-bottom:4px}.sitenav a{font-size:11px}}
.list .rk .medal{width:42px;height:42px;display:block;margin:-6px 0;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5))}
.list li.top1{background:linear-gradient(90deg,rgba(245,197,66,.16),rgba(255,255,255,.03))}
.list li.top2{background:linear-gradient(90deg,rgba(217,222,230,.12),rgba(255,255,255,.03))}
.list li.top3{background:linear-gradient(90deg,rgba(224,153,92,.13),rgba(255,255,255,.03))}
.list li.top1 .nm{color:#ffe08a;font-weight:700}.list li.top2 .nm{color:#eef2f7;font-weight:700}.list li.top3 .nm{color:#f3c29a;font-weight:700}
/* overlays stop above the site nav so its links stay visible and clickable on intro / result / leaderboard */
.overlay{bottom:calc(36px + env(safe-area-inset-bottom));padding-bottom:12px}
.sitenav{position:relative;z-index:11}
@media (max-height:640px){.overlay{bottom:calc(30px + env(safe-area-inset-bottom))}}
