/* Lucky Strike. Frosted dark glass over satellite imagery; one gold accent; land colours carry the meaning.
   Sizes are in rem so "Large text" scales everything. Nothing below 17 px at the Normal setting; nothing you tap is under 52 px.
   Easing curves and shadows come from Open Props (web/vendor/open-props.css). */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations'), url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --stage: #07090A; --ink: #F4F1E8; --soft: #D3D8D5; --mute: #A7B0AC;
  --surface: #101314; --card: #191E1F; --raise: #232A2B; --well: #0B0E0F;
  --line: rgba(244,241,232,.10); --line2: rgba(244,241,232,.19);
  --glass: rgba(13,16,17,.74); --glass-solid: rgba(13,16,17,.94);
  --frost: saturate(170%) blur(22px);
  --gold: #F2B632; --gold-ink: #1A1405; --vein: #FFD54A; --gold-hi: #FFF1BF; --gold-lo: #B9791A;
  --gold-grad: linear-gradient(140deg, #FFE189 0%, #F2B632 46%, #DB9A1E 100%);
  --ok: #3DDC84; --claim: #FF8A4C; --state: #8FBDFF; --pink: #FF8FC2; --danger: #FF6B63; --me: #4DA3FF; --drill: #2FE6C5;
  --ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --gut: 10px;
  --tabbar-h: 4.1rem;                                             /* the floating tab bar itself */
  --tabs-h: calc(var(--tabbar-h) + 10px + max(var(--safe-b), 8px)); /* space the tab bar takes from the bottom edge */
  --r-s: 14px; --r: 20px; --r-l: 26px;
  /* Open Props shadows, tuned for a dark screen */
  --shadow-color: 200 30% 2%; --shadow-strength: 34%;
  --float: var(--shadow-4), inset 0 1px 0 rgba(255,255,255,.07);
  --spring: var(--ease-spring-3); --out: var(--ease-out-5); --sheet-ease: cubic-bezier(.32, .72, 0, 1);
}
html { font-size: 17px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[data-text='large'] { font-size: 20px; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--stage); color: var(--ink); font-family: var(--ui); font-size: 1rem; line-height: 1.4; overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, pre { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: var(--vein); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--vein); outline-offset: 2px; }
/* headings get focus only so screen readers start there; never draw a box round them */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
::selection { background: rgba(242,182,50,.35); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sub { display: block; color: var(--mute); font-size: 1rem; line-height: 1.35; font-weight: 500; }
.k { display: block; color: var(--mute); font-size: 1rem; font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; pointer-events: none; }
.ic { width: 1.45rem; height: 1.45rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic .solid, .ic path.solid { fill: currentColor; stroke: none; }
symbol .solid { fill: currentColor; stroke: none; }

/* frosted glass: every floating panel over the map shares this */
.landbar, .netchip, #tabs, .walkhud, .navpanel, .a2hs { -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) { :root { --glass: var(--glass-solid); } }
@media (prefers-reduced-transparency: reduce) { :root { --glass: var(--glass-solid); --frost: none; } }

#app { position: fixed; inset: 0; overflow: hidden; }
#map { position: absolute; inset: 0; background: #0b0e0f; }
.maplibregl-map { font-family: var(--ui); }
.maplibregl-ctrl-bottom-left { bottom: calc(var(--tabs-h) + 2px); left: 6px; }
.maplibregl-ctrl-scale { background: rgba(13,16,17,.72); color: #fff; border-color: rgba(255,255,255,.85); border-radius: 0 0 6px 6px; font-size: 1rem; font-weight: 700; }
.maplibregl-ctrl-attrib { font-size: 1rem; }
.maplibregl-ctrl.maplibregl-ctrl-attrib { background: rgba(244,241,232,.82); border-radius: 14px; }
body:not([data-tab='map']) .maplibregl-ctrl-bottom-left { display: none; }

/* ---------- tone colours shared by the Land Bar, verdicts and small land chips ---------- */
.tone-open { --tone: #3DDC84; --tone-ink: #04220F; --tone-text: #7CF0B0; }
.tone-claimed { --tone: #FF8A4C; --tone-ink: #2A1004; --tone-text: #FFB48C; }
.tone-state { --tone: #8FBDFF; --tone-ink: #06203F; --tone-text: #B4D3FF; }
.tone-private { --tone: #FF8FC2; --tone-ink: #3A0520; --tone-text: #FFB3D6; }
.tone-patented { --tone: #F6A5E6; --tone-ink: #3A0531; --tone-text: #F9C2EE; }
.tone-closed { --tone: #FF6B63; --tone-ink: #2B0503; --tone-text: #FF9F99; }
.tone-usfs { --tone: #9BD67A; --tone-ink: #0D2605; --tone-text: #B9E6A0; }
.tone-tribal { --tone: #C9A6FF; --tone-ink: #1E0B45; --tone-text: #DCC6FF; }
.tone-home { --tone: #22D3EE; --tone-ink: #04262D; --tone-text: #8BEFFF; }
.tone-unknown { --tone: #3A4243; --tone-ink: #F4F1E8; --tone-text: var(--soft); }
.tone-private, .tone-patented { --tone-pattern: repeating-linear-gradient(135deg, rgba(60,0,30,.16) 0 7px, transparent 7px 14px); }

/* ---------- top stack: Land Bar, navigation panel, map buttons ---------- */
#top { position: absolute; z-index: 5; top: calc(var(--safe-t) + 8px); left: var(--gut); right: var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: min-content min-content min-content 1fr; gap: 8px; align-items: start; pointer-events: none; }
/* left column: the land strip, the navigation panel, the job and offline buttons. Right column: the round map buttons. */
#top > .landbar { grid-column: 1; grid-row: 1; }
#top > .navpanel { grid-column: 1; grid-row: 2; }
#maprow { display: contents; }
#maprow .leftchips { grid-column: 1; grid-row: 3; }
#maprow #mapbtns { grid-column: 2; grid-row: 1 / 5; }
#top > * { pointer-events: auto; }
body:not([data-tab='map']):not([data-tab='walk']) #top, body:not([data-tab='map']):not([data-tab='walk']) #crosshair { display: none; }
.landbar { position: relative; display: flex; align-items: center; gap: 9px; justify-self: start; width: auto; max-width: 100%; min-height: 52px; padding: 5px 16px 5px 5px; border-radius: 999px; text-align: left; color: var(--ink); overflow: hidden;
  border: 1px solid rgba(244,241,232,.2); border-color: color-mix(in oklab, var(--tone) 55%, rgba(244,241,232,.12));
  background: var(--glass); background: linear-gradient(100deg, color-mix(in oklab, var(--tone) 24%, rgba(12,15,16,.82)) 0%, rgba(12,15,16,.80) 70%);
  box-shadow: var(--float), 0 8px 20px -12px color-mix(in oklab, var(--tone) 55%, transparent);
  transition: border-color .5s var(--out), box-shadow .5s var(--out), transform .18s var(--out); }
.landbar:active { transform: scale(.98); }
.landbar-icon { width: 2.35rem; height: 2.35rem; border-radius: 50%; background-color: var(--tone); background-image: var(--tone-pattern, none); color: var(--tone-ink); display: flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--tone) 24%, transparent), 0 0 14px color-mix(in oklab, var(--tone) 50%, transparent); transition: background-color .5s var(--out), box-shadow .5s var(--out); }
.landbar-icon .ic { width: 1.25rem; height: 1.25rem; stroke-width: 2.4; }
.landbar-text { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; }
.landbar-where { font-size: 1rem; font-weight: 700; color: var(--tone-text); line-height: 1.2; }
.landbar-title { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.12; color: #fff; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.landbar-sub { font-size: 1rem; font-weight: 600; line-height: 1.12; color: var(--tone-text); white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.landbar-chev { display: none; }
.landbar.swap .landbar-text { animation: bar-swap .5s var(--out); }
.landbar.swap .landbar-icon { animation: bar-pop .6s var(--spring); }
@keyframes bar-swap { from { opacity: 0; transform: translateY(7px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bar-pop { from { transform: scale(.6); } to { transform: none; } }

/* the row under the Land Bar: what you are doing (left), round map buttons (right). Everything else is map. */
#maprow > * { pointer-events: auto; }
.leftchips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none !important; min-width: 0; }
.leftchips > * { pointer-events: auto; }
.missionchip, .netchip { -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }
.missionchip { display: inline-flex; align-items: center; gap: 7px; min-height: 52px; max-width: 62vw; padding: 0 12px 0 13px; border-radius: 26px; border: 1px solid rgba(242,182,50,.55); background: var(--glass); color: var(--gold-hi); font-size: 1rem; font-weight: 800; box-shadow: var(--float); transition: transform .18s var(--out); }
.missionchip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.missionchip .ic { width: 1.25rem; height: 1.25rem; color: var(--gold); }
.missionchip .ic.chev { width: 1rem; height: 1rem; color: var(--mute); }
.missionchip:active { transform: scale(.96); }
.netchip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 1px solid var(--line2); background: var(--glass); color: var(--ink); box-shadow: var(--float); transition: transform .18s var(--out); }
.netchip .lbl { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.netchip .dot { position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px rgba(13,16,17,.9), 0 0 8px rgba(61,220,132,.8); }
.netchip[data-state='offline'] .dot { background: var(--gold); box-shadow: 0 0 0 2px rgba(13,16,17,.9), 0 0 8px rgba(242,182,50,.8); }
.netchip[data-state='offline'] { border-color: rgba(242,182,50,.7); }
.netchip .ic { width: 1.3rem; height: 1.3rem; color: var(--soft); }
#mapbtns { margin-left: auto; display: flex; flex-direction: column; gap: 8px; }
.mapbtn { position: relative; width: 3.2rem; height: 3.2rem; min-width: 52px; min-height: 52px; padding: 0; border-radius: 50%; border: 1px solid var(--line2); background: var(--glass); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); box-shadow: var(--float); color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s, transform .18s var(--out); }
.mapbtn .lbl { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mapbtn .ic { width: 1.4rem; height: 1.4rem; transition: transform .35s var(--spring); }
.mapbtn:active { transform: scale(.92); }
.mapbtn[aria-pressed='true'] { background: var(--me); border-color: transparent; color: #03182f; }
.mapbtn[hidden] { display: none; }
#btn-3d .t3d { font-size: 1rem; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
#btn-3d[aria-pressed='true'] { background: var(--gold); color: var(--gold-ink); }
.compass svg { width: 1.7rem; height: 1.7rem; transition: transform .12s linear; }
.compass .n { fill: #FF6B63; }
.compass .s { fill: var(--soft); }
.compass { animation: bar-pop .45s var(--spring); }
#btn-locate[data-state='on'] { color: #9fd0ff; }
body[data-nav] #btn-search, body[data-nav] #btn-lens, body[data-nav] #btn-more, body[data-nav] #netchip, body[data-nav] #mission { display: none; }
body[data-tab='walk'] #btn-search, body[data-tab='walk'] #btn-lens, body[data-tab='walk'] #btn-more, body[data-tab='walk'] #netchip { display: none; }

#crosshair { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; pointer-events: none; z-index: 2; filter: drop-shadow(0 0 1.5px rgba(0,0,0,.9)); }
#crosshair::before, #crosshair::after { content: ''; position: absolute; background: #fff; border-radius: 1px; }
#crosshair::before { left: 19px; top: 0; width: 2px; height: 40px; -webkit-mask: linear-gradient(#000 0 12px, transparent 12px 28px, #000 28px); mask: linear-gradient(#000 0 12px, transparent 12px 28px, #000 28px); }
#crosshair::after { top: 19px; left: 0; height: 2px; width: 40px; -webkit-mask: linear-gradient(90deg, #000 0 12px, transparent 12px 28px, #000 28px); mask: linear-gradient(90deg, #000 0 12px, transparent 12px 28px, #000 28px); }
#crosshair i { position: absolute; left: 16px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
body[data-barsource='gps'] #crosshair { display: none; }

/* markers */
.me-dot { width: 26px; height: 26px; position: relative; }
.me-dot::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: rgba(77,163,255,.55); animation: me-pulse 2.2s var(--out) infinite; }
@keyframes me-pulse { from { transform: scale(.7); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.me-core { position: absolute; inset: 3px; border-radius: 50%; background: var(--me); border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.45), 0 0 16px 4px rgba(77,163,255,.7); }
.me-cone { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -34px 0 0 -11px; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 24px solid rgba(77,163,255,.85); transform-origin: 11px 34px; filter: drop-shadow(0 0 2px rgba(0,0,0,.7)); display: none; }
/* the map library positions the pin with a transform on .spot-pin itself, so the drop is animated on its parts */
.spot-pin { width: 34px; height: 46px; position: relative; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.spot-pin > * { animation: pin-drop .5s var(--spring) both; }
@keyframes pin-drop { from { transform: translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.spot-pin-head { position: absolute; left: 3px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-grad); border: 3px solid #16120a; }
.spot-pin-head::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #16120a; }
.spot-pin-tip { position: absolute; left: 14px; top: 25px; width: 6px; height: 20px; background: #16120a; border-radius: 0 0 3px 3px; }
.dest-flag { width: 44px; height: 44px; }
.dest-flag-ring { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #fff; background: rgba(140,203,255,.35); box-shadow: 0 0 0 2px #0b3a6b, 0 0 18px 4px rgba(140,203,255,.7); }

/* ---------- tab bar: a floating glass bar with a pill that slides to the open tab ---------- */
#tabs { position: absolute; z-index: 9; left: var(--gut); right: var(--gut); bottom: max(var(--safe-b), 8px); height: var(--tabbar-h); padding: 5px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: calc(var(--tabbar-h) / 2); background: var(--glass); border: 1px solid var(--line2); box-shadow: var(--shadow-5), inset 0 1px 0 rgba(255,255,255,.08); max-width: 560px; margin: 0 auto; }
#tabs button { position: relative; z-index: 1; border: 0; background: none; color: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; border-radius: 2rem; font-size: 1rem; font-weight: 700; line-height: 1.15; padding: 0; transition: color .25s var(--out); }
#tabs .ic { width: 1.5rem; height: 1.5rem; transition: transform .4s var(--spring); }
#tabs button:active .ic { transform: scale(.84); }
#tabs button[aria-current='page'] { color: var(--vein); }
#tabs button[aria-current='page'] .ic { stroke-width: 2.4; }
.tabpill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 20%; border-radius: 2rem; background: linear-gradient(180deg, rgba(242,182,50,.24), rgba(242,182,50,.13)); box-shadow: inset 0 0 0 1px rgba(255,213,74,.34), 0 0 22px -4px rgba(242,182,50,.5); pointer-events: none; will-change: transform; }
.tab-full { display: none; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 8px 16px; border-radius: 17px; border: 1px solid var(--line2); background: rgba(244,241,232,.075); color: var(--ink); font-size: 1.06rem; font-weight: 800; line-height: 1.15; text-decoration: none; text-align: center; transition: transform .16s var(--out), background-color .2s, filter .2s; }
.btn.wide { display: flex; width: 100%; }
.btn.primary { background: var(--gold-grad); border-color: transparent; color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(120,70,0,.25), 0 10px 26px -10px rgba(242,182,50,.7); }
.btn.danger { background: rgba(255,107,99,.12); border-color: rgba(255,107,99,.8); color: #FFB3AE; }
.btn.quiet { background: none; border-color: transparent; color: var(--soft); }
.btn.huge { min-height: 68px; font-size: 1.3rem; border-radius: 22px; }
.btn.small { min-height: 52px; padding: 6px 14px; font-size: 1rem; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:active:not(:disabled), .row:active, .chip:active, .netchip:active, .nearby-target:active, .landmini:active, .coord:active { transform: scale(.975); }
.btn.primary:active:not(:disabled) { filter: brightness(.93); }
.iconbtn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(244,241,232,.075); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; transition: transform .16s var(--out); }
.iconbtn:active { transform: scale(.92); }
.linkbtn { border: 0; background: none; color: var(--vein); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 14px 4px; min-height: 52px; text-align: left; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid2 > .btn { padding-left: 8px; padding-right: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid3 > .btn { padding: 6px 4px; flex-direction: column; gap: 2px; font-size: 1rem; min-height: 4rem; }
.btn[role='switch'][aria-checked='true'] { border-color: var(--gold); color: var(--gold); }

/* ---------- sheet ----------
   Phones: the sheet sits inside a Cupertino Pane (web/vendor/cupertino-pane.js): drag it by its header between a
   peek, half and full height. Wide screens: a panel on the right. The first block is the fallback when neither applies. */
.sheet { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; max-height: min(62%, 600px); display: flex; flex-direction: column; background: var(--surface); border-radius: 28px 28px 0 0; border-top: 1px solid var(--line2); box-shadow: 0 -18px 48px rgba(0,0,0,.55); transform: translateY(110%); visibility: hidden; transition: transform .42s var(--sheet-ease), visibility 0s linear .42s; }
.sheet.open { transform: none; visibility: visible; transition: transform .42s var(--sheet-ease); }
.sheet.tall { max-height: 88%; }
.sheet.full { max-height: none; top: calc(var(--safe-t) + 10px); }
.sheet-head { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 18px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-title { flex: 1; min-width: 0; font-size: 1.36rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.sheet-back, .sheet-close { display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 16px 0 12px; border-radius: 26px; border: 0; background: rgba(244,241,232,.1); font-weight: 800; font-size: 1rem; flex: none; transition: transform .16s var(--out), background-color .2s; }
.sheet-back:active, .sheet-close:active { transform: scale(.94); background: rgba(244,241,232,.18); }
.sheet-back { margin-left: -8px; padding: 0 14px 0 8px; }
.sheet.has-back .sheet-close { width: 52px; padding: 0; justify-content: center; }
.sheet.has-back .sheet-close span { display: none; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 16px calc(var(--tabs-h) + 18px); display: flex; flex-direction: column; gap: 14px; }
.sheet-body > * { flex: none; }
.sheet.swap .sheet-body { animation: sheet-in .34s var(--out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sheet-grab { display: none; }

.cupertino-pane-wrapper { z-index: 8; }
.cupertino-pane-wrapper .pane { z-index: 8; max-width: 560px; padding-top: 0; background: var(--surface); color: var(--ink); border-radius: 28px 28px 0 0; box-shadow: 0 -1px 0 var(--line2), 0 -18px 48px rgba(0,0,0,.55); -webkit-user-select: auto; user-select: auto; cursor: auto !important; }
.cupertino-pane-wrapper .draggable { display: none; }
.pane > .sheet { position: static; display: flex !important; height: 100%; max-height: none; transform: none; visibility: visible; background: none; border: 0; border-radius: 0; box-shadow: none; transition: none !important; opacity: 1 !important; }
.pane > .sheet:not(.open) { visibility: hidden; }
.pane > .sheet .sheet-head { padding-top: 22px; touch-action: none; -webkit-user-select: none; user-select: none; cursor: grab; }
.pane > .sheet .sheet-grab { display: block; position: absolute; left: 50%; top: 0; width: 120px; height: 22px; margin-left: -60px; }
.pane > .sheet .sheet-grab::after { content: ''; position: absolute; left: 50%; top: 8px; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgba(244,241,232,.32); transition: background-color .2s, width .3s var(--spring); }
.pane > .sheet .sheet-head:active .sheet-grab::after { background: rgba(244,241,232,.6); width: 56px; margin-left: -28px; }
.pane > .sheet .sheet-body { height: var(--sheet-body-h, 40vh) !important; }
/* lists fade out before they reach the floating tab bar, so nothing shows through it */
.pane > .sheet .sheet-body, .page-body { -webkit-mask-image: linear-gradient(#000 calc(100% - var(--tabs-h) - 6px), transparent calc(100% - var(--tabs-h) * .42)); mask-image: linear-gradient(#000 calc(100% - var(--tabs-h) - 6px), transparent calc(100% - var(--tabs-h) * .42)); }
.page-body.ask-body { -webkit-mask-image: none; mask-image: none; }
/* a sheet at full height takes the whole screen: the tab bar steps out of the way until the sheet is lowered or closed */
#tabs { transition: transform .42s var(--sheet-ease), opacity .3s; }
@media (max-width: 899.98px) {
  body[data-sheetbreak='top'] #tabs { transform: translateY(150%); opacity: 0; pointer-events: none; }
  body[data-sheetbreak='top'] .pane > .sheet .sheet-body { padding-bottom: calc(var(--safe-b) + 22px); -webkit-mask-image: none; mask-image: none; }
}

.sec { display: flex; flex-direction: column; gap: 10px; }
.sec > h3 { font-size: 1.16rem; font-weight: 800; letter-spacing: -.01em; padding-top: 4px; }
.sec h4 { font-size: 1.04rem; font-weight: 800; }
.lead { font-size: 1.1rem; line-height: 1.42; color: var(--ink); }
.note { font-size: 1rem; color: var(--soft); line-height: 1.4; padding: 11px 14px; border-radius: var(--r-s); background: rgba(244,241,232,.055); box-shadow: inset 3px 0 0 var(--line2); }
.note.warn { box-shadow: inset 3px 0 0 var(--gold); background: rgba(242,182,50,.1); color: #FFE9B8; }
.src { font-size: 1rem; color: var(--mute); line-height: 1.35; }
.hint { font-size: 1rem; color: var(--mute); margin-top: 6px; }
.empty { padding: 22px 16px; border-radius: var(--r); border: 1.5px dashed var(--line2); color: var(--soft); text-align: center; font-size: 1.04rem; }

.verdict { position: relative; padding: 15px 16px; border-radius: var(--r); color: var(--ink); overflow: hidden; border: 1px solid color-mix(in oklab, var(--tone) 50%, transparent);
  background: rgba(244,241,232,.06); background: linear-gradient(120deg, color-mix(in oklab, var(--tone) 30%, var(--card)) 0%, color-mix(in oklab, var(--tone) 9%, var(--card)) 70%); }
.verdict::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background-color: var(--tone); background-image: var(--tone-pattern, none); }
.verdict-title { font-size: 1.62rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; color: var(--tone-text); padding-left: 4px; }
.verdict p, .verdict li { font-size: 1.04rem; font-weight: 600; line-height: 1.4; margin-top: 6px; padding-left: 4px; }
.verdict ul { padding-left: 1.4rem; margin-top: 6px; }
.verdict ul li { padding-left: 0; }
.landmini { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 10px 14px 10px 18px; border-radius: var(--r); color: var(--ink); text-align: left; overflow: hidden; border: 1px solid color-mix(in oklab, var(--tone) 50%, transparent);
  background: rgba(244,241,232,.06); background: linear-gradient(120deg, color-mix(in oklab, var(--tone) 28%, var(--card)) 0%, color-mix(in oklab, var(--tone) 8%, var(--card)) 75%); transition: transform .16s var(--out); }
.landmini::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background-color: var(--tone); background-image: var(--tone-pattern, none); }
.landmini > span { flex: 1; }
.landmini b { display: block; font-size: 1.08rem; font-weight: 800; color: var(--tone-text); }
.landmini .sub { color: var(--soft); font-weight: 600; }
.landmini .ic { color: var(--mute); }

.kvs { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; }
.kv .k { flex: none; max-width: 46%; }
.kv .v { text-align: right; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile b { font-size: 1.12rem; font-weight: 800; }
.tile b.big { font-size: 1.7rem; line-height: 1.1; letter-spacing: -.02em; }
.tile.hot { background: rgba(255,138,76,.14); border-color: rgba(255,138,76,.75); }
.tile.hot b.big { color: #FFC4A3; }
.tile.ok { background: rgba(61,220,132,.12); border-color: rgba(61,220,132,.7); }
.tile.result-gold { background: rgba(255,213,74,.14); border-color: rgba(255,213,74,.75); }
.celllabel { font-size: 1rem; color: var(--soft); font-weight: 500; }

.score { padding: 13px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.score-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.score-head b { font-size: 1.12rem; font-weight: 800; }
.score-head .sub { display: inline; }
.score-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scorenum { font-size: 1.04rem; font-weight: 600; color: var(--soft); }
.meter { height: 10px; border-radius: 5px; background: rgba(244,241,232,.1); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #8a5a12, var(--gold) 60%, #FFE9A6); transform-origin: 0 50%; animation: meter-in .9s var(--out) both; }
@keyframes meter-in { from { transform: scaleX(0); } to { transform: none; } }
.tier { display: inline-flex; align-items: center; min-height: 2rem; padding: 2px 13px; border-radius: 1rem; font-size: 1.04rem; font-weight: 800; white-space: nowrap; }
.tier-top, .tier-A { background: var(--gold-grad); color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.tier-good, .tier-B { background: rgba(242,182,50,.18); color: #FFE2A0; box-shadow: inset 0 0 0 1.5px rgba(242,182,50,.85); }
.tier-look, .tier-C { background: rgba(244,241,232,.1); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line2); }
.tier-low { background: none; color: var(--mute); box-shadow: inset 0 0 0 1.5px var(--line); }
.nearby-target { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid rgba(242,182,50,.5); background: rgba(242,182,50,.08); min-height: 56px; transition: transform .16s var(--out); }
.nearby-target > span { flex: 1; }
.nearby-target ul, .why { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 3px; color: var(--soft); margin-top: 4px; }
.why { margin-top: 0; }
.conf { display: flex; gap: 8px; align-items: flex-start; color: var(--soft); }
.conf .ic { margin-top: 1px; color: var(--mute); }

.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); text-align: left; color: var(--ink); transition: transform .16s var(--out), background-color .2s; }
.row.static { cursor: default; }
.rowtext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rowtext b { font-size: 1.06rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.row > .ic:last-child { color: var(--mute); }
.rowicon { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: rgba(244,241,232,.08); display: flex; align-items: center; justify-content: center; flex: none; color: var(--soft); }
.rowicon.place, .rowicon.saved { background: rgba(77,163,255,.18); color: #9fd0ff; }
.rowicon.mine { background: rgba(242,182,50,.18); color: var(--gold); }
.rowicon.sample.result-gold { background: rgba(255,213,74,.22); color: var(--vein); }
.rowicon.walk { background: rgba(157,140,255,.2); color: #cdc3ff; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dot-wait { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); flex: none; }
.list { display: flex; flex-direction: column; gap: 10px; }

.coord { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; width: 100%; padding: 10px 14px; min-height: 64px; border-radius: var(--r); border: 1.5px dashed var(--line2); background: none; text-align: left; transition: transform .16s var(--out); }
.coord .k { grid-column: 1; }
.coord .mono { grid-column: 1; font-size: 1.12rem; font-weight: 600; }
.coord .ic { grid-column: 2; grid-row: 1 / span 2; color: var(--mute); }
.actions { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }

.chip { display: inline-flex; align-items: center; min-height: 52px; padding: 6px 18px; border-radius: 26px; border: 1px solid var(--line2); background: rgba(244,241,232,.07); color: var(--ink); font-size: 1.04rem; font-weight: 700; white-space: nowrap; transition: transform .16s var(--out); }
span.chip { min-height: 1.9rem; padding: 2px 12px; font-size: 1rem; border-width: 0; }
.chip.orange { background: rgba(255,138,76,.2); color: #FFC4A3; }
.chip.grey { background: rgba(244,241,232,.1); color: var(--soft); }
.claim { padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.claim-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.claim-top b { font-size: 1.1rem; font-weight: 800; }
.claim.closed { background: rgba(25,30,31,.55); }
.claim .mono { color: var(--soft); }

/* switches, segmented, fields */
.switch-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); text-align: left; }
.switch-row:disabled { opacity: .55; }
.switch-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.switch-text b { font-size: 1.06rem; font-weight: 800; }
.switch-track { width: 60px; height: 34px; border-radius: 17px; background: rgba(244,241,232,.16); position: relative; flex: none; transition: background-color .25s var(--out); box-shadow: inset 0 0 0 1px var(--line2); }
.switch-knob { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #F4F1E8; box-shadow: 0 2px 6px rgba(0,0,0,.45); transition: transform .45s var(--spring), background-color .2s; }
.switch-row[aria-checked='true'] .switch-track { background: var(--gold); box-shadow: 0 0 16px -2px rgba(242,182,50,.6); }
.switch-row[aria-checked='true'] .switch-knob { transform: translateX(26px); background: #1A1405; }
.switch-row:active .switch-knob { width: 31px; }
.switch-row[aria-checked='true']:active .switch-knob { transform: translateX(21px); }
.switch-end { display: flex; flex-direction: column; align-items: center; gap: 1px; flex: none; }
.switch-word { font-weight: 800; color: var(--soft); line-height: 1.1; }
.switch-row[aria-checked='true'] .switch-word { color: var(--gold); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 19px; background: var(--well); border: 1px solid var(--line); }
.seg button { flex: 1; min-height: 52px; padding: 6px 8px; border-radius: 15px; border: 0; background: none; color: var(--soft); font-size: 1.04rem; font-weight: 800; line-height: 1.15; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background-color .25s var(--out), color .2s, transform .16s var(--out); }
.seg button:active { transform: scale(.96); }
.seg button[aria-pressed='true'] { background: var(--ink); color: #101314; box-shadow: 0 4px 14px -4px rgba(0,0,0,.6); }
.seg.seg-wrap { display: grid; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; }
.field label { font-size: 1.06rem; font-weight: 800; margin-bottom: 6px; }
input[type='text'], input[type='password'], input[type='search'], input[type='number'], textarea { width: 100%; min-height: 56px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line2); background: var(--well); color: var(--ink); font-size: 1.1rem; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
input[type='text']:focus, input[type='password']:focus, input[type='search']:focus, input[type='number']:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,182,50,.2); outline: none; }
textarea { min-height: 5.6rem; resize: vertical; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: #88918E; }
.searchbox { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line2); background: var(--well); transition: border-color .2s, box-shadow .2s; }
.searchbox input { border: 0; background: none; padding-left: 0; box-shadow: none !important; }
.searchbox input:focus-visible { outline: none; }
.searchbox:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,182,50,.2); }
.searchbox .ic { color: var(--mute); }

/* layer swatches */
.sw { width: 36px; height: 36px; border-radius: 11px; flex: none; position: relative; background: #2a3132; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.sw-land { background: linear-gradient(90deg, #3DDC84 0 34%, #4F8DF5 34% 67%, #FF4FA3 67%); }
.sw-closed { background: repeating-linear-gradient(135deg, #FF5A52 0 4px, #2a1211 4px 9px); }
.sw-pat { background: repeating-linear-gradient(45deg, #FF82DC 0 3px, transparent 3px 8px), repeating-linear-gradient(135deg, #FF82DC 0 3px, #2c1227 3px 8px); }
.sw-claim { background: #1b2021; box-shadow: inset 0 0 0 3px var(--claim); }
.sw-claimpast { background: #1b2021; border: 2.5px dashed #E7C9B5; }
.sw-target { background: radial-gradient(circle, var(--gold) 0 52%, #16120a 54% 64%, transparent 66%); }
.sw-vein::after, .sw-fault::after, .sw-road::after { content: ''; position: absolute; left: 3px; right: 3px; top: 16px; height: 4px; border-radius: 2px; transform: rotate(-28deg); }
.sw-vein::after { background: var(--vein); box-shadow: 0 0 8px 3px rgba(255,179,0,.8); }
.sw-fault::after { background: repeating-linear-gradient(90deg, #58E1FF 0 8px, transparent 8px 11px); height: 3px; }
.sw-road::after { background: #F2EFE6; box-shadow: 0 0 0 2px rgba(0,0,0,.6); }
.sw-mine::after { content: ''; position: absolute; left: 11px; top: 11px; width: 14px; height: 14px; background: var(--gold); border: 2.5px solid #101314; transform: rotate(45deg); }
.sw-working::after { content: ''; position: absolute; left: 11px; top: 11px; width: 14px; height: 14px; background: #fff; border: 2.5px solid #101314; }
.sw-drill::after, .sw-pub::after, .sw-sample::after, .sw-place::after { content: ''; position: absolute; left: 11px; top: 11px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #06231F; background: var(--drill); }
.sw-pub::after { background: #FFE27A; border-color: #101314; }
.sw-sample::after { background: var(--vein); border-color: #fff; }
.sw-place::after { background: var(--me); border-color: #fff; border-width: 3px; }
.sw-3d { background: linear-gradient(160deg, #5d6f58, #2a3327 55%, #92876b); }
.sw-walked { background: conic-gradient(#6F5BFF 0 25%, #D7CCFF 0 50%, #9D8CFF 0 75%, #fff 0); }
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.viewcard { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 7.4rem; padding: 12px 12px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); text-align: left; transition: transform .16s var(--out), border-color .25s, background-color .25s, box-shadow .25s; }
.viewcard:active { transform: scale(.97); }
.viewcard b { font-size: 1.08rem; font-weight: 800; line-height: 1.2; }
.viewcard .sub { line-height: 1.3; }
.viewicon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(244,241,232,.08); color: var(--soft); display: flex; align-items: center; justify-content: center; margin-bottom: 3px; transition: background-color .25s, color .25s; }
.viewcard[aria-pressed='true'] { border-color: rgba(242,182,50,.85); background: linear-gradient(160deg, rgba(242,182,50,.2), rgba(242,182,50,.06)); box-shadow: 0 0 22px -8px rgba(242,182,50,.6); }
.viewcard[aria-pressed='true'] .viewicon { background: var(--gold-grad); color: var(--gold-ink); }
.surveycard { padding: 13px 14px; border-radius: var(--r); background: var(--card); border: 1px solid rgba(242,182,50,.4); display: flex; flex-direction: column; gap: 8px; }
.surveycard b { font-size: 1.1rem; font-weight: 800; }
.ramp i { display: block; height: 14px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.ramp-ends { display: flex; justify-content: space-between; color: var(--soft); font-weight: 700; margin-top: 4px; }
.keylist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.keylist li { display: flex; align-items: center; gap: 10px; }
.keylist i { width: 22px; height: 22px; border-radius: 7px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.hint.first { margin-top: 0; }
.yearbox { padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.yearbox label { font-weight: 800; font-size: 1.06rem; }
.year-row { display: flex; align-items: center; gap: 8px; }
.year-row input { flex: 1; min-width: 0; }
.year-label { font-weight: 800; color: #FFC4A3; font-size: 1.06rem; }
input[type='range'] { -webkit-appearance: none; appearance: none; height: 52px; background: none; }
input[type='range']::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: rgba(244,241,232,.16); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%; background: var(--claim); border: 3px solid #2A1004; box-shadow: 0 3px 10px rgba(0,0,0,.5); }
input[type='range']::-moz-range-track { height: 10px; border-radius: 5px; background: rgba(244,241,232,.16); }
input[type='range']::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--claim); border: 3px solid #2A1004; }

/* ---------- pages ---------- */
.page { position: absolute; z-index: 6; inset: 0; display: flex; flex-direction: column; background: var(--stage); background: radial-gradient(120% 50% at 50% -8%, #1a1f17 0%, var(--stage) 62%); }
.page:not([hidden]) { animation: page-in .38s var(--out); }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.page-head { padding: calc(var(--safe-t) + 16px) 18px 10px; flex: none; }
.page-head h1 { font-family: var(--display); font-size: 2.15rem; font-weight: 620; letter-spacing: -.025em; line-height: 1.08; }
.honest { color: var(--soft); font-size: 1rem; margin-top: 5px; font-weight: 600; }
.page-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px calc(var(--tabs-h) + 22px); display: flex; flex-direction: column; gap: 12px; }
.page-body > * { flex: none; }
.page-foot { position: sticky; bottom: 0; padding-top: 8px; margin-top: auto; background: linear-gradient(transparent, var(--stage) 30%); }
.filters { display: flex; flex-direction: column; gap: 8px; }
.filters .hint { margin: -2px 2px 2px; }
.count { color: var(--mute); font-weight: 700; }

/* Best Spots cards: a real satellite photo of the spot, its rank, and a score ring */
.spot-card { border-radius: 24px; background: var(--card); display: flex; flex-direction: column; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-3); }
.spot-card:not(.not-claimable) { border-color: rgba(242,182,50,.5); }
#spots-list > .spot-card:nth-child(-n+6) { animation: card-in .5s var(--out) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.spot-photo { position: relative; height: 8.6rem; overflow: hidden; background: linear-gradient(160deg, #39422f, #1a2118 60%, #2a2a1c); }
.spot-photo-tiles { position: absolute; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.spot-photo-tiles img { display: block; width: 100%; height: 100%; -webkit-user-drag: none; }
.spot-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,11,.35) 0%, rgba(8,10,11,0) 38%, rgba(25,30,31,.2) 62%, var(--card) 100%); }
.spot-photo .spot-mark { position: absolute; z-index: 1; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.6), inset 0 0 0 1.5px rgba(0,0,0,.6), 0 0 16px 3px rgba(255,213,74,.75); }
.spot-photo .rankbadge { position: absolute; z-index: 1; left: 12px; top: 12px; }
.spot-photo .tier { position: absolute; z-index: 1; right: 12px; top: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.spot-photo .tier-good, .spot-photo .tier-B, .spot-photo .tier-look, .spot-photo .tier-C, .spot-photo .tier-low { background: rgba(13,16,17,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.spot-in { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.spot-top { display: flex; gap: 12px; align-items: center; }
.spot-name { flex: 1; min-width: 0; }
.spot-name h2 { font-size: 1.22rem; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.ringbox { display: flex; flex-direction: column; align-items: center; flex: none; }
.ring { position: relative; width: 3.7rem; height: 3.7rem; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .ring-bg { stroke: rgba(244,241,232,.12); }
.ring .ring-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1s var(--out); }
.ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 1.12rem; font-weight: 700; }
.spot-meta { color: var(--soft); }
.spot-meta .mono { color: var(--ink); font-weight: 700; }
.rankbadge { width: 3rem; height: 3rem; border-radius: 50%; background: var(--gold-grad); color: var(--gold-ink); border: 3px solid #16120a; box-shadow: 0 0 0 1.5px var(--gold), 0 0 16px rgba(255,200,60,.5); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 800; flex: none; font-family: var(--ui); }
.rankbadge.placer { border-radius: 30%; }
.rankbadge.hollow { background: #221d10; color: var(--gold); box-shadow: 0 0 0 1.5px var(--gold); }
.tested { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-s); background: rgba(61,220,132,.13); color: #9af0c0; font-weight: 700; }
.target-head { display: flex; gap: 12px; align-items: center; }
.bigname { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.2; }

.syncline { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); min-height: 64px; }
.syncline > .ic { color: var(--mute); }
.syncline[data-pending]:not([data-pending='0']) > .ic { color: var(--gold); }

.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.media-tile { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.media-open { width: 100%; height: 100%; border: 0; padding: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--soft); font-weight: 700; }
.media-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-remove { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.72); color: #fff; display: flex; align-items: center; justify-content: center; }
.media-flag { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; background: rgba(0,0,0,.72); color: var(--gold); font-size: 1rem; font-weight: 700; text-align: center; }
.media-edit { display: flex; flex-direction: column; gap: 8px; }
.media-full { max-width: 100%; max-height: 60vh; border-radius: 14px; display: block; margin: 0 auto; }
.lens-photo { width: 100%; max-height: 38vh; object-fit: cover; border-radius: var(--r); }

/* ask */
.ask-context { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px 8px; color: var(--soft); font-weight: 600; margin-top: 6px; }
.ask-context .ic { color: var(--gold); margin-top: 1px; }
.ask-context > span { flex: 1; min-width: 0; }
.ask-context .linkbtn { flex-basis: 100%; padding: 6px 0; }
.ask-body { padding-bottom: 8px; }
.chat { flex: 1 1 auto !important; min-height: 6rem; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
.msg { max-width: 92%; padding: 12px 15px; border-radius: 22px; font-size: 1.06rem; line-height: 1.45; animation: msg-in .4s var(--out); transform-origin: 0 100%; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.msg.user { align-self: flex-end; background: var(--gold-grad); color: var(--gold-ink); font-weight: 700; border-bottom-right-radius: 7px; transform-origin: 100% 100%; }
.msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 7px; display: flex; flex-direction: column; gap: 8px; }
.msg .tag { align-self: flex-start; padding: 2px 10px; border-radius: 10px; background: rgba(244,241,232,.12); font-weight: 800; font-size: 1rem; }
.msg.offline .tag { background: var(--gold); color: var(--gold-ink); }
.sources { border-top: 1px solid var(--line); padding-top: 8px; color: var(--mute); font-size: 1rem; }
.sources b { color: var(--soft); }
.sources ul { padding-left: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; flex: none; }
.chips .chip { max-width: 100%; white-space: normal; text-align: left; }
.chips::-webkit-scrollbar { display: none; }
.askbar { display: flex; gap: 8px; align-items: center; padding: 8px 12px calc(var(--tabs-h) + 8px); flex: none; }
.askbar input { flex: 1; min-width: 0; border-radius: 28px; padding-left: 18px; }
.askbar .send { min-width: 5.2rem; border-radius: 28px; }
.mic.on { background: var(--danger); border-color: var(--danger); color: #2B0503; animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 9px rgba(255,107,99,.22); } }
body[data-tab='ask'] .page-body.ask-body { padding-bottom: 8px; }

/* ---------- walk panel ---------- */
.walkhud { position: absolute; z-index: 4; left: var(--gut); right: var(--gut); bottom: calc(var(--tabs-h) + 8px); padding: 16px; border-radius: 28px; background: var(--glass); border: 1px solid var(--line2); box-shadow: var(--shadow-5), inset 0 1px 0 rgba(255,255,255,.07); display: none; max-height: 62%; overflow-y: auto; max-width: 560px; margin: 0 auto; }
body[data-tab='walk'] .walkhud { display: block; animation: hud-in .45s var(--sheet-ease); }
@keyframes hud-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.walk-idle, .walk-live { display: flex; flex-direction: column; gap: 10px; }
.walk-idle h1 { font-family: var(--display); font-size: 1.9rem; font-weight: 620; letter-spacing: -.025em; line-height: 1.1; }
.walk-notice { display: flex; gap: 10px; align-items: flex-start; color: var(--soft); font-size: 1rem; line-height: 1.35; }
.walk-notice .ic { color: var(--gold); margin-top: 1px; }
.walk-alert { min-height: 1.4rem; font-weight: 800; color: var(--vein); }
.walk-alert:empty { display: none; }
.walkhud .tile, .walkhud .switch-row { background: rgba(244,241,232,.07); }
.walk-live { gap: 8px; }
body[data-walking] .walkhud { padding: 12px; }
.walk-live .tile { padding: 6px 10px; }
.walk-live .btn.mark { min-height: 60px; font-size: 1.18rem; border-radius: 20px; }
.walk-live .grid3 > .btn { min-height: 3.6rem; }
.walk-live .accword { font-weight: 700; }
.tile.acc.good .accword { color: var(--ok); } .tile.acc.fair .accword { color: var(--gold); } .tile.acc.bad .accword { color: var(--danger); }
.walk-live .tile .sub { display: inline; }
.walk-live .walk-notice { font-size: 1rem; }
.walk-live .tile b.big { font-size: 1.36rem; white-space: nowrap; font-family: var(--mono); font-weight: 700; letter-spacing: -.03em; }
.tile.acc.good b { color: var(--ok); }
.tile.acc.fair b { color: var(--gold); }
.tile.acc.bad b { color: var(--danger); }
.demo-tag { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-s); background: rgba(157,140,255,.2); color: #d9d1ff; font-weight: 700; }
body[data-walking] .walkhud .switch-row .sub { display: none; }
body[data-nav][data-tab='walk'] .walk-notice, body[data-nav][data-tab='walk'] .walkhud .switch-row { display: none; }

/* ---------- navigation panel ---------- */
.navpanel { display: none; padding: 12px; border-radius: 26px; background: var(--glass); border: 1px solid rgba(140,203,255,.8); box-shadow: var(--float), 0 14px 34px -14px rgba(140,203,255,.6); flex-direction: column; gap: 8px; }
.navpanel.open { display: flex; animation: bar-swap .45s var(--out); }
.nav-top { display: flex; align-items: center; gap: 12px; }
.nav-dial { width: 5rem; height: 5rem; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #12365f, #081a30); border: 2px solid #8CCBFF; box-shadow: 0 0 22px -2px rgba(140,203,255,.6); display: flex; align-items: center; justify-content: center; flex: none; }
.nav-arrow { width: 3.4rem; height: 3.4rem; color: #fff; transition: transform .45s var(--spring); display: flex; }
.nav-arrow .ic { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.nav-read { flex: 1; min-width: 0; }
.nav-dist { font-size: 2rem; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.nav-dir { font-size: 1.16rem; font-weight: 800; color: #BFE2FF; }
.nav-name { color: var(--soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-stop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 4.2rem; min-height: 4.2rem; border-radius: 20px; border: 1px solid rgba(255,107,99,.8); background: rgba(255,107,99,.14); color: #FFB3AE; font-weight: 800; flex: none; }
.nav-status { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.nav-status:empty, .nav-hint:empty, .nav-btns:empty { display: none; }
.nav-hint { color: var(--mute); font-size: 1rem; }
.nav-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.navpanel.off { border-color: var(--danger); }
.navpanel.off .nav-status { color: #FFB3AE; font-weight: 800; }
.navpanel.arrived { border-color: var(--ok); }
.navpanel.arrived .nav-dial { background: #0c3a22; border-color: var(--ok); }
body[data-tab='walk'] .nav-hint { display: none; }

/* ---------- toast, dialog, overlays ---------- */
.toast { position: absolute; z-index: 30; left: 12px; right: 12px; bottom: calc(var(--tabs-h) + 12px); display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 18px; border-radius: 22px; background: #F4F1E8; color: #101314; font-weight: 700; font-size: 1.04rem; line-height: 1.35; box-shadow: var(--shadow-6); transform: translateY(24px) scale(.94); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s var(--out), visibility 0s linear .2s; max-width: 536px; margin: 0 auto; }
.toast.show { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .25s, transform .5s var(--spring); }
.toast > span { flex: 1; }
.toast-act { min-height: 52px; padding: 6px 16px; border-radius: 16px; border: 0; background: #101314; color: var(--vein); font-weight: 800; white-space: nowrap; }
.modal-wrap { position: fixed; z-index: 60; inset: 0; background: rgba(4,6,7,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 18px; animation: fade-in .22s ease; }
.modal { width: min(100%, 460px); max-height: 90%; overflow-y: auto; padding: 22px 18px 16px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line2); box-shadow: var(--shadow-6), inset 0 1px 0 rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 12px; animation: modal-in .5s var(--spring); }
@keyframes modal-in { from { opacity: 0; transform: scale(.86) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.modal p { font-size: 1.08rem; color: var(--soft); line-height: 1.45; }
.modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.overlay { position: fixed; z-index: 50; inset: 0; background: var(--stage); display: none; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 16px) 18px calc(var(--safe-b) + 16px); overflow-y: auto; --hole: 0px; --ring: 0; --cx: 50%; --cy: 50%; }
.overlay.open { display: flex; }
#gate { background: radial-gradient(90% 50% at 50% 0%, rgba(242,182,50,.13) 0%, rgba(242,182,50,0) 70%), radial-gradient(120% 80% at 50% 0%, #1b2118 0%, var(--stage) 62%); }
#gate.iris { -webkit-mask-image: radial-gradient(circle at var(--cx) var(--cy), transparent calc(var(--hole) - 34px), #000 var(--hole)); mask-image: radial-gradient(circle at var(--cx) var(--cy), transparent calc(var(--hole) - 34px), #000 var(--hole)); }
.gate-topo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
.gate-topo path { fill: none; stroke: var(--gold); stroke-opacity: .16; stroke-width: 1; vector-effect: non-scaling-stroke; }
.gate-topo path.m { stroke-opacity: .3; }
.gate-card { position: relative; width: min(100%, 440px); display: flex; flex-direction: column; gap: 14px; margin: auto; animation: gate-in .6s var(--out); }
@keyframes gate-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* "What do you want to do today?": the map stays visible behind, blurred, so it feels like part of the map */
#today { z-index: 48; align-items: flex-end; background: linear-gradient(180deg, rgba(8,10,11,.35) 0%, rgba(8,10,11,.78) 45%, rgba(8,10,11,.94) 100%); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
#today.iris { -webkit-mask-image: radial-gradient(circle at var(--cx) var(--cy), transparent calc(var(--hole) - 34px), #000 var(--hole)); mask-image: radial-gradient(circle at var(--cx) var(--cy), transparent calc(var(--hole) - 34px), #000 var(--hole)); }
.today-card { width: min(100%, 520px); margin: auto auto 0; display: flex; flex-direction: column; gap: 10px; animation: gate-in .55s var(--out); }
.today-hello { color: var(--gold); font-weight: 800; font-size: 1.05rem; }
.today-card h1 { font-family: var(--display); font-size: 1.9rem; font-weight: 620; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; margin-bottom: 6px; }
.mtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mtile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; padding: 13px 13px 12px; border-radius: 24px; text-align: left; color: var(--ink); border: 1px solid var(--line2); background: linear-gradient(160deg, rgba(244,241,232,.09), rgba(244,241,232,.03)); transition: transform .18s var(--out), border-color .2s, background-color .2s; }
.mtile:active { transform: scale(.965); border-color: var(--gold); }
.mtile b { font-size: 1.12rem; font-weight: 800; line-height: 1.18; letter-spacing: -.01em; }
.mtile .sub { font-size: 1rem; line-height: 1.3; }
.mtile-icon { width: 2.4rem; height: 2.4rem; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: rgba(242,182,50,.14); color: var(--gold); }
.mtile-icon .ic { width: 1.45rem; height: 1.45rem; }
.mtile[data-mission='gold'] { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 16px; border-color: rgba(242,182,50,.6); background: linear-gradient(120deg, rgba(242,182,50,.28), rgba(242,182,50,.07)); }
.mtile[data-mission='gold'] .mtile-icon { width: 3.3rem; height: 3.3rem; border-radius: 18px; background: var(--gold); color: var(--gold-ink); flex: none; }
.mtile[data-mission='gold'] b { font-size: 1.3rem; margin: 0; }
.mt-text { display: flex; flex-direction: column; gap: 2px; }
.today-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 2px; }
@media (max-width: 360px) { .mtiles { grid-template-columns: 1fr; } .mtile { min-height: 0; } }
.gate-card h1 { font-family: var(--display); font-size: 2rem; font-weight: 620; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.brand svg { width: 76px; height: 76px; filter: drop-shadow(0 0 22px rgba(242,182,50,.45)); }
.brand h1 { font-size: 2.7rem; background: linear-gradient(100deg, #F2B632 0%, #FFF1BF 46%, #F2B632 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-bottom: .06em; }
.namelist { display: flex; flex-direction: column; gap: 8px; }
.namelist:empty { display: none; }
.namebtn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 10px 14px; border-radius: 20px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); text-align: left; font-size: 1.2rem; transition: transform .16s var(--out), border-color .2s; }
.namebtn:active { transform: scale(.975); border-color: var(--gold); }
.namebtn b { flex: 1; font-weight: 800; }
.namebtn .ic { color: var(--mute); }
.nameinit { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold-grad); color: var(--gold-ink); font-weight: 800; flex: none; }
.gate-err { color: #FFB3AE; font-weight: 800; min-height: 1.4rem; }
.gate-err:empty { display: none; }
.steps { display: flex; gap: 8px; }
.steps i { width: 30px; height: 6px; border-radius: 3px; background: rgba(244,241,232,.18); transition: background-color .3s, width .4s var(--spring); }
.steps i.on { background: var(--gold); width: 46px; }
/* the tour: a clip of the real app in a phone-shaped frame, one step per screen */
.tour { gap: 12px; }
.tour > * { position: relative; }      /* so the clip's soft shadow stays behind the words that follow it */
.tour-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: -6px; }
.tour-count { color: var(--mute); font-weight: 700; }
.tour-top .linkbtn { padding: 14px 0 14px 14px; color: var(--soft); text-decoration: none; }
.clip { position: relative; align-self: center; height: min(49vh, 440px); min-height: 250px; aspect-ratio: 390 / 760; padding: 6px; border-radius: 32px; background: linear-gradient(160deg, #474c46, #151818 55%, #2c2f2a); box-shadow: var(--shadow-6), inset 0 0 0 1px rgba(255,255,255,.14), 0 34px 70px -24px rgba(242,182,50,.34); }
.clip video { display: block; width: 100%; height: 100%; border-radius: 26px; object-fit: cover; background: #0b0e0f; }
.tour .steps { align-self: center; margin-top: 2px; }
.tour .steps i { width: 14px; }
.tour .steps i.on { width: 34px; }
.tour h1 { font-size: 1.72rem; }
.tour .lead { font-size: 1.06rem; color: var(--soft); min-height: 4.4em; }
.tour-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.tour-nav.one { grid-template-columns: 1fr; }
.tour-nav .btn { min-height: 64px; }
.tour .caption { font-size: 1.12rem; font-weight: 600; color: var(--ink); min-height: 4.5em; }
.caption.cap-in { animation: cap-in .35s var(--out); }
@keyframes cap-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.voicechip { gap: 8px; min-height: 52px; padding: 6px 14px; }
.voicechip .ic { width: 1.3rem; height: 1.3rem; }
.voicechip[aria-checked='true'] { border-color: rgba(242,182,50,.8); color: var(--vein); background: rgba(242,182,50,.12); }
.voicechip[aria-checked='false'] .ic { opacity: .45; }
.clip-replay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.8); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 7.6rem; min-height: 5.4rem; padding: 10px 14px; border-radius: 24px; border: 1px solid var(--line2); background: var(--glass-solid); color: var(--ink); font-weight: 800; font-size: 1rem; box-shadow: var(--shadow-5); opacity: 0; visibility: hidden; transition: opacity .3s, transform .45s var(--spring), visibility 0s linear .3s; }
.clip.done .clip-replay { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity .3s, transform .45s var(--spring); }
.clip.done video { filter: brightness(.55); transition: filter .4s; }
.btn.pulse { animation: next-pulse 1.5s ease-in-out infinite; }
@keyframes next-pulse { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 9px rgba(242,182,50,.22), 0 10px 26px -10px rgba(242,182,50,.7); } }
.tour.first .tour-mark, .tour.last .tour-mark { margin-top: 0; }
.tour-mark { align-self: center; width: 9.5rem; height: 9.5rem; margin: 1.2rem 0 .6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(242,182,50,.22), rgba(242,182,50,0) 70%); box-shadow: inset 0 0 0 2px rgba(242,182,50,.55); animation: bar-pop .8s var(--spring) both; }
.tour-mark svg { width: 6.4rem; height: 6.4rem; filter: drop-shadow(0 0 22px rgba(242,182,50,.5)); }
.tour.last .lead { min-height: 0; }
.howto .clip { height: min(54vh, 460px); margin: 4px 0; }
/* a gold ring where the map was tapped */
.tap-ring { position: absolute; z-index: 3; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid var(--vein); box-shadow: 0 0 14px rgba(255,213,74,.8); pointer-events: none; animation: tap-ring .55s var(--out) forwards; }
@keyframes tap-ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.art { height: 11.5rem; border-radius: 28px; background: linear-gradient(160deg, #39422f, #1a2118 60%, #2a2a1c); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid var(--line2); box-shadow: var(--shadow-4); }
.art-land { flex-direction: column; gap: 10px; padding: 0 18px; align-items: stretch; }
.mini { padding: 9px 14px; border-radius: 18px; background: var(--tone); color: var(--tone-ink); display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(0,0,0,.4); animation: card-in .6s var(--out) both; }
.mini:nth-child(2) { animation-delay: .12s; }
.mini b { font-size: 1.12rem; font-weight: 800; }
.mini span { font-weight: 700; font-size: 1rem; }
.art-gold .veinline { position: absolute; left: -10%; right: -10%; top: 50%; height: 5px; background: var(--vein); border-radius: 3px; transform: rotate(-17deg); box-shadow: 0 0 22px 8px rgba(255,179,0,.6); }
.art-gold .rankbadge { position: relative; animation: bar-pop .7s var(--spring) both; }
.art-gold .rankbadge:nth-child(3) { animation-delay: .1s; }
.art-gold .rankbadge:nth-child(4) { animation-delay: .2s; }
.art-gold .rankbadge.b { width: 2.6rem; height: 2.6rem; margin-top: 3.4rem; }
.art-walk { color: var(--ink); gap: 30px; }
.art-walk .ic { width: 3.4rem; height: 3.4rem; }
.art-walk .ic:nth-child(2) { color: var(--me); }
.art-walk::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(rgba(111,91,255,.28) 0 25%, transparent 0 50%) 0 0 / 44px 44px; opacity: .6; }
.art-walk .ic { position: relative; }

.a2hs { position: absolute; z-index: 4; left: var(--gut); right: var(--gut); bottom: calc(var(--tabs-h) + 8px); display: none; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line2); box-shadow: var(--float); max-width: 560px; margin: 0 auto; }
body[data-tab='map']:not([data-sheet]):not([data-nav]) .a2hs.open { display: flex; animation: hud-in .5s var(--sheet-ease); }
.share-msg { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 1rem; padding: 12px 14px; border-radius: 16px; background: var(--well); border: 1px solid var(--line); user-select: all; -webkit-user-select: all; }
progress { width: 100%; height: 14px; border-radius: 7px; overflow: hidden; appearance: none; -webkit-appearance: none; border: 0; background: rgba(244,241,232,.14); }
progress::-webkit-progress-bar { background: rgba(244,241,232,.14); }
progress::-webkit-progress-value { background: var(--gold-grad); border-radius: 7px; transition: width .4s var(--out); }
progress::-moz-progress-bar { background: var(--gold); }
.estimate { font-weight: 800; font-size: 1.08rem; }
.datacard { padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.datacard b { font-size: 1.08rem; font-weight: 800; }
.datacard .count { color: var(--gold); }
.datacard .notebit { color: #FFE9B8; }
.plainlist { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 8px; font-size: 1.06rem; line-height: 1.42; }
.changes { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; }
.changes .sub { display: inline; }
.area .btn { flex: none; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 65; pointer-events: none; }

/* ---------- wide screens: a rail on the left, a panel on the right ---------- */
@media (min-width: 430px) { .tab-short { display: none; } .tab-full { display: inline; } }
@media (min-width: 900px) {
  :root { --rail: 6.6rem; --gut: 14px; --tabs-h: 0px; --panel: 27rem; --side: 26rem; }   /* LS_FIT_V1: panel widths follow the text size */
  #tabs { top: 0; left: 0; right: auto; bottom: 0; width: var(--rail); height: auto; max-width: none; margin: 0; grid-template-columns: 1fr; grid-auto-rows: min-content; align-content: start; gap: 6px; padding: 14px 6px; border-radius: 0; border: 0; border-right: 1px solid var(--line); background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  #tabs button { min-height: 4.6rem; text-align: center; line-height: 1.1; border-radius: 20px; font-size: .92rem; padding-left: 4px; padding-right: 4px; white-space: normal; overflow-wrap: anywhere; }
  .tabpill { top: 0; bottom: auto; left: 6px; width: calc(100% - 12px); border-radius: 20px; }
  #top { left: calc(var(--rail) + var(--gut)); right: auto; width: min(480px, calc(100vw - var(--rail) - 7.6rem)); top: 14px; }
  body[data-sheet] #top { width: min(480px, calc(100vw - var(--rail) - var(--side) - 7.6rem)); }
  #mapbtns { position: fixed; top: 14px; right: 14px; }
  body[data-sheet] #mapbtns { right: calc(var(--side) + 14px); }
  .page { inset: 0 auto 0 var(--rail); width: min(var(--panel), calc(100vw - var(--rail) - 22rem)); border-right: 1px solid var(--line); }
  body[data-tab='spots'] #top, body[data-tab='places'] #top, body[data-tab='ask'] #top { display: grid !important; left: calc(var(--rail) + var(--panel) + var(--gut)); width: min(480px, calc(100vw - var(--rail) - var(--panel) - 7.6rem)); }
  body[data-tab='spots'] #top #mapbtns, body[data-tab='places'] #top #mapbtns, body[data-tab='ask'] #top #mapbtns { display: flex; }
  .sheet, .sheet.tall, .sheet.full { left: auto; right: 0; top: 0; bottom: 0; width: var(--side); max-height: none; border-radius: 0; border-top: 0; border-left: 1px solid var(--line2); transform: translateX(105%); }
  .sheet.open { transform: none; }
  .sheet-body { padding-bottom: 22px; }
  .page-body { -webkit-mask-image: none; mask-image: none; }
  .walkhud { left: calc(var(--rail) + var(--gut)); right: auto; width: 480px; bottom: 14px; margin: 0; }
  .toast { left: calc(var(--rail) + var(--gut)); right: auto; width: 480px; bottom: 16px; margin: 0; }
  .a2hs { left: calc(var(--rail) + var(--gut)); right: auto; width: 480px; bottom: 14px; margin: 0; }
  .maplibregl-ctrl-bottom-left { bottom: 2px; left: calc(var(--rail) + 2px); }
  #crosshair { left: calc(50% + var(--rail) / 2); }
  .askbar { padding-bottom: 12px; }
}
@media (max-width: 370px) {
  :root { --gut: 8px; }
  .sheet-body, .page-body { padding-left: 12px; padding-right: 12px; }
  .walk-live .tile b.big { font-size: 1.2rem; }
  .brand h1 { font-size: 2.3rem; }
}
@media (max-height: 700px) { .tour h1 { font-size: 1.5rem; } .tour .lead { min-height: 0; } .clip { height: 44vh; } }
@media (max-height: 640px) { .sheet { max-height: 66%; } .art { height: 8rem; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) { :root { --line: rgba(244,241,232,.4); --line2: rgba(244,241,232,.6); --mute: #D5DAD8; --glass: var(--glass-solid); } }

/* LS_FIT_V1: nothing in a card may push past its edge */
.spot-card, .spot-in, .spot-top, .spot-name, .switch-row, .seg button, .filters { min-width: 0; }
.spot-name h2, .spot-name .sub, .spot-meta, .why li, .switch-text b, .switch-text .sub { overflow-wrap: anywhere; }
.seg button { min-width: 0; white-space: normal; text-align: center; }
#tabs, #tabs button { overflow: hidden; }
.spot-name .rankof { color: var(--mute); }

/* LS_GEOLOGY_V1 */
.sw-geo { background: linear-gradient(135deg, #F2C14E 0 50%, #D9534F 50% 100%); }
.sw-geoline { background: repeating-linear-gradient(90deg, #9BE7FF 0 6px, transparent 6px 9px); height: 4px !important; align-self: center; }
.geo-key { margin: 2px 0 6px; }
/* the start menu: centred on tablets and computers (it sits at the bottom, by the thumb, only on phones); the heading
   takes focus for screen readers but needs no outline */
.today-card h1:focus, .today-card h1:focus-visible { outline: none; }
@media (min-width: 700px) and (min-height: 600px) { #today { align-items: center; } .today-card { margin: auto; } }

/* ---------- 3D mine models (js/mine3d.js) ---------- */
.m3d { position: fixed; inset: 0; z-index: 60; display: none; background: radial-gradient(120% 90% at 50% 0%, #1a2228 0%, #0c1013 60%); color: var(--ink); overscroll-behavior: contain; touch-action: none; }
.m3d.open { display: block; animation: m3d-in .35s var(--out); }
@keyframes m3d-in { from { opacity: 0; } to { opacity: 1; } }
.m3d-stage, .m3d-labels { position: absolute; inset: 0; }
.m3d-stage canvas { display: block; width: 100%; height: 100%; outline: none; }
.m3d-labels { pointer-events: none; overflow: hidden; z-index: 0; }
.m3d-stage { z-index: 0; }
.m3d-label { font-size: 1rem; font-weight: 700; line-height: 1.15; color: #fff; padding: 3px 9px; border-radius: 999px; background: rgba(10,13,15,.72); border: 1px solid rgba(255,255,255,.16); white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.m3d-label.k-shaft, .m3d-label.k-adit { border-color: rgba(242,182,50,.75); color: var(--gold-hi); }
.m3d-label.k-level { background: rgba(10,13,15,.62); font-weight: 600; }
.m3d-label.k-ruler { background: none; border: 0; color: #e8e2d2; padding: 0 4px; text-shadow: 0 1px 3px #000; }
.m3d-label.k-vein { border-color: rgba(230,239,255,.7); color: #eef4ff; }
.m3d-label.k-warn { border-color: #ff8a80; color: #ffd0cb; }
.m3d-label.k-water { border-color: #8fc6ff; color: #cfe6ff; }
.m3d-label.k-plan { border-color: #2fe6f0; color: #bff9fc; white-space: normal; max-width: 11rem; text-align: center; }
@media (max-width: 899px) { .m3d-label { font-size: .875rem; padding: 2px 8px; } }
.m3d-label.k-scale { background: rgba(77,163,255,.25); border-color: rgba(77,163,255,.7); }
.m3d-label.k-guess { background: #ffb02e; color: #2a1700; border: 0; font-weight: 850; box-shadow: 0 0 18px rgba(255,176,46,.65); }
.m3d-label.k-guess2 { border-color: #ffb02e; color: #ffd98f; }
.m3d-guess { border-left: 4px solid #ffb02e; padding-left: 12px; }
.m3d-gobtn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: 6px 0 4px; padding: 0 16px; border-radius: 999px; border: 0; background: #ffb02e; color: #2a1700; font-weight: 800; font-size: 1rem; }
.m3d-label.k-north { background: #FF6B63; color: #2B0503; border: 0; font-weight: 900; }
.m3d-label.k-extent { white-space: normal; max-width: 16rem; text-align: center; }

.m3d-top { position: absolute; top: calc(var(--safe-t) + 10px); left: 10px; right: 10px; display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); border: 1px solid var(--line2); box-shadow: var(--float); max-width: 640px; }
.m3d-iconbtn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(244,241,232,.1); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.m3d-iconbtn:active { transform: scale(.94); }
.m3d-title { min-width: 0; display: flex; flex-direction: column; }
.m3d-title h1 { font-family: var(--display); font-size: 1.3rem; font-weight: 620; letter-spacing: -.02em; line-height: 1.1; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.m3d-title h1:focus { outline: none; }
.m3d-kicker { font-size: 1rem; font-weight: 600; color: var(--gold); white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }

.m3d-tools { position: absolute; left: 10px; right: 10px; bottom: calc(var(--safe-b) + 5.4rem); display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.m3d-tools > * { pointer-events: auto; }
.m3d-seg, .m3d-views { display: flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); border: 1px solid var(--line2); box-shadow: var(--float); }
.m3d-seg button, .m3d-vbtn { min-height: 46px; min-width: 52px; padding: 0 14px; border-radius: 999px; border: 0; background: none; color: var(--soft); font-size: 1rem; font-weight: 750; }
.m3d-seg button[aria-checked='true'] { background: var(--gold); color: var(--gold-ink); }
.m3d-vbtn:active, .m3d-seg button:active { transform: scale(.95); }
.m3d-picked { position: absolute; left: 50%; transform: translate(-50%, -8px); top: calc(var(--safe-t) + 84px); width: min(calc(100% - 20px), 520px); padding: 12px 16px; border-radius: 20px; background: rgba(12,15,16,.9); border: 1px solid var(--line2); border-left: 6px solid var(--gold); box-shadow: var(--float); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--out); display: flex; flex-direction: column; gap: 3px; }
.m3d-picked.show { opacity: 1; transform: translate(-50%, 0); }
.m3d-picked b { font-size: 1.05rem; }
.m3d-picked span { color: var(--soft); font-size: 1rem; line-height: 1.35; }
.m3d-picked.b-unknown { border-left-color: #e9edf0; }
.m3d-picked.b-vein, .m3d-picked.b-estimated { border-left-color: #ffe08a; }

.m3d-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 74vh; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; background: rgba(14,17,18,.94); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); border-top: 1px solid var(--line2); box-shadow: 0 -18px 40px rgba(0,0,0,.45);
  transform: translateY(calc(100% - 4.6rem - var(--safe-b))); transition: transform .45s var(--spring, cubic-bezier(.2,.9,.2,1)); }
.m3d-panel.open { transform: none; }
.m3d-panel-head { display: grid; grid-template-columns: 1fr; justify-items: start; gap: 0; min-height: 4.6rem; padding: 18px 20px 12px; border: 0; background: none; color: var(--ink); text-align: left; position: relative; }
.m3d-grab { position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgba(244,241,232,.3); }
.m3d-panel-head b { font-size: 1.15rem; }
.m3d-panel-body { overflow-y: auto; padding: 0 20px calc(var(--safe-b) + 20px); display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; touch-action: pan-y; }
.m3d-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 8px; }
.m3d-fact { padding: 12px 14px; border-radius: 18px; background: rgba(244,241,232,.06); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.m3d-fact b { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--gold-hi); letter-spacing: -.02em; }
.m3d-sec h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.m3d-quote { margin: 0; padding: 12px 16px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: rgba(242,182,50,.07); font-family: var(--display); font-size: 1.08rem; line-height: 1.5; color: #f2ead7; }
.m3d-legend, .m3d-parts, .m3d-missing { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.m3d-legend li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.35; }
.m3d-legend i { flex: none; width: 30px; height: 10px; margin-top: 6px; border-radius: 6px; }
.lg-measured i { background: #F2B632; box-shadow: 0 0 10px rgba(242,182,50,.7); }
.lg-vein i { background: rgba(242,182,50,.5); }
.lg-estimated i { background: #FFE08A; }
.lg-unknown i { background: repeating-linear-gradient(90deg, rgba(233,237,240,.6) 0 5px, transparent 5px 9px); }
.m3d-parts li { display: flex; gap: 10px; align-items: baseline; line-height: 1.35; }
.m3d-parts .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; transform: translateY(1px); }
.dot.b-measured { background: #F2B632; } .dot.b-vein { background: rgba(242,182,50,.5); } .dot.b-estimated { background: #FFE08A; } .dot.b-unknown { border: 2px dotted #e9edf0; }
.m3d-missing li::before { content: '–'; color: var(--mute); margin-right: 8px; }
.m3d-note { line-height: 1.4; }
.m3d-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.m3d-chip { min-height: 46px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(244,241,232,.06); color: var(--ink); font-size: 1rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.m3d-chip i { width: 18px; height: 18px; border-radius: 6px; }
.m3d-chip.lg-vein i { background: #e6efff; box-shadow: 0 0 8px rgba(230,239,255,.6); }
.m3d-chip.lg-fault i { background: #ff6b63; }
.m3d-chip.lg-drill i { background: #2fe6c5; }
.m3d-chip[aria-pressed='false'] { opacity: .5; }
.m3d-chip[aria-pressed='false'] i { background: transparent; border: 2px solid var(--mute); box-shadow: none; }
.m3d-warn { display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255,107,99,.1); border: 1px solid rgba(255,107,99,.45); line-height: 1.4; }
.m3d-warn .ic { color: #ff8a80; flex: none; }
.m3d-src { line-height: 1.4; }
.m3d-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--soft); font-size: 1.05rem; font-weight: 650; pointer-events: none; }
.m3d-spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(242,182,50,.2); border-top-color: var(--gold); animation: m3d-spin .9s linear infinite; }
@keyframes m3d-spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
  .m3d-panel { left: auto; top: 0; width: 400px; max-height: none; border-radius: 0; border-top: 0; border-left: 1px solid var(--line2); transform: none; }
  .m3d-panel-head { display: none; }
  .m3d-panel-body { padding-top: 22px; }
  .m3d-top, .m3d-tools, .m3d-picked { right: 410px; }
  .m3d-tools { bottom: 18px; justify-content: flex-start; }
  .m3d-picked { left: calc((100% - 400px) / 2); top: auto; bottom: 90px; }
  .m3d-labels, .m3d-stage { right: 400px; }
}
@media (prefers-reduced-motion: reduce) { .m3d.open, .m3d-panel, .m3d-picked { animation: none; transition: none; } }

/* the card that opens a model, in the mine's sheet */
.m3d-card, .m3d-cutbtn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 12px; border-radius: 22px; text-align: left; color: var(--ink); }
.m3d-card { border: 1px solid rgba(242,182,50,.6); background: linear-gradient(120deg, rgba(242,182,50,.22), rgba(242,182,50,.05)); }
.m3d-cutbtn { border: 1px solid var(--line2); background: rgba(244,241,232,.05); }
.m3d-card:active, .m3d-cutbtn:active { transform: scale(.98); }
.m3d-card-art { flex: none; width: 76px; height: 58px; border-radius: 14px; background: linear-gradient(180deg, #24303a 0 30%, #3a2b20 30%); display: flex; align-items: center; justify-content: center; }
.m3d-card-art svg { width: 64px; height: 48px; }
.m3d-card-art .g { stroke: #9bd67a; stroke-width: 1.6; fill: none; }
.m3d-card-art .w { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.m3d-card-art .w.measured { stroke: #F2B632; } .m3d-card-art .w.vein { stroke: rgba(242,182,50,.55); } .m3d-card-art .w.estimated { stroke: #FFE08A; } .m3d-card-art .w.unknown { stroke: rgba(233,237,240,.5); stroke-dasharray: 2 3; }
.m3d-card-text, .m3d-cutbtn > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m3d-card-text b, .m3d-cutbtn b { font-size: 1.1rem; }
.m3d-cutbtn > .ic:first-child { width: 1.6rem; height: 1.6rem; color: var(--gold); margin: 0 6px 0 4px; }

/* ---------- trees removed (js/bare.js) ---------- */
.sw-bare { background: linear-gradient(135deg, #cfc6b6 0 40%, #3c78ff 40% 60%, #ff9a3c 60%); }
.bare-hero { display: flex; flex-direction: column; width: 100%; padding: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line2); background: rgba(244,241,232,.05); color: var(--ink); text-align: left; }
.bare-hero img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.bare-hero > span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.bare-hero b { font-size: 1.08rem; }
.bare-hero:active { transform: scale(.985); }
.bare-mix { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'a b c' 'd d d'; align-items: center; gap: 6px 10px; }
.bare-mix input { grid-area: b; width: 100%; min-height: 44px; accent-color: var(--gold); }
.bare-mix-end { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--soft); white-space: nowrap; }
.bare-mix-end .ic { width: 1.15rem; height: 1.15rem; }
.bare-mix-val { grid-area: d; text-align: center; color: var(--gold-hi); font-weight: 700; }
.barectl { position: absolute; z-index: 6; left: 0; right: 0; margin: 0 auto; bottom: calc(var(--tabs-h) + 104px); width: min(calc(100% - 2 * var(--gut)), 560px); box-sizing: border-box; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 26px;
  background: var(--glass); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); border: 1px solid var(--line2); box-shadow: var(--float); animation: card-in .4s var(--out) both; }
.barectl .bare-mix { flex: 1; grid-template-columns: auto 1fr auto; grid-template-areas: 'a b c'; }
.barectl .bare-mix-val { display: none; }
.barectl-help { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(244,241,232,.1); color: var(--ink); display: flex; align-items: center; justify-content: center; }
body:not([data-tab='map']) .barectl, body[data-sheet] .barectl, body[data-nav] .barectl { display: none; }
@media (max-width: 420px) { .barectl .bare-mix-end { font-size: 0; gap: 0; } .barectl .bare-mix-end .ic { width: 1.4rem; height: 1.4rem; } }
@media (min-width: 900px) { .barectl { left: var(--rail); bottom: 54px; } }
.bare-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bare-how > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; background: rgba(244,241,232,.05); border: 1px solid var(--line); }
.bare-key { display: block; height: 10px; border-radius: 5px; }
.bare-key.up { background: #ff9a3c; } .bare-key.down { background: #3c78ff; } .bare-key.flat { background: linear-gradient(90deg, #2a2a28, #e8e2d6); }
.bare-examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bare-ex { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.bare-ex img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line2); background: #222; }
.bare-ex figcaption { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.bare-ex figcaption span { color: var(--soft); }
.bare-notes { display: flex; flex-direction: column; gap: 10px; padding-left: 1.1em; line-height: 1.4; }

/* ---------- photo of the ground: newest, or a dated older one (js/photo.js) ---------- */
.photo-now { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line2); background: rgba(244,241,232,.05); color: var(--ink); text-align: left; font-size: 1rem; }
.photo-now > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.photo-now .sub { color: var(--soft); line-height: 1.35; }
.photo-now[aria-pressed='true'] { border-color: var(--gold); background: rgba(242,182,50,.1); }
.photo-now .ic { width: 1.5rem; height: 1.5rem; }
.photo-years { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.photo-years .chip[aria-pressed='true'] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.photopill { position: absolute; z-index: 6; left: 0; right: 0; margin: 0 auto; bottom: calc(var(--tabs-h) + 104px); width: min(calc(100% - 2 * var(--gut)), 520px); box-sizing: border-box; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 26px; background: var(--glass); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); border: 1px solid #ffb02e; box-shadow: var(--float); }
.photopill .pp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: center; line-height: 1.2; }
.photopill .pp-text .sub { color: var(--soft); font-size: .875rem; }
.photopill .pp-step { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(244,241,232,.1); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.photopill .pp-step:disabled { opacity: .35; }
.photopill .pp-now { flex: none; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 0; background: #ffb02e; color: #2a1700; font-weight: 800; font-size: 1rem; }
body[data-photopill] .barectl { bottom: calc(var(--tabs-h) + 166px); }
body:not([data-tab='map']) .photopill, body[data-sheet] .photopill, body[data-nav] .photopill { display: none; }
@media (min-width: 900px) { .photopill { left: var(--rail); bottom: 54px; } body[data-photopill] .barectl { bottom: 116px; } }

/* ---------- veins in the camera (js/ar.js): glass HUD in the style of current AR navigation ---------- */
.ar { position: fixed; inset: 0; z-index: 90; background: #000; color: #fff; overflow: hidden; touch-action: none; font-feature-settings: 'tnum' 1; }
.ar-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.38) 0, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 62%, rgba(0,0,0,.42) 100%); }
.ar-stage, .ar-labels { position: absolute; inset: 0; }
.ar-stage canvas { display: block; width: 100%; height: 100%; }
.ar-labels { pointer-events: none; overflow: hidden; }
.ar-lab { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 650; letter-spacing: .01em; padding: 5px 11px 5px 9px; border-radius: 999px; white-space: nowrap;
  color: #fff; background: rgba(18,20,22,.46); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border: .5px solid rgba(255,255,255,.28); box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.ar-lab::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #FFC23A; box-shadow: 0 0 0 3px rgba(255,194,58,.28); flex: none; }
.ar-lab.k-fault::before { background: #FF5B4F; box-shadow: 0 0 0 3px rgba(255,91,79,.25); }
.ar-lab.k-shaft::before { background: #FF8A4C; box-shadow: 0 0 0 3px rgba(255,138,76,.3); }
.ar-top { position: absolute; top: calc(var(--safe-t) + 10px); left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 22px; max-width: 520px;
  background: rgba(18,20,22,.42); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); border: .5px solid rgba(255,255,255,.22); }
.ar-iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ar-iconbtn .ic { width: 1.25rem; height: 1.25rem; }
.ar-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ar-title b { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.ar-acc { color: rgba(255,255,255,.72); font-size: .84rem; }
.ar-radar { position: absolute; top: calc(var(--safe-t) + 76px); right: 12px; width: 84px; height: 84px; pointer-events: none; }
.ar-bottom { position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 12px); display: flex; flex-direction: column; align-items: stretch; gap: 8px; max-width: 520px; margin: 0 auto; pointer-events: none; }
.ar-bottom > * { pointer-events: auto; }
.ar-card { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 28px;
  background: rgba(18,20,22,.5); -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7); border: .5px solid rgba(255,255,255,.24); box-shadow: 0 12px 34px rgba(0,0,0,.32); }
.ar-card-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ar-card-text > b { font-size: 1.02rem; }
.ar-kicker { font-size: .8rem; font-weight: 650; color: #FFD36B; letter-spacing: .02em; }
.ar-big { font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.08; }
.ar-card .sub { color: rgba(255,255,255,.74); font-size: .86rem; line-height: 1.3; }
.ar-dial { flex: none; width: 54px; height: 54px; border-radius: 50%; background: #FFC23A; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(255,194,58,.22); }
.ar-dial svg { width: 28px; height: 28px; fill: #2a1a00; stroke: none; transition: transform .3s cubic-bezier(.2,.9,.2,1); }
.ar-dial.on { background: #34D17A; box-shadow: 0 0 0 6px rgba(52,209,122,.25); }
.ar-dial.on svg { fill: none; stroke: #052914; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ar-calib { align-self: center; display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border-radius: 999px; background: rgba(18,20,22,.42); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: rgba(255,255,255,.85); font-size: .84rem; border: .5px solid rgba(255,255,255,.2); }
.ar-calib.tucked { display: none; }
.ar-calib-text { min-width: 0; }
.ar-reset { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: .84rem; }
.ar-warn { align-self: center; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(18,20,22,.38); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: rgba(255,214,190,.95); font-size: .8rem; }
.ar-warn .ic { flex: none; width: 1rem; height: 1rem; }
.ar-msg { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); max-width: 520px; margin: 0 auto; padding: 24px; border-radius: 24px; background: var(--glass-solid, #15191b); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 10px; }
.ar-msg > .ic { width: 2rem; height: 2rem; color: var(--gold); }
.ar-msg h2 { margin: 0; font-size: 1.3rem; }
.ar-msg p { margin: 0; line-height: 1.45; }
.ar-msg .sub { color: var(--soft); }
.ar-msg .btn { align-self: flex-start; margin-top: 6px; }
@media (min-width: 700px) { .ar-radar { width: 110px; height: 110px; } }

/* ===================== LS_SIMPLE_V2: the land answer, big and in its own colour ===================== */
/* Solid colour with dark writing reads in bright sun; a glass bar with pale writing did not. */
#top > .landbar { grid-column: 1 / -1; grid-row: 1; }
#top > .navpanel { grid-column: 1; grid-row: 2; }
#maprow .leftchips { grid-column: 1; grid-row: 3; }
#maprow #mapbtns { grid-column: 2; grid-row: 2 / 6; }
.landbar { width: 100%; justify-self: stretch; min-height: 5.2rem; gap: 12px; padding: 10px 12px 10px 12px; border-radius: 22px;
  background: var(--tone); background-image: var(--tone-pattern, none); color: var(--tone-ink); border: 2px solid rgba(0,0,0,.18);
  box-shadow: 0 10px 28px -10px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
.landbar.tone-unknown { --tone: #2E3536; --tone-ink: #F4F1E8; border-color: rgba(244,241,232,.25); }
.landbar-icon { width: 3rem; height: 3rem; background: rgba(0,0,0,.16); background-image: none; color: var(--tone-ink); }
.landbar.tone-unknown .landbar-icon { background: rgba(255,255,255,.1); }
.landbar-icon .ic { width: 1.6rem; height: 1.6rem; }
.landbar-text { flex: 1 1 auto; gap: 1px; }
.landbar-where { font-size: .9rem; font-weight: 800; color: inherit; opacity: .78; line-height: 1.15; }
.landbar-title { font-size: 1.42rem; font-weight: 800; color: inherit; line-height: 1.1; letter-spacing: -.015em; -webkit-line-clamp: 2; line-clamp: 2; }
.landbar-sub { font-size: 1rem; font-weight: 700; color: inherit; opacity: .86; line-height: 1.22; -webkit-line-clamp: 2; line-clamp: 2; }
.landbar-more { flex: none; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 0; font-size: .82rem; font-weight: 800; opacity: .8; }
.landbar-more .ic { width: 1.5rem; height: 1.5rem; stroke-width: 2.6; }
@media (max-width: 380px) { .landbar-more span { display: none; } .landbar-title { font-size: 1.28rem; } }

/* map buttons: a word under every picture, so nobody has to guess */
#mapbtns { gap: 7px; }
.mapbtn { width: 4.1rem; height: 4.1rem; min-width: 60px; min-height: 60px; border-radius: 20px; flex-direction: column; gap: 1px; background: var(--glass-solid); }
.mapbtn .lbl { position: static !important; width: auto; height: auto; overflow: visible; clip: auto; font-size: .78rem; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.mapbtn .ic { width: 1.5rem; height: 1.5rem; }
.mapbtn.compass svg { width: 1.6rem; height: 1.6rem; }
.netchip[data-state='online'] { display: none; }
.backlink { display: inline-flex; align-items: center; gap: 6px; min-height: 52px; margin: 0 0 4px -6px; padding: 0 12px 0 4px; border: 0; border-radius: 26px; background: none; color: var(--vein); font-size: 1.05rem; font-weight: 800; }
.backlink .ic { width: 1.5rem; height: 1.5rem; stroke-width: 2.6; }

/* LS_SIMPLE_V2: the start screen asks one thing, with two big answers */
.today-card.simple { gap: 14px; }
.today-card.simple h1 { font-size: 2.2rem; }
.mtiles.two { grid-template-columns: 1fr; gap: 14px; }
.mtile.big { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; min-height: 7.4rem; padding: 18px 16px 18px 18px; border-radius: 28px; border-width: 2px; }
.mtile.big .mtile-icon { width: 3.8rem; height: 3.8rem; border-radius: 20px; flex: none; }
.mtile.big .mtile-icon .ic { width: 2rem; height: 2rem; }
.mtile.big b { font-size: 1.45rem; line-height: 1.12; }
.mtile.big .sub { font-size: 1.02rem; color: var(--soft); margin-top: 3px; }
.mtile.big .mt-text { flex: 1 1 auto; min-width: 0; }
.mtile-go .ic { width: 1.7rem; height: 1.7rem; color: var(--soft); stroke-width: 2.6; }
.mtile.big[data-mission='claim'] { border-color: rgba(61,220,132,.6); background: linear-gradient(120deg, rgba(61,220,132,.24), rgba(61,220,132,.06)); }
.mtile.big[data-mission='claim'] .mtile-icon { background: var(--ok); color: #04220F; }
.today-note { color: var(--soft); font-size: 1rem; line-height: 1.4; }
.today-card.simple .today-foot { flex-direction: column; align-items: stretch; gap: 4px; }
.today-card.simple .today-foot .btn { min-height: 52px; font-size: 1.05rem; }

/* LS_SIMPLE_V2: Layers presets. One wide row each: what it shows, then why it helps. */
.views.presets { grid-template-columns: 1fr; gap: 10px; }
.viewcard.preset { flex-direction: row; align-items: flex-start; gap: 14px; min-height: 0; padding: 14px 14px 14px 14px; border-radius: 22px; border-width: 2px; }
.viewcard.preset .viewicon { width: 3rem; height: 3rem; border-radius: 16px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(242,182,50,.14); color: var(--gold); }
.viewcard.preset .viewicon .ic { width: 1.6rem; height: 1.6rem; }
.preset-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.viewcard.preset b { font-size: 1.2rem; }
.viewcard.preset .sub { color: var(--ink); font-weight: 600; }
.viewcard.preset .preset-why { display: block; color: var(--mute); font-size: 1rem; line-height: 1.35; font-weight: 500; }
.preset-tick { flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--line2); display: flex; align-items: center; justify-content: center; align-self: center; color: transparent; }
.preset-tick .ic { width: 1.2rem; height: 1.2rem; stroke-width: 3; }
.viewcard.preset[aria-pressed='true'] .preset-tick { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.viewcard.preset[aria-pressed='true'] .viewicon { background: var(--gold); color: var(--gold-ink); }
.morepresets { margin-top: 10px; }
.morepresets summary { min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 6px; color: var(--vein); font-weight: 800; font-size: 1.05rem; cursor: pointer; list-style: none; }
.morepresets summary::-webkit-details-marker { display: none; }
.morepresets summary::before { content: '+'; display: inline-flex; width: 1.6rem; height: 1.6rem; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid currentColor; font-size: 1.1rem; line-height: 1; }
.morepresets[open] summary::before { content: '\2212'; }
.singles-head { font-family: var(--display); font-size: 1.4rem; font-weight: 620; letter-spacing: -.02em; margin: 26px 2px 4px; padding-top: 18px; border-top: 1px solid var(--line2); }
.switch-text .sub { color: var(--soft); }
.viewcard.preset { padding: 12px 12px; gap: 12px; }
.viewcard.preset .viewicon { width: 2.7rem; height: 2.7rem; }
.viewcard.preset b { font-size: 1.15rem; }
@media (max-width: 459px) { .landbar-more span { display: none; } }
/* walking: the panel needs the room, so only Find me stays on the map side */
body[data-tab='walk'] #mapbtns > :not(#btn-locate):not(#btn-compass) { display: none; }
.maplibregl-ctrl-attrib { font-size: .8rem; }
.mapbtn { width: 4.5rem; min-width: 64px; }
.mapbtn .lbl { font-size: 1rem; letter-spacing: -.02em; }
.landbar-where { font-size: 1rem; }
/* the survey key on the map */
.surveypill { position: absolute; z-index: 6; left: 0; right: 0; margin: 0 auto; bottom: calc(var(--tabs-h) + 104px); width: min(calc(100% - 2 * var(--gut)), 520px); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 24px; background: var(--glass-solid); border: 1px solid var(--line2); box-shadow: var(--float); }
body:has(#barectl) .surveypill, body[data-photopill] .surveypill { bottom: calc(var(--tabs-h) + 176px); }
.surveypill .sp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 4px 8px; border: 0; background: none; text-align: left; color: var(--ink); }
.surveypill .sp-text b { font-size: 1.05rem; }
.surveypill .sub { font-size: 1rem; color: var(--soft); }
.sp-ramp { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: var(--soft); }
.sp-ramp i { flex: 1; height: 12px; border-radius: 6px; }
.sp-dots { display: flex; gap: 6px; }
.sp-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0,0,0,.4); }
.surveypill .sp-off { flex: none; min-width: 64px; min-height: 52px; border-radius: 20px; border: 1px solid var(--line2); background: var(--raise); color: var(--ink); font-weight: 800; font-size: 1.05rem; }
@media (min-width: 900px) { .surveypill { left: var(--rail); bottom: 54px; } body:has(#barectl) .surveypill { bottom: 126px; } }
.sp-keys { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 1rem; font-weight: 700; color: var(--soft); }
.sp-keys > span { display: inline-flex; align-items: center; gap: 6px; }
.sp-keys i { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.sw-stream { background: #1b2021; }
.sw-stream::after { content: ''; position: absolute; left: 7px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: #FFE14D; border: 1.5px solid #101314; box-shadow: 11px 6px 0 -1px #FF9A3D, 3px 12px 0 -3px #9AA5A1; }
.verdict-detail { font-size: 1rem; color: var(--soft); margin-top: 6px; }
.clues { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.clues li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.clues li .ic { color: var(--gold); flex: none; width: 1.4rem; height: 1.4rem; stroke-width: 3; margin-top: 1px; }
body:has(#surveypill) .a2hs, body[data-sheet] .a2hs { display: none; }
/* LS_BEST_V1: best places score in the spot sheet */
.bestscore { display: grid; gap: 6px; margin: 2px 0 8px; }
.bestscore b { font-size: 1.05rem; }
.bestbar { height: 12px; border-radius: 6px; position: relative; margin: 4px 0; background: linear-gradient(90deg, #3a3f41 0%, #3a3f41 80%, #5B3E96 80%, #C2185B 90%, #FF6F00 95%, #FFC400 98%, #FFF59D 100%); }
.bestbar i { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--card); }
/* LS_KEY_V1: the on-map color key (tappable swatches, explain, hide) and the "What the colors mean" sheet */
.surveypill .sp-text { gap: 6px; }
.surveypill .sp-title { border: 0; background: none; padding: 0; text-align: left; color: var(--ink); font: inherit; }
.sp-sws { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-sw { width: 34px; height: 34px; border-radius: 10px; border: 2px solid rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(0,0,0,.5); padding: 0; flex: none; }
.sp-sw:active { transform: scale(.92); }
.sp-what { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 40px; padding: 0 12px 0 8px; border-radius: 20px; border: 1px solid var(--line2); background: var(--raise); color: var(--ink); font-weight: 700; font-size: 1rem; }
.sp-what svg, .surveypill .sp-off svg { width: 20px; height: 20px; }
.surveypill .sp-off { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 1.05rem; }
@media (min-width: 900px) { body[data-sheet] .surveypill { right: var(--side); } }
.keyhead b { font-size: 1.2rem; }
.keyhead p { margin: 6px 0 12px; color: var(--soft); }
.keyrows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.keyrow { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.keyrow.focus { border-color: var(--gold, #F5C04A); box-shadow: 0 0 0 2px var(--gold, #F5C04A) inset; }
.keyrow b { font-size: 1.08rem; }
.keyrow p { margin: 4px 0 0; color: var(--soft); }
.keysw { width: 44px; height: 44px; border-radius: 12px; border: 2px solid rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.keyrow .keyx { color: var(--ink); font-weight: 700; }
.keyrow .keyx.up::before { content: '▲ '; color: #7CE38B; }
.keyrow .keym { font-size: 1.02rem; color: var(--mute); }
.keynote { margin-top: 14px; }
.keybtns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
/* LS_GOOD_V1: "How good is this spot?" */
.bestscore .k { color: var(--soft); font-size: 1.06rem; }
.reading-title { margin: 16px 0 6px; font-size: 1.05rem; }
.reading { padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; }
.reading-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.reading .sub { margin: 4px 0 0; }
.lvl { font-weight: 800; }
.lvl-0 { color: var(--mute); font-weight: 600; }
.lvl-1 { color: #FFE082; } .lvl-2 { color: #FFA000; } .lvl-3 { color: #F4511E; } .lvl-4 { color: #FF5252; }
.why-diff { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: rgba(245,192,74,.12); border: 1px solid rgba(245,192,74,.35); }
.why-diff svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
/* LS_LANDFORM_V1 */
.lfrow { padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; }
.lfrow p { margin: 4px 0 0; color: var(--soft); }
.lfgold { font-weight: 700; color: var(--ink) !important; }
.lf-good { color: #FFD54F !important; }
.sw-lf { background: radial-gradient(circle at 70% 50%, #FFD54F 0 4px, transparent 5px), linear-gradient(#2a2f30,#2a2f30); }
/* LS_LANDREPORT_V1 */
.row.sub-row { margin-left: 18px; }
.patchrow { align-items: flex-start; }
.patchsw { width: 22px; height: 22px; border-radius: 6px; flex: none; margin-top: 3px; border: 2px solid rgba(255,255,255,.7); }
.plainlist { margin: 6px 0 0; padding-left: 20px; color: var(--soft); }
.patchrow .rowtext .sub { display: block; }
.glvl-0 { color: var(--mute); font-weight: 600; } .glvl-1 { color: #B3E5FC; } .glvl-2 { color: #4FC3F7; } .glvl-3 { color: #64B5F6; } .glvl-4 { color: #90CAF9; }
/* LS_GRAVEL_V1 */
.gravelbox, .markskey { margin: 4px 0 14px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.gravelpic svg { width: 100%; height: auto; display: block; margin: 8px 0; border-radius: 10px; }
.gravel-steps { margin: 6px 0; padding-left: 22px; display: grid; gap: 6px; color: var(--soft); }
.markskey ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.markskey li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; color: var(--soft); }
.markdot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,.8); justify-self: center; }
.markdot.big { width: 22px; height: 22px; border: 3px solid #fff; }
.marktxt { font-style: normal; font-weight: 800; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; justify-self: center; }
/* LS_GLOSS_V1 */
.gloss { padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin: 8px 0; }
.gloss p { margin: 6px 0 0; color: var(--soft); }
.gloss-gold { display: flex; gap: 8px; color: var(--ink) !important; font-weight: 600; }
.gloss-gold svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #F5C04A; }
.glossbox { margin: 4px 0 8px; }
.glossbox summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: #F5C04A; font-size: 1.05rem; }
/* LS_PHONE_V2: phones (portrait, under 600 px wide). Room for the map: a two-line land bar, four map buttons that
   never sit under the color key, the key as one short row just above the tabs, and toasts moved to the top. */
@media (max-width: 599px) {
  .landbar { min-height: 52px; padding: 6px 12px 6px 6px; gap: 8px; }
  .landbar-where { display: none; }
  .landbar-title { font-size: 1.12rem; -webkit-line-clamp: 1; line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
  .landbar-sub { font-size: 1rem; -webkit-line-clamp: 1; line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
  .landbar-icon { width: 42px; height: 42px; flex: none; }
  .landbar-more > span { display: none; }
  #btn-ar { display: none !important; }                 /* the camera is under More on phones */
  #mapbtns { gap: 6px; }
  .mapbtn { width: 4rem; min-width: 60px; height: 3.55rem; min-height: 56px; border-radius: 18px; }
  .mapbtn .ic { width: 1.35rem; height: 1.35rem; }
  /* the color key: one short row just above the tabs */
  .surveypill { bottom: calc(var(--tabs-h) + 8px); padding: 6px 6px 6px 10px; gap: 6px; border-radius: 20px; }
  .surveypill .sp-text { gap: 4px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .surveypill .sp-title { flex: 1 1 100%; }
  .surveypill .sp-title b { font-size: 1.02rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sp-sws { gap: 6px; flex-wrap: nowrap; }
  .sp-sw { width: 30px; height: 30px; border-radius: 8px; }
  .sp-what { min-height: 40px; min-width: 52px; padding: 0 10px; justify-content: center; }
  .sp-what span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .surveypill .sp-off { min-width: 56px; min-height: 52px; }
  body:not([data-tab='map']) .surveypill { display: none; }
  body:has(#surveypill) .maplibregl-ctrl-bottom-left { bottom: calc(var(--tabs-h) + 92px); }
  .toast { top: calc(var(--safe-t, 0px) + 74px); bottom: auto; transform: translateY(-16px) scale(.96); }
}
@media (max-width: 599px) {
  body[data-sheet] #mapbtns { visibility: hidden; }          /* a sheet is open: its own buttons are what count */
  body[data-tab='walk'] #mapbtns { display: none; }          /* the Walk panel has its own controls */
  .maplibregl-ctrl-attrib-inner { font-size: .9rem; }
}
/* LS_QUICK_V1: quick map switch row */
.quickrow { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 2px 2px 4px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.quickrow::-webkit-scrollbar { display: none; }
#top > .quickrow { grid-column: 1 / -1; grid-row: 2; }
.qchip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 16px; border-radius: 26px; border: 1px solid var(--line2); background: var(--glass-solid); color: var(--ink); font-weight: 800; font-size: 1.02rem; box-shadow: var(--float); white-space: nowrap; }
.qchip svg { width: 20px; height: 20px; }
.qchip[aria-pressed='true'] { background: #F5C04A; color: #1a1300; border-color: transparent; }
.qchip.all { background: var(--raise); }
.qchip.reset { background: rgba(255,255,255,.12); }
.qchip:active { transform: scale(.95); }
body:not([data-tab='map']) .quickrow { display: none; }
@media (min-width: 900px) { #top > .quickrow { grid-column: 1; } }
#top:has(.navpanel.open) > .quickrow { display: none; }
/* LS_THUMB_V1: phones: map buttons low on the right where the thumb is; the quick row replaces the Show button */
@media (max-width: 599px) {
  body[data-sheet] .quickrow { visibility: hidden; }
  #mapbtns { position: fixed; right: var(--gut); bottom: calc(var(--tabs-h) + 10px); flex-direction: column; z-index: 6; }
  body:has(#surveypill) #mapbtns { bottom: calc(var(--tabs-h) + 92px); }
  #btn-layers { display: none !important; }
  body:has(#surveypill) .maplibregl-ctrl-bottom-left { bottom: calc(var(--tabs-h) + 92px); }
  .surveypill { right: var(--gut); left: var(--gut); width: auto; margin: 0; }
}
/* LS_SUN_V1: bright-sun mode */
html[data-sun='on'] { --glass: rgba(0,0,0,.94); --glass-solid: #000; --soft: #FFFFFF; --mute: #E6E6E6; --line: rgba(255,255,255,.35); --line2: rgba(255,255,255,.7); --card: #0A0A0A; --surface: #000; }
html[data-sun='on'] .mapbtn, html[data-sun='on'] .qchip, html[data-sun='on'] .surveypill, html[data-sun='on'] #tabs { border-width: 2px; border-color: #fff; }
html[data-sun='on'] body { font-weight: 600; }
html[data-sun='on'] .sheet, html[data-sun='on'] .page { background: #000; }
html[data-sun='on'] .landbar { box-shadow: 0 0 0 2px #000, 0 4px 18px rgba(0,0,0,.6); }
html[data-sun='on'] .maplibregl-ctrl-scale, html[data-sun='on'] .maplibregl-ctrl-attrib { background: #000; color: #fff; }
@media (max-width: 599px) { .maplibregl-ctrl-attrib { max-width: calc(100vw - 128px); } }
/* LS_TRUCK_V1: phone on its side (in a dash mount): map in the middle, bars kept to the edges */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 899.98px) {
  #top { right: auto; width: min(58vw, 520px); }
  .landbar-where { display: none; }
  .landbar-title, .landbar-sub { -webkit-line-clamp: 1; line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
  .landbar { min-height: 52px; padding: 4px 12px 4px 6px; }
  .landbar-icon { width: 40px; height: 40px; }
  .landbar-more > span { display: none; }
  #mapbtns { position: fixed; top: calc(var(--safe-t) + 8px); right: calc(var(--gut) + env(safe-area-inset-right, 0px)); bottom: auto; flex-direction: column; gap: 6px; }
  #btn-ar { display: none !important; }
  .mapbtn { height: 3.3rem; min-height: 52px; width: 4rem; min-width: 60px; border-radius: 16px; }
  .surveypill { left: var(--gut); right: auto; width: min(56vw, 480px); margin: 0; bottom: calc(var(--tabs-h) + 6px); }
  .surveypill .sp-what span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .toast { top: calc(var(--safe-t) + 70px); bottom: auto; width: min(56vw, 480px); left: var(--gut); right: auto; margin: 0; }
}
@media (max-width: 599px) {
  /* following you by GPS: say so ("You are here"), it matters more than the extra line */
  .landbar[data-source='gps'] .landbar-where { display: block; font-size: 1rem; line-height: 1.1; }
  /* the install banner sits where the thumb buttons are: lift the buttons above it */
  body[data-tab='map']:not([data-sheet]):not([data-nav]):has(.a2hs.open) #mapbtns { bottom: calc(var(--tabs-h) + 96px); }
}

/* LS_PHONE_V3: map first. One slim land bar with Search and More beside it at the top, two thumb buttons
   (Maps, Find me) low on the right, the color key as one slim row; no sideways-scrolling chips on phones. */
@media (max-width: 599px) {
  .quickrow { display: none !important; }
  #top { right: calc(var(--gut) + 124px); }
  .landbar { min-height: 52px; padding: 4px 10px 4px 4px; }
  .landbar-sub { display: none !important; }
  .landbar[data-source='gps'] .landbar-where { font-size: .95rem; }
  .landbar-icon { width: 40px; height: 40px; }
  .landbar-title { font-size: 1.08rem; }
  #btn-layers { display: flex !important; }
  #btn-search, #btn-more { position: fixed; top: calc(var(--safe-t) + 8px); width: 56px; min-width: 56px; height: 56px; min-height: 56px; border-radius: 18px; }
  #btn-more { right: var(--gut); }
  #btn-search { right: calc(var(--gut) + 64px); }
  #btn-search .lbl, #btn-more .lbl { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #btn-search .ic, #btn-more .ic { width: 1.5rem; height: 1.5rem; }
  #mapbtns { bottom: calc(var(--tabs-h) + 12px); }
  body:has(#surveypill) #mapbtns { bottom: calc(var(--tabs-h) + 78px); }
  #btn-layers .lbl::before { content: none; }
  /* the key: one slim row */
  .surveypill { min-height: 0; padding: 4px 4px 4px 12px; align-items: center; bottom: calc(var(--tabs-h) + 8px); }
  .surveypill .sp-text { flex-wrap: nowrap; gap: 8px; }
  .surveypill .sp-title { flex: 1 1 auto; min-width: 0; }
  .sp-sws { gap: 4px; }
  .sp-sw { width: 18px; height: 18px; border-radius: 5px; border-width: 1.5px; }
  .surveypill .sp-off { flex-direction: row; min-width: 52px; min-height: 52px; padding: 0 10px; }
  .surveypill .sp-off span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body:has(#surveypill) .maplibregl-ctrl-bottom-left { bottom: calc(var(--tabs-h) + 70px); }
  .maplibregl-ctrl-scale { font-size: .9rem; }
  body[data-sheet] #btn-search, body[data-sheet] #btn-more { visibility: hidden; }
}

@media (max-width: 599px) {
  .landbar-title { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: 1.02rem; line-height: 1.15; }
  .surveypill .sp-title b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: 1rem; line-height: 1.15; }
}
