:root {
  --bg: #0b111b; --panel: rgba(12, 18, 29, 0.9); --panel2: rgba(22, 31, 46, 0.94); --line: rgba(255, 255, 255, 0.09);
  --txt: #eef3f8; --dim: #9aa8b8; --acc: #ff8a2a; --acc2: #ffd23f; --good: #3fd17a; --bad: #ff4f6e; --blue: #3aa0ff;
  --r: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--txt); font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif; user-select: none; -webkit-user-select: none; }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.hidden { display: none !important; }
input, select { font: inherit; }

/* ---------- screens ---------- */
#ui { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.screen { position: absolute; inset: 0; display: none; pointer-events: auto; overflow: auto; }
.screen.on { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page { max-width: 1180px; margin: 0 auto; padding: 28px 28px 60px; }
.page-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.page-h h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.back { width: 44px; height: 44px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); font-size: 20px; display: grid; place-items: center; }
.back:hover { background: #24334a; }
.shade { position: fixed; inset: 0; background: linear-gradient(90deg, rgba(6,10,16,.88), rgba(6,10,16,.55) 55%, rgba(6,10,16,.15)); pointer-events: none; }
.shade.full { background: rgba(6,10,16,.78); }

/* home */
#home .wrap { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 34px 5vw; }
.logo { font-weight: 900; font-size: clamp(42px, 6vw, 82px); line-height: .9; letter-spacing: -1px; text-shadow: 0 6px 30px rgba(0,0,0,.55); }
.logo b { color: var(--acc); }
.logo span { display: inline-block; font-size: .42em; vertical-align: top; margin-left: 6px; padding: 4px 10px; border-radius: 10px; background: var(--acc2); color: #1a1a1a; transform: rotate(-4deg) translateY(10px); }
.tagline { color: #cdd8e4; margin: 12px 0 26px; font-size: 17px; max-width: 460px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.menu { display: flex; flex-direction: column; gap: 7px; width: min(370px, 92vw); }
.mbtn { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 14px; background: rgba(16, 24, 38, .82); border: 1px solid var(--line); font-size: 17px; font-weight: 600; text-align: left; transition: transform .12s, background .12s, border-color .12s; }
.mbtn i { font-style: normal; width: 26px; text-align: center; font-size: 19px; }
.mbtn:hover, .mbtn:focus-visible { background: rgba(38, 54, 80, .95); transform: translateX(4px); border-color: rgba(255,138,42,.5); outline: none; }
.mbtn.primary { background: linear-gradient(135deg, #ff8a2a, #ff5a3a); border: 0; font-size: 21px; padding: 15px 20px; box-shadow: 0 8px 30px rgba(255,100,40,.35); }
.mbtn.primary:hover { filter: brightness(1.08); }
.mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mrow .mbtn { font-size: 15px; padding: 11px 13px; }
.profile-card { position: absolute; top: 22px; right: 26px; width: 300px; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.profile-card .ban { height: 62px; padding: 12px 16px; display: flex; align-items: flex-end; justify-content: space-between; }
.profile-card .nm { font-size: 20px; font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.profile-card .ttl { font-size: 12px; font-weight: 700; background: rgba(0,0,0,.4); padding: 3px 8px; border-radius: 8px; }
.profile-card .body { padding: 12px 16px 14px; }
.lvl { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.lvl .badge { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--acc2), var(--acc)); color: #1d1206; display: grid; place-items: center; font-weight: 900; font-size: 17px; }
.xpbar { flex: 1; height: 8px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc2), var(--acc)); }
.coins { display: flex; justify-content: space-between; margin-top: 10px; color: var(--dim); font-size: 14px; }
.coins b { color: var(--acc2); font-size: 16px; }
.netpill { position: absolute; left: 26px; bottom: 18px; font-size: 13px; color: var(--dim); display: flex; gap: 8px; align-items: center; background: rgba(10,16,26,.7); padding: 6px 12px; border-radius: 20px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #777; display: inline-block; }
.dot.on { background: var(--good); box-shadow: 0 0 8px var(--good); } .dot.err { background: var(--bad); }
.daily-card { position: absolute; right: 26px; bottom: 22px; width: 300px; border-radius: 16px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); }
.daily-card h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: 1.5px; color: var(--acc2); }
.mission { display: flex; gap: 10px; align-items: center; font-size: 14px; margin: 6px 0; }
.mission .pb { flex: 0 0 70px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.mission .pb i { display: block; height: 100%; background: var(--good); }
.mission.done { color: var(--good); }
.sig { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 11px; color: rgba(255,255,255,.28); letter-spacing: 1px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { position: relative; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); padding: 16px; text-align: left; transition: transform .12s, border-color .12s, background .12s; overflow: hidden; }
button.card:hover, .card.sel { transform: translateY(-3px); border-color: rgba(255,138,42,.6); background: var(--panel2); }
.card h3 { margin: 4px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.4; }
.card .ic { font-size: 30px; }
.card .tag { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 3px 8px; border-radius: 8px; background: var(--acc2); color: #1a1406; }
.card .tag.arcade { background: #c58bff; }
.card.locked { opacity: .55; }
.card.locked::after { content: '🔒'; position: absolute; right: 14px; bottom: 12px; font-size: 20px; }
.mapcard { padding: 0; }
.mapcard .art { height: 112px; position: relative; }
.mapcard .art .ic { position: absolute; left: 14px; bottom: 6px; font-size: 40px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.mapcard .art .h { position: absolute; right: 12px; bottom: 10px; font-weight: 800; font-size: 13px; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 8px; }
.mapcard .info { padding: 12px 14px 14px; }
.stars { color: var(--acc2); letter-spacing: 2px; font-size: 14px; }
.stars .off { color: rgba(255,255,255,.18); }

/* map detail */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.panel { border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); padding: 18px; }
.panel h3 { margin: 0 0 10px; }
.route { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; background: rgba(255,255,255,.02); width: 100%; text-align: left; }
.route:hover, .route.sel { border-color: rgba(255,138,42,.65); background: rgba(255,138,42,.08); }
.route .gr { width: 52px; text-align: center; font-weight: 800; font-size: 13px; padding: 6px 0; border-radius: 9px; color: #111; }
.route .nm { flex: 1; font-weight: 700; }
.route .nm small { display: block; color: var(--dim); font-weight: 500; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; font-size: 15px; }
.seg { display: inline-flex; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--dim); background: rgba(255,255,255,.03); }
.seg button.on { background: var(--acc); color: #fff; }
.go { width: 100%; padding: 15px; border-radius: 14px; background: linear-gradient(135deg, #ff8a2a, #ff5a3a); font-size: 19px; font-weight: 800; margin-top: 12px; box-shadow: 0 8px 26px rgba(255,100,40,.3); }
.go:disabled { filter: grayscale(1); opacity: .6; }
.btn { padding: 10px 16px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.btn:hover { background: #2a3a52; }
.btn.acc { background: var(--acc); border: 0; } .btn.good { background: var(--good); color: #062a12; border: 0; } .btn.bad { background: var(--bad); border: 0; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--dim); font-size: 14px; }
.kbd { display: inline-block; min-width: 26px; padding: 3px 7px; border-radius: 7px; background: #26334a; border: 1px solid #3a4b66; border-bottom-width: 3px; font-weight: 800; font-size: 13px; text-align: center; margin: 0 2px; }

/* customization */
#custom .cwrap { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 470px; }
@media (max-width: 900px) { #custom .cwrap { grid-template-columns: 1fr; grid-template-rows: 38vh 1fr; } }
.cside { background: var(--panel); border-left: 1px solid var(--line); padding: 20px; overflow: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.tabs button { padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 14px; font-weight: 600; color: var(--dim); }
.tabs button.on { background: var(--acc); color: #fff; }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.item { border-radius: 12px; padding: 10px 8px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 13px; font-weight: 600; text-align: center; position: relative; }
.item .sw { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 6px; border: 2px solid rgba(255,255,255,.25); }
.item.on { border-color: var(--acc); background: rgba(255,138,42,.12); }
.item .price { display: block; color: var(--acc2); font-size: 12px; margin-top: 3px; }
.item.lock { opacity: .8; }
.cust-rot { position: absolute; bottom: 20px; left: 24px; display: flex; gap: 8px; }

/* challenges / boards */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; }
.ach .i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: 20px; }
.ach.got .i { background: linear-gradient(135deg, var(--acc2), var(--acc)); }
.ach small { color: var(--dim); display: block; }
table.lb { width: 100%; border-collapse: collapse; font-size: 15px; }
table.lb td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.lb td:first-child { width: 36px; color: var(--dim); font-weight: 800; }
table.lb tr.me td { color: var(--acc2); font-weight: 700; }

/* settings */
.set { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 14px; }
.set label { font-weight: 600; } .set small { display: block; color: var(--dim); font-weight: 400; }
input[type=range] { width: 180px; accent-color: var(--acc); }
input[type=text] { background: #0f1724; border: 1px solid #2b3a52; color: var(--txt); padding: 10px 12px; border-radius: 10px; width: 100%; font-size: 16px; }
.toggle { width: 50px; height: 28px; border-radius: 20px; background: #334; position: relative; flex: 0 0 auto; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle.on { background: var(--good); } .toggle.on::after { left: 25px; }

/* online / lobby */
.friend { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 7px; }
.friend .nm { flex: 1; font-weight: 700; } .friend small { color: var(--dim); display: block; font-weight: 500; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 26px; font-weight: 800; letter-spacing: 4px; color: var(--acc2); }
.pl { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); margin-bottom: 7px; }
.pl .sw { width: 14px; height: 14px; border-radius: 50%; }
.pl .nm { flex: 1; font-weight: 700; }
.pl .rd { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--dim); }
.pl .rd.on { background: var(--good); color: #062a12; }
.pl.dc { opacity: .5; }
#chatLog { height: 170px; overflow: auto; font-size: 14px; background: rgba(0,0,0,.25); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
#chatLog div { margin: 3px 0; } #chatLog b { color: var(--acc2); } #chatLog .sys { color: var(--dim); font-style: italic; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
#hudTL { position: absolute; left: 18px; top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
#stam { position: relative; width: 76px; height: 76px; }
#stam svg { width: 100%; height: 100%; transform: rotate(-90deg); }
#stam circle { fill: rgba(8,12,20,.55); stroke-width: 7; }
#stam .bg { stroke: rgba(255,255,255,.12); }
#stam .fg { fill: none; stroke: var(--good); stroke-linecap: round; stroke-dasharray: 169.6; transition: stroke .2s; }
#stamTxt { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 20px; padding-bottom: 8px; }
#stam .lbl { position: absolute; bottom: 15px; width: 100%; text-align: center; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; color: var(--dim); }
#stam.low #stamTxt { color: var(--bad); animation: pulse .5s infinite alternate; }
@keyframes pulse { to { transform: scale(1.12); } }
#balance { width: 76px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; opacity: 0; transition: opacity .2s; }
#balance i { display: block; height: 100%; width: 0; background: var(--bad); }
#balance.on { opacity: 1; }
#modeInfo { font-weight: 700; font-size: 14px; background: rgba(8,12,20,.6); padding: 6px 10px; border-radius: 10px; max-width: 240px; }
#modeInfo:empty { display: none; }
#hudTC { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); text-align: center; }
#timer { font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
#sub { font-size: 14px; font-weight: 700; color: #dfe7f0; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
#hudTR { position: absolute; right: 18px; top: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#height { font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.7); } #height b { font-size: 36px; } #height span { font-size: 16px; margin-left: 2px; color: #cfd8e2; }
#cpInfo { font-size: 14px; font-weight: 700; background: rgba(8,12,20,.6); padding: 5px 10px; border-radius: 10px; }
#cpInfo:empty { display: none; }
#alt { position: absolute; right: 0; top: 104px; width: 10px; height: 34vh; border-radius: 6px; background: rgba(255,255,255,.15); }
#altBar { position: absolute; inset: 0; }
#altBar .d { position: absolute; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #fff; }
#altBar .cp { position: absolute; left: -3px; right: -3px; height: 2px; background: rgba(255,255,255,.45); }
#altBar .cp.got { background: var(--good); }
#altBar .top { position: absolute; top: -18px; left: -6px; font-size: 13px; }
#race { position: absolute; left: 18px; top: 150px; display: flex; flex-direction: column; gap: 4px; }
#race .r { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; background: rgba(8,12,20,.6); padding: 4px 10px 4px 6px; border-radius: 9px; min-width: 150px; }
#race .r .p { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; color: #111; }
#race .r.me { outline: 2px solid var(--acc2); }
#race .r .h { margin-left: auto; color: var(--dim); font-variant-numeric: tabular-nums; }
#toasts { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ht { font-weight: 800; font-size: 18px; padding: 7px 16px; border-radius: 12px; background: rgba(8,12,20,.72); text-shadow: 0 2px 6px rgba(0,0,0,.6); animation: pop .25s ease; transition: opacity .3s; }
.ht.good { color: #8dffb5; } .ht.bad { color: #ff8da0; } .ht.warn { color: #ffd88a; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
#big { position: absolute; top: 34%; width: 100%; text-align: center; font-size: 120px; font-weight: 900; text-shadow: 0 8px 30px rgba(0,0,0,.6); opacity: 0; }
#big.show { animation: bigpop .9s ease forwards; }
@keyframes bigpop { 0% { opacity: 0; transform: scale(1.8); } 25% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(.9); } }
#warn { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); font-weight: 800; color: #ffd88a; font-size: 15px; }
#dynoMeter { position: absolute; left: 50%; top: 62%; width: 240px; height: 16px; margin-left: -120px; border: 2px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(8,12,20,.6); overflow: hidden; display: none; }
#dynoMeter i { position: absolute; left: 55%; width: 42%; top: 0; bottom: 0; background: rgba(63,209,122,.55); }
#dynoMeter b { position: absolute; top: 0; bottom: 0; width: 4px; background: #fff; left: 0; }
#hints { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; font-size: 14px; font-weight: 600; color: #dfe7f0; background: rgba(8,12,20,.55); padding: 8px 14px; border-radius: 12px; white-space: nowrap; }
#hints span { opacity: .9; } #hints:empty { display: none; }
.icon-btn { position: absolute; pointer-events: auto; width: 42px; height: 42px; border-radius: 12px; background: rgba(8,12,20,.6); font-weight: 900; }
#pauseBtn { right: 18px; bottom: 16px; }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(5,9,15,.62); pointer-events: auto; animation: fadeIn .2s; overflow: auto; }
.ocard { width: min(560px, 94vw); border-radius: 20px; background: var(--panel); border: 1px solid var(--line); padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.5); margin: 20px auto; }
.ocard h2 { margin: 0 0 4px; font-size: 32px; font-weight: 900; }
.ocard .sub { color: var(--dim); margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.stat { background: rgba(255,255,255,.04); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 22px; } .stat small { color: var(--dim); }
.rewards { display: flex; gap: 12px; justify-content: center; margin: 10px 0; font-weight: 800; }
.rewards span { padding: 6px 12px; border-radius: 10px; background: rgba(255,210,63,.12); color: var(--acc2); }
.bigstars { font-size: 44px; text-align: center; letter-spacing: 6px; color: var(--acc2); text-shadow: 0 4px 16px rgba(255,180,40,.4); }
.bigstars .off { color: rgba(255,255,255,.14); text-shadow: none; }
.podium { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.podium .r { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); font-weight: 700; }
.podium .r.me { outline: 2px solid var(--acc2); }
.podium .r .t { margin-left: auto; color: var(--dim); font-variant-numeric: tabular-nums; }
.obtns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.obtns .btn { flex: 1; padding: 13px; }

/* toasts */
#gtoasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.gt { pointer-events: auto; background: #1b2738; border: 1px solid var(--line); padding: 11px 16px; border-radius: 13px; font-weight: 600; display: flex; gap: 10px; align-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.45); animation: pop .2s; max-width: 92vw; }

/* loading */
#loading { background: radial-gradient(ellipse at 50% 40%, #1b2a40, #0a0f18 70%); }
.load-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: min(520px, 90vw); }
.load-logo { font-weight: 900; font-size: 44px; } .load-logo b { color: var(--acc); } .load-logo span { font-size: 20px; color: #1a1406; background: var(--acc2); padding: 2px 8px; border-radius: 8px; vertical-align: middle; }
#loadTxt { margin: 16px 0 10px; color: var(--dim); font-weight: 600; }
.load-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, var(--acc2), var(--acc)); animation: lb 1s ease-in-out infinite alternate; }
@keyframes lb { from { margin-left: 0; } to { margin-left: 70%; } }
.tip { margin-top: 18px; color: #c6d2df; font-size: 15px; min-height: 40px; }

/* touch controls */
#touch { position: fixed; inset: 0; z-index: 25; pointer-events: none; display: none; }
body.touch.playing #touch { display: block; }
#tStick { position: absolute; left: 28px; bottom: 34px; width: 132px; height: 132px; border-radius: 50%; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.18); pointer-events: auto; touch-action: none; }
#tKnob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; background: rgba(255,255,255,.35); }
#tBtns { position: absolute; right: 20px; bottom: 24px; width: 260px; height: 220px; pointer-events: none; }
.tb { position: absolute; pointer-events: auto; touch-action: none; border-radius: 50%; background: rgba(12,18,28,.55); border: 2px solid rgba(255,255,255,.25); font-weight: 900; font-size: 20px; display: grid; place-items: center; line-height: 1; }
.tb small { display: block; font-size: 10px; font-weight: 700; opacity: .8; }
.tb.on { background: rgba(255,138,42,.6); }
.tbL { right: 128px; bottom: 70px; width: 76px; height: 76px; border-color: #2ad1ff; }
.tbR { right: 26px; bottom: 112px; width: 76px; height: 76px; border-color: #ff9a2a; }
.tbJ { right: 32px; bottom: 10px; width: 80px; height: 80px; font-size: 15px; border-color: #ffd23f; }
.tbS { right: 200px; bottom: 6px; width: 58px; height: 58px; font-size: 12px; }
.tbC { right: 210px; bottom: 150px; width: 50px; height: 50px; font-size: 10px; }
.tbV { right: 130px; bottom: 168px; width: 50px; height: 50px; font-size: 11px; }
body.touch #hints { display: none; }
body.touch #pauseBtn { top: 14px; right: 50%; margin-right: -150px; bottom: auto; }
@media (max-width: 700px) {
  .profile-card, .daily-card { position: static; width: auto; margin: 14px 0 0; }
  #home .wrap { justify-content: flex-start; overflow: auto; }
  .page { padding: 16px 14px 50px; }
  #timer { font-size: 22px; }
  #height b { font-size: 26px; }
  #stam { width: 60px; height: 60px; }
}

select.btn { color: var(--txt); background: #1b2738; appearance: auto; }
select.btn option { background: #1b2738; color: var(--txt); }
select.btn:disabled { opacity: .75; }

#dynoMeter.grip i { background: rgba(63,209,122,.5); }
#dynoMeter.grip.in { border-color: #3fd17a; box-shadow: 0 0 14px rgba(63,209,122,.6); }
#dynoMeter.grip.in b { background: #3fd17a; }
