/* ==========================================================================
   AnySync v2 — "discover" group: Nearby · Events · City Marathon Live · City Quest
   (src/client/orbit-v2-discover*.ts). Semantic tokens only; class prefix v2-discover-.
   ========================================================================== */

/* ------------------------------------------------------------ shared ---- */

.v2-discover-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: .8125rem;
}
.v2-discover-note svg { flex: none; }
.v2-discover-pop-title { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 650; }

.v2-discover-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
  color: var(--muted);
}
.v2-discover-search:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.v2-discover-input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: none;
  color: var(--foreground);
  font: inherit;
  font-size: .9375rem;
}
.v2-discover-input::placeholder { color: var(--muted); }
.v2-discover-input:focus { outline: none; }
.v2-discover-input.is-boxed,
.v2-discover-field select,
.v2-discover-field textarea,
.v2-discover-field input:not([type="range"]) {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--foreground) 4%, var(--surface-glass-strong));
  color: var(--foreground);
  font: inherit;
  font-size: .9375rem;
  color-scheme: light dark;
}
.v2-discover-field textarea { min-height: 88px; padding: 10px 14px; resize: vertical; }
.v2-discover-input.is-boxed:focus,
.v2-discover-field select:focus,
.v2-discover-field textarea:focus,
.v2-discover-field input:not([type="range"]):focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.v2-discover-field select option { background: var(--surface); color: var(--foreground); }
.v2-discover-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v2-discover-field-label { font-size: .875rem; font-weight: 600; color: var(--foreground); }
.v2-discover-field-error { margin: 0; color: var(--danger); font-size: .8125rem; font-weight: 600; }
.v2-discover-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 599px) { .v2-discover-form-grid { grid-template-columns: minmax(0, 1fr); } }

.v2-discover-range { width: 100%; min-height: 40px; accent-color: var(--primary); }
.v2-discover-range:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.v2-discover-range-head { display: flex; justify-content: space-between; align-items: baseline; }
.v2-discover-range-value { font-weight: 650; color: var(--primary); }
.v2-discover-range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }

/* The stylized maps (orbit-v2-discover-map.ts): a viewport that crops a 3:2 canvas like `cover`. */
.v2-discover-map {
  position: relative;
  overflow: hidden;
  container-type: size;
  border-radius: calc(var(--radius) - 6px);
  background: var(--surface-2);
}
.v2-discover-map-canvas {
  --zoom: 1;
  position: absolute;
  inset: 0;
  transform: scale(var(--zoom));
  transition: transform .25s ease;
}
.v2-discover-map-canvas.is-locked {
  inset: auto;
  left: 50%;
  top: 50%;
  width: max(100cqw, 150cqh);
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%) scale(var(--zoom));
}
.v2-discover-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
/*
 * City palette. Dark / Universe: night map — dark blocks, the streets between
 * them a teal-tinted glow, glassy river. Light: a clean day map — white
 * streets, soft lilac-grey blocks, blue water, green parks.
 */
.v2-discover-map {
  --map-street: color-mix(in srgb, var(--primary) 16%, var(--surface-2));
  --map-block: color-mix(in srgb, var(--bg) 62%, var(--surface));
  --map-block-b: color-mix(in srgb, var(--bg) 48%, var(--surface));
  --map-park: color-mix(in srgb, var(--green) 16%, var(--bg));
  --map-tree: color-mix(in srgb, var(--green) 30%, var(--bg));
  --map-road: color-mix(in srgb, var(--primary) 30%, var(--surface-2));
  --map-major: color-mix(in srgb, var(--primary) 46%, var(--surface-2));
  --map-case: color-mix(in srgb, var(--bg) 70%, transparent);
  --map-bank: color-mix(in srgb, var(--sky) 26%, var(--bg));
  --map-water: color-mix(in srgb, var(--sky) 20%, var(--bg));
  --map-sheen: color-mix(in srgb, var(--sky) 40%, transparent);
  --map-label: color-mix(in srgb, var(--foreground) 52%, transparent);
}
:root[data-theme="light"] .v2-discover-map {
  --map-street: #ffffff;
  --map-block: color-mix(in srgb, var(--bg) 70%, #e4e8ef);
  --map-block-b: color-mix(in srgb, var(--bg) 40%, #e9ecf2);
  --map-park: color-mix(in srgb, var(--green) 20%, #f1f6ee);
  --map-tree: color-mix(in srgb, var(--green) 34%, #eef5ea);
  --map-road: #ffffff;
  --map-major: #ffffff;
  --map-case: color-mix(in srgb, var(--foreground) 12%, transparent);
  --map-bank: color-mix(in srgb, var(--sky) 30%, #ffffff);
  --map-water: color-mix(in srgb, var(--sky) 38%, #ffffff);
  --map-sheen: color-mix(in srgb, #ffffff 70%, transparent);
  --map-label: color-mix(in srgb, var(--foreground) 55%, transparent);
}
.v2-discover-map-bg { fill: var(--map-street); stroke: none; }
.v2-discover-map-block { fill: var(--map-block); stroke: none; }
.v2-discover-map-block.is-b { fill: var(--map-block-b); }
.v2-discover-map-park { fill: var(--map-park); stroke: color-mix(in srgb, var(--green) 22%, transparent); stroke-width: 1; }
.v2-discover-map-tree { fill: var(--map-tree); stroke: none; }
.v2-discover-map-road { fill: none; stroke: var(--map-road); stroke-width: 3.5; stroke-linecap: round; }
.v2-discover-map-road-case { fill: none; stroke: var(--map-case); stroke-width: 9; stroke-linecap: round; }
.v2-discover-map-road.is-major { stroke: var(--map-major); stroke-width: 6; }
.v2-discover-map-river-bank { fill: none; stroke: var(--map-bank); stroke-width: 40; stroke-linecap: round; stroke-linejoin: round; }
.v2-discover-map-river { fill: none; stroke: var(--map-water); stroke-width: 31; stroke-linecap: round; stroke-linejoin: round; }
.v2-discover-map-river-sheen { fill: none; stroke: var(--map-sheen); stroke-width: 1.5; stroke-dasharray: 26 18; stroke-linecap: round; opacity: .7; }
.v2-discover-map-label {
  fill: var(--map-label);
  stroke: var(--map-street);
  stroke-width: 3px;
  stroke-linejoin: round;
  paint-order: stroke;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  text-anchor: middle;
  font-family: inherit;
}
.v2-discover-map-label.is-big { font-size: 19px; font-weight: 600; letter-spacing: -.01em; fill: color-mix(in srgb, var(--foreground) 62%, transparent); }
.v2-discover-map-tools { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.v2-discover-map-top { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 3; display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; pointer-events: none; }
.v2-discover-map-top > * { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .v2-discover-map-canvas { transition: none; } }

/* ============================================================= NEARBY === */

.v2-discover-vis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 60%, var(--glass-border));
  border-radius: 999px;
  background: var(--surface-glass);
  color: var(--foreground);
  font: inherit;
  font-size: .9375rem;
  font-weight: 550;
  cursor: pointer;
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
}
.v2-discover-vis > svg:first-child { color: var(--primary); }
.v2-discover-vis[data-mode="hidden"] > svg:first-child { color: var(--violet); }
.v2-discover-vis:hover { background: var(--primary-soft); }
.v2-discover-vis:focus-visible { outline: none; box-shadow: var(--ring); }
.v2-discover-vis-panel { display: flex; flex-direction: column; gap: 12px; }
.v2-discover-vis-lead { margin: 0; color: var(--muted); font-size: .9375rem; }
.v2-discover-vis-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.v2-discover-vis-row {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: .875rem;
}
.v2-discover-vis-row > svg { flex: none; margin-top: 2px; color: var(--muted); }
.v2-discover-vis-row.is-current { border-color: color-mix(in srgb, var(--primary) 50%, transparent); background: var(--primary-soft); }
.v2-discover-vis-row.is-current > svg { color: var(--primary); }
.v2-discover-vis-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; margin-bottom: 2px; }
.v2-discover-vis-now { padding: 1px 8px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: .75rem; font-weight: 600; }
.v2-discover-vis-note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .8125rem; }

/* Layout: two columns on desktop; one ordered column below 1024px. */
.v2-discover-nearby {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.v2-discover-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.v2-discover-mode { max-width: 440px; }
@media (max-width: 1023px) {
  .v2-discover-nearby { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .v2-discover-col { display: contents; }
  .v2-discover-mode { order: 1; max-width: none; }
  .v2-discover-radar-card { order: 2; }
  .v2-discover-filter { order: 3; }
  .v2-discover-place { order: 4; }
  .v2-discover-detail { order: 5; }
  .v2-discover-friends-card { order: 6; }
  .v2-discover-popular { order: 7; }
}

/* Radar */
.v2-discover-radar-card { display: flex; flex-direction: column; gap: 6px; }
.v2-discover-radar {
  --heading: 0deg;
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.v2-discover-radar-field {
  position: absolute;
  inset: 0;
  transform: rotate(calc(-1 * var(--heading)));
  transition: transform .2s linear;
}
.v2-discover-radar-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.v2-discover-radar-disc { fill: none; stroke: color-mix(in srgb, var(--primary) 55%, transparent); stroke-width: .35; }
.v2-discover-radar-ring { fill: none; stroke: color-mix(in srgb, var(--primary) 22%, transparent); stroke-width: .22; stroke-dasharray: .7 1.1; }
.v2-discover-radar-ring.is-strong { stroke: color-mix(in srgb, var(--primary) 38%, transparent); stroke-width: .3; stroke-dasharray: none; }
.v2-discover-radar-axis { stroke: color-mix(in srgb, var(--primary) 18%, transparent); stroke-width: .2; fill: none; }
.v2-discover-radar-tick { stroke: color-mix(in srgb, var(--primary) 45%, transparent); stroke-width: .3; fill: none; }
/* The disc: a lit centre fading to the rim, a soft halo round the edge. */
.v2-discover-radar-glow {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent) 0, color-mix(in srgb, var(--primary) 8%, transparent) 34%, color-mix(in srgb, var(--primary) 3%, transparent) 70%, color-mix(in srgb, var(--primary) 9%, transparent) 100%);
  box-shadow: 0 0 calc(34px * var(--glow-scale, 1)) color-mix(in srgb, var(--primary) 16%, transparent), inset 0 0 calc(30px * var(--glow-scale, 1)) color-mix(in srgb, var(--primary) 14%, transparent);
  pointer-events: none;
}
:root[data-theme="light"] .v2-discover-radar-glow {
  background: radial-gradient(circle, color-mix(in srgb, var(--sky) 20%, #ffffff) 0, color-mix(in srgb, var(--primary) 6%, #ffffff) 45%, color-mix(in srgb, var(--violet) 7%, #ffffff) 100%);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 12%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--primary) 10%, transparent);
}
.v2-discover-radar-beacons { position: absolute; inset: 0; pointer-events: none; }
.v2-discover-radar-beacon {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 calc(10px * var(--glow-scale, 1)) 2px color-mix(in srgb, var(--tone) 60%, transparent);
}
/* A rotating beam: a sharp leading edge fading back into the disc. */
.v2-discover-radar-sweep {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, color-mix(in srgb, var(--primary) 6%, transparent) 310deg, color-mix(in srgb, var(--primary) 30%, transparent) 356deg, color-mix(in srgb, var(--primary) 70%, transparent) 359.5deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle, var(--foreground) 0, var(--foreground) 55%, transparent 72%);
  mask-image: radial-gradient(circle, var(--foreground) 0, var(--foreground) 55%, transparent 72%);
  animation: v2-discover-sweep 8s linear infinite;
  pointer-events: none;
}
@keyframes v2-discover-sweep { to { transform: rotate(360deg); } }
:root[data-theme="light"] .v2-discover-radar-sweep { opacity: .6; }
.v2-discover-radar-labels { position: absolute; inset: 0; pointer-events: none; }
.v2-discover-radar-ringlabel {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1px 7px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 999px;
  background: var(--surface-glass-strong);
  color: color-mix(in srgb, var(--foreground) 78%, transparent);
  font-size: .6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.v2-discover-radar-compass { position: absolute; inset: 0; pointer-events: none; }
.v2-discover-radar-dir {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--heading));
  color: var(--foreground);
  font-weight: 650;
  font-size: .9375rem;
}
.v2-discover-radar-dir.is-n { left: 50%; top: 1.5%; color: var(--primary); }
.v2-discover-radar-dir.is-s { left: 50%; top: 98.5%; }
.v2-discover-radar-dir.is-e { left: 98.5%; top: 50%; }
.v2-discover-radar-dir.is-w { left: 1.5%; top: 50%; }
.v2-discover-radar-me {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
}
.v2-discover-radar-me .v2-avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--primary), 0 0 calc(28px * var(--glow-scale, 1)) 4px color-mix(in srgb, var(--primary) 55%, transparent); }
.v2-discover-radar-me-label { font-weight: 600; font-size: .875rem; text-shadow: 0 0 6px var(--surface), 0 0 2px var(--surface); }
.v2-discover-radar-hidden-me {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
  border: 2px dashed var(--violet);
}
.v2-discover-radar-blips { position: absolute; inset: 0; }
.v2-discover-radar-empty {
  position: absolute;
  left: 50%;
  top: 72%;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-glass-strong);
  color: var(--muted);
  font-size: .8125rem;
  white-space: nowrap;
}
.v2-discover-blip {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
  padding: 2px 4px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--foreground);
  font: inherit;
  transform: translate(-50%, -28px) rotate(var(--heading));
  transition: left .9s ease, top .9s ease;
  cursor: pointer;
}
div.v2-discover-blip { cursor: default; }
.v2-discover-blip:focus-visible { outline: none; box-shadow: var(--ring); }
.v2-discover-blip-orb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 50%;
  position: relative;
  border: 2px solid var(--tone);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--tone) 42%, var(--surface)) 0, color-mix(in srgb, var(--tone) 18%, var(--bg)) 72%);
  color: color-mix(in srgb, var(--tone) 40%, #ffffff);
  box-shadow: 0 0 calc(22px * var(--glow-scale, 1)) 2px color-mix(in srgb, var(--tone) 50%, transparent), inset 0 0 12px color-mix(in srgb, var(--tone) 45%, transparent);
  transition: transform .15s;
}
.v2-discover-blip-orb svg { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--tone) 80%, transparent)); }
/* The little satellite dot that rides each orb (Dark 05). */
.v2-discover-blip-orb::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 8px var(--tone);
}
:root[data-theme="light"] .v2-discover-blip-orb {
  border: 3px solid #ffffff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 70%, #ffffff), var(--tone) 70%);
  color: var(--on-tone);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--tone) 40%, transparent), 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent);
}
:root[data-theme="light"] .v2-discover-blip-orb svg { filter: none; }
:root[data-theme="light"] .v2-discover-blip-orb::after { border: 2px solid #ffffff; box-shadow: none; }
.v2-discover-blip:hover .v2-discover-blip-orb { transform: scale(1.06); }
.v2-discover-blip.is-selected .v2-discover-blip-orb { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--tone), 0 0 calc(30px * var(--glow-scale, 1)) 6px color-mix(in srgb, var(--tone) 55%, transparent), inset 0 0 12px color-mix(in srgb, var(--tone) 45%, transparent); }
:root[data-theme="light"] .v2-discover-blip.is-selected .v2-discover-blip-orb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 30%, transparent), 0 8px 20px color-mix(in srgb, var(--tone) 45%, transparent); }
.v2-discover-blip-name {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 0 6px var(--surface), 0 0 2px var(--surface);
}
.v2-discover-blip-dist {
  color: var(--muted);
  font-size: .8125rem;
  white-space: nowrap;
  text-shadow: 0 0 6px var(--surface), 0 0 2px var(--surface);
}
.v2-discover-blip.is-person { transform: translate(-50%, -22px) rotate(var(--heading)); }
.v2-discover-blip.is-person .v2-avatar { box-shadow: 0 0 0 2px var(--surface-glass-strong), 0 0 0 4px var(--primary); }
.v2-discover-blip.is-person.is-selected .v2-avatar { box-shadow: 0 0 0 2px var(--surface-glass-strong), 0 0 0 5px var(--accent), 0 0 18px var(--glow); }
.v2-discover-blip-anon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-glass-strong);
  border: 1.5px dashed color-mix(in srgb, var(--foreground) 45%, transparent);
  color: var(--muted);
}
.v2-discover-blip-anon.is-lg { width: 56px; height: 56px; flex: none; }
.v2-discover-blip.is-anon .v2-discover-blip-name { font-weight: 600; color: var(--muted); }
.v2-discover-blip.is-anon.is-selected .v2-discover-blip-anon { border-style: solid; border-color: var(--accent); color: var(--accent); }
.v2-discover-blip.is-place { transform: translate(-50%, -30px) rotate(var(--heading)); z-index: 2; }
.v2-discover-blip-pin {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tone);
  color: var(--on-tone);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone) 60%, transparent);
  animation: v2-discover-ping 1.8s ease-out infinite;
}
@keyframes v2-discover-ping { to { box-shadow: 0 0 0 16px transparent; } }
.v2-discover-radar-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 2px 6px 4px; }
.v2-discover-compass-wrap { display: inline-flex; align-items: center; gap: 10px; }
.v2-discover-northup { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; font-weight: 600; }

.v2-discover-hidden {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: min(320px, 86%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(calc(var(--blur) + 6px));
  backdrop-filter: blur(calc(var(--blur) + 6px));
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.v2-discover-hidden-title { font-size: 1.125rem; font-weight: 650; }
.v2-discover-hidden-body { margin: 0; color: var(--muted); font-size: .875rem; }
.v2-discover-hidden-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }

/* Filter */
.v2-discover-filter { display: flex; flex-direction: column; gap: 12px; }
.v2-discover-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v2-discover-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-discover-tag { min-height: 40px; }
.v2-discover-tag.is-active { background: var(--tone); border-color: var(--tone); color: var(--on-tone); }
.v2-discover-more-filters { display: none; }
@media (max-width: 599px) {
  .v2-discover-filter { padding: 0; border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .v2-discover-filter-head, .v2-discover-filter .v2-discover-search { display: none; }
  .v2-discover-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--v2-gutter));
    padding: 2px var(--v2-gutter);
  }
  .v2-discover-tags::-webkit-scrollbar { display: none; }
  .v2-discover-more-filters { display: inline-grid; }
}

/* Selected community / person */
.v2-discover-detail { overflow: hidden; }
.v2-discover-detail-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 150px;
  opacity: .62;
  -webkit-mask-image: linear-gradient(to left, var(--foreground) 35%, transparent), linear-gradient(to top, transparent, var(--foreground) 60%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, var(--foreground) 35%, transparent);
}
.v2-discover-detail-body { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.v2-discover-detail-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.v2-discover-detail-text { flex: 1; min-width: 0; }
.v2-discover-detail-title { margin: 0; font-size: 1.1875rem; font-weight: 650; letter-spacing: -.01em; }
.v2-discover-detail-sub { margin: 3px 0 0; font-size: .9375rem; color: var(--foreground); }
.v2-discover-detail-sub.is-faint { color: var(--muted); font-size: .8125rem; }
.v2-discover-detail-people .v2-avatar-more { --size: 34px; }
.v2-discover-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v2-discover-detail-actions > .v2-btn { width: 100%; }
.v2-discover-detail.is-hint .v2-discover-detail-actions { margin-top: 14px; }
.v2-discover-detail-events {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px 0;
  border: 0;
  border-top: 1px solid var(--glass-border);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .875rem;
  text-align: left;
  cursor: pointer;
}
.v2-discover-detail-events > svg:last-child { margin-left: auto; }
.v2-discover-detail-events:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }
.v2-discover-detail-link { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 550; }
.v2-discover-place-row { display: flex; align-items: center; gap: 12px; }
.v2-discover-place-name { font-weight: 600; }

/* Friends nearby */
.v2-discover-friends-card .v2-section { gap: 6px; }
.v2-discover-friend { padding: 8px 4px; gap: 10px; }
.v2-discover-wave { position: relative; overflow: visible; }
.v2-discover-wave-hand {
  position: absolute;
  left: 50%;
  top: -6px;
  color: var(--amber);
  transform-origin: 50% 90%;
  animation: v2-discover-wave 1.2s ease-out forwards;
  pointer-events: none;
}
@keyframes v2-discover-wave {
  0% { transform: translate(-50%, 0) rotate(0) scale(.6); opacity: 0; }
  15% { opacity: 1; transform: translate(-50%, -14px) rotate(-18deg) scale(1.2); }
  35% { transform: translate(-50%, -20px) rotate(18deg) scale(1.2); }
  55% { transform: translate(-50%, -24px) rotate(-14deg) scale(1.2); }
  75% { transform: translate(-50%, -28px) rotate(12deg) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -40px) rotate(0) scale(1); opacity: 0; }
}
.v2-discover-crew { align-self: flex-start; margin-top: 6px; }

/* Popular communities */
.v2-discover-popular-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.v2-discover-pop-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--tone) 8%, transparent);
  text-align: center;
  min-width: 0;
}
.v2-discover-pop-tile.is-selected { border-color: var(--tone); }
.v2-discover-pop-hit { position: absolute; inset: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.v2-discover-pop-hit:focus-visible { outline: none; box-shadow: var(--ring); }
.v2-discover-pop-orb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 50%;
  border: 2px solid var(--tone);
  background: color-mix(in srgb, var(--tone) 30%, var(--surface));
  color: var(--on-tone);
}
:root[data-theme="light"] .v2-discover-pop-orb { background: var(--tone); }
.v2-discover-pop-name { font-size: .8125rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.v2-discover-pop-sub { font-size: .75rem; color: var(--muted); }
.v2-discover-pop-join { position: relative; z-index: 1; margin-top: 8px; min-height: 36px; padding: 0 12px; font-size: .8125rem; }
@media (max-width: 1279px) and (min-width: 1024px) {
  .v2-discover-popular-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .v2-discover-popular-row {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px 4px;
  }
  .v2-discover-popular-row::-webkit-scrollbar { display: none; }
  .v2-discover-pop-tile { flex: 0 0 116px; }
  .v2-discover-pop-join { min-height: 40px; }
  .v2-discover-radar-ringlabel { font-size: .625rem; padding: 0 5px; }
  /* Phones: the radar is small and every blip already shows its band; keep only the rim label. */
  .v2-discover-radar-ringlabel:not(:last-child) { display: none; }
  .v2-discover-blip-orb { width: 48px; height: 48px; }
  .v2-discover-blip-orb svg { width: 22px; height: 22px; }
  .v2-discover-blip-name { font-size: .8125rem; }
  .v2-discover-blip-dist { font-size: .75rem; }
  .v2-discover-detail-art { display: none; }
  .v2-discover-friend .v2-discover-wave > span:not(.v2-discover-wave-hand) { display: none; }
  .v2-discover-friend .v2-discover-wave { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-discover-radar-sweep, .v2-discover-blip-pin { animation: none; }
  .v2-discover-radar-field, .v2-discover-blip { transition: none; }
  .v2-discover-wave-hand { animation-duration: .01s; }
}

/* ============================================================= EVENTS === */

.v2-discover-h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.v2-discover-ev-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.v2-discover-ev-tabs { align-self: flex-start; min-width: 280px; }
.v2-discover-ev-tabs .v2-seg-item { flex: 1; }
.v2-discover-clear-chip svg { margin-left: 2px; }

.v2-discover-events { display: flex; flex-direction: column; gap: 20px; }
.v2-discover-ev-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: stretch; }
.v2-discover-ev-top { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; }
.v2-discover-ev-top > .is-side { position: sticky; top: 84px; height: min(720px, calc(100vh - 110px)); min-height: 520px; }
.v2-discover-view-toggle { display: none; }
.v2-discover-ev-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.v2-discover-ev-bottom > .v2-discover-col { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1199px) {
  .v2-discover-ev-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-discover-cats { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .v2-discover-ev-top { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .v2-discover-ev-top > .v2-discover-col { display: contents; }
  .v2-discover-live-section { order: 1; }
  .v2-discover-upcoming { order: 2; }
  .v2-discover-events .v2-discover-map-card { order: 3; display: none; }
  .v2-discover-view-toggle { display: inline-flex; }
  .v2-discover-events[data-view="map"] .v2-discover-map-card { display: flex; height: 460px; margin-top: -8px; }
  .v2-discover-events[data-view="map"] .v2-discover-ev-list { display: none; }
}
@media (max-width: 599px) {
  .v2-discover-ev-tabs { align-self: stretch; min-width: 0; }
  .v2-discover-ev-bottom { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .v2-discover-events { gap: 18px; }
  .v2-discover-create-btn { min-height: 44px; padding: 0 14px; }
}

/* Live now */
.v2-discover-live {
  position: relative;
  min-height: 236px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--media-ink);
  isolation: isolate;
  box-shadow: var(--shadow);
}
.v2-discover-live-art { position: absolute; inset: 0; z-index: -2; }
.v2-discover-live-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-scrim), linear-gradient(0deg, color-mix(in srgb, var(--avatar-base) 85%, transparent), transparent 70%);
}
.v2-discover-live-hit { position: absolute; inset: 0; z-index: 0; border: 0; background: none; cursor: pointer; border-radius: inherit; }
.v2-discover-live-hit:focus-visible { outline: none; box-shadow: inset var(--ring); }
.v2-discover-live-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; padding: 18px; pointer-events: none; }
.v2-discover-live-badge { position: absolute; top: 16px; left: 18px; z-index: 1; }
.v2-discover-live-title { margin: 0; font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; text-shadow: 0 2px 10px var(--avatar-base); }
.v2-discover-live-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; color: var(--media-muted); font-size: .9375rem; }
.v2-discover-live-meta span { display: inline-flex; align-items: center; gap: 6px; }
.v2-discover-live-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 6px; pointer-events: auto; }
.v2-discover-live-actions .v2-btn { width: 100%; }
.v2-discover-live-actions .v2-btn.is-glass { color: var(--media-ink); background: color-mix(in srgb, var(--avatar-base) 55%, transparent); border-color: color-mix(in srgb, var(--media-ink) 35%, transparent); }

/* Upcoming rows */
.v2-discover-ev-list { display: flex; flex-direction: column; gap: 10px; }
.v2-discover-ev-row {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto 18px;
  grid-template-areas: "thumb text people chev" "thumb text acts chev";
  align-items: center;
  row-gap: 8px;
  gap: 14px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  transition: border-color .15s;
}
.v2-discover-ev-row:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--glass-border)); }
.v2-discover-ev-hit { position: absolute; inset: 0; z-index: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.v2-discover-ev-hit:focus-visible { outline: none; box-shadow: var(--ring); }
.v2-discover-ev-row > :not(.v2-discover-ev-hit) { position: relative; z-index: 1; }
.v2-discover-ev-row > .v2-discover-ev-text, .v2-discover-ev-row > .v2-discover-ev-people, .v2-discover-ev-row > .v2-art, .v2-discover-ev-chev { pointer-events: none; }
.v2-discover-ev-thumb { grid-area: thumb; width: 112px; height: 84px; border-radius: 12px; }
.v2-discover-ev-text { grid-area: text; }
.v2-discover-ev-people { grid-area: people; justify-self: end; align-self: end; }
.v2-discover-ev-acts { grid-area: acts; align-self: start; }
.v2-discover-ev-chev { grid-area: chev; }
.v2-discover-ev-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v2-discover-ev-title { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 1rem; font-weight: 600; line-height: 1.25; }
.v2-discover-ev-acts { display: flex; align-items: center; gap: 6px; }
.v2-discover-going { min-width: 92px; }
.v2-discover-interested[aria-pressed="true"] { color: var(--amber); border-color: var(--amber); background: var(--amber-soft); }
.v2-discover-ev-chev { color: var(--muted); display: grid; place-items: center; }
@media (max-width: 1279px) and (min-width: 1024px) {
  .v2-discover-ev-row { grid-template-columns: 96px minmax(0, 1fr) auto 18px; }
  .v2-discover-ev-thumb { width: 96px; }
}
@media (max-width: 599px) {
  .v2-discover-ev-row { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "thumb text acts"; gap: 12px; padding-right: 8px; }
  .v2-discover-ev-thumb { width: 96px; height: 88px; }
  .v2-discover-ev-people, .v2-discover-ev-chev { display: none; }
  .v2-discover-ev-acts { flex-direction: column; gap: 6px; }
  .v2-discover-ev-acts .v2-discover-going { min-width: 0; width: 40px; padding: 0; }
  .v2-discover-ev-acts .v2-discover-going > span { display: none; }
  .v2-discover-ev-title { font-size: .9375rem; }
  .v2-discover-live { min-height: 220px; }
  .v2-discover-live-title { font-size: 1.3125rem; }
}

/* Map card */
.v2-discover-map-card { display: flex; height: 100%; overflow: hidden; }
.v2-discover-map-wrap { position: relative; flex: 1; min-height: 420px; }
.v2-discover-map-wrap > .v2-discover-map { position: absolute; inset: 0; border-radius: inherit; }
.v2-discover-map-card .v2-discover-map-wrap { border-radius: inherit; }
.v2-discover-search.is-map { min-width: 0; flex: 0 1 240px; background: var(--surface-glass-strong); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); border-radius: 999px; }
.v2-discover-map-count {
  padding: 8px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface-glass-strong);
  font-size: .8125rem;
  font-weight: 550;
  white-space: nowrap;
}
.v2-discover-map-wrap .v2-discover-map-tools { bottom: 96px; }
.v2-discover-map-legend {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  overflow-x: auto;
  scrollbar-width: none;
}
.v2-discover-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--foreground);
  font: inherit;
  font-size: .8125rem;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
}
.v2-discover-legend-item.is-on { background: var(--primary); color: var(--on-primary); }
.v2-discover-legend-item:focus-visible { outline: none; box-shadow: var(--ring); }
/* Scale bar: bottom-right, above the legend, under the zoom tools. */
.v2-discover-map-scale {
  position: absolute;
  right: 14px;
  bottom: 70px;
  z-index: 3;
  min-width: 64px;
  padding: 0 4px 1px;
  border: 2px solid color-mix(in srgb, var(--foreground) 70%, transparent);
  border-top: 0;
  color: var(--foreground);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 0 4px var(--surface), 0 0 2px var(--surface);
  pointer-events: none;
}
.v2-discover-pin {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 52px;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -100%);
  cursor: pointer;
}
.v2-discover-pin-head {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  border: 2px solid var(--tone);
  background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--tone) 34%, var(--surface)), color-mix(in srgb, var(--tone) 16%, var(--bg)));
  color: color-mix(in srgb, var(--tone) 35%, #ffffff);
  box-shadow: 0 0 calc(16px * var(--glow-scale, 1)) 1px color-mix(in srgb, var(--tone) 55%, transparent), inset 0 0 8px color-mix(in srgb, var(--tone) 40%, transparent);
  transition: transform .15s;
}
:root[data-theme="light"] .v2-discover-pin-head {
  border: 2.5px solid #ffffff;
  background: var(--tone);
  color: var(--on-tone);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--tone) 45%, transparent);
}
/* A soft ground shadow under each pin's tip. */
.v2-discover-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 16px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tone) 45%, transparent);
  filter: blur(2px);
  transform: translateX(-50%);
}
.v2-discover-pin-head svg { transform: rotate(45deg); }
.v2-discover-pin:hover .v2-discover-pin-head { transform: rotate(-45deg) scale(1.08); }
.v2-discover-pin.is-selected { z-index: 2; }
.v2-discover-pin.is-selected .v2-discover-pin-head { background: var(--tone); color: var(--on-tone); transform: rotate(-45deg) scale(1.15); }
.v2-discover-pin:focus-visible { outline: none; }
.v2-discover-pin:focus-visible .v2-discover-pin-head { box-shadow: var(--ring); }
.v2-discover-pin.is-static { cursor: default; }
.v2-discover-map-me {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sky);
  border: 3px solid var(--surface);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--sky) 25%, transparent);
}
.v2-discover-map-popup {
  --pin-x: 50;
  --pin-y: 50;
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 12px;
  width: min(330px, calc(100% - 24px));
  padding: 10px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(calc(var(--blur) + 6px));
  backdrop-filter: blur(calc(var(--blur) + 6px));
  box-shadow: var(--shadow-lg);
}
.v2-discover-map-popup { left: clamp(12px, calc(var(--pin-x) * 1% - min(165px, 50% - 12px)), calc(100% - min(330px, 100% - 24px) - 12px)); }
.v2-discover-map-popup.is-below { top: calc(var(--pin-y) * 1% + 14px); }
.v2-discover-map-popup.is-above { top: auto; bottom: calc((100 - var(--pin-y)) * 1% + 60px); }
.v2-discover-map-popup-art { flex: none; width: 96px; height: 96px; border-radius: 12px; }
.v2-discover-map-popup-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v2-discover-map-popup-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--foreground);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.v2-discover-map-popup-title:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.v2-discover-map-popup-acts { margin-top: 4px; }
@media (max-width: 599px) {
  .v2-discover-map-popup, .v2-discover-map-popup.is-below, .v2-discover-map-popup.is-above { top: auto; bottom: 68px; left: 12px; right: 12px; width: auto; }
  .v2-discover-map-scale { display: none; }
  .v2-discover-map-wrap .v2-discover-map-tools { top: 64px; bottom: auto; }
  .v2-discover-map-count { display: none; }
  .v2-discover-search.is-map { flex: 1; }
}

/* Calendar */
.v2-discover-cal-head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.v2-discover-cal-title { flex: 1; margin: 0; font-size: 1.125rem; font-weight: 650; }
.v2-discover-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.v2-discover-cal-wd { padding: 4px 0; color: var(--muted); font-size: .75rem; font-weight: 550; }
.v2-discover-cal-day {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--foreground);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.v2-discover-cal-day:hover { background: color-mix(in srgb, var(--foreground) 7%, transparent); }
.v2-discover-cal-day:focus-visible { outline: none; box-shadow: var(--ring); }
.v2-discover-cal-day.is-today { border-color: var(--primary); color: var(--primary); font-weight: 650; }
.v2-discover-cal-day.is-selected { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 0 calc(12px * var(--glow-scale, 1)) var(--glow); }
.v2-discover-cal-dot { position: absolute; bottom: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--primary); }
.v2-discover-cal-day.is-selected .v2-discover-cal-dot { background: var(--on-primary); }

/* My upcoming */
.v2-discover-mine .v2-section { gap: 4px; }
.v2-discover-mine-row { padding: 8px 4px; }
.v2-discover-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 56px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--surface-glass-strong);
  line-height: 1.05;
}
.v2-discover-date-m { color: var(--muted); font-size: .6875rem; font-weight: 600; letter-spacing: .06em; }
.v2-discover-date-d { font-size: 1.25rem; font-weight: 650; }
.v2-discover-mine-thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; }

/* City Quest feature */
.v2-discover-quest-feature {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--media-ink);
  isolation: isolate;
}
.v2-discover-quest-feature-art { position: absolute; inset: 0; z-index: -2; }
.v2-discover-quest-feature-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; }
.v2-discover-quest-feature-title { margin: 0; font-size: 1.25rem; font-weight: 650; }
.v2-discover-quest-feature-sub { margin: 0 0 6px; color: var(--media-muted); font-size: .875rem; }
.v2-discover-quest-feature .v2-tag { background: var(--amber); color: var(--avatar-base); border-color: transparent; }

/* Categories */
.v2-discover-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.v2-discover-cat-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  color: var(--foreground);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.v2-discover-cat-tile:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--glass-border)); }
.v2-discover-cat-tile:focus-visible { outline: none; box-shadow: var(--ring); }
.v2-discover-cat-tile.is-on { border-color: var(--primary); background: var(--primary-soft); }
.v2-discover-cat-name { flex: 1; min-width: 0; font-size: .875rem; font-weight: 550; }
.v2-discover-cat-count { color: var(--muted); font-size: .8125rem; font-weight: 550; }
@media (max-width: 1199px) and (min-width: 600px) { .v2-discover-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.v2-discover-cats .v2-section > .v2-btn { margin-top: 4px; }
.v2-discover-cat-list { display: flex; flex-direction: column; gap: 6px; }
.v2-discover-cat-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: none;
  color: var(--foreground);
  font: inherit;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
}
.v2-discover-cat-option > span:nth-child(2) { flex: 1; }
.v2-discover-cat-option.is-on { border-color: var(--primary); background: var(--primary-soft); }
.v2-discover-cat-option:focus-visible { outline: none; box-shadow: var(--ring); }

/* Event detail sheet */
.v2-discover-ev-detail { display: flex; flex-direction: column; gap: 16px; }
.v2-discover-ev-detail-banner { position: relative; height: 180px; border-radius: 18px; overflow: hidden; }
.v2-discover-ev-detail-art { position: absolute; inset: 0; }
.v2-discover-ev-detail-tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.v2-discover-ev-detail-tags .v2-tag { background: var(--surface-glass-strong); }
.v2-discover-ev-detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.v2-discover-ev-detail-meta .v2-meta { color: var(--foreground); font-size: .9375rem; }
.v2-discover-ev-detail-meta .v2-meta svg { color: var(--primary); }
.v2-discover-detail-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-discover-ev-detail-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.v2-discover-ev-desc { margin: 0; color: var(--foreground); line-height: 1.5; }
.v2-discover-attendees { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.v2-discover-attendees li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.v2-discover-ev-snippet { position: relative; height: 200px; }
.v2-discover-ev-snippet > .v2-discover-map { position: absolute; inset: 0; }
.v2-discover-online-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; border: 1px dashed var(--glass-border); border-radius: 18px; }
@media (max-width: 599px) {
  .v2-discover-ev-detail-meta, .v2-discover-ev-detail-cols { grid-template-columns: minmax(0, 1fr); }
  .v2-discover-ev-detail-banner { height: 150px; }
}

/* =========================================================== MARATHON === */

.v2-discover-marathon .v2-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.v2-discover-marathon .v2-title .v2-live { font-size: .875rem; }
.v2-discover-mr-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.v2-discover-mr-tabs { max-width: 560px; }
.v2-discover-mr-info { display: flex; gap: 10px; }
.v2-discover-mr-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
}
.v2-discover-mr-chip > svg { color: var(--primary); flex: none; }
.v2-discover-mr-chip + .v2-discover-mr-chip > svg { color: var(--amber); }
.v2-discover-mr-chip b { display: block; font-size: .9375rem; }
.v2-discover-mr-chip span { display: block; color: var(--muted); font-size: .8125rem; }

/* My race */
.v2-discover-mr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  grid-template-areas: "map board" "elev elev" "friends quick";
  gap: 18px;
  align-items: start;
}
.v2-discover-mr-map { grid-area: map; position: relative; }
.v2-discover-lb-card:not(.is-full) { grid-area: board; }
.v2-discover-elev-card { grid-area: elev; }
.v2-discover-mr-friends { grid-area: friends; }
.v2-discover-mr-quick { grid-area: quick; display: flex; flex-direction: column; gap: 12px; }
.v2-discover-route-map { position: relative; height: 440px; }
.v2-discover-route-map > .v2-discover-map { position: absolute; inset: 0; background: color-mix(in srgb, var(--surface-2) 88%, var(--primary)); }
.v2-discover-map-tools.is-top { top: 12px; bottom: auto; }
.v2-discover-north {
  display: grid;
  place-items: center;
  width: 40px;
  height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface-glass-strong);
  font-size: .75rem;
  line-height: 1;
}
.v2-discover-north svg { color: var(--live); }
.v2-discover-route-glow { fill: none; stroke: color-mix(in srgb, var(--primary) 18%, transparent); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.v2-discover-route { fill: none; stroke: color-mix(in srgb, var(--primary) 60%, transparent); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; stroke-linejoin: round; }
.v2-discover-route-done-glow { fill: none; stroke: color-mix(in srgb, var(--primary) 35%, transparent); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; filter: blur(3px); }
.v2-discover-route-done { fill: none; stroke: var(--primary); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
/* Kilometre marks along the course (white beads, like the mockup). */
.v2-discover-route-marks { fill: none; stroke: #ffffff; stroke-opacity: .85; stroke-width: 2.4; stroke-dasharray: .1 34; stroke-linecap: round; }
/* Checkpoints: a map pin whose tip sits on the course, its label beside the head. */
.v2-discover-cp { position: absolute; z-index: 1; display: flex; align-items: flex-start; gap: 6px; transform: translate(-12px, -100%) translateY(-2px); pointer-events: none; }
.v2-discover-cp-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) translate(-2px, 2px);
  border: 2px solid var(--surface);
  background: var(--sky);
  color: var(--on-tone);
  box-shadow: 0 0 calc(12px * var(--glow-scale, 1)) color-mix(in srgb, var(--sky) 60%, transparent), 0 3px 6px rgba(0, 0, 0, .25);
}
.v2-discover-cp-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--surface); }
.v2-discover-cp-dot > svg { transform: rotate(45deg); }
.v2-discover-cp-dot:has(svg)::before { display: none; }
.v2-discover-cp.is-start .v2-discover-cp-dot { background: var(--green); box-shadow: 0 0 calc(12px * var(--glow-scale, 1)) color-mix(in srgb, var(--green) 60%, transparent), 0 3px 6px rgba(0, 0, 0, .25); }
.v2-discover-cp.is-finish .v2-discover-cp-dot { background: var(--live-solid); width: 26px; height: 26px; box-shadow: 0 0 calc(12px * var(--glow-scale, 1)) color-mix(in srgb, var(--live-solid) 60%, transparent), 0 3px 6px rgba(0, 0, 0, .25); }
.v2-discover-cp-label {
  display: flex;
  flex-direction: column;
  margin-top: -6px;
  padding: 3px 8px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.v2-discover-cp-label span { color: var(--muted); font-weight: 500; }
.v2-discover-runner { position: absolute; z-index: 2; transform: translate(-50%, -50%); transition: left 1s linear, top 1s linear; }
.v2-discover-runner .v2-avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.v2-discover-runner.is-me { z-index: 3; }
.v2-discover-runner.is-me .v2-avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--primary), 0 0 calc(22px * var(--glow-scale, 1)) var(--glow); }
.v2-discover-runner.is-leader .v2-avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--amber); }
.v2-discover-runner.is-following { z-index: 3; }
.v2-discover-runner.is-following .v2-avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--primary), 0 0 18px var(--glow); }

.v2-discover-mr-panel-wide {
  position: absolute;
  z-index: 3;
  left: 22px;
  top: 22px;
  width: 232px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: blur(calc(var(--blur) + 6px));
  backdrop-filter: blur(calc(var(--blur) + 6px));
  box-shadow: var(--shadow-lg);
}
.v2-discover-mr-you { display: flex; align-items: center; gap: 12px; }
.v2-discover-mr-km { font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.v2-discover-mr-of { color: var(--muted); font-size: .875rem; }
.v2-discover-mr-progress { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; }
.v2-discover-mr-progress .v2-progress { flex: 1; }
.v2-discover-mr-pct { font-weight: 600; font-size: .875rem; font-variant-numeric: tabular-nums; }
.v2-discover-mr-stat { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-top: 1px solid var(--glass-border); }
.v2-discover-mr-stat > svg { flex: none; color: var(--tone-ink, var(--primary)); }
.v2-discover-mr-stat-value { display: block; font-weight: 650; font-variant-numeric: tabular-nums; }
.v2-discover-mr-stat-label { color: var(--muted); font-size: .8125rem; }
.v2-discover-mr-tiles, .v2-discover-mr-next { display: none; }
/* The stats panel covers the map's left side on wide screens: shift the drawing right by half its width. */
@media (min-width: 600px) {
  .v2-discover-mr-map .v2-discover-map-canvas.is-locked { left: calc(50% + 120px); }
}

/* Leaderboard table */
.v2-discover-lb { display: flex; flex-direction: column; }
.v2-discover-lb-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 84px 84px 72px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--glass-border);
  font-size: .875rem;
}
.v2-discover-lb-row.is-head { min-height: 36px; color: var(--muted); font-size: .8125rem; font-weight: 550; }
.v2-discover-lb.is-compact .v2-discover-lb-row { grid-template-columns: 36px minmax(0, 1fr) 76px 58px; }
.v2-discover-lb.is-compact .v2-discover-lb-num:not(.is-pace) { display: none; }
.v2-discover-lb-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 550; }
.v2-discover-lb-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-discover-lb-num { font-variant-numeric: tabular-nums; text-align: right; }
.v2-discover-lb-gap { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); }
.v2-discover-lb-gap.is-behind { color: var(--coral); }
.v2-discover-lb-gap.is-ahead { color: var(--green); }
:root[data-theme="light"] .v2-discover-lb-gap.is-behind { color: var(--danger); }
.v2-discover-lb-more { text-align: center; color: var(--muted); letter-spacing: .3em; padding: 4px 0; }
.v2-discover-lb-row.is-you {
  margin-top: 6px;
  border: 1px solid var(--primary);
  border-radius: 14px;
  background: var(--primary-soft);
  box-shadow: 0 0 calc(14px * var(--glow-scale, 1)) var(--glow);
}
.v2-discover-rank {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  border-radius: 8px;
  font-weight: 650;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}
.v2-discover-rank.is-top { background: var(--amber-soft); color: var(--tone-ink, var(--amber)); border: 1px solid var(--amber); }
.v2-discover-rank.is-2 { background: color-mix(in srgb, var(--sky) 16%, transparent); border-color: var(--sky); }
.v2-discover-rank.is-3 { background: var(--coral-soft); border-color: var(--coral); }
.v2-discover-rank.is-you { color: var(--primary); font-size: 1rem; }
.v2-discover-lb-card.is-full { display: flex; flex-direction: column; gap: 12px; }

/* Elevation profile */
.v2-discover-elev-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.v2-discover-elev-body { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 18px; align-items: center; }
.v2-discover-chart-wrap { position: relative; }
.v2-discover-chart { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.v2-discover-chart-grid { stroke: color-mix(in srgb, var(--foreground) 9%, transparent); stroke-width: 1; stroke-dasharray: 2 4; }
.v2-discover-chart-axis { fill: var(--muted); stroke: none; font-size: 11px; font-family: inherit; }
.v2-discover-chart-area { fill: url(#v2d-elev-fill); stroke: none; }
.v2-discover-chart-stop-a { stop-color: var(--primary); stop-opacity: .42; }
.v2-discover-chart-stop-b { stop-color: var(--primary); stop-opacity: 0; }
:root[data-theme="light"] .v2-discover-chart-stop-a { stop-opacity: .26; }
.v2-discover-chart-line { fill: none; stroke: var(--primary); stroke-width: 2.25; stroke-linejoin: round; }
.v2-discover-chart-line-glow { fill: none; stroke: color-mix(in srgb, var(--primary) 45%, transparent); stroke-width: 7; stroke-linejoin: round; filter: blur(3px); }
:root[data-theme="light"] .v2-discover-chart-line-glow { display: none; }
.v2-discover-chart-face { position: absolute; z-index: 1; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none; }
.v2-discover-chart-face .v2-avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary), 0 0 calc(14px * var(--glow-scale, 1)) var(--glow); }
.v2-discover-chart-cp { stroke: color-mix(in srgb, var(--sky) 70%, transparent); stroke-width: 1.5; }
.v2-discover-chart-cp.is-start { stroke: var(--green); }
.v2-discover-chart-cp.is-finish { stroke: var(--live); }
.v2-discover-chart-cp-dot { fill: var(--surface); stroke: var(--sky); stroke-width: 2.5; }
.v2-discover-chart-cp-dot.is-start { stroke: var(--green); }
.v2-discover-chart-cp-dot.is-finish { stroke: var(--live); }
.v2-discover-chart-cp-label { fill: var(--foreground); stroke: none; font-size: 11px; font-weight: 600; font-family: inherit; }
.v2-discover-chart-you { stroke: var(--foreground); stroke-width: 1.5; stroke-dasharray: 3 3; }
.v2-discover-chart-you-dot { fill: var(--primary); stroke: var(--surface); stroke-width: 3; }
.v2-discover-chart-you-label { fill: var(--foreground); stroke: none; font-size: 12px; font-weight: 650; font-family: inherit; }
.v2-discover-chart-cross { stroke: var(--muted); stroke-width: 1; }
.v2-discover-chart-hover { fill: var(--surface); stroke: var(--primary); stroke-width: 2.5; }
.v2-discover-chart-tip {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  padding: 4px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--surface-glass-strong);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.v2-discover-elev-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.v2-discover-elev-stats li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--glass-border); }
.v2-discover-elev-stats li > svg { color: var(--muted); flex: none; }
.v2-discover-elev-v { font-weight: 650; font-size: 1.0625rem; }
.v2-discover-elev-l { color: var(--muted); font-size: .8125rem; }

/* Friends + quick actions */
.v2-discover-mr-friend-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.v2-discover-mr-friend { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v2-discover-mr-friend-name { font-weight: 600; font-size: .875rem; }
.v2-discover-mr-friend .v2-discover-lb-gap { text-align: left; font-size: .875rem; }
.v2-discover-mr-action {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--tone) 55%, var(--glass-border));
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 22%, transparent), color-mix(in srgb, var(--tone) 6%, transparent)), var(--surface-glass);
  color: var(--foreground);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.v2-discover-mr-action:hover { box-shadow: 0 0 calc(18px * var(--glow-scale, 1)) color-mix(in srgb, var(--tone) 40%, transparent); }
.v2-discover-mr-action:focus-visible { outline: none; box-shadow: var(--ring); }
.v2-discover-mr-action b { display: block; font-size: 1rem; }
.v2-discover-mr-action span > span { color: var(--muted); font-size: .8125rem; }

/* Audience */
.v2-discover-aud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, .95fr);
  grid-template-areas:
    "stats stats stats"
    "podium podium podium"
    "following following feed"
    "map map feed"
    "gap followed feed";
  gap: 18px;
  align-items: start;
}
.v2-discover-aud-stats { grid-area: stats; display: flex; flex-wrap: wrap; gap: 12px 34px; }
.v2-discover-aud-stat { display: flex; align-items: center; gap: 10px; }
.v2-discover-aud-stat > svg { color: var(--primary); }
.v2-discover-aud-stat-v { display: block; font-weight: 650; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.v2-discover-aud-stat-l { color: var(--muted); font-size: .8125rem; }
.v2-discover-podium { grid-area: podium; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v2-discover-podium-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--surface-glass);
  color: var(--foreground);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
}
.v2-discover-podium-card.is-first { border-color: var(--amber); box-shadow: 0 0 calc(18px * var(--glow-scale, 1)) color-mix(in srgb, var(--amber) 30%, transparent); }
.v2-discover-podium-card.is-following { outline: 2px solid var(--primary); outline-offset: -2px; }
.v2-discover-podium-card:focus-visible { outline: none; box-shadow: var(--ring); }
.v2-discover-podium-card > .v2-discover-rank { position: absolute; top: 10px; left: 10px; z-index: 1; }
.v2-discover-podium-art { flex: none; width: 96px; height: 80px; border-radius: 14px; }
.v2-discover-podium-card > .v2-avatar { position: absolute; left: 70px; top: 54px; box-shadow: 0 0 0 3px var(--surface); }
.v2-discover-podium-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v2-discover-podium-text b { font-size: 1.0625rem; }
.v2-discover-podium-sub { color: var(--muted); font-size: .8125rem; }
.v2-discover-podium-gap { font-weight: 650; color: var(--foreground); font-variant-numeric: tabular-nums; }
.v2-discover-podium-card:not(.is-first) .v2-discover-podium-gap { color: var(--coral); }
:root[data-theme="light"] .v2-discover-podium-card:not(.is-first) .v2-discover-podium-gap { color: var(--danger); }
.v2-discover-aud-ticker {
  grid-area: ticker;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--surface-glass);
  font-size: .875rem;
  font-weight: 550;
}
.v2-discover-aud-ticker > svg { color: var(--amber); flex: none; }
.v2-discover-aud-ticker-time { margin-left: auto; color: var(--muted); font-weight: 600; }
.v2-discover-aud-map { grid-area: map; }
.v2-discover-aud-map .v2-discover-route-map { height: 400px; }
.v2-discover-feed-card { grid-area: feed; display: flex; flex-direction: column; gap: 12px; }
.v2-discover-following { grid-area: following; display: flex; align-items: center; gap: 14px; }
.v2-discover-following-label { color: var(--muted); font-size: .8125rem; font-weight: 550; }
.v2-discover-following-name { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 1.125rem; }
.v2-discover-following-place { padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .8125rem; }
.v2-discover-following-sub { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.v2-discover-gap-card { grid-area: gap; }
.v2-discover-followed { grid-area: followed; }
.v2-discover-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.v2-discover-feed-item { display: flex; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--glass-border); }
.v2-discover-feed-item.is-new { animation: v2-discover-feed-in .5s ease-out; }
@keyframes v2-discover-feed-in { from { opacity: 0; transform: translateY(-8px); } }
.v2-discover-feed-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v2-discover-feed-time { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.v2-discover-feed-text b { font-size: .9375rem; }
.v2-discover-feed-body { color: var(--muted); font-size: .8125rem; }
.v2-discover-info p { margin: 0; }
.v2-discover-cheers { position: relative; display: flex; flex-direction: column; gap: 10px; }
.v2-discover-cheer-input { padding-right: 4px; border-radius: 999px; }
.v2-discover-cheer-row { display: flex; justify-content: space-between; gap: 6px; }
.v2-discover-cheer {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--surface-glass);
  font-size: 1.375rem;
  cursor: pointer;
}
.v2-discover-cheer:hover { border-color: var(--primary); }
.v2-discover-cheer:focus-visible { outline: none; box-shadow: var(--ring); }
.v2-discover-cheer.is-pop { animation: v2-discover-pop .35s ease-out; }
@keyframes v2-discover-pop { 50% { transform: scale(1.3); } }
.v2-discover-cheer-stage { position: absolute; left: 0; right: 0; bottom: 30px; height: 0; pointer-events: none; }
.v2-discover-cheer-fly { position: absolute; bottom: 0; font-size: 1.75rem; transform: translateX(-50%); animation: v2-discover-fly 1.3s ease-out forwards; }
@keyframes v2-discover-fly {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.6); }
  20% { opacity: 1; transform: translate(-50%, -30px) scale(1.2); }
  100% { opacity: 0; transform: translate(calc(-50% + 18px), -150px) scale(1); }
}
.v2-discover-gap { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v2-discover-gap li { display: flex; align-items: center; gap: 10px; }
.v2-discover-gap-rank { width: 16px; font-weight: 650; color: var(--muted); }
.v2-discover-gap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.v2-discover-gap-top { display: flex; justify-content: space-between; gap: 8px; font-size: .875rem; font-weight: 550; }
.v2-discover-gap-v { font-variant-numeric: tabular-nums; color: var(--muted); }
.v2-discover-gap-v.is-leader { color: var(--primary); }
.v2-discover-follow-list { display: flex; flex-direction: column; gap: 4px; }
.v2-discover-follow-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; }
.v2-discover-follow-row.is-following { background: var(--primary-soft); }
.v2-discover-follow-hit { position: absolute; inset: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.v2-discover-follow-hit:focus-visible { outline: none; box-shadow: var(--ring); }
.v2-discover-follow-row > :not(.v2-discover-follow-hit) { position: relative; }
.v2-discover-follow-row > .v2-discover-follow-text, .v2-discover-follow-row > .v2-avatar { pointer-events: none; }
.v2-discover-follow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v2-discover-follow-top { display: flex; justify-content: space-between; gap: 8px; font-size: .9375rem; }
.v2-discover-follow-eta, .v2-discover-follow-sub { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }

@media (max-width: 1199px) {
  .v2-discover-aud {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "stats stats" "podium podium" "following following" "map map" "feed feed" "gap followed";
  }
}
@media (max-width: 1023px) {
  .v2-discover-mr { grid-template-columns: minmax(0, 1fr); grid-template-areas: "map" "board" "elev" "friends" "quick"; }
  .v2-discover-mr-head { flex-direction: column; align-items: stretch; }
  .v2-discover-mr-tabs { max-width: none; }
}
@media (max-width: 599px) {
  .v2-discover-mr-head { gap: 10px; margin-bottom: 12px; }
  .v2-discover-mr-info { order: -1; }
  .v2-discover-mr-chip { min-height: 0; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; gap: 6px; }
  .v2-discover-mr-chip svg { width: 16px; height: 16px; }
  .v2-discover-mr-chip b, .v2-discover-mr-chip span { display: inline; font-size: .8125rem; }
  .v2-discover-mr-chip b::after { content: " · "; font-weight: 400; }
  .v2-discover-mr-info { flex-wrap: wrap; gap: 4px 14px; }
  .v2-discover-mr-tabs .v2-seg-item { padding: 0 8px; }
  .v2-discover-mr { gap: 14px; grid-template-areas: "map" "friends" "quick" "board" "elev"; }
  .v2-discover-route-map, .v2-discover-aud-map .v2-discover-route-map { height: auto; aspect-ratio: 3 / 2; }
  .v2-discover-route-map .v2-discover-map-tools .v2-icon-btn:not([aria-label="Recenter"]) { display: none; }
  /* Phones: the course reaches the right edge (CP3, finish); the top-left corner is open water. */
  .v2-discover-route-map .v2-discover-map-tools { right: auto; left: 8px; top: 8px; }
  .v2-discover-marathon .v2-title { font-size: 1.375rem; gap: 8px; }
  .v2-discover-chart-axis, .v2-discover-chart-cp-label { font-size: 18px; }
  .v2-discover-chart-you-label { font-size: 20px; }
  .v2-discover-cp-label { font-size: .6875rem; padding: 2px 6px; }
  .v2-discover-mr-panel-wide { display: none; }
  .v2-discover-mr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .v2-discover-mr-tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: var(--surface-glass-strong);
    font-size: .6875rem;
    color: var(--muted);
  }
  .v2-discover-mr-tile > svg { color: var(--tone-ink, var(--primary)); margin-bottom: 4px; }
  .v2-discover-mr-tile-v { color: var(--foreground); font-size: .9375rem; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .v2-discover-mr-next { display: block; margin-top: 8px; padding: 10px 12px 4px; border: 1px solid var(--glass-border); border-radius: 14px; background: var(--surface-glass-strong); }
  .v2-discover-mr-next-text { font-weight: 600; font-size: .9375rem; }
  .v2-discover-mr-next .v2-discover-mr-progress { margin: 6px 0; }
  .v2-discover-mr-friend-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-discover-mr-quick { flex-direction: row; }
  .v2-discover-mr-quick > * { flex: 1; min-width: 0; min-height: 64px; padding: 10px; gap: 10px; }
  .v2-discover-mr-quick .v2-icon-tile { width: 36px; height: 36px; }
  .v2-discover-mr-action span > span { display: none; }
  .v2-discover-mr-action b { font-size: .875rem; }
  .v2-discover-elev-body { grid-template-columns: minmax(0, 1fr); }
  .v2-discover-elev-stats { flex-direction: row; gap: 8px; }
  .v2-discover-elev-stats li { flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 0; border: 0; }
  .v2-discover-elev-v { font-size: .9375rem; }
  .v2-discover-lb-row { grid-template-columns: 34px minmax(0, 1fr) 62px 52px; gap: 6px; padding: 4px; font-size: .8125rem; }
  .v2-discover-lb-num.is-pace { display: none; }
  .v2-discover-lb.is-compact .v2-discover-lb-row { grid-template-columns: 34px minmax(0, 1fr) 64px; }
  .v2-discover-aud { grid-template-columns: minmax(0, 1fr); grid-template-areas: "podium" "ticker" "gap" "following" "feed" "followed" "map" "stats"; gap: 14px; }
  .v2-discover-podium { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; scroll-snap-type: x mandatory; }
  .v2-discover-podium::-webkit-scrollbar { display: none; }
  .v2-discover-podium-card { flex: 0 0 86%; scroll-snap-align: start; }
  .v2-discover-podium-card.is-first { min-height: 180px; align-items: flex-end; color: var(--media-ink); }
  .v2-discover-podium-card.is-first .v2-discover-podium-art { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; z-index: 0; }
  .v2-discover-podium-card.is-first .v2-discover-podium-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--avatar-base) 85%, transparent), transparent 70%); }
  .v2-discover-podium-card.is-first > .v2-avatar { position: relative; left: auto; top: auto; z-index: 1; }
  .v2-discover-podium-card.is-first .v2-discover-podium-text { position: relative; z-index: 1; }
  .v2-discover-podium-card.is-first .v2-discover-podium-sub, .v2-discover-podium-card.is-first .v2-discover-podium-gap { color: var(--media-muted); }
  .v2-discover-podium-card.is-first > .v2-discover-rank { font-size: 1.25rem; min-width: 40px; height: 40px; }
  .v2-discover-aud-ticker { display: flex; }
  .v2-discover-aud-stats { gap: 10px 22px; }
  .v2-discover-cheer { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-discover-runner { transition: none; }
  .v2-discover-feed-item.is-new, .v2-discover-cheer.is-pop { animation: none; }
  .v2-discover-cheer-fly { animation-duration: .6s; }
}

/* ========================================================= CITY QUEST === */

.v2-discover-cityquest .v2-page-head { align-items: flex-start; }
.v2-discover-cityquest .v2-page-head > .v2-icon-tile { margin-top: 2px; }
.v2-discover-quest-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 6px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface-glass);
  font-size: .875rem;
  font-weight: 550;
}
.v2-discover-quest-chip > svg { color: var(--green); }
.v2-discover-quest {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}
.v2-discover-quest-stage { position: relative; }
.v2-discover-quest-seg { position: absolute; top: 22px; left: 22px; z-index: 5; background: var(--surface-glass-strong); }
.v2-discover-quest-map { position: relative; height: min(740px, calc(100vh - 200px)); min-height: 520px; }
.v2-discover-quest-map > .v2-discover-map { position: absolute; inset: 0; }
.v2-discover-quest-tools-top { position: absolute; top: 12px; right: 12px; z-index: 3; }
.v2-discover-quest-map .v2-discover-map-tools { bottom: 74px; }
.v2-discover-quest-place {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface-glass-strong);
  font-size: .875rem;
  font-weight: 550;
}
.v2-discover-quest-place > svg { color: var(--sky); }

.v2-discover-quest-map .v2-discover-map {
  --park-grass: color-mix(in srgb, var(--green) 20%, var(--bg));
  --park-meadow: color-mix(in srgb, var(--green) 28%, var(--bg));
  --park-tree: color-mix(in srgb, var(--green) 46%, var(--bg));
  --park-tree-hi: color-mix(in srgb, var(--green) 72%, var(--surface));
  --park-tree-shade: color-mix(in srgb, var(--bg) 70%, transparent);
  --park-path: color-mix(in srgb, var(--amber) 22%, var(--surface-2));
  --park-path-case: color-mix(in srgb, var(--bg) 60%, transparent);
  --park-water: color-mix(in srgb, var(--sky) 34%, var(--bg));
  --park-bank: color-mix(in srgb, var(--sky) 22%, var(--green) 10%);
  background: var(--park-grass);
}
:root[data-theme="light"] .v2-discover-quest-map .v2-discover-map {
  --park-grass: #cfe6bd;
  --park-meadow: #e0efcf;
  --park-tree: #6fb95a;
  --park-tree-hi: #a6dc84;
  --park-tree-shade: rgba(36, 82, 30, .28);
  --park-path: #fbf3e2;
  --park-path-case: rgba(160, 130, 80, .28);
  --park-water: #8ab8f2;
  --park-bank: #b9d6f6;
}
.v2-discover-park-bg { fill: var(--park-grass); stroke: none; }
.v2-discover-park-meadow { fill: var(--park-meadow); stroke: none; }
.v2-discover-park-tree {
  --s: 24px;
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--park-tree-hi), var(--park-tree) 62%);
  box-shadow: 2px 3px 0 var(--park-tree-shade), inset 0 -2px 3px color-mix(in srgb, var(--bg) 18%, transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.v2-discover-park-name { position: absolute; transform: translate(-50%, -50%); color: color-mix(in srgb, var(--foreground) 66%, transparent); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; pointer-events: none; text-shadow: 0 0 6px var(--park-grass), 0 0 2px var(--park-grass); }
.v2-discover-park-river, .v2-discover-park-bank, .v2-discover-park-bridge, .v2-discover-park-bridge-case, .v2-discover-park-path, .v2-discover-park-path-case, .v2-discover-park-zone, .v2-discover-park-ripple { vector-effect: non-scaling-stroke; }
.v2-discover-park-bank { fill: none; stroke: var(--park-bank); stroke-width: 10; stroke-linejoin: round; }
.v2-discover-park-river { fill: var(--park-water); stroke: none; }
.v2-discover-park-ripple { fill: none; stroke: color-mix(in srgb, #ffffff 45%, transparent); stroke-width: 1.5; stroke-dasharray: 18 14; stroke-linecap: round; }
.v2-discover-park-bridge-case { fill: none; stroke: color-mix(in srgb, var(--bg) 55%, transparent); stroke-width: 16; stroke-linecap: butt; }
.v2-discover-park-bridge { fill: none; stroke: color-mix(in srgb, var(--surface) 60%, var(--muted)); stroke-width: 11; stroke-linecap: butt; }
:root[data-theme="light"] .v2-discover-park-bridge { stroke: #f3efe8; }
:root[data-theme="light"] .v2-discover-park-bridge-case { stroke: rgba(90, 80, 70, .35); }
.v2-discover-park-path-case { fill: none; stroke: var(--park-path-case); stroke-width: 10; stroke-linecap: round; }
.v2-discover-park-path { fill: none; stroke: var(--park-path); stroke-width: 7; stroke-linecap: round; }
.v2-discover-park-zone { stroke-width: 2.5; stroke-dasharray: 8 6; }
.v2-discover-park-zone.is-teal { fill: color-mix(in srgb, var(--primary) 16%, transparent); stroke: var(--primary); }
.v2-discover-park-zone.is-violet { fill: color-mix(in srgb, var(--violet) 18%, transparent); stroke: var(--violet); }

.v2-discover-quest-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.v2-discover-quest-line line { stroke: var(--sky); stroke-width: 3.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.v2-discover-spot {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 3px solid color-mix(in srgb, #ffffff 92%, var(--tone));
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--tone) 55%, #ffffff), var(--tone) 62%);
  color: var(--on-tone);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 28%, transparent), 0 0 calc(22px * var(--glow-scale, 1)) 4px color-mix(in srgb, var(--tone) 60%, transparent), 0 4px 10px rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: transform .15s;
}
.v2-discover-spot.is-star svg { fill: currentColor; }
.v2-discover-spot:hover { transform: translate(-50%, -50%) scale(1.1); }
.v2-discover-spot:focus-visible { outline: none; box-shadow: var(--ring); }
.v2-discover-spot.is-selected { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 45%, transparent), 0 0 24px color-mix(in srgb, var(--tone) 80%, transparent); }
/* Collected: a small calm token, the tone kept as a ring so it still reads as "a star you found". */
.v2-discover-spot.is-done {
  width: 34px;
  height: 34px;
  border: 2px solid var(--tone);
  background: var(--surface);
  color: var(--tone-ink, var(--tone));
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.v2-discover-spot.is-flag { border-radius: 50% 50% 50% 4px; }
.v2-discover-spot.is-ar { position: static; transform: none; width: 60px; height: 60px; }
.v2-discover-quest-me {
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--sky);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--sky) 22%, transparent), 0 4px 12px color-mix(in srgb, var(--avatar-base) 40%, transparent);
}
.v2-discover-quest-me.is-located { animation: v2-discover-me 2s ease-out infinite; }
@keyframes v2-discover-me { 50% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--sky) 10%, transparent); } }
.v2-discover-quest-tip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-lg);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 34px));
}
.v2-discover-quest-tip > svg { color: var(--amber); }
.v2-discover-quest-tip-btn { min-height: 36px; padding: 0 12px; }
.v2-discover-quest-tip-done { color: var(--green); padding-right: 6px; }
:root[data-theme="light"] .v2-discover-quest-tip-done { color: var(--green); }
.v2-discover-quest-team-label {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border: 2px solid var(--tone);
  border-radius: 999px;
  background: var(--surface-glass-strong);
  font-weight: 600;
  font-size: .9375rem;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.v2-discover-quest-ar { min-height: 520px; display: grid; place-items: center; padding: 70px 16px 16px; }
.v2-discover-quest-ar-stage {
  position: relative;
  align-self: stretch;
  justify-self: stretch;
  min-height: 480px;
  margin: -58px -4px -4px;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  background: var(--avatar-base);
}
.v2-discover-quest-ar-stage.is-simulated {
  background:
    radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--green) 55%, var(--avatar-base)), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--sky) 50%, var(--avatar-base)), var(--avatar-base));
}
.v2-discover-quest-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v2-discover-ar-marker {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 0;
  background: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.v2-discover-ar-marker:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 14px; }
.v2-discover-ar-label { padding: 4px 10px; border-radius: 999px; background: var(--surface-glass-strong); color: var(--foreground); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.v2-discover-ar-reticle { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 2px dashed color-mix(in srgb, var(--media-ink) 60%, transparent); border-radius: 50%; pointer-events: none; }

.v2-discover-quest .is-side { display: flex; flex-direction: column; gap: 16px; }
.v2-discover-quest-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v2-discover-quest-teamtile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--tone) 35%, var(--glass-border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--tone) 10%, transparent);
}
.v2-discover-quest-teamtile.is-mine { border-color: var(--tone); }
.v2-discover-quest-teamtile .v2-progress { grid-column: 1 / -1; }
.v2-discover-quest-teamtext { display: flex; flex-direction: column; min-width: 0; }
.v2-discover-quest-teamtext span { font-size: .8125rem; font-weight: 550; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-discover-quest-teamtext b { font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.v2-discover-quest-list, .v2-discover-quest-lbs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.v2-discover-quest-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--glass-border); }
.v2-discover-quest-row:last-child { border-bottom: 0; }
.v2-discover-quest-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--tone-soft); color: var(--tone-ink); }
.v2-discover-quest-row.is-done .v2-discover-quest-ic { background: var(--green-soft); color: var(--green); }
.v2-discover-quest-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v2-discover-quest-text b { font-size: .9375rem; }
.v2-discover-quest-body { color: var(--muted); font-size: .8125rem; }
.v2-discover-quest-prog { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.v2-discover-quest-prog .v2-progress { flex: 1; }
.v2-discover-quest-pts { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.v2-discover-quest-pts svg { color: var(--amber); fill: currentColor; }
.v2-discover-quest-lb { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--glass-border); }
.v2-discover-quest-lb:last-child { border-bottom: 0; }
.v2-discover-quest-lb-name { flex: 1; font-weight: 550; }
.v2-discover-quest-lb-pts { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.v2-discover-quest-lb-pts svg { color: var(--amber); fill: currentColor; }
.v2-discover-quest-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v2-discover-quest-actions .v2-btn { width: 100%; border-radius: 18px; }

@media (max-width: 1023px) {
  .v2-discover-quest { grid-template-columns: minmax(0, 1fr); }
  .v2-discover-quest-map { height: 460px; min-height: 0; }
}
@media (max-width: 599px) {
  .v2-discover-cityquest .v2-page-head > .v2-icon-tile { display: none; }
  .v2-discover-cityquest .v2-subtitle { display: none; }
  .v2-discover-quest-chip { margin-top: 6px; font-size: .8125rem; }
  .v2-discover-quest-chip .v2-avatar-stack { display: none; }
  .v2-discover-quest { gap: 14px; }
  .v2-discover-quest-map { height: 300px; }
  .v2-discover-quest-seg { top: 18px; left: 18px; }
  .v2-discover-quest-map .v2-discover-map-tools { display: none; }
  .v2-discover-quest-tools-top { top: 10px; right: 10px; }
  .v2-discover-quest-place { min-height: 40px; padding: 0 12px; font-size: .8125rem; }
  .v2-discover-quest-team-label { font-size: .8125rem; }
  .v2-discover-quest-team-label .v2-icon-tile { display: none; }
  .v2-discover-quest-team-label { padding: 4px 10px; }
  .v2-discover-spot { width: 38px; height: 38px; }
  .v2-discover-quest-actions { grid-template-columns: minmax(0, 1fr); }
  .v2-discover-quest-invite { order: 2; }
  .v2-discover-quest-scan.is-outline { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
  .v2-discover-quest-ar, .v2-discover-quest-ar-stage { min-height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-discover-quest-me.is-located { animation: none; }
  .v2-discover-spot { transition: none; }
}
