/* Rovro — black, off-white and one teal. Red is kept for SOS and real problems only.
   Type: Hubot Sans (display, numbers) and Mona Sans (text), as on pulaksingh.com. */
:root {
  --bg: #000; --s1: #0c0d0e; --s2: #141617; --s3: #1c1f20;
  --ln: rgba(241, 241, 238, .08); --ln2: rgba(241, 241, 238, .15);
  --ink: #f1f1ee; --mut: #a3a6a4; --dim: #6c6f6e;
  --acc: #2fe3c8; --acc2: #12b39d; --acc-ink: #03201b; --acc-soft: rgba(47, 227, 200, .12); --acc-glow: rgba(47, 227, 200, .38);
  --red: #ff453a; --red-soft: rgba(255, 69, 58, .16);
  --grad: linear-gradient(180deg, #5bf0da 0%, #2fe3c8 45%, #14b8a1 100%);
  --r: 24px; --r2: 18px; --fs: 16px; --nav-h: 80px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --disp: 'Hubot Sans', 'Mona Sans', system-ui, sans-serif; --text: 'Mona Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --depth: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 0 0 1px var(--ln), 0 18px 40px -22px rgba(0, 0, 0, .9);
  --lift: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 0 0 1px var(--ln2), 0 30px 60px -24px rgba(0, 0, 0, .95), 0 10px 24px -14px rgba(47, 227, 200, .18);
  color-scheme: dark;
}
html.t-large { --fs: 19px; }
html.t-xl { --fs: 22px; }
html.hc { --mut: #d9dbd8; --dim: #b4b7b5; --ln: rgba(241, 241, 238, .22); --s1: #121314; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--fs); line-height: 1.45; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--acc); }
.hide { display: none !important; }
svg.i { width: 1.35em; height: 1.35em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.num { font-family: var(--disp); font-stretch: 110%; font-variant-numeric: tabular-nums; }

/* ---------- frame ---------- */
#app { position: fixed; inset: 0; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--bg); overflow: hidden; }
#app::before { content: ''; position: absolute; inset: -30% -40% auto; height: 65%; background: radial-gradient(closest-side, rgba(47, 227, 200, .10), transparent 72%); pointer-events: none; }
.screen { position: absolute; inset: 0 0 calc(var(--nav-h) + var(--sab)) 0; overflow-y: auto; overflow-x: hidden; padding: calc(var(--sat) + 12px) 18px 32px; -webkit-overflow-scrolling: touch; scrollbar-width: none; perspective: 1200px; }
.screen::-webkit-scrollbar { display: none; }
.screen.enter > * { animation: rise .55s cubic-bezier(.16, 1, .3, 1) backwards; }
.screen.enter > *:nth-child(2) { animation-delay: .04s; } .screen.enter > *:nth-child(3) { animation-delay: .08s; } .screen.enter > *:nth-child(4) { animation-delay: .12s; } .screen.enter > *:nth-child(5) { animation-delay: .16s; } .screen.enter > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) rotateX(10deg); } to { opacity: 1; transform: none; } }

/* top bar */
.top { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; min-height: 48px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 18px -6px var(--acc-glow); }
.brand b { font-family: var(--disp); font-weight: 700; font-size: 1.32em; letter-spacing: -.01em; font-stretch: 112%; }
.brand small { display: block; font-size: .66em; color: var(--mut); letter-spacing: .16em; text-transform: uppercase; margin-top: -2px; }
.top .sp { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--s2); box-shadow: 0 0 0 1px var(--ln) inset; font-weight: 600; font-size: .88em; white-space: nowrap; }
.chip.acc { color: var(--acc); }
.chip.demo { background: var(--acc-soft); color: var(--acc); font-size: .74em; letter-spacing: .1em; text-transform: uppercase; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--disp); font-weight: 700; font-size: .98em; color: var(--ink); flex: none; position: relative; background: radial-gradient(circle at 32% 28%, #2a2e30, #121415 70%); box-shadow: 0 0 0 1px var(--ln2) inset, 0 6px 14px -8px rgba(0, 0, 0, .9); }
.avatar.me { background: var(--grad); color: var(--acc-ink); box-shadow: 0 6px 18px -8px var(--acc-glow), 0 1px 0 rgba(255, 255, 255, .5) inset; }
.avatar.sm { width: 34px; height: 34px; font-size: .8em; }
.avatar.lg { width: 88px; height: 88px; font-size: 2em; }
.stack { display: flex; }
.stack .avatar { width: 32px; height: 32px; font-size: .74em; margin-left: -9px; box-shadow: 0 0 0 2.5px var(--s1); }
.stack .avatar:first-child { margin-left: 0; }

/* type */
h1, h2, h3 { font-family: var(--disp); font-weight: 700; margin: 0; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: 2.05em; font-stretch: 112%; }
h2 { font-size: 1.32em; font-stretch: 108%; }
h3 { font-size: 1.1em; font-weight: 650; }
.eyebrow { font-size: .74em; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); font-weight: 650; }
.muted { color: var(--mut); } .small { font-size: .86em; } .big { font-size: 1.15em; }
.hello { margin: 4px 2px 18px; }
.hello h1 { font-size: 1.9em; }
.hello h1 span { color: var(--acc); }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 2px 12px; }
.sec h2 { font-size: .8em; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); font-family: var(--text); font-weight: 650; font-stretch: 100%; }
.sec button { color: var(--acc); font-weight: 600; font-size: .9em; }

/* ---------- cards with depth ---------- */
.card { background: linear-gradient(180deg, #111314, var(--s1)); border-radius: var(--r); padding: 18px; position: relative; overflow: hidden; box-shadow: var(--depth); }
.card + .card { margin-top: 12px; }
.press { transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s; transform-style: preserve-3d; }
.press:active { transform: scale(.985) translateZ(-10px); }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.16, 1, .3, 1); transform-style: preserve-3d; will-change: transform; }
.tilt .z1 { transform: translateZ(26px); } .tilt .z2 { transform: translateZ(48px); }
.tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, .07), transparent 45%); }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 4px; }
.grow { flex: 1; min-width: 0; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* ---------- buttons ---------- */
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 22px; border-radius: 18px; font-family: var(--disp); font-size: 1.04em; font-weight: 700; letter-spacing: .01em; font-stretch: 108%; transition: transform .15s, box-shadow .2s, filter .2s; user-select: none; -webkit-user-select: none; position: relative; }
.btn:active { transform: translateY(2px) scale(.985); }
.btn.pri { background: var(--grad); color: var(--acc-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 -3px 0 rgba(0, 60, 52, .35) inset, 0 14px 30px -14px var(--acc-glow); }
.btn.pri:active { box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 -1px 0 rgba(0, 60, 52, .35) inset, 0 6px 16px -10px var(--acc-glow); }
.btn.sec2 { background: linear-gradient(180deg, #1d2021, #141617); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 0 0 1px var(--ln) inset, 0 10px 22px -16px #000; }
.btn.ghost { background: transparent; box-shadow: 0 0 0 1.5px var(--ln2) inset; color: var(--ink); }
.btn.red { background: linear-gradient(180deg, #ff6b62, #ff453a 50%, #d7271d); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 -3px 0 rgba(90, 0, 0, .35) inset, 0 14px 30px -14px rgba(255, 69, 58, .7); }
.btn.white { background: linear-gradient(180deg, #fff, #e4e5e1); color: #111; box-shadow: 0 1px 0 #fff inset, 0 -3px 0 rgba(0, 0, 0, .12) inset, 0 12px 26px -14px rgba(0, 0, 0, .8); }
.btn.block { width: 100%; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: .9em; border-radius: 14px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.bigduo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.bigbtn { border-radius: var(--r); padding: 18px 16px; text-align: left; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--disp); font-size: 1.12em; font-weight: 700; font-stretch: 108%; transition: transform .2s cubic-bezier(.16, 1, .3, 1); position: relative; overflow: hidden; }
.bigbtn:active { transform: scale(.97); }
.bigbtn svg.i { width: 30px; height: 30px; }
.bigbtn small { display: block; font-family: var(--text); font-stretch: 100%; font-weight: 500; font-size: .7em; opacity: .75; margin-top: 3px; }
.bigbtn.pri { background: var(--grad); color: var(--acc-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 -4px 0 rgba(0, 60, 52, .3) inset, 0 20px 40px -18px var(--acc-glow); }
.bigbtn.alt { background: linear-gradient(180deg, #17191a, #0f1011); box-shadow: var(--depth); }
.bigbtn .ic3 { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(0, 0, 0, .14); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset; }
.bigbtn.alt .ic3 { background: var(--s3); color: var(--acc); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }

/* ---------- hero: next ride ---------- */
.hero { padding: 20px; border-radius: 28px; min-height: 250px; background: #050606; box-shadow: var(--lift); isolation: isolate; }
.hero .art { position: absolute; inset: 0; background-size: cover; background-position: center 40%; opacity: .78; z-index: -1; }
.hero .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .94) 100%); }
.hero h2 { font-size: 1.62em; margin: 8px 0 6px; max-width: 88%; }
.count { display: flex; gap: 8px; margin: 14px 0; }
.count div { background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 14px; padding: 8px 0 6px; min-width: 64px; text-align: center; box-shadow: 0 0 0 1px var(--ln2) inset, 0 1px 0 rgba(255, 255, 255, .08) inset; }
.count b { display: block; font-family: var(--disp); font-size: 1.8em; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; font-stretch: 112%; }
.count span { font-size: .64em; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--mut); font-size: .92em; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 var(--acc-glow); animation: pulse 1.6s infinite; display: inline-block; }
.live-dot.red { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--acc-glow); } 70% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }

/* ---------- level ring ---------- */
.level .ring { width: 74px; height: 74px; flex: none; position: relative; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #23272a, #0b0c0d 70%); box-shadow: 0 10px 22px -12px #000, 0 1px 0 rgba(255, 255, 255, .07) inset; }
.level .ring svg { position: absolute; inset: 0; width: 74px; height: 74px; transform: rotate(-90deg); filter: drop-shadow(0 0 6px var(--acc-glow)); }
.level .ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--disp); font-size: 1.45em; font-stretch: 112%; }
.bar { height: 10px; border-radius: 99px; background: #1a1c1d; overflow: hidden; margin-top: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .6) inset; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); box-shadow: 0 0 12px var(--acc-glow); transition: width 1s cubic-bezier(.16, 1, .3, 1); }

/* ---------- quiz ---------- */
.quiz .opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 16px; background: var(--s2); box-shadow: 0 0 0 1px var(--ln) inset; margin-top: 8px; min-height: 58px; transition: background .25s, box-shadow .25s, transform .15s; }
.quiz .opt:active { transform: scale(.985); }
.quiz .opt b { width: 30px; height: 30px; border-radius: 50%; background: var(--s3); display: grid; place-items: center; flex: none; font-family: var(--disp); }
.quiz .opt.ok { background: var(--acc-soft); box-shadow: 0 0 0 1.5px var(--acc) inset; } .quiz .opt.ok b { background: var(--acc); color: var(--acc-ink); }
.quiz .opt.no { background: var(--red-soft); box-shadow: 0 0 0 1.5px var(--red) inset; }
.quiz .why { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--s2); box-shadow: 0 0 0 1px var(--ln) inset; font-size: .95em; color: var(--mut); }
.res { display: flex; align-items: center; gap: 12px; }
.res .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); flex: none; }

/* ---------- ride-ready check ---------- */
.check { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.check button { aspect-ratio: 1; border-radius: 18px; background: linear-gradient(180deg, #17191a, #101112); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 0 0 1px var(--ln) inset; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: .72em; font-weight: 600; color: var(--mut); transition: all .25s cubic-bezier(.16, 1, .3, 1); }
.check button svg.i { width: 26px; height: 26px; }
.check button.on { background: linear-gradient(180deg, rgba(47, 227, 200, .22), rgba(47, 227, 200, .08)); box-shadow: 0 0 0 1.5px var(--acc) inset, 0 10px 22px -14px var(--acc-glow); color: var(--acc); transform: translateY(-2px); }

/* ---------- badges ---------- */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.badge { text-align: center; font-size: .7em; color: var(--dim); }
.badge .b { width: 100%; aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center; margin-bottom: 6px; background: radial-gradient(circle at 50% 40%, #15181a, #0a0b0c 72%); box-shadow: 0 0 0 1px var(--ln) inset; overflow: hidden; }
.badge .b img { width: 92%; height: 92%; object-fit: contain; filter: grayscale(1) brightness(.35) contrast(1.1); transition: transform .5s cubic-bezier(.16, 1, .3, 1), filter .4s; }
.badge.on { color: var(--ink); }
.badge.on .b { background: radial-gradient(circle at 50% 38%, rgba(47, 227, 200, .18), #0a0b0c 70%); box-shadow: 0 0 0 1px rgba(47, 227, 200, .25) inset; }
.badge.on .b img { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .8)); animation: bob 5s ease-in-out infinite; }
.badge.on:nth-child(2n) .b img { animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-2deg); } }
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.hscroll .badge { width: 86px; }

/* ---------- rides ---------- */
.ride { display: flex; gap: 14px; align-items: stretch; }
.date { width: 64px; flex: none; border-radius: 18px; background: linear-gradient(180deg, #1a1c1d, #111213); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 0 0 1px var(--ln) inset; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; }
.date b { font-family: var(--disp); font-size: 1.8em; line-height: 1; font-stretch: 112%; }
.date span { font-size: .68em; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); font-weight: 700; }
.date small { font-size: .64em; color: var(--mut); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: .7em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); box-shadow: 0 0 0 1px var(--ln2) inset; }
.tag.acc { color: var(--acc); box-shadow: 0 0 0 1px rgba(47, 227, 200, .4) inset; background: var(--acc-soft); }
.tag.live { color: var(--acc); background: var(--acc-soft); box-shadow: none; }
.seg { display: flex; background: var(--s1); border-radius: 18px; padding: 4px; gap: 4px; margin-bottom: 14px; box-shadow: 0 0 0 1px var(--ln) inset; }
.seg button { flex: 1; min-height: 46px; border-radius: 14px; font-weight: 650; color: var(--mut); font-size: .94em; transition: all .25s; }
.seg button.on { background: linear-gradient(180deg, #212425, #18191a); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 6px 14px -8px #000; }
.empty { text-align: center; padding: 34px 16px; color: var(--mut); }
.empty svg.i { width: 44px; height: 44px; color: var(--dim); margin-bottom: 8px; }

/* ---------- lists, stats, forms ---------- */
.list > * { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--ln); min-height: 60px; width: 100%; text-align: left; text-decoration: none; color: inherit; }
.list > *:last-child { border-bottom: 0; }
.list .ic { width: 42px; height: 42px; border-radius: 13px; background: var(--s2); display: grid; place-items: center; flex: none; color: var(--acc); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset; }
.stat { background: linear-gradient(180deg, #121415, var(--s1)); border-radius: 20px; padding: 14px; box-shadow: var(--depth); }
.stat b { display: block; font-family: var(--disp); font-size: 1.75em; font-weight: 700; line-height: 1.05; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.stat span { font-size: .72em; color: var(--mut); letter-spacing: .12em; text-transform: uppercase; }
label.f { display: block; margin: 0 0 14px; }
label.f > span { display: block; font-size: .84em; color: var(--mut); margin: 0 0 6px 2px; font-weight: 600; }
.in { width: 100%; min-height: 58px; border-radius: 16px; background: var(--s2); border: 0; box-shadow: 0 0 0 1.5px var(--ln) inset, 0 2px 6px rgba(0, 0, 0, .5) inset; padding: 0 16px; outline: none; font-size: 1.04em; }
.in:focus { box-shadow: 0 0 0 2px var(--acc) inset, 0 0 0 5px var(--acc-soft); }
textarea.in { padding: 14px 16px; min-height: 92px; resize: vertical; }
select.in { appearance: none; -webkit-appearance: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 46px; min-width: 56px; padding: 0 15px; border-radius: 14px; background: var(--s2); box-shadow: 0 0 0 1.5px var(--ln) inset; font-weight: 650; transition: all .2s; }
.chips button.on { background: var(--acc-soft); box-shadow: 0 0 0 1.5px var(--acc) inset; color: var(--acc); }
.toggle { display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--ln); min-height: 66px; width: 100%; text-align: left; }
.toggle .sw { width: 54px; height: 32px; border-radius: 99px; background: #2a2d2e; position: relative; flex: none; transition: background .25s; box-shadow: 0 1px 3px rgba(0, 0, 0, .6) inset; }
.toggle .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(180deg, #fff, #d9dad6); transition: transform .25s cubic-bezier(.16, 1, .3, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.toggle.on .sw { background: var(--acc2); }
.toggle.on .sw::after { transform: translateX(22px); }

/* ---------- bottom nav with a 3D ride orb ---------- */
nav.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--sab)); padding-bottom: var(--sab); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: linear-gradient(to top, rgba(0, 0, 0, .98) 62%, rgba(0, 0, 0, .78)); z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--ln); }
nav.tabs button { height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--dim); font-size: .72em; font-weight: 650; letter-spacing: .02em; transition: color .2s; }
nav.tabs button svg.i { width: 26px; height: 26px; }
nav.tabs button.on { color: var(--ink); }
nav.tabs button.on svg.i { color: var(--acc); }
nav.tabs .go .o { width: 72px; height: 72px; margin-top: -32px; border-radius: 50%; display: grid; place-items: center; color: var(--acc-ink); background: radial-gradient(circle at 34% 26%, #c9fff6 0%, #5bf0da 18%, #2fe3c8 45%, #0f9e8a 100%); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--ln2), 0 14px 30px -8px var(--acc-glow), 0 -6px 12px rgba(0, 70, 60, .5) inset; transition: transform .2s cubic-bezier(.16, 1, .3, 1); animation: breathe 3.2s ease-in-out infinite; }
nav.tabs .go .o svg.i { width: 32px; height: 32px; stroke-width: 2.3; }
nav.tabs .go:active .o { transform: scale(.93) translateY(2px); }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--ln2), 0 14px 40px -4px var(--acc-glow), 0 -6px 12px rgba(0, 70, 60, .5) inset; } }
nav.tabs .go.live .o { background: radial-gradient(circle at 34% 26%, #ffd3cf 0%, #ff7d74 18%, #ff453a 45%, #b81d14 100%); color: #fff; animation: breatheR 1.6s ease-in-out infinite; }
@keyframes breatheR { 50% { box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--ln2), 0 14px 40px -2px rgba(255, 69, 58, .6), 0 -6px 12px rgba(90, 0, 0, .5) inset; } }
nav.tabs .go span:last-child { color: var(--ink); }
nav.tabs .sosb { color: #ff7b72; }

/* ---------- sheets ---------- */
.veil { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); z-index: 60; opacity: 0; transition: opacity .3s; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.veil.on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 92%; background: linear-gradient(180deg, #151718, #0d0e0f 30%); border-radius: 30px 30px 0 0; box-shadow: 0 -1px 0 var(--ln2), 0 -30px 60px -20px #000; z-index: 61; transform: translateY(105%); transition: transform .42s cubic-bezier(.16, 1, .3, 1); display: flex; flex-direction: column; }
.sheet.on { transform: none; }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--ln2); margin: 10px auto 2px; flex: none; }
.sheet .sc { overflow-y: auto; padding: 8px 20px calc(24px + var(--sab)); }
.sheet .hd { display: flex; align-items: center; gap: 10px; padding: 6px 20px 8px; }
.sheet .hd h2 { flex: 1; }
.x { width: 44px; height: 44px; border-radius: 50%; background: var(--s2); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--ln) inset; }

/* ---------- toasts, XP ---------- */
#toasts { position: fixed; left: 0; right: 0; top: calc(var(--sat) + 10px); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; max-width: 520px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 18px; background: rgba(20, 22, 23, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--ln2) inset, 0 20px 40px -12px rgba(0, 0, 0, .9); font-weight: 600; animation: tin .45s cubic-bezier(.16, 1, .3, 1); }
.toast .ti { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--s3); color: var(--ink); }
.toast.good .ti { background: var(--acc-soft); color: var(--acc); }
.toast.warn { background: rgba(241, 241, 238, .96); color: #0b0c0d; } .toast.warn .ti { background: rgba(0, 0, 0, .08); color: var(--red); }
.toast.bad { background: rgba(255, 69, 58, .95); color: #fff; } .toast.bad .ti { background: rgba(0, 0, 0, .18); color: #fff; }
@keyframes tin { from { opacity: 0; transform: translateY(-16px) scale(.97) rotateX(20deg); } }
.xp-pop { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 95; font-family: var(--disp); font-size: 2.6em; font-weight: 800; font-stretch: 115%; color: var(--acc); text-shadow: 0 0 30px var(--acc-glow), 0 4px 0 #04473f; pointer-events: none; animation: xpop 1.4s ease-out forwards; }
@keyframes xpop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6) rotateX(50deg); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 100% { opacity: 0; transform: translate(-50%, -110%) scale(1); } }

/* ---------- live ride ---------- */
#live { position: fixed; inset: 0; z-index: 40; background: #000; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; }
#map { position: absolute; inset: 0; background: #050606; }
.maplibregl-ctrl-attrib { background: rgba(0, 0, 0, .5) !important; color: #8f9291 !important; font-size: 10px !important; }
.maplibregl-ctrl-attrib a { color: #c9cbc7 !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }
.lv-top { position: absolute; left: 10px; right: 10px; top: calc(var(--sat) + 10px); z-index: 5; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.lv-top > * { pointer-events: auto; }
.glass { background: rgba(12, 13, 14, .82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 0 0 1px var(--ln2) inset, 0 16px 34px -18px #000; }
.lv-bar { display: flex; align-items: center; gap: 10px; border-radius: 20px; padding: 8px 8px 8px 8px; }
.lv-bar .t { flex: 1; min-width: 0; }
.lv-bar .t b { display: block; font-family: var(--disp); font-size: 1.02em; font-stretch: 108%; }
.lv-bar .t small { color: var(--mut); font-size: .8em; }
.lv-code { font-family: var(--disp); font-size: 1.02em; letter-spacing: .22em; padding: 9px 12px; border-radius: 13px; background: var(--s3); box-shadow: 0 0 0 1px var(--ln2) inset; font-stretch: 112%; }
.pack { display: flex; align-items: center; gap: 12px; border-radius: 20px; padding: 12px 14px; font-weight: 700; font-size: 1.04em; transition: background .3s, color .3s; min-height: 58px; text-align: left; }
.pack .pi { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pack small { display: block; font-weight: 500; font-size: .8em; opacity: .8; }
.pack.ok { background: rgba(8, 40, 35, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(47, 227, 200, .35) inset; }
.pack.ok .pi { background: var(--acc); color: var(--acc-ink); }
.pack.warn { background: rgba(241, 241, 238, .97); color: #0b0c0d; }
.pack.warn .pi { background: #0b0c0d; color: #fff; }
.pack.bad { background: var(--red); color: #fff; animation: shake .5s; }
.pack.bad .pi { background: rgba(0, 0, 0, .2); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.lv-fabs { position: absolute; right: 10px; z-index: 5; display: flex; flex-direction: column; gap: 10px; transition: bottom .35s cubic-bezier(.16, 1, .3, 1); }
.lv-fab { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--disp); font-weight: 800; font-size: .86em; letter-spacing: .04em; }
.lv-fab.on { color: var(--acc); box-shadow: 0 0 0 1.5px rgba(47, 227, 200, .55) inset, 0 16px 34px -18px #000; }
.lv-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: linear-gradient(180deg, #151718, #0b0c0d 40%); border-radius: 28px 28px 0 0; box-shadow: 0 -1px 0 var(--ln2), 0 -26px 50px -20px #000; display: flex; flex-direction: column; max-height: 84%; transition: height .38s cubic-bezier(.16, 1, .3, 1); touch-action: none; }
.lv-sheet .grab { width: 48px; height: 5px; border-radius: 9px; background: var(--ln2); margin: 10px auto 6px; flex: none; }
.lv-sheet .sc { overflow-y: auto; padding: 4px 14px calc(16px + var(--sab)); touch-action: pan-y; }
.speedo { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; align-items: end; padding: 0 2px 12px; }
.speedo div { text-align: center; }
.speedo b { display: block; font-family: var(--disp); font-weight: 700; font-size: 1.75em; line-height: 1; font-variant-numeric: tabular-nums; font-stretch: 112%; }
.speedo div:first-child b { font-size: 3.1em; color: var(--acc); text-shadow: 0 0 24px var(--acc-glow); }
.speedo span { font-size: .66em; color: var(--mut); letter-spacing: .16em; text-transform: uppercase; }
.qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qa button { min-height: 78px; border-radius: 18px; background: linear-gradient(180deg, #1a1c1d, #111213); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 0 0 1px var(--ln) inset, 0 8px 16px -12px #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-weight: 650; font-size: .84em; transition: transform .15s; }
.qa button svg.i { width: 27px; height: 27px; color: var(--acc); }
.qa button.hot { background: linear-gradient(180deg, rgba(47, 227, 200, .2), rgba(47, 227, 200, .06)); box-shadow: 0 0 0 1.5px rgba(47, 227, 200, .55) inset; }
.qa button:active { transform: scale(.95) translateY(1px); }
.sosbtn { position: relative; width: 100%; min-height: 76px; border-radius: 22px; margin: 10px 0 4px; background: linear-gradient(180deg, #ff6b62, #ff453a 50%, #c91f15); color: #fff; font-family: var(--disp); font-size: 1.32em; font-weight: 800; letter-spacing: .14em; font-stretch: 112%; display: flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 -4px 0 rgba(90, 0, 0, .35) inset, 0 16px 30px -14px rgba(255, 69, 58, .75); user-select: none; -webkit-user-select: none; touch-action: none; }
.sosbtn i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 255, 255, .3); }
.sosbtn small { font-family: var(--text); font-size: .5em; letter-spacing: .02em; font-weight: 600; opacity: .92; display: block; font-stretch: 100%; }
.rl { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--ln); width: 100%; text-align: left; }
.rl:last-child { border-bottom: 0; }
.rl .st { font-size: .8em; color: var(--mut); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rl .st svg.i { width: 1.1em; height: 1.1em; }
.rl .gap { text-align: right; font-family: var(--disp); font-size: 1.08em; font-stretch: 110%; }
.rl .gap small { display: block; font-family: var(--text); font-size: .68em; color: var(--mut); font-stretch: 100%; }
.rl.warn .gap { color: var(--ink); } .rl.warn .avatar { box-shadow: 0 0 0 2px var(--ink); }
.rl.bad .gap { color: var(--red); } .rl.bad .avatar { box-shadow: 0 0 0 2px var(--red); }
.role { font-size: .62em; font-weight: 800; letter-spacing: .1em; padding: 2px 7px; border-radius: 6px; vertical-align: middle; margin-left: 5px; font-family: var(--text); }
.role.lead { background: var(--acc); color: var(--acc-ink); }
.role.sweep { box-shadow: 0 0 0 1.5px var(--acc) inset; color: var(--acc); }

/* map markers */
.mk { position: relative; width: 48px; height: 48px; cursor: pointer; }
.mk .dot { position: absolute; inset: 5px; border-radius: 50%; display: grid; place-items: center; font-family: var(--disp); font-weight: 800; font-size: 13px; color: var(--ink); background: radial-gradient(circle at 34% 28%, #33383a, #0d0f10 72%); box-shadow: 0 0 0 2px rgba(241, 241, 238, .85), 0 8px 18px rgba(0, 0, 0, .8); }
.mk .arr { position: absolute; left: 50%; top: -5px; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; border-bottom: 10px solid var(--acc); transform-origin: 6px 29px; filter: drop-shadow(0 0 4px var(--acc-glow)); }
.mk.me .dot { background: radial-gradient(circle at 34% 28%, #c9fff6, #2fe3c8 45%, #0f9e8a); color: var(--acc-ink); box-shadow: 0 0 0 3px #fff, 0 0 22px var(--acc-glow), 0 8px 18px rgba(0, 0, 0, .8); }
.mk.lead .dot { box-shadow: 0 0 0 3px var(--acc), 0 0 18px var(--acc-glow), 0 8px 18px rgba(0, 0, 0, .8); }
.mk.off .dot { opacity: .45; }
.mk.warn .dot { box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(0, 0, 0, .8); animation: mkw 1.4s infinite; }
@keyframes mkw { 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 10px rgba(255, 255, 255, .18), 0 8px 18px rgba(0, 0, 0, .8); } }
.mk.sos .dot { background: var(--red) !important; color: #fff; animation: mksos 1s infinite; }
@keyframes mksos { 50% { box-shadow: 0 0 0 4px #fff, 0 0 0 16px rgba(255, 69, 58, .3); } }
.mk .rb { position: absolute; right: -3px; top: -3px; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 6px; font-family: var(--text); }
.mk .nm { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: rgba(0, 0, 0, .78); color: var(--ink); box-shadow: 0 0 0 1px var(--ln2) inset; display: flex; align-items: center; gap: 4px; }
.mk .nm svg.i { width: 12px; height: 12px; color: var(--acc); }
.hzm { width: 38px; height: 38px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); background: linear-gradient(135deg, #fff, #d8d9d5); display: grid; place-items: center; box-shadow: 0 8px 16px rgba(0, 0, 0, .7); }
.hzm svg.i { transform: rotate(45deg); color: #0b0c0d; width: 20px; height: 20px; stroke-width: 2.3; }
.pin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); box-shadow: 0 0 0 3px #000, 0 0 16px var(--acc-glow); }
.pin.end { background: #fff; color: #000; }
.pin svg.i { width: 16px; height: 16px; stroke-width: 2.4; }
.town { white-space: nowrap; font: 700 10.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 241, 238, .78); text-shadow: 0 1px 4px #000, 0 0 2px #000; }

/* alerts */
.alert { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; padding: calc(var(--sat) + 22px) 20px calc(var(--sab) + 20px); background: radial-gradient(circle at 50% 22%, #7a1610, #1a0302 68%, #000); animation: alin .35s cubic-bezier(.16, 1, .3, 1); max-width: 560px; margin: 0 auto; overflow-y: auto; }
.alert.crash { background: radial-gradient(circle at 50% 22%, #2a2c2d, #0a0a0b 70%); }
@keyframes alin { from { opacity: 0; transform: scale(1.05); } }
.alert .big-ic { width: 84px; height: 84px; border-radius: 50%; margin: 6px auto 0; display: grid; place-items: center; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 0 40px rgba(255, 69, 58, .5); }
.alert .big-ic svg.i { width: 42px; height: 42px; }
.alert h1 { font-size: 2.3em; text-align: center; margin: 12px 0 6px; }
.alert .ring2 { width: 156px; height: 156px; margin: 16px auto; border-radius: 50%; display: grid; place-items: center; font-family: var(--disp); font-size: 4.2em; font-stretch: 115%; background: radial-gradient(circle at 35% 30%, #2b2e30, #0b0c0d); box-shadow: 0 0 0 6px rgba(241, 241, 238, .85), 0 20px 50px -10px #000; }
.alert .info { background: rgba(0, 0, 0, .32); border-radius: 18px; padding: 14px; margin: 12px 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.alert .btn { margin-top: 10px; min-height: 64px; font-size: 1.16em; }

/* ride summary */
.wrap { position: fixed; inset: 0; z-index: 85; background: #000; display: flex; flex-direction: column; overflow-y: auto; max-width: 560px; margin: 0 auto; }
.wrap .fly { position: relative; height: 46vh; min-height: 260px; flex: none; }
.wrap .fly::after { content: ''; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, #000); pointer-events: none; z-index: 2; }
.wrap .body { padding: 0 20px calc(var(--sab) + 20px); margin-top: -70px; position: relative; z-index: 3; display: flex; flex-direction: column; flex: 1; }
.wrap .bigstat { font-family: var(--disp); font-size: 5.2em; font-weight: 800; line-height: 1; text-align: center; font-stretch: 118%; color: var(--ink); text-shadow: 0 0 40px var(--acc-glow); }
canvas.confetti { position: fixed; inset: 0; z-index: 99; pointer-events: none; width: 100%; height: 100%; }

/* onboarding */
.ob { position: fixed; inset: 0; z-index: 70; background: #000; display: flex; flex-direction: column; padding: calc(var(--sat) + 24px) 22px calc(var(--sab) + 22px); overflow-y: auto; max-width: 560px; margin: 0 auto; }
.ob .bgart { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .8; z-index: 0; pointer-events: none; }
.ob .bgart::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .3) 30%, rgba(0, 0, 0, .55) 58%, #000 82%); }
.ob > *:not(.bgart) { position: relative; z-index: 1; }
.ob .logo { width: 96px; height: 96px; margin: 18px auto 14px; border-radius: 26px; box-shadow: 0 24px 60px -16px var(--acc-glow); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotateX(8deg) rotateY(-6deg); } }
.ob h1 { text-align: center; font-size: 2.6em; font-stretch: 118%; letter-spacing: -.02em; }
.ob p.lead { text-align: center; color: var(--mut); font-size: 1.1em; margin: 8px auto 24px; max-width: 26em; }
.ob .steps { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.ob .steps i { width: 26px; height: 5px; border-radius: 9px; background: var(--ln2); }
.ob .steps i.on { background: var(--acc); box-shadow: 0 0 10px var(--acc-glow); }
.ob .sp { flex: 1; min-height: 16px; }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.langs button, .sizes button { min-height: 80px; border-radius: 20px; background: rgba(20, 22, 23, .86); box-shadow: 0 0 0 1.5px var(--ln2) inset; font-size: 1.32em; font-weight: 700; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: all .2s; }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sizes button { font-size: 1em; min-height: 74px; }
.langs button.on, .sizes button.on { box-shadow: 0 0 0 2px var(--acc) inset, 0 12px 26px -14px var(--acc-glow); background: rgba(10, 40, 35, .9); }

.demo-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-ctl button { padding: 9px 12px; border-radius: 12px; font-size: .8em; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.demo-ctl svg.i { width: 15px; height: 15px; color: var(--acc); }
.callgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.callbtn { border-radius: 24px; padding: 16px; min-height: 124px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--ink); font-weight: 650; position: relative; overflow: hidden; }
.callbtn b { font-family: var(--disp); font-size: 2.7em; line-height: 1; font-stretch: 115%; }
.callbtn.c1 { background: linear-gradient(180deg, #ff6b62, #ff453a 50%, #c91f15); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 18px 34px -18px rgba(255, 69, 58, .8); }
.callbtn.c2 { background: linear-gradient(180deg, #fff, #e3e4e0); color: #0b0c0d; box-shadow: 0 1px 0 #fff inset, 0 18px 34px -18px rgba(0, 0, 0, .9); }
.callbtn.c3 { background: linear-gradient(180deg, #17191a, #0f1011); box-shadow: var(--depth); }
.medid { background: linear-gradient(160deg, #141617, #0b0c0d); box-shadow: var(--lift); }
.medid .bl { font-family: var(--disp); font-size: 2.3em; color: var(--red); font-stretch: 112%; }
.near { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.near a { text-align: center; padding: 12px 4px; text-decoration: none; color: var(--ink); border-radius: 18px; background: linear-gradient(180deg, #17191a, #0f1011); box-shadow: var(--depth); }
.near a svg.i { color: var(--acc); }
.near a span { display: block; margin-top: 6px; font-size: .68em; color: var(--mut); }
@media (min-width: 561px) { #app, #live { box-shadow: 0 0 0 1px var(--ln); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .tilt { transform: none !important; } }

/* ---------- additions: start screen, badge pop, map pickers, small pieces ---------- */
.boot { position: absolute; inset: 0; display: grid; place-items: center; }
.boot img { border-radius: 26px; box-shadow: 0 24px 60px -16px var(--acc-glow); animation: float 6s ease-in-out infinite; }
.chip svg.i { width: 1.1em; height: 1.1em; }
.tag .live-dot { width: 7px; height: 7px; }
.tag svg.i { width: 1.15em; height: 1.15em; }
.toast .ti svg.i { width: 20px; height: 20px; }
.sheet .sx { position: absolute; right: 14px; top: 14px; z-index: 3; }
.steps-ol { margin: 0; padding-left: 1.3em; line-height: 1.65; }
.steps-ol li { padding-left: 4px; margin: 2px 0; }
.steps-ol li::marker { color: var(--acc); font-family: var(--disp); font-weight: 700; }
.mini-map { height: 220px; border-radius: 22px; overflow: hidden; margin: 2px 0 14px; background: #050606; box-shadow: var(--depth); position: relative; }
.mm-none { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--mut); text-align: center; padding: 24px; font-size: .9em; }
.mm-none svg.i { width: 40px; height: 40px; color: var(--dim); }
.mkw, .hzw { cursor: pointer; }
.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { z-index: 1; }
.maplibregl-ctrl-attrib.maplibregl-compact { min-height: 22px; }
#live .maplibregl-ctrl-bottom-right { bottom: auto; top: calc(var(--sat) + 4px); right: 4px; opacity: .7; }

/* map style picker */
.mstyles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.mstyles button { border-radius: 18px; padding: 8px 8px 10px; background: var(--s2); box-shadow: 0 0 0 1.5px var(--ln) inset; font-weight: 650; font-size: .9em; color: var(--mut); transition: all .2s; }
.mstyles button.on { box-shadow: 0 0 0 2px var(--acc) inset, 0 12px 24px -14px var(--acc-glow); color: var(--ink); }
.mstyles .pv { display: block; height: 70px; border-radius: 12px; margin-bottom: 8px; position: relative; overflow: hidden; }
.pv.terrain { background: radial-gradient(circle at 70% 30%, #1d2625, #070808 70%); }
.pv.sat { background: radial-gradient(circle at 30% 30%, #4d5939, #26301f 55%, #141912); }
.pv.day { background: linear-gradient(135deg, #f3efe6, #e4e0d3 55%, #cfe2e8); }
.pv::before { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 65% 40%, transparent 0 9px, rgba(241, 241, 238, .08) 9px 10px); }
.pv.day::before { background: repeating-radial-gradient(circle at 65% 40%, transparent 0 9px, rgba(0, 0, 0, .07) 9px 10px); }
.pv::after { content: ''; position: absolute; left: 10%; right: 12%; top: 56%; height: 3px; border-radius: 3px; background: var(--acc); box-shadow: 0 0 8px var(--acc-glow); transform: rotate(-14deg); }

/* a new badge spins in */
.bpop { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, rgba(47, 227, 200, .22), rgba(0, 0, 0, .88) 62%); animation: alin .35s cubic-bezier(.16, 1, .3, 1); perspective: 900px; cursor: pointer; }
.bpop.out { opacity: 0; transition: opacity .3s; }
.bpop .bp-in { text-align: center; padding: 24px; max-width: 340px; }
.bpop img { width: 230px; height: 230px; object-fit: contain; display: block; margin: 12px auto 6px; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .9)) drop-shadow(0 0 40px rgba(47, 227, 200, .35)); animation: bspin 1.1s cubic-bezier(.16, 1, .3, 1), bob 5s ease-in-out 1.1s infinite; }
@keyframes bspin { from { transform: rotateY(-220deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.bpop h2 { font-size: 1.85em; margin: 4px 0 6px; }
.bpop p { margin: 0 0 16px; }
@media (prefers-reduced-motion: reduce) { .bpop img { animation: none; } }

/* live map: keep markers under the sheet, tidy the pack, credits above the sheet */
#map { z-index: 0; }
.mkw .mk { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.mkw.nolbl .mk { transform: scale(.72); }
.mkw.nolbl .nm, .mkw.nolbl .rb { display: none; }
#live .maplibregl-ctrl-bottom-right { top: auto; bottom: var(--lvsh, 300px); right: 0; opacity: 1; }
#live .maplibregl-ctrl-bottom-left { bottom: var(--lvsh, 300px); }
.wrap .fly .maplibregl-ctrl-bottom-right { bottom: auto; top: calc(var(--sat) + 6px); }
.demo-ctl { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px 2px; align-items: center; }
.demo-ctl::-webkit-scrollbar { display: none; }
.demo-ctl button { flex: none; white-space: nowrap; }
.demo-ctl .dl { flex: none; font-size: .7em; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); padding: 11px 10px; border-radius: 12px; background: rgba(12, 13, 14, .82); box-shadow: 0 0 0 1px var(--ln2) inset; }
#live .qa button { min-height: 68px; }
#live .sosbtn { min-height: 66px; font-size: 1.2em; }
.speedo div:first-child b { font-size: 2.8em; }
.alert .grid2 .btn { font-size: 1em; padding: 0 12px; }
