/* Rovro — black and the logo's orange (#B54212), and a white-and-orange Day look; the rider picks Auto, Day or Night and a colour theme in Me → Personalize.
   Colour is flat: depth comes from neutral shadows, bevels and tilt, and nothing glows. Red is kept for SOS and real problems only.
   Type: Unbounded (display, numbers, buttons), the style of the Rovro wordmark; Lexend (text), easy to read;
   Poppins carries Hindi in the same geometric style. */
:root {
  --r: 24px; --r2: 18px; --fs: 16px; --nav-h: 80px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --disp: 'Unbounded', 'Poppins', system-ui, sans-serif; --text: 'Lexend', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --acc: #B54212; --acc-ink: #fff; --acc-edge: #7a2d0c; --red-edge: #9c1b12;
  --lift-out: 0 30px 60px -24px rgba(0, 0, 0, .95);
  --logo-sh: drop-shadow(0 10px 16px rgba(0, 0, 0, .55));
  --nav-c: #000; --bg-rgb: 0, 0, 0; --sh-rgb: 14, 13, 12;
  --inv-bg: rgba(243, 240, 236, .97); --inv-ink: #0e0d0c; --inv-red: #c8261b;
  --map-bg: #050505; --icon-inv: invert(1);
}
/* dark colours: the whole app in dark mode, and the parts that stay dark in light mode (photo cards, alerts, the ID card, photos) */
:root, .hero, .alert, .idc, .lbox {
  --bg: #000; --s1: #0e0d0c; --s2: #171513; --s3: #211e1b;
  --card: linear-gradient(180deg, #141311, #0e0d0c);
  --raise: linear-gradient(180deg, #1d1b19, #131210); --raise-on: linear-gradient(180deg, #26231f, #1a1816); --edge: #050404;
  --ln: rgba(243, 240, 236, .08); --ln2: rgba(243, 240, 236, .15);
  --ink: #f3f0ec; --ink2: #d9d4ce; --mut: #a9a29b; --dim: #736c65;
  --acc-t: #E26A36; --acc-soft: rgba(181, 66, 18, .17); --acc-line: rgba(226, 106, 54, .55); --sel: rgba(48, 22, 10, .92);
  --red: #e5352b; --red-t: #ff7b72; --red-soft: rgba(229, 53, 43, .17);
  --hi: rgba(255, 255, 255, .06); --drop: rgba(0, 0, 0, .9); --inset: rgba(0, 0, 0, .5);
  --face: radial-gradient(circle at 32% 28%, #2e2a27, #121110 70%);
  --track: #2b2826; --glass: rgba(14, 13, 12, .84); --veil: rgba(0, 0, 0, .66);
  --sheet: linear-gradient(180deg, #181614, #0e0d0c 30%); --toast: rgba(24, 22, 20, .94);
  --depth: 0 1px 0 var(--hi) inset, 0 0 0 1px var(--ln), 0 18px 40px -22px var(--drop);
  --lift: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 0 0 1px var(--ln2), 0 30px 60px -24px var(--drop);
  color-scheme: dark;
}
.hero, .alert, .idc, .lbox { color: var(--ink); }
html.t-large { --fs: 19px; }
html.t-xl { --fs: 22px; }
html.hc { --mut: #dcd7d1; --dim: #b6afa8; --ln: rgba(243, 240, 236, .22); --s1: #141311; }
html.hc .hero, html.hc .alert, html.hc .idc, html.hc .lbox { --mut: #dcd7d1; --dim: #b6afa8; --ln: rgba(243, 240, 236, .22); }
/* light (Day): white and the same orange; shadows are warm grey, never coloured light.
   js/look-boot.js puts .light or .dark on <html> before the first paint: the rider's choice in Me → Personalize, or the phone's in Auto. */
html.light {
    --bg: #fff; --s1: #fff; --s2: #f3f1ee; --s3: #eae6e1;
    --card: linear-gradient(180deg, #fff, #fcfbf9);
    --raise: linear-gradient(180deg, #fff, #f4f1ed); --raise-on: #fff; --edge: #d8d2ca;
    --ln: rgba(30, 22, 15, .09); --ln2: rgba(30, 22, 15, .16);
    --ink: #17130f; --ink2: #3b352f; --mut: #625b54; --dim: #8b847c;
    --acc-t: #B54212; --acc-soft: rgba(181, 66, 18, .09); --acc-line: rgba(181, 66, 18, .45); --sel: rgba(255, 242, 235, .96);
    --red: #d42a1e; --red-t: #c8261b; --red-soft: rgba(212, 42, 30, .1);
    --hi: #fff; --drop: rgba(48, 30, 14, .26); --inset: rgba(48, 30, 14, .08);
    --face: radial-gradient(circle at 32% 28%, #fff, #e7e2dc 72%);
    --track: #ddd8d2; --glass: rgba(255, 255, 255, .9); --veil: rgba(28, 20, 12, .34);
    --sheet: linear-gradient(180deg, #fff, #f8f6f3 30%); --toast: rgba(255, 255, 255, .97);
    --depth: 0 0 0 1px var(--ln), 0 1px 2px rgba(48, 30, 14, .06), 0 12px 28px -16px var(--drop);
    --lift: 0 0 0 1px var(--ln), 0 2px 4px rgba(48, 30, 14, .06), 0 26px 50px -24px rgba(48, 30, 14, .4);
    --lift-out: 0 2px 4px rgba(48, 30, 14, .08), 0 26px 50px -24px rgba(48, 30, 14, .45);
    --logo-sh: drop-shadow(0 8px 12px rgba(48, 30, 14, .2));
    --nav-c: #fff; --bg-rgb: 255, 255, 255; --sh-rgb: 248, 246, 243;
    --inv-bg: rgba(28, 24, 20, .96); --inv-ink: #f3f0ec; --inv-red: #ff7b72;
    --map-bg: #ebe9e3; --icon-inv: none;
    color-scheme: light;
}
html.light.hc { --mut: #3d3731; --dim: #5a534c; --ln: rgba(30, 22, 15, .24); --s1: #fff; }
/* the wordmark is drawn light; on white it is shown in the logo's dark grey (#2B2B2A) */
html.light img[src$="rovro-word.svg"] { filter: brightness(.18); }
html.light .idc img[src$="rovro-word.svg"] { filter: none; }

/* colour themes (Me → Personalize → Colour): each swaps only the accent; Rovro orange above is the default.
   The first rule of each also covers the parts that stay dark in Day (photo cards, alerts, the ID card); the second is Day.
   Badges are drawn in orange and are turned to the theme's colour. Red is never a theme: it means SOS. */
:root { --badge-f: hue-rotate(0deg); }
html[data-theme="cobalt"], html[data-theme="cobalt"] :is(.hero, .alert, .idc, .lbox) { --acc: #1F5FC4; --acc-edge: #143F82; --acc-t: #5B9BFF; --acc-soft: rgba(31, 95, 196, .2); --acc-line: rgba(91, 155, 255, .55); --sel: rgba(10, 22, 48, .92); --badge-f: hue-rotate(196deg) saturate(1.05); }
html.light[data-theme="cobalt"] { --acc-t: #1F5FC4; --acc-soft: rgba(31, 95, 196, .09); --acc-line: rgba(31, 95, 196, .45); --sel: rgba(237, 243, 255, .96); }
html[data-theme="green"], html[data-theme="green"] :is(.hero, .alert, .idc, .lbox) { --acc: #1E7A4C; --acc-edge: #12502F; --acc-t: #43C58A; --acc-soft: rgba(30, 122, 76, .2); --acc-line: rgba(67, 197, 138, .55); --sel: rgba(8, 34, 21, .92); --badge-f: hue-rotate(128deg) saturate(.9); }
html.light[data-theme="green"] { --acc-t: #1E7A4C; --acc-soft: rgba(30, 122, 76, .09); --acc-line: rgba(30, 122, 76, .45); --sel: rgba(234, 247, 240, .96); }
html[data-theme="gold"], html[data-theme="gold"] :is(.hero, .alert, .idc, .lbox) { --acc: #9E6E12; --acc-edge: #6B4A0A; --acc-t: #E5B04A; --acc-soft: rgba(158, 110, 18, .2); --acc-line: rgba(229, 176, 74, .55); --sel: rgba(40, 28, 6, .92); --badge-f: hue-rotate(22deg) saturate(1.05); }
html.light[data-theme="gold"] { --acc-t: #8A5F0E; --acc-soft: rgba(158, 110, 18, .1); --acc-line: rgba(158, 110, 18, .45); --sel: rgba(252, 245, 230, .96); }
html[data-theme="teal"], html[data-theme="teal"] :is(.hero, .alert, .idc, .lbox) { --acc: #0E7C86; --acc-edge: #08525A; --acc-t: #3CC4CF; --acc-soft: rgba(14, 124, 134, .2); --acc-line: rgba(60, 196, 207, .55); --sel: rgba(5, 32, 35, .92); --badge-f: hue-rotate(166deg) saturate(.95); }
html.light[data-theme="teal"] { --acc-t: #0B6C75; --acc-soft: rgba(14, 124, 134, .09); --acc-line: rgba(14, 124, 134, .45); --sel: rgba(233, 247, 248, .96); }
html[data-theme="violet"], html[data-theme="violet"] :is(.hero, .alert, .idc, .lbox) { --acc: #6A3FC9; --acc-edge: #45288A; --acc-t: #A98BFF; --acc-soft: rgba(106, 63, 201, .22); --acc-line: rgba(169, 139, 255, .55); --sel: rgba(26, 14, 52, .92); --badge-f: hue-rotate(238deg) saturate(1.05); }
html.light[data-theme="violet"] { --acc-t: #6A3FC9; --acc-soft: rgba(106, 63, 201, .09); --acc-line: rgba(106, 63, 201, .45); --sel: rgba(242, 238, 255, .96); }
html[data-theme="olive"], html[data-theme="olive"] :is(.hero, .alert, .idc, .lbox) { --acc: #5E6B1E; --acc-edge: #3C4512; --acc-t: #AFC24A; --acc-soft: rgba(94, 107, 30, .22); --acc-line: rgba(175, 194, 74, .55); --sel: rgba(26, 30, 8, .92); --badge-f: hue-rotate(50deg) saturate(.85); }
html.light[data-theme="olive"] { --acc-t: #56621B; --acc-soft: rgba(94, 107, 30, .1); --acc-line: rgba(94, 107, 30, .45); --sel: rgba(244, 246, 232, .96); }
html[data-theme="graphite"], html[data-theme="graphite"] :is(.hero, .alert, .idc, .lbox) { --acc: #4A5563; --acc-edge: #2C333C; --acc-t: #C3CCD8; --acc-soft: rgba(195, 204, 216, .14); --acc-line: rgba(195, 204, 216, .5); --sel: rgba(24, 27, 32, .92); --badge-f: grayscale(1) contrast(1.1); }
html.light[data-theme="graphite"] { --acc-t: #3E4753; --acc-soft: rgba(74, 85, 99, .1); --acc-line: rgba(74, 85, 99, .45); --sel: rgba(240, 242, 245, .96); }
* { 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-t); }
.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; }
.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; filter: var(--logo-sh); }
.brand .wm { display: block; height: 19px; width: auto; margin: 2px 0 5px; }
.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-t); }
.chip.demo { background: var(--acc-soft); color: var(--acc-t); 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: var(--face); box-shadow: 0 0 0 1px var(--ln2) inset, 0 6px 14px -8px var(--drop); }
.avatar.me { background: var(--acc); color: var(--acc-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 -2px 0 rgba(0, 0, 0, .2) inset, 0 6px 14px -8px var(--drop); }
.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-t); 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-t); }
.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-t); font-weight: 600; font-size: .9em; }

/* ---------- cards with depth ---------- */
.card { background: var(--card); 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); }
.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(--acc); color: var(--acc-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 -3px 0 rgba(0, 0, 0, .16) inset, 0 4px 0 var(--acc-edge), 0 14px 24px -14px var(--drop); }
.btn.pri:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 -1px 0 rgba(0, 0, 0, .16) inset, 0 1px 0 var(--acc-edge), 0 6px 12px -8px var(--drop); }
.btn.sec2 { background: var(--raise); color: var(--ink); box-shadow: 0 1px 0 var(--hi) inset, 0 0 0 1px var(--ln2) inset, 0 3px 0 var(--edge), 0 10px 20px -14px var(--drop); }
.btn.sec2:active { box-shadow: 0 1px 0 var(--hi) inset, 0 0 0 1px var(--ln2) inset, 0 1px 0 var(--edge), 0 6px 12px -10px var(--drop); }
.btn.ghost { background: transparent; box-shadow: 0 0 0 1.5px var(--ln2) inset; color: var(--ink); }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 -3px 0 rgba(0, 0, 0, .16) inset, 0 4px 0 var(--red-edge), 0 14px 24px -14px var(--drop); }
.btn.white { background: linear-gradient(180deg, #fff, #eceae6); color: #141210; box-shadow: 0 1px 0 #fff inset, 0 -3px 0 rgba(0, 0, 0, .1) inset, 0 0 0 1px rgba(0, 0, 0, .06) inset, 0 4px 0 #cfc9c2, 0 12px 24px -14px var(--drop); }
.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(--acc); color: var(--acc-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 -4px 0 rgba(0, 0, 0, .14) inset, 0 5px 0 var(--acc-edge), 0 18px 30px -16px var(--drop); }
.bigbtn.alt { background: var(--raise); 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-t); box-shadow: 0 1px 0 var(--hi) inset; }

/* ---------- hero: next ride ---------- */
.hero { padding: 20px; border-radius: 28px; min-height: 250px; background: #0a0908; box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 0 0 1px rgba(243, 240, 236, .1) inset, var(--lift-out); 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: var(--s2); border-radius: 14px; padding: 8px 0 6px; min-width: 64px; text-align: center; box-shadow: 0 0 0 1px var(--ln) inset, 0 1px 0 var(--hi) inset; }
.hero .count div { background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); 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-t); animation: pulse 1.6s ease-in-out infinite; display: inline-block; }
.live-dot.red { background: var(--red); }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- level ring ---------- */
.level .ring { width: 74px; height: 74px; flex: none; position: relative; border-radius: 50%; background: var(--face); box-shadow: 0 10px 22px -12px var(--drop), 0 1px 0 var(--hi) inset, 0 0 0 1px var(--ln) inset; }
.level .ring svg { position: absolute; inset: 0; width: 74px; height: 74px; transform: rotate(-90deg); }
.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: var(--track); overflow: hidden; margin-top: 8px; box-shadow: 0 1px 2px var(--inset) inset; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--acc); box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset; 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-t) 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-t); 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: var(--raise); box-shadow: 0 1px 0 var(--hi) inset, 0 0 0 1px var(--ln) inset, 0 6px 14px -10px var(--drop); 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: var(--acc-soft); box-shadow: 0 0 0 1.5px var(--acc-t) inset, 0 10px 18px -12px var(--drop); color: var(--acc-t); 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: var(--s2); box-shadow: 0 0 0 1px var(--ln) inset, 0 1px 0 var(--hi) inset; overflow: hidden; }
.badge .b img { width: 92%; height: 92%; object-fit: contain; filter: grayscale(1); opacity: .32; transition: transform .5s cubic-bezier(.16, 1, .3, 1), filter .4s, opacity .4s; }
.badge.on { color: var(--ink); }
.badge.on .b { box-shadow: 0 0 0 1.5px var(--acc-line) inset, 0 1px 0 var(--hi) inset; }
.badge.on .b img { filter: var(--badge-f) drop-shadow(0 10px 12px var(--drop)); opacity: 1; 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: var(--raise); box-shadow: 0 1px 0 var(--hi) 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-t); 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-t); box-shadow: 0 0 0 1px var(--acc-line) inset; background: var(--acc-soft); }
.tag.live { color: var(--acc-t); background: var(--acc-soft); box-shadow: none; }
.seg { display: flex; background: var(--s2); 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: var(--raise-on); color: var(--ink); box-shadow: 0 1px 0 var(--hi) inset, 0 0 0 1px var(--ln) inset, 0 6px 14px -8px var(--drop); }
.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-t); box-shadow: 0 1px 0 var(--hi) inset; }
.stat { background: var(--card); 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 var(--inset) inset; padding: 0 16px; outline: none; font-size: 1.04em; }
.in:focus { box-shadow: 0 0 0 2px var(--acc-t) inset; }
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-t) inset; color: var(--acc-t); }
.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: var(--track); position: relative; flex: none; transition: background .25s; box-shadow: 0 1px 3px var(--inset) 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 1px 1px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .3); }
.toggle.on .sw { background: var(--acc); }
.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(var(--bg-rgb), .98) 62%, rgba(var(--bg-rgb), .84)); 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-t); }
nav.tabs .go .o { width: 72px; height: 72px; margin-top: -32px; border-radius: 50%; display: grid; place-items: center; color: var(--acc-ink); background: var(--acc); box-shadow: 0 0 0 6px var(--nav-c), 0 0 0 7px var(--ln2), 0 2px 0 rgba(255, 255, 255, .22) inset, 0 -5px 0 rgba(0, 0, 0, .2) inset, 0 14px 24px -10px var(--drop); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
nav.tabs .go .o svg.i { width: 32px; height: 32px; stroke-width: 2.3; }
svg.gl { flex: none; fill: currentColor; stroke: none; vertical-align: middle; }
nav.tabs .go .o svg.gl { width: var(--gw, 44px); height: var(--gh, 34px); }
nav.tabs .go .o[data-g="ride"] svg.gl { transform: translateX(-1px); }
nav.tabs .go:active .o { transform: scale(.93) translateY(2px); }
nav.tabs .go.live .o { background: var(--red); color: #fff; }
nav.tabs .go span:last-child { color: var(--ink); }
nav.tabs .sosb { color: var(--red-t); }

/* ---------- sheets ---------- */
.veil { position: fixed; inset: 0; background: var(--veil); 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: var(--sheet); border-radius: 30px 30px 0 0; box-shadow: 0 -1px 0 var(--ln2), 0 -30px 60px -20px var(--drop); 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: var(--toast); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--ln2) inset, 0 20px 40px -12px var(--drop); 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-t); }
.toast.warn { background: var(--inv-bg); color: var(--inv-ink); } .toast.warn .ti { background: rgba(128, 120, 112, .16); color: var(--inv-red); }
.toast.bad { background: var(--red); 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-t); text-shadow: 0 4px 0 var(--acc-edge); 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: var(--bg); max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; }
#map { position: absolute; inset: 0; background: var(--map-bg); }
.maplibregl-ctrl-attrib { background: rgba(var(--bg-rgb), .6) !important; color: var(--mut) !important; font-size: 10px !important; }
.maplibregl-ctrl-attrib a { color: var(--ink2) !important; }
.maplibregl-ctrl-attrib-button { filter: var(--icon-inv); }
.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: var(--glass); 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 var(--drop); }
.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: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1.5px var(--acc-line) inset, 0 16px 34px -18px var(--drop); }
.pack.ok .pi { background: var(--acc); color: var(--acc-ink); }
.pack.warn { background: var(--inv-bg); color: var(--inv-ink); }
.pack.warn .pi { background: var(--inv-ink); color: var(--inv-bg); }
.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-t); box-shadow: 0 0 0 1.5px var(--acc-line) inset, 0 16px 34px -18px var(--drop); }
.lv-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--sheet); border-radius: 28px 28px 0 0; box-shadow: 0 -1px 0 var(--ln2), 0 -26px 50px -20px var(--drop); 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-t); }
.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: var(--raise); box-shadow: 0 1px 0 var(--hi) inset, 0 0 0 1px var(--ln) inset, 0 8px 16px -12px var(--drop); 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-t); }
.qa button.hot { background: var(--acc-soft); box-shadow: 0 0 0 1.5px var(--acc-line) inset; }
.qa button:active { transform: scale(.95) translateY(1px); }
.sosbtn { position: relative; width: 100%; min-height: 76px; border-radius: 22px; margin: 10px 0 9px; background: var(--red); 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, .22) inset, 0 -4px 0 rgba(0, 0, 0, .16) inset, 0 5px 0 var(--red-edge), 0 16px 26px -14px var(--drop); 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-t) inset; color: var(--acc-t); }

/* 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: #f3f0ec; background: radial-gradient(circle at 34% 28%, #3a3633, #100f0e 72%); box-shadow: 0 0 0 2px rgba(243, 240, 236, .9), 0 6px 14px rgba(0, 0, 0, .6); }
.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-t); transform-origin: 6px 29px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .55)); }
.mk.me .dot { background: var(--acc); color: #fff; box-shadow: 0 0 0 3px #fff, 0 -3px 0 rgba(0, 0, 0, .18) inset, 0 6px 14px rgba(0, 0, 0, .6); }
.mk.lead .dot { box-shadow: 0 0 0 3px var(--acc), 0 6px 14px rgba(0, 0, 0, .6); }
.mk.off .dot { opacity: .45; }
.mk.warn .dot { box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0, 0, 0, .6); animation: mkw 1.4s infinite; }
@keyframes mkw { 50% { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 6px 14px rgba(0, 0, 0, .6); } }
.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 8px var(--red); } }
.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: var(--glass); color: var(--ink); box-shadow: 0 0 0 1px var(--ln2) inset, 0 4px 10px -4px var(--drop); display: flex; align-items: center; gap: 4px; }
.mk .nm svg.i { width: 12px; height: 12px; color: var(--acc-t); }
.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 6px 12px rgba(0, 0, 0, .5); }
.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 6px 12px rgba(0, 0, 0, .5); }
.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: #6f140e; animation: alin .35s cubic-bezier(.16, 1, .3, 1); max-width: 560px; margin: 0 auto; overflow-y: auto; }
.alert.crash { background: #151413; }
@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 1px 0 rgba(255, 255, 255, .16) inset, 0 14px 28px -14px rgba(0, 0, 0, .6); }
.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%, #2f2b28, #0e0d0c); box-shadow: 0 0 0 6px rgba(243, 240, 236, .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: var(--bg); 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(rgba(var(--bg-rgb), 0), var(--bg)); 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); }
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: var(--bg); 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, var(--bg) 0%, rgba(var(--bg-rgb), .3) 30%, rgba(var(--bg-rgb), .55) 58%, var(--bg) 82%); }
.ob > *:not(.bgart) { position: relative; z-index: 1; }
.ob .logo { width: 96px; height: 96px; margin: 18px auto 14px; filter: var(--logo-sh); 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); }
.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: var(--glass); 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-t) inset, 0 12px 24px -14px var(--drop); background: var(--sel); }

.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-t); }
.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: var(--red); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 -4px 0 rgba(0, 0, 0, .14) inset, 0 5px 0 var(--red-edge), 0 18px 30px -18px var(--drop); }
.callbtn.c2 { background: var(--inv-bg); color: var(--inv-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 -4px 0 rgba(0, 0, 0, .1) inset, 0 18px 30px -18px var(--drop); }
.callbtn.c3 { background: var(--raise); box-shadow: var(--depth); }
.medid { background: var(--card); 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: var(--raise); box-shadow: var(--depth); }
.near a svg.i { color: var(--acc-t); }
.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, .boot .boot-tile { filter: var(--logo-sh); animation: float 6s ease-in-out infinite; }
/* the logo while the app starts, in the rider's colour theme (set on <html> before the first paint) */
.boot .boot-tile { display: block; width: 96px; height: 96px; background: url(icons/rovro-tile.svg) center / contain no-repeat; }
html[data-theme="cobalt"] .boot-tile { background-image: url(icons/t/cobalt.svg); }
html[data-theme="green"] .boot-tile { background-image: url(icons/t/green.svg); }
html[data-theme="gold"] .boot-tile { background-image: url(icons/t/gold.svg); }
html[data-theme="teal"] .boot-tile { background-image: url(icons/t/teal.svg); }
html[data-theme="violet"] .boot-tile { background-image: url(icons/t/violet.svg); }
html[data-theme="olive"] .boot-tile { background-image: url(icons/t/olive.svg); }
html[data-theme="graphite"] .boot-tile { background-image: url(icons/t/graphite.svg); }
.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-t); font-family: var(--disp); font-weight: 700; }
.mini-map { height: 220px; border-radius: 22px; overflow: hidden; margin: 2px 0 14px; background: var(--map-bg); 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-t) inset; 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%, #26231f, #080707 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); transform: rotate(-14deg); }

/* a new badge spins in */
.bpop { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; background: rgba(var(--bg-rgb), .94); 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: var(--badge-f) drop-shadow(0 26px 30px var(--drop)); 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-t); padding: 11px 10px; border-radius: 12px; background: var(--glass); 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; }

/* =====================================================================
   Community: Rovro IDs, communities, posts, comments, photos
   ===================================================================== */
.avatar.ph { overflow: hidden; }
.avatar.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.ph b { font: inherit; }
.avatar.xl { width: 104px; height: 104px; font-size: 2.3em; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--ln2), 0 22px 40px -16px var(--drop); }
.idc .avatar.xl { width: 76px; height: 76px; font-size: 1.7em; box-shadow: 0 0 0 3px var(--acc), 0 14px 28px -12px #000; }
.cav { width: 52px; height: 52px; border-radius: 16px; flex: none; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--raise); box-shadow: 0 0 0 1px var(--ln2) inset, 0 1px 0 var(--hi) inset, 0 10px 22px -12px var(--drop); }
.cav b { font-family: var(--disp); font-weight: 800; color: var(--acc-t); font-size: 1.02em; font-stretch: 112%; }
.cav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cav.sm { width: 44px; height: 44px; border-radius: 14px; }
.cav.lg { width: 80px; height: 80px; border-radius: 24px; font-size: 1.3em; }
.cav.xl { width: 104px; height: 104px; border-radius: 30px; font-size: 1.7em; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--ln2), 0 26px 46px -16px var(--drop); }
.vf { width: 1.05em; height: 1.05em; color: var(--acc-t); flex: none; vertical-align: -.16em; }

/* sign in with Google */
.signcard { background: var(--card); box-shadow: var(--lift); margin-bottom: 12px; }
.sc-logo { width: 48px; height: 48px; flex: none; filter: var(--logo-sh); }
/* Google's button frame is see-through only when its surroundings say light (checked on the live site) */
.gbox { margin-top: 16px; min-height: 44px; display: flex; justify-content: center; color-scheme: light; }
.gbox iframe { margin: 0 auto !important; }
.gfake { min-height: 50px; border-radius: 99px; font-size: .98em; }
.gfake .g { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); color: #fff; display: grid; place-items: center; font: 800 15px/1 Arial, sans-serif; }
.ob-perks { padding: 8px 16px; }
.ob-perks .row { padding: 9px 0; font-weight: 600; }
.ob-perks .ic, .new-c .ic3 { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-t); flex: none; }
.ob .gbox.big { margin-top: 0; }

/* the Community tab */
.rchips { margin: -2px 0 12px; }
.compose-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--mut); padding: 14px 16px; margin-bottom: 12px; font-size: 1.02em; }
.compose-row .cr-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-t); flex: none; }
.crow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.crow h3 { font-size: 1.04em; min-width: 0; }
.crow .tag { flex: none; }
.search { position: relative; margin: 0 0 12px; }
.search > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; display: flex; }
.search .in { padding-left: 50px; }
.search .in::-webkit-search-cancel-button { filter: var(--icon-inv); }
.new-c { background: var(--card); }
.vis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vis button { text-align: left; padding: 14px; border-radius: 18px; background: var(--s2); box-shadow: 0 0 0 1.5px var(--ln) inset; transition: all .2s; }
.vis button b { display: flex; align-items: center; gap: 6px; }
.vis button b svg.i { width: 1.15em; height: 1.15em; color: var(--acc-t); }
.vis small { display: block; color: var(--mut); margin-top: 5px; font-size: .78em; line-height: 1.35; }
.vis button.on { box-shadow: 0 0 0 2px var(--acc-t) inset; background: var(--acc-soft); }

/* a post */
.post { padding: 16px 16px 6px; }
.post + .post, .compose-row + .post, .signcard + .post { margin-top: 12px; }
.pc-h { display: flex; align-items: center; gap: 12px; }
.pc-who { flex: none; border-radius: 50%; }
.pc-n { font-weight: 650; line-height: 1.25; }
.pc-n button { text-align: left; font-weight: inherit; }
.pc-s { margin-top: 3px; }
.pc-s button { color: var(--mut); font-weight: 600; }
.pc-s .vf { width: .95em; height: .95em; }
.pc-dots { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--mut); margin: -8px -8px 0 0; flex: none; }
.pc-b { margin: 12px 2px 6px; font-size: 1.04em; line-height: 1.5; overflow-wrap: anywhere; }
.pc-b.clip { max-height: 9.4em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.pc-b a, .cmt-b a, .cm-about a, .pf-bio a { color: var(--acc-t); text-decoration: none; }
.pc-more { color: var(--acc-t); font-weight: 650; margin: 0 2px 6px; }
.pc-lead, .pc-pin { margin: 14px 2px 10px; display: flex; align-items: center; gap: 8px; color: var(--acc-t); font-size: .72em; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.pc-pin { margin: -2px 0 10px; color: var(--mut); }
.pc-lead svg.i, .pc-pin svg.i { width: 16px; height: 16px; }
.pc-ride { display: flex; gap: 14px; padding: 12px; border-radius: 20px; background: var(--raise); box-shadow: 0 0 0 1px var(--ln) inset, 0 1px 0 var(--hi) inset, 0 12px 26px -18px var(--drop); margin: 0 0 8px; cursor: pointer; }
.pc-ride h3 { font-size: 1.08em; }
.pc-m { display: grid; gap: 3px; margin: 10px 0 4px; border-radius: 18px; overflow: hidden; background: var(--s3); }
.pc-m button { position: relative; overflow: hidden; background: var(--s2); display: block; min-height: 0; }
.pc-m img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.pc-m button:active img { transform: scale(1.03); }
.pc-m.n1 button { aspect-ratio: 4 / 3; }
.pc-m.n2, .pc-m.n4 { grid-template-columns: 1fr 1fr; }
.pc-m.n2 button, .pc-m.n4 button { aspect-ratio: 1; }
.pc-m.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3; }
.pc-m.n3 button:first-child { grid-row: span 2; }
.pc-m span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-family: var(--disp); font-size: 1.7em; font-weight: 800; }
.pc-f { display: flex; align-items: center; gap: 2px; margin: 8px -6px 0; border-top: 1px solid var(--ln); padding-top: 4px; }
.pc-f button { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 12px; border-radius: 14px; color: var(--mut); font-weight: 650; font-variant-numeric: tabular-nums; }
.pc-f button svg.i { width: 25px; height: 25px; transition: transform .2s; }
.pc-f button:active svg.i { transform: scale(.88); }
.pc-like.on { color: var(--acc-t); }
.pc-like.on svg.i { fill: var(--acc-t); }
.pc-like.pop svg.i { animation: heart .55s cubic-bezier(.16, 1, .3, 1); }
@keyframes heart { 30% { transform: scale(1.4) rotate(-10deg); } 60% { transform: scale(.9); } 100% { transform: none; } }

/* comments */
.cmts { margin-top: 8px; }
.cmt { display: flex; gap: 10px; padding: 8px 2px; align-items: flex-start; }
.cmt-b { background: var(--s2); border-radius: 6px 18px 18px 18px; padding: 10px 14px; box-shadow: 0 0 0 1px var(--ln) inset; line-height: 1.45; overflow-wrap: anywhere; }
.cmt-b button b { font-weight: 700; }
.cmt-s { margin: 5px 0 0 8px; }
.cmt-s button { color: var(--mut); font-weight: 600; font-size: inherit; }
.cmt-s button.sure { color: var(--red-t); }
.cbar { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: flex-end; padding: 14px 0 4px; background: linear-gradient(180deg, rgba(var(--sh-rgb), 0), rgb(var(--sh-rgb)) 26%); margin-top: 6px; z-index: 2; }
.cbar textarea.in { min-height: 52px; padding: 14px 18px; resize: none; border-radius: 26px; line-height: 1.35; }
.cbar .btn { min-height: 52px; width: 52px; padding: 0; border-radius: 50%; flex: none; }

/* writing a post */
.cp-to { margin-bottom: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
.cp-to::-webkit-scrollbar { display: none; }
.cp-to button { flex: none; }
.cp-t { min-height: 130px; font-size: 1.1em; line-height: 1.45; }
.cp-ph { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.cp-ph:empty { display: none; }
.cp-ph div { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--ln2) inset; }
.cp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-ph button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .72); color: #fff; display: grid; place-items: center; }
.cp-ph button svg.i { width: 16px; height: 16px; }
.cp-add { cursor: pointer; }
.cp-add input, .ec-cover input, .ec-av input { display: none; }

/* photos, full screen */
.lbox { position: fixed; inset: 0; z-index: 97; background: #000; opacity: 0; transition: opacity .25s; }
.lbox.on { opacity: 1; }
.lb-s { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb-s::-webkit-scrollbar { display: none; }
.lb-s > div { flex: none; width: 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; }
.lb-s img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-x { position: absolute; top: calc(var(--sat) + 12px); right: 12px; z-index: 2; }
.lb-n { position: absolute; bottom: calc(var(--sab) + 20px); left: 50%; transform: translateX(-50%); padding: 7px 15px; border-radius: 99px; background: rgba(20, 22, 23, .82); font-weight: 650; font-size: .9em; font-variant-numeric: tabular-nums; }

/* full-screen pages: a community, a rider */
.page { position: fixed; inset: 0; z-index: 30; background: var(--bg); max-width: 560px; margin: 0 auto; transform: translateX(104%); transition: transform .4s cubic-bezier(.16, 1, .3, 1); display: flex; flex-direction: column; box-shadow: -24px 0 60px var(--drop); }
.page.on { transform: none; }
.pg-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: calc(var(--sat) + 10px) 12px 10px; transition: background .3s, box-shadow .3s; pointer-events: none; }
.pg-bar > * { pointer-events: auto; }
.page.scrolled .pg-bar { background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--ln); }
.pg-t { flex: 1; min-width: 0; font-family: var(--disp); font-weight: 700; font-size: 1.1em; font-stretch: 108%; opacity: 0; transition: opacity .25s; }
.page.scrolled .pg-t { opacity: 1; }
.pg-sc { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 18px calc(var(--sab) + 44px); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; perspective: 1200px; }
.pg-sc::-webkit-scrollbar { display: none; }
.x.glass { background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--ln2) inset; }
.sk { background: linear-gradient(90deg, var(--s2) 0%, var(--s3) 50%, var(--s2) 100%) !important; background-size: 200% 100% !important; animation: sk 1.2s linear infinite; }
.sk-l { height: 14px; border-radius: 7px; margin: 12px auto 0; background: var(--s2); }
@keyframes sk { to { background-position: -200% 0; } }

/* a community's page */
.cm-cover { height: 230px; margin: 0 -18px; background: var(--s3) center 40% / cover no-repeat; position: relative; }
.cm-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 32%, rgba(var(--bg-rgb), .35) 62%, var(--bg) 100%); }
.cm-head { position: relative; margin-top: -62px; text-align: center; display: flex; flex-direction: column; align-items: center; z-index: 1; }
.cm-head h1 { font-size: 1.72em; margin-top: 14px; line-height: 1.12; }
.cm-head h1 .vf { width: .78em; height: .78em; vertical-align: -.06em; }
.cm-meta { margin-top: 7px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; font-size: .92em; }
.cm-meta svg.i { width: 1.05em; height: 1.05em; }
.cm-about { margin: 12px 0 0; line-height: 1.5; max-width: 34em; color: var(--ink2); }
.cm-faces { margin-top: 14px; justify-content: center; gap: 10px; }
.cm-acts { display: flex; gap: 10px; margin-top: 18px; width: 100%; }
.cm-acts .btn { flex: 1; }
.cm-acts .btn.sq { flex: none; width: 58px; padding: 0; }
.cm-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.cm-links .chip { text-decoration: none; color: var(--ink); }
.cm-links .chip svg.i { color: var(--acc-t); }
.cm-sync { margin: 14px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.cm-sync svg.i { width: 1.1em; height: 1.1em; color: var(--acc-t); }
.cm-seg { margin: 22px 0 14px; position: sticky; top: calc(var(--sat) + 64px); z-index: 5; box-shadow: 0 0 0 1px var(--ln) inset, 0 14px 30px -10px var(--drop); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.join-c { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; background: var(--card); }
.tba .ic { color: var(--acc-t); }
.route-c { margin-bottom: 12px; }
p.notes { white-space: pre-line; }

/* community settings */
.ec-pics { position: relative; margin-bottom: 56px; }
.ec-cover { height: 140px; border-radius: 20px; background: var(--s3) center / cover no-repeat; position: relative; box-shadow: var(--depth); }
.ec-cover label { position: absolute; right: 10px; bottom: 10px; cursor: pointer; }
.ec-av { position: absolute; left: 16px; bottom: -42px; cursor: pointer; }
.ec-av .chip { position: absolute; right: -10px; bottom: -6px; padding: 7px; z-index: 2; }

/* a rider's page */
.pf-head { text-align: center; padding-top: calc(var(--sat) + 72px); display: flex; flex-direction: column; align-items: center; }
.pf-av { border-radius: 50%; }
.pf-head h1 { font-size: 1.85em; margin-top: 16px; }
.pf-h { color: var(--acc-t); font-family: var(--disp); font-weight: 700; margin: 5px 0 3px; font-size: 1.08em; }
.pf-bio { margin: 12px 0 0; max-width: 30em; line-height: 1.5; }
.pf-cs .pf-c { width: 126px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 22px; background: var(--card); box-shadow: var(--depth); font-size: .82em; font-weight: 650; text-align: center; }
.pf-cs .pf-c span { max-width: 100%; }

/* the Rovro ID card */
.idc { position: relative; border-radius: 26px; padding: 18px 18px 16px; min-height: 214px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, #1e1c1a 0%, #0f0e0d 55%, #060606 100%);
  box-shadow: 0 0 0 1px rgba(243, 240, 236, .12) inset, 0 1px 0 rgba(255, 255, 255, .12) inset, 0 -6px 0 var(--acc) inset, var(--lift-out); }
.idc::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-radial-gradient(circle at 85% 125%, transparent 0 15px, rgba(241, 241, 238, .055) 15px 16px); }
.idc-sheen { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .05) 50%, transparent 62%); background-size: 280% 100%; background-position: var(--mx, 50%) 0; }
.idc-top { display: flex; align-items: center; gap: 10px; }
.idc-top > img { width: 36px; height: 36px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.idc-brand .wm { display: block; height: 15px; width: auto; }
.idc-top .sp { flex: 1; }
.idc-brand { font-family: var(--disp); font-weight: 800; font-size: 1.12em; line-height: 1; font-stretch: 112%; }
.idc-brand small { display: block; font-size: .56em; letter-spacing: .26em; text-transform: uppercase; color: var(--acc-t); margin-top: 4px; font-weight: 700; }
.idc-rank { font-size: .72em; font-weight: 700; color: var(--acc-t); padding: 5px 10px; border-radius: 99px; background: var(--acc-soft); box-shadow: 0 0 0 1px var(--acc-line) inset; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.idc-rank svg.i { width: 14px; height: 14px; }
.idc-mid { display: flex; align-items: center; gap: 14px; margin: 14px 0 12px; }
.idc-name { font-family: var(--disp); font-weight: 800; font-size: 1.36em; font-stretch: 112%; line-height: 1.1; }
.idc-h { font-family: var(--disp); color: var(--acc-t); font-weight: 700; font-size: 1.06em; margin-top: 3px; overflow-wrap: anywhere; }
.idc-sub { color: var(--mut); font-size: .86em; margin-top: 3px; }
.idc-bot { display: flex; align-items: flex-end; gap: 16px; }
.idc-bot > div:not(.idc-qr) span { display: block; font-size: .6em; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); font-weight: 700; }
.idc-bot b { font-family: var(--disp); font-size: 1.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.idc-qr { margin-left: auto; width: 66px; height: 66px; padding: 5px; border-radius: 11px; background: #f1f1ee; flex: none; box-shadow: 0 8px 20px -8px #000; }
.idc-qr svg { width: 100%; height: 100%; display: block; }
.hin { position: relative; }
.hin b { position: absolute; left: 17px; top: 50%; transform: translateY(-52%); color: var(--acc-t); font-family: var(--disp); font-size: 1.25em; pointer-events: none; }
.hin .in { padding-left: 42px; font-family: var(--disp); font-weight: 650; letter-spacing: .01em; }
.hmsg { min-height: 22px; margin: -4px 2px 12px; font-size: .9em; color: var(--mut); display: flex; align-items: center; gap: 6px; }
.hmsg svg.i { width: 1.1em; height: 1.1em; }
.hmsg.ok { color: var(--acc-t); font-weight: 650; }
.hmsg.no { color: var(--ink); font-weight: 650; }
label.f .hmsg { margin-top: 8px; }

/* Me */
.me-h { color: var(--acc-t); font-family: var(--disp); font-weight: 700; margin: 5px 0 4px; font-size: 1.04em; }
.acct { background: var(--card); }
.list.menu > button, .list.menu > div { min-height: 64px; }
.rep p { overflow-wrap: anywhere; }
@media (max-width: 360px) { .idc { padding: 14px; } .idc-qr { width: 56px; height: 56px; } .idc .avatar.xl { width: 64px; height: 64px; } .cm-acts .btn { padding: 0 12px; } }

/* the app frame never scrolls sideways */
#app { overflow: clip; }
/* two buttons side by side keep their labels on one line where they can */
.grid2 > .btn { padding: 0 12px; gap: 8px; line-height: 1.15; text-align: center; }
.grid2 > .btn:not(.sm) { font-size: .98em; }
.grid2 > .btn svg.i { flex: none; }
/* a long community name keeps its verified tick beside it */
.pc-h .grow { min-width: 0; }
.pc-n > button[data-act=openC] { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.pc-n > button[data-act=openC] b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pc-n > button[data-act=openC] .vf { flex: none; }
/* Devanagari letters join up; spacing them apart breaks the words */
html[lang=hi] body, html[lang=hi] body * { letter-spacing: 0 !important; }
/* the community page's faces sit on the page colour, and their initials stay readable */
.cm-faces .stack .avatar { margin-left: -6px; font-size: .64em; box-shadow: 0 0 0 2.5px var(--bg); }
.cm-faces .stack .avatar:first-child { margin-left: 0; }

/* voice picker */
.vpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vpick button { min-height: 64px; border-radius: 18px; background: var(--s2); box-shadow: 0 0 0 1.5px var(--ln2) inset; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 14px; text-align: left; transition: all .2s; }
.vpick button b { font-family: var(--disp); font-size: 1.05em; }
.vpick button small { color: var(--mut); font-size: .8em; line-height: 1.25; }
.vpick button.on { box-shadow: 0 0 0 2px var(--acc-t) inset; background: var(--acc-soft); }
.vpick button:last-child:nth-child(odd) { grid-column: span 2; }

/* Unbounded, the logo's typeface, runs wide: buttons and big numbers are set to fit */
.btn { font-size: .96em; letter-spacing: 0; }
.btn.sm { font-size: .84em; }
.grid2 > .btn:not(.sm) { font-size: .9em; }
.callbtn b.ph { font-family: var(--text); font-weight: 700; font-size: 1.15em; letter-spacing: 0; white-space: nowrap; }
.ob h1.wmh { margin: 4px 0 2px; line-height: 1; }
.ob h1.wmh img { height: .78em; width: auto; display: inline-block; }

/* the default pictures: the road at night in dark mode, the same road by day in light mode.
   The next-ride card shows the same road at night in dark mode and at sunrise in light mode (Pulak, 19 Nov). */
.art-wide { background-image: url(art/hero-wide.webp?v=2); }
.art-tall { background-image: url(art/hero-tall.webp?v=2); }
.art-hero { background-image: url(art/hero-wide.webp?v=2); }
html.light .art-wide { background-image: url(art/hero-wide-day.webp); }
html.light .art-tall { background-image: url(art/hero-tall-day.webp); }
html.light .art-hero { background-image: url(art/hero-wide-morning.webp); }
/* the morning photo at full strength with the sun in view; a softer shade that still keeps the white text readable */
html.light .hero .art.art-hero { opacity: 1; background-position: 30% 38%; }
html.light .hero .art.art-hero::after { background: linear-gradient(180deg, rgba(10, 8, 6, .02) 0%, rgba(10, 8, 6, .3) 36%, rgba(10, 8, 6, .64) 68%, rgba(10, 8, 6, .9) 100%); }
html.light .hero:has(.art-hero) h2, html.light .hero:has(.art-hero) .eyebrow, html.light .hero:has(.art-hero) .meta, html.light .hero:has(.art-hero) > p { text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
html.light .hero:has(.art-hero) .tag { background: rgba(10, 8, 6, .42); color: #e9e4de; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- navigation: search, routes on the 3D map, turn-by-turn ---------- */
#nav { position: fixed; inset: 0; z-index: 45; max-width: 560px; margin: 0 auto; background: var(--map-bg); overflow: hidden; --nsh: 0px; }
#nvMap { position: absolute; inset: 0; background: var(--map-bg); }
#nav .maplibregl-ctrl-bottom-left { bottom: var(--nsh); transition: bottom .3s; }
.n-top { position: absolute; left: 10px; right: 10px; top: calc(var(--sat) + 10px); z-index: 7; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.n-top > * { pointer-events: auto; }
.n-search { display: flex; align-items: center; gap: 4px; border-radius: 20px; padding: 5px; }
.n-search input { flex: 1; min-width: 0; height: 46px; background: none; border: 0; outline: none; font-size: 1.05em; padding: 0 6px; color: var(--ink); }
.n-search input::placeholder { color: var(--mut); }
.n-search input::-webkit-search-cancel-button { display: none; }
.n-search .x, .n-to .x { background: transparent; box-shadow: none; flex: none; }
.n-to { display: flex; align-items: center; gap: 6px; border-radius: 20px; padding: 6px 14px 6px 5px; min-height: 58px; }
.n-to small { display: block; color: var(--mut); font-size: .76em; }
.n-to b { display: block; font-family: var(--disp); font-size: 1.02em; font-stretch: 108%; }
.n-cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -10px; padding: 0 10px 6px; scrollbar-width: none; }
.n-cats::-webkit-scrollbar { display: none; }
.n-cats button { flex: none; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 11px; border-radius: 99px; font-weight: 650; font-size: .88em; }
.n-cats button svg.i { width: 18px; height: 18px; color: var(--acc-t); }
.n-cats button.on { box-shadow: 0 0 0 2px var(--acc-t) inset, 0 16px 34px -18px var(--drop); color: var(--acc-t); }
.n-res { border-radius: 20px; overflow-y: auto; padding: 2px 12px; overscroll-behavior: contain; }
.n-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 2px; border-bottom: 1px solid var(--ln); min-height: 58px; color: inherit; text-decoration: none; }
.n-row:last-child { border-bottom: 0; }
.n-row .ic { width: 40px; height: 40px; border-radius: 13px; background: var(--s2); display: grid; place-items: center; flex: none; color: var(--acc-t); box-shadow: 0 1px 0 var(--hi) inset; }
.n-row b { display: block; font-weight: 650; }
.n-row small { display: block; color: var(--mut); font-size: .8em; margin-top: 1px; }
.n-msg { padding: 16px 4px; color: var(--mut); display: flex; align-items: center; }
.n-dk { text-align: right; font-family: var(--disp); font-size: .88em; font-weight: 700; color: var(--ink2); flex: none; white-space: nowrap; font-stretch: 108%; }
.n-dk small { display: block; font-family: var(--text); font-size: .7em; color: var(--mut); font-weight: 500; font-stretch: 100%; }
.spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid var(--ln2); border-top-color: var(--acc-t); display: inline-block; vertical-align: -4px; margin-right: 10px; animation: nspin .8s linear infinite; }
@keyframes nspin { to { transform: rotate(360deg); } }
#nav .n-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--sheet); border-radius: 28px 28px 0 0; box-shadow: 0 -1px 0 var(--ln2), 0 -26px 50px -20px var(--drop); display: flex; flex-direction: column; max-height: 64%; }
#nav[data-mode=browse] .n-sheet, #nav[data-mode=list] .n-sheet { max-height: 50%; }
.n-sheet .grab { width: 120px; height: 24px; margin: 0 auto; flex: none; display: grid; place-items: center; cursor: grab; }
.n-sheet .grab::before { content: ''; width: 48px; height: 5px; border-radius: 9px; background: var(--ln2); }
.n-sheet .sc { overflow-y: auto; padding: 2px 16px calc(16px + var(--sab)); overscroll-behavior: contain; }
.n-sheet.mini .sc { max-height: 112px; overflow: hidden; }
.n-hd { display: flex; align-items: flex-start; gap: 12px; margin: 2px 0 10px; }
.n-hd h2 { font-size: 1.24em; line-height: 1.15; }
.n-pic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--acc-soft); color: var(--acc-t); }
.n-meta { margin: -2px 2px 12px; }
.n-acts { margin-top: 10px; }
.n-acts .btn { padding: 0 6px; font-size: .76em; gap: 6px; letter-spacing: 0; }
.n-acts .btn svg.i { width: 1.2em; height: 1.2em; }
.n-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 4px; }
.n-duo .bigbtn { min-height: 98px; padding: 14px; font-size: .98em; }
.n-duo .bigbtn .ic3 { width: 40px; height: 40px; border-radius: 12px; }
.n-live, .n-demo { width: 100%; text-align: left; margin-top: 14px; }
.n-demo .ic3 { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--acc-soft); color: var(--acc-t); }
.n-foot { margin: 14px 2px 2px; }
.n-hint { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 16px; background: var(--acc-soft); color: var(--acc-t); font-weight: 600; }
.n-hint .x { background: transparent; box-shadow: none; color: var(--acc-t); }
.n-empty { padding: 22px 6px; text-align: center; color: var(--mut); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.n-more { padding: 8px 2px; display: flex; align-items: center; }
.n-g { margin-top: 12px; }
.n-rt { display: block; width: 100%; text-align: left; padding: 14px 16px; border-radius: 18px; background: var(--raise); box-shadow: 0 1px 0 var(--hi) inset, 0 0 0 1px var(--ln) inset, 0 8px 18px -14px var(--drop); margin-bottom: 10px; transition: box-shadow .2s; }
.n-rt.on { box-shadow: 0 0 0 2px var(--acc-t) inset, 0 10px 22px -14px var(--drop); }
.n-rt .n-tm { font-size: 1.45em; font-weight: 700; }
.n-rt.on .n-tm { color: var(--acc-t); }
.n-rt .n-via { display: block; margin-top: 4px; }
#nav[data-mode=routes] .n-sheet { max-height: 58%; }
.n-opts { flex-wrap: nowrap; overflow-x: auto; margin: 2px -16px 12px; padding: 0 16px 2px; scrollbar-width: none; }
.n-opts::-webkit-scrollbar { display: none; }
.n-opts button { flex: none; min-height: 40px; font-size: .84em; padding: 0 12px; }
.n-stops { margin-bottom: 10px; }
.n-stops .ic b { font-family: var(--disp); }
.n-gogrp { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.n-gogrp.one { grid-template-columns: 1fr; }
.n-gogrp .btn { min-height: 60px; padding: 0 12px; }
.n-go { font-size: 1.12em; }
.n-gogrp .n-grp { font-size: .84em; }
.n-acts2 { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 6px; scrollbar-width: none; }
.n-acts2::-webkit-scrollbar { display: none; }
.n-acts2 .btn { flex: none; min-height: 44px; padding: 0 14px; font-size: .8em; letter-spacing: 0; gap: 7px; border-radius: 14px; }
.n-arr { text-align: center; padding: 8px 0 2px; }
.n-arr h2 { margin: 12px 0 4px; font-size: 1.5em; }
.n-ok { width: 66px; height: 66px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--acc); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 4px 0 var(--acc-edge), 0 14px 24px -14px var(--drop); }
.n-ok svg.i { width: 32px; height: 32px; }
.n-steps > div { align-items: center; }
.n-fabs { position: absolute; right: 10px; bottom: calc(var(--nsh) + 12px); z-index: 5; display: flex; flex-direction: column; gap: 10px; transition: bottom .3s cubic-bezier(.16, 1, .3, 1); }
.n-fabs .lv-fab b { font-family: var(--disp); font-size: 1em; letter-spacing: .02em; }
/* riding: the next turn on top, time and distance below */
.n-ban { position: absolute; left: 10px; right: 10px; top: calc(var(--sat) + 10px); z-index: 7; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 22px; background: var(--acc); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 -3px 0 rgba(0, 0, 0, .14) inset, 0 5px 0 var(--acc-edge), 0 18px 30px -16px rgba(0, 0, 0, .6); }
.n-ban .ar { width: 64px; height: 64px; border-radius: 17px; display: grid; place-items: center; flex: none; background: rgba(0, 0, 0, .16); box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset; }
.n-ban .ar svg.i { width: 42px; height: 42px; stroke-width: 2.4; }
.n-ban .d { display: block; font-size: 1.9em; font-weight: 800; line-height: 1; font-stretch: 112%; }
.n-ban .a { font-weight: 700; font-size: 1.04em; margin-top: 4px; line-height: 1.2; }
.n-ban .r { font-size: .9em; opacity: .9; margin-top: 2px; }
.n-then { position: absolute; left: 16px; top: calc(100% + 9px); display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 14px; border-radius: 14px; background: var(--acc-edge); color: #fff; font-weight: 700; font-size: .9em; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6); }
.n-then svg.i { width: 20px; height: 20px; stroke-width: 2.4; }
.n-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 12px 12px calc(12px + var(--sab)); background: var(--sheet); border-radius: 26px 26px 0 0; box-shadow: 0 -1px 0 var(--ln2), 0 -20px 40px -20px var(--drop); }
.n-eta b { display: block; font-size: 1.7em; font-weight: 800; line-height: 1; color: var(--acc-t); font-stretch: 112%; }
.n-eta small { display: block; color: var(--mut); margin-top: 4px; font-size: .86em; }
.n-spd { width: 60px; height: 60px; border-radius: 50%; display: grid; place-content: center; text-align: center; flex: none; background: var(--s2); box-shadow: 0 0 0 1.5px var(--ln2) inset, 0 3px 0 var(--edge); }
.n-spd b { font-size: 1.3em; line-height: 1; }
.n-spd small { font-size: .58em; color: var(--mut); letter-spacing: .06em; }
.n-end { color: var(--red-t); }
/* on the map: you, the places, the riders in your group */
.npuck { width: 48px; height: 48px; position: relative; pointer-events: none; }
.npuck b { position: absolute; inset: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px #fff, 0 3px 0 3px rgba(0, 0, 0, .25), 0 9px 16px rgba(0, 0, 0, .45); }
.npuck svg { position: absolute; left: 13px; top: 12px; width: 22px; height: 22px; fill: #fff; }
.npuck.drv { width: 62px; height: 62px; }
.npuck.drv b { inset: 8px; }
.npuck.drv svg { left: 17px; top: 15px; width: 28px; height: 28px; }
.npuck.nohd svg { display: none; }
.npuck.nohd b { inset: 14px; }
.npin { width: 40px; height: 48px; display: grid; justify-items: center; align-items: start; cursor: pointer; }
.npin > span { width: 36px; height: 36px; border-radius: 50% 50% 50% 5px; transform: rotate(-45deg); display: grid; place-items: center; background: var(--acc); color: #fff; box-shadow: 0 0 0 2.5px #fff, 0 7px 12px rgba(0, 0, 0, .4); }
.npin > span > * { transform: rotate(45deg); }
.npin svg.i { width: 18px; height: 18px; stroke-width: 2.3; }
.npin b { font-family: var(--disp); font-size: 15px; }
.npin.sm { width: 34px; height: 40px; }
.npin.sm > span { width: 30px; height: 30px; background: var(--s1); color: var(--acc-t); box-shadow: 0 0 0 2px var(--acc-t), 0 6px 10px rgba(0, 0, 0, .35); }
.npin.sm svg.i { width: 16px; height: 16px; }
.npin.sel > span { width: 42px; height: 42px; }
.npin.end > span { background: #fff; color: #111; box-shadow: 0 0 0 2.5px #111, 0 7px 12px rgba(0, 0, 0, .4); }
.npin.stop > span { background: #2b2b2a; color: #fff; }
.npin.done { opacity: .45; }
.nmk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--disp); font-weight: 800; font-size: 11px; color: #f3f0ec; background: #2b2826; box-shadow: 0 0 0 2.5px #fff, 0 4px 8px rgba(0, 0, 0, .45); }
.nmk.sos { background: var(--red); }
/* Home: where to? */
.n-where { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 0 9px 0 16px; margin: -4px 0 16px; border-radius: 20px; background: var(--raise); box-shadow: var(--depth); text-align: left; }
.n-where > svg.i { color: var(--acc-t); width: 24px; height: 24px; }
.n-where b { display: block; font-family: var(--disp); font-weight: 700; font-size: 1.02em; font-stretch: 108%; }
.n-where small { display: block; color: var(--mut); font-size: .78em; margin-top: 1px; }
.n-where .go { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--acc); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 3px 0 var(--acc-edge); }
.n-where:active { transform: scale(.99); }

/* ---------- Me → Personalize: Day or Night, colour, Ride button, Home screen, text and map ---------- */
.pz { padding-top: calc(var(--sat) + 62px); }
.pz-t { font-size: 2em; margin: 0; }
.pz-h { margin: 30px 2px 12px; }
.pz-h h2 { font-size: .8em; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); font-family: var(--text); font-weight: 650; font-stretch: 100%; margin: 0; }
.pz-h p { margin: 6px 0 0; }
.pz-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pz-mode { border-radius: 20px; padding: 8px 8px 12px; background: var(--s2); box-shadow: 0 0 0 1.5px var(--ln) inset; text-align: center; transition: box-shadow .2s, background .2s; }
.pz-mode.on { box-shadow: 0 0 0 2px var(--acc-t) inset, 0 12px 24px -16px var(--drop); background: var(--sel); }
.pz-mode b { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: .95em; margin-top: 9px; }
.pz-mode b svg.i { width: 1.1em; height: 1.1em; color: var(--acc-t); }
.pz-mode small { display: block; color: var(--mut); font-size: .74em; margin-top: 2px; line-height: 1.25; }
.pz-pv { display: grid; gap: 6px; padding: 11px 10px; height: 76px; border-radius: 14px; align-content: start; }
.pz-pv i { display: block; height: 9px; border-radius: 5px; }
.pz-pv i:first-child { width: 58%; height: 10px; }
.pz-pv i:nth-child(2) { width: 100%; height: 20px; border-radius: 7px; }
.pz-pv i:nth-child(3) { width: 44%; }
.pz-pv.day { background: #fff; box-shadow: 0 0 0 1px rgba(30, 22, 15, .12) inset; }
.pz-pv.day i { background: #e9e5e0; }
.pz-pv.night { background: #000; box-shadow: 0 0 0 1px rgba(243, 240, 236, .14) inset; }
.pz-pv.night i { background: #26231f; }
.pz-pv.auto { background: linear-gradient(90deg, #fff 50%, #000 50%); box-shadow: 0 0 0 1px var(--ln2) inset; }
.pz-pv.auto i { background: linear-gradient(90deg, #e9e5e0 50%, #26231f 50%); }
.pz-pv.auto i:first-child { background: linear-gradient(90deg, #e9e5e0 calc(50% / .58), #26231f 0); }
.pz-pv i:nth-child(3), .pz-pv.auto i:nth-child(3) { background: var(--acc); }
.pz-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.pz-col { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 0; }
.pz-col .sw { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 2px 0 rgba(255, 255, 255, .22) inset, 0 -4px 0 rgba(0, 0, 0, .22) inset, 0 10px 18px -10px var(--drop); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.pz-col .sw svg.i { width: 24px; height: 24px; stroke-width: 2.6; }
.pz-col.on .sw, .pz-ride.on .o { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink2), 0 2px 0 rgba(255, 255, 255, .22) inset, 0 -4px 0 rgba(0, 0, 0, .22) inset; }
.pz-col small, .pz-ride small { font-size: .72em; font-weight: 600; color: var(--mut); text-align: center; line-height: 1.2; }
.pz-col.on small, .pz-ride.on small { color: var(--ink); }
.pz-col:active .sw, .pz-ride:active .o { transform: scale(.93); }
/* five across on a phone; fewer (and a second row) when the text is large */
.pz-rides { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(58px, 3.6em), 1fr)); gap: 12px 6px; }
.pz-ride small { overflow-wrap: anywhere; }
.pz-ride { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pz-ride .o { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--acc-ink); background: var(--acc); box-shadow: 0 2px 0 rgba(255, 255, 255, .22) inset, 0 -4px 0 rgba(0, 0, 0, .2) inset, 0 10px 18px -10px var(--drop); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.pz-ride .o svg.gl { width: calc(var(--gw, 44px) * .76); height: calc(var(--gh, 34px) * .76); }
.pz-home { padding: 4px 14px; }
.pz-hr { display: flex; align-items: center; gap: 8px; min-height: 60px; border-bottom: 1px solid var(--ln); }
.pz-hr:last-child { border-bottom: 0; }
.pz-hr .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--s2); display: grid; place-items: center; flex: none; color: var(--acc-t); margin-right: 2px; }
.pz-hr b { font-size: .95em; min-width: 0; line-height: 1.25; }
.pz-hr.off b, .pz-hr.off .ic { opacity: .42; }
.pz-mv { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--ink2); background: var(--s2); flex: none; }
.pz-mv:disabled { opacity: .28; cursor: default; }
.pz-mv svg.i { width: 18px; height: 18px; stroke-width: 2.4; }
.pz-sw { flex: none; padding: 6px 0 6px 4px; }
.pz-sw .sw { display: block; width: 48px; height: 28px; border-radius: 99px; background: var(--track); position: relative; transition: background .25s; box-shadow: 0 1px 3px var(--inset) inset; }
.pz-sw .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #fff, #d9dad6); transition: transform .25s cubic-bezier(.16, 1, .3, 1); box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .2); }
.pz-sw.on .sw { background: var(--acc); }
.pz-sw.on .sw::after { transform: translateX(20px); }
.pz .toggle { border-bottom: 0; }
.pz-maps { grid-template-columns: repeat(4, 1fr); }
.pv.auto { background: linear-gradient(135deg, #f3efe6 50%, #141210 50%); }
/* the way in, on the Me tab */
.pz-entry { width: 100%; text-align: left; gap: 14px; margin-top: 12px; }
.pz-entry .pz-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex: none; color: var(--acc-ink); background: var(--acc); box-shadow: 0 2px 0 rgba(255, 255, 255, .2) inset, 0 -3px 0 var(--acc-edge) inset; }
.pz-entry .pz-ico svg.i { width: 26px; height: 26px; }
.pz-entry .dots { display: flex; gap: 4px; margin-top: 7px; }
.pz-entry .dots i { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 1px var(--ln) inset; }
.pz-link { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 4px 2px 16px; margin-bottom: 4px; border-bottom: 1px solid var(--ln); color: var(--ink2); }
.pz-link svg.i { color: var(--acc-t); }
.pz-link b { color: var(--acc-t); }
.pz-appicon { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; padding: 14px; border-radius: 20px; background: var(--s2); box-shadow: 0 0 0 1px var(--ln) inset; }
.pz-appicon img { width: 58px; height: 58px; flex: none; filter: var(--logo-sh); }
.pz-appicon p { margin: 3px 0 8px; }
.pz-appicon button { display: inline-flex; align-items: center; gap: 6px; color: var(--acc-t); font-weight: 650; font-size: .9em; }
.pz-appicon button svg.i { width: 1.1em; height: 1.1em; }

/* ===================== the ride call (js/call.js) ===================== */
/* flat colour, no glow: who is talking shows as a solid ring and moving sound bars */
.lv-callbtn { position: relative; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--s3); box-shadow: 0 0 0 1px var(--ln2) inset; color: var(--ink); }
.lv-callbtn svg.i { width: 22px; height: 22px; }
.lv-callbtn.on { background: var(--acc); color: var(--acc-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 -2px 0 rgba(0, 0, 0, .18) inset, 0 3px 0 var(--acc-edge); }
.lv-callbtn .n { position: absolute; right: -5px; top: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--acc); color: var(--acc-ink); font: 800 11px/19px var(--text); text-align: center; box-shadow: 0 0 0 2px var(--s1); }
.lv-callbtn .n:empty { display: none; }
.lv-call { display: flex; gap: 8px; align-items: stretch; }
.lv-call .lc-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 8px; border-radius: 18px; text-align: left; min-height: 52px; }
.lv-call.on .lc-main { box-shadow: 0 0 0 1.5px var(--acc-line) inset, 0 16px 34px -18px var(--drop); }
.lv-call.wait .lc-main small { color: var(--mut); }
.lv-call b { display: block; font-size: .92em; }
.lv-call small { display: block; font-size: .78em; color: var(--mut); }
.lc-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--acc); color: var(--acc-ink); }
.lc-ic svg.i { width: 20px; height: 20px; }
.lc-ic.talk { box-shadow: 0 0 0 3px var(--ink); }
.lc-faces { display: flex; flex: none; }
.lc-faces .cl-av { margin-left: -8px; } .lc-faces .cl-av:first-child { margin-left: 0; }
.lc-faces .avatar { box-shadow: 0 0 0 2.5px var(--s1); }
.lc-mute { width: 52px; border-radius: 18px; display: grid; place-items: center; flex: none; color: var(--ink); }
.lc-mute svg.i { width: 24px; height: 24px; }
.lc-mute.off { background: var(--inv-bg); color: var(--inv-ink); }
.lc-join { flex: none; min-height: 52px; border-radius: 18px; padding: 0 18px; }
.lc-ptt { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 86px; border-radius: 18px; background: var(--acc); color: var(--acc-ink); font-size: .68em; font-weight: 750; line-height: 1.1; text-align: center; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 -3px 0 rgba(0, 0, 0, .16) inset, 0 4px 0 var(--acc-edge); transition: transform .08s; }
.lc-ptt svg.i { width: 22px; height: 22px; }
.lc-ptt.down { transform: translateY(3px); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 1px 0 var(--acc-edge); background: var(--acc-edge); }
.cl-av { position: relative; display: inline-grid; border-radius: 50%; flex: none; }
.cl-av.talk .avatar { box-shadow: 0 0 0 2.5px var(--s1), 0 0 0 5px var(--acc-t); }
.cl-mx { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--inv-bg); color: var(--inv-ink); }
.cl-mx svg.i { width: 11px; height: 11px; }
.cl-list { display: flex; flex-direction: column; }
.cl-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ln); }
.cl-row:last-child { border-bottom: 0; }
.cl-row b { display: block; }
.cl-row small { display: block; font-size: .8em; }
.cl-row .btn.sm { min-height: 40px; padding: 0 12px; font-size: .8em; }
.cl-radio .ic3 { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--acc-soft); color: var(--acc-t); }
.cl-ch button { min-width: 46px; padding: 0 10px; }
/* the call bar sits at the bottom of the map, by the thumb, left of the map buttons */
.lv-callbox { position: absolute; left: 10px; right: 72px; bottom: calc(var(--lvsh, 300px) + 14px); z-index: 5; }
.lv-callbox:empty { display: none; }
#live.has-call .maplibregl-ctrl-bottom-left { bottom: calc(var(--lvsh, 300px) + 72px); }
.lv-call.ring { animation: tin .4s cubic-bezier(.16, 1, .3, 1); }
.lv-call.ring .lc-main { background: var(--inv-bg); color: var(--inv-ink); box-shadow: 0 16px 34px -18px var(--drop); }
.lv-call.ring .lc-main small { color: inherit; opacity: .78; }
.lc-x { width: 44px; flex: none; border-radius: 18px; display: grid; place-items: center; background: var(--inv-bg); color: var(--inv-ink); box-shadow: 0 16px 34px -18px var(--drop); }
.lc-x svg.i { width: 20px; height: 20px; }
.mk .rb.talk { right: auto; left: -4px; top: -4px; padding: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; box-shadow: 0 0 0 2px #fff; }
.mk .rb.talk svg.i { width: 13px; height: 13px; stroke-width: 2.6; animation: clbars .7s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes clbars { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.rl .st .ctalk { color: var(--acc-t); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .mk .rb.talk svg.i { animation: none; } }
