/* Agent World — white city face.
   Bright daylight theme after the owner's reference image: white
   glass panels over a pale 3D city, dark slate text, one cyan accent,
   gold reserved for real bounties. The city canvas is fixed behind
   everything; the page scrolls over it (the owner waived the
   above-the-fold rule — the city stays live underneath). */

/* Design system (polish pass, 2026-11-16): one premium family —
   a real type scale, a three-step shadow ladder, an inset hairline
   "ring" that makes every glass panel read as machined rather than
   pasted, one easing curve, one button treatment. Every component
   below draws from these tokens and nothing else. */
:root {
  --ink: #142f45;
  --ink-soft: #33536b;
  --mut: #5d7488;
  --cyan: #12a9d6;
  --cyan-d: #0b86ab;
  --gold: #b97a0e;
  --gold-bg: #fdf3e0;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-solid: rgba(255, 255, 255, 0.96);
  --line: rgba(20, 47, 69, 0.10);
  --line-strong: rgba(20, 47, 69, 0.16);
  --shadow-1: 0 1px 2px rgba(16, 40, 61, 0.05), 0 4px 14px rgba(16, 40, 61, 0.07);
  --shadow-2: 0 2px 6px rgba(16, 40, 61, 0.06), 0 14px 34px rgba(16, 40, 61, 0.13);
  --shadow-3: 0 4px 10px rgba(16, 40, 61, 0.08), 0 24px 54px rgba(16, 40, 61, 0.18);
  --shadow: var(--shadow-2);
  --ring: inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --radius: 18px;
  --r-sm: 12px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --btn-grad: linear-gradient(180deg, #2bb9e0 0%, #0e97c2 100%);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(4, 84, 112, 0.25), 0 8px 22px rgba(13, 148, 192, 0.32);
  --glass-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.78));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-system, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fafc 0%, #e9f1f5 52%, #dde8ef 100%);
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.006em;
}
button { font: inherit; color: inherit; }
::selection { background: rgba(18, 169, 214, 0.28); }
:focus-visible:not(h1):not(h2):not(h3) { outline: 2px solid rgba(11, 134, 171, 0.7); outline-offset: 2px; }
/* Headings receive programmatic focus when a sheet opens (screen-
   reader navigation); they are not controls, so no outline — ever. */
h1:focus, h2:focus, h3:focus { outline: none; }
[hidden] { display: none !important; }

/* ---------- the city stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.city-art, .city-art svg, .hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.city-art svg { height: 100%; }
.city-labels {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2;
  transition: opacity 0.35s ease;
}
/* Loading veil (2026-11-18 rebuild): until the world (or the flat
   fallback) paints its first frame, the stage shows this clean
   branded state instead of the pale placeholder bars that read as
   a failed load on a slow phone. hero3d adds .hero-on to the stage
   on its first frame; app.js does the same when it paints the
   fallback city. The safety animation lifts the veil even if every
   script fails, so the inlined fallback city can never be trapped
   behind it. The veil never takes clicks. */
.stage-veil {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(180deg, #f7fafc 0%, #e9f1f5 52%, #dde8ef 100%);
  transition: opacity 0.55s ease, visibility 0s linear 0.6s;
  animation: veilSafety 0.8s ease 6s forwards;
}
.stage.hero-on .stage-veil { opacity: 0; visibility: hidden; }
@keyframes veilSafety { to { opacity: 0; visibility: hidden; } }
.veil-logo { animation: veilPulse 1.6s ease-in-out infinite; }
@keyframes veilPulse { 50% { opacity: 0.4; } }
.veil-word { font-size: 19px; font-weight: 850; letter-spacing: -0.02em; color: var(--ink); }
.veil-sub { font-size: 13px; font-weight: 600; color: var(--mut); }
.city-label {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.80));
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  padding: 6px 11px 7px;
  box-shadow: var(--ring), 0 10px 26px rgba(16, 40, 61, 0.16), 0 2px 6px rgba(16, 40, 61, 0.08);
  pointer-events: auto; cursor: pointer; white-space: normal;
  width: max-content; max-width: 218px;
  transform-origin: 50% 100%;
  transition: opacity 0.3s ease;
}
.city-label::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 7px; height: 7px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(255, 255, 255, 0.86); border-right: 1px solid rgba(20, 47, 69, 0.08); border-bottom: 1px solid rgba(20, 47, 69, 0.08);
}
.city-label .cl-name { font-size: 12px; font-weight: 700; letter-spacing: -0.005em; color: var(--ink); line-height: 1.25; max-width: 198px; white-space: normal; text-align: center; }
.city-label .cl-bounty { font-size: 12px; font-weight: 800; letter-spacing: 0.01em; color: var(--gold); line-height: 1.3; }
.city-label.no-bounty .cl-bounty { font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #5f7d92; line-height: 1.35; }
.city-label.on { border-color: rgba(18, 169, 214, 0.75); box-shadow: 0 0 0 2px rgba(18, 169, 214, 0.35), var(--ring), 0 10px 26px rgba(16, 40, 61, 0.16); }
/* Worked in the last week of the record: a small amber dot on the
   building's tag, breathing gently — the label-side twin of the
   building's warm halo and warm windows. */
.city-label.recent .cl-name::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #f5a623; vertical-align: 1px; animation: aw-recent-pulse 2.4s ease-in-out infinite; }
@keyframes aw-recent-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- top bar ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(20, 47, 69, 0.08);
  box-shadow: 0 1px 14px rgba(16, 40, 61, 0.05);
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-logo { width: 27px; height: 27px; flex: none; }
.brand-line { font-weight: 800; font-size: 16px; letter-spacing: -0.015em; white-space: nowrap; }
.navtabs { display: flex; gap: 3px; margin-inline: auto; background: rgba(20, 47, 69, 0.055); box-shadow: inset 0 1px 2px rgba(16, 40, 61, 0.05); border-radius: 999px; padding: 3px; }
.navtab {
  border: 0; background: transparent; border-radius: 999px; padding: 10px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.navtab:hover { color: var(--ink); }
.navtab.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 40, 61, 0.08), 0 4px 12px rgba(16, 40, 61, 0.10); }
.topnav-right { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.signin {
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.65); border-radius: 999px;
  padding: 10px 15px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.signin:hover { background: #fff; box-shadow: var(--shadow-1); }
.connect-nav {
  border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer;
  background: var(--btn-grad); color: #fff;
  font-size: 13.5px; font-weight: 700; box-shadow: var(--btn-shadow);
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.connect-nav:hover { filter: brightness(1.05); transform: translateY(-1px); }
.connect-nav:active { transform: translateY(0) scale(0.98); }
.signin-pop {
  position: absolute; top: calc(100% + 8px); right: 14px; width: min(330px, calc(100vw - 28px));
  background: var(--glass-solid); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-3); padding: 16px 18px; font-size: 13.5px; line-height: 1.55; z-index: 31;
}
.signin-pop p { margin: 0 0 10px; }

/* ---------- HUD over the city ---------- */
.hud { position: relative; z-index: 10; pointer-events: none; }
.hud button, .hud a, .hud .spotlight, .hud .dock { pointer-events: auto; }
.hero-zone {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 84px 16px 20px;
}
.hud-top { text-align: center; max-width: 860px; margin: 0 auto; pointer-events: none; }
.hud-top .filters { pointer-events: auto; }
/* The intro block lives in the dock now (cleanup pass, 2026-11-17):
   breathing room before the board's calls to action. */
.dock .hud-top { margin-bottom: 26px; }
.headline {
  margin: 0; font-size: clamp(30px, 5vw, 52px); line-height: 1.06; font-weight: 850;
  letter-spacing: -0.026em; color: #0e2438;
  text-wrap: balance;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.9), 0 1px 3px rgba(255, 255, 255, 0.9);
}
.subhead {
  margin: 12px auto 0; max-width: 660px; font-size: clamp(14px, 1.7vw, 17.5px);
  line-height: 1.55; color: var(--ink-soft); font-weight: 550;
  text-wrap: pretty;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(255, 255, 255, 0.9);
}
.howit {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center;
  margin: 14px auto 0; max-width: 720px; padding: 10px 18px;
  background: var(--glass-grad); border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 999px;
  box-shadow: var(--ring), var(--shadow-1);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  font-size: 13.5px; color: var(--ink-soft);
}
.howit-lead { font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11.5px; }
.howit b { color: var(--cyan-d); }
.howit-arrow { color: var(--mut); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.fchip {
  border: 1px solid var(--line); background: var(--glass); border-radius: 999px;
  padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: 0 2px 8px rgba(16, 40, 61, 0.05);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.fchip:hover { background: #fff; color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.fchip.on { background: linear-gradient(180deg, #1289b3, #0b86ab); border-color: transparent; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(11, 134, 171, 0.28); }

/* Spotlight: floating glass panel, right side on desktop (the
   reference's active-problem panel). */
.spotlight {
  position: absolute; right: 20px; top: 55%; transform: translateY(-50%);
  width: min(352px, 34vw);
  display: flex; flex-direction: column; gap: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.80));
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px; box-shadow: var(--ring), var(--shadow-3);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  padding: 18px 20px;
}
.focus-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.85); font-size: 15px; line-height: 1;
  cursor: pointer; color: var(--ink-soft); box-shadow: var(--shadow-1);
  transition: background-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.focus-close:hover { background: #fff; color: var(--ink); }
.focus-close:active { transform: scale(0.94); }
.focus-name { font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; padding-right: 30px; }
.focus-bounty {
  align-self: flex-start; background: var(--gold-bg); color: #96690a; font-weight: 700;
  font-size: 12.5px; border: 1px solid #f0dcb2; border-radius: 999px; padding: 4px 11px;
}
.focus-why { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.focus-meta { font-size: 12.5px; color: var(--mut); line-height: 1.45; }
.focus-verify { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.focus-activity {
  font-size: 12.5px; line-height: 1.5; color: var(--ink-soft);
  background: rgba(18, 169, 214, 0.08); border-radius: 10px; padding: 8px 10px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.focus-open {
  align-self: flex-start; border: 0; border-radius: 999px; padding: 10px 17px; cursor: pointer;
  background: var(--btn-grad); color: #fff;
  font-size: 13px; font-weight: 700; box-shadow: var(--btn-shadow);
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}
.focus-open:hover { filter: brightness(1.05); transform: translateY(-1px); }
.focus-open:active { transform: translateY(0) scale(0.98); }

/* The world legend, in the page flow under the hero since the
   cleanup pass (2026-11-17) — it was a pill over the canvas's
   bottom-left corner; the words are unchanged (app.js and the
   bounty-view toggle still write to it). */
.city-cap {
  width: max-content; max-width: calc(100vw - 32px); margin: 16px auto 0;
  font-size: 12px; color: var(--mut); background: var(--glass-grad);
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px; padding: 7px 13px;
  box-shadow: var(--ring), var(--shadow-1);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
}

/* ---------- dock: CTAs, agents, ticker, stats ---------- */
.dock {
  position: relative;
  /* Fully opaque once the blend zone ends (2026-11-18 rebuild): at
     0.93 the fixed world behind the page ghosted through every
     content block below the hero — the "faint watermark" the owner
     reported. The world is the hero's face, not the page's. */
  background: linear-gradient(180deg, rgba(240, 246, 249, 0) 0, rgba(240, 246, 249, 1) 72px);
  padding: 96px 16px 30px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; max-width: 1100px; margin: 0 auto; }
.cta {
  border: 0; border-radius: 999px; padding: 15px 32px; cursor: pointer;
  background: var(--btn-grad); color: #fff;
  font-size: 16.5px; font-weight: 800; letter-spacing: -0.005em; box-shadow: var(--btn-shadow);
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.cta:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(4, 84, 112, 0.25), 0 12px 28px rgba(13, 148, 192, 0.38); }
.cta:active { transform: translateY(0) scale(0.99); }
.cta.secondary {
  background: var(--glass-solid); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow-1); font-size: 15px; padding: 13px 25px; font-weight: 700;
}
.cta.secondary:hover { box-shadow: var(--shadow-2); }
.cta-side { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cta-sub { font-size: 12.5px; color: var(--mut); }

.agents {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 1180px; margin: 20px auto 0;
}
.agent {
  text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 5px;
  background: var(--glass-grad); border: 1px solid rgba(255, 255, 255, 0.65); border-radius: var(--radius);
  box-shadow: var(--ring), var(--shadow-1); padding: 17px 19px;
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s var(--ease);
}
.agent:hover { background: var(--glass-solid); transform: translateY(-2px); box-shadow: var(--ring), var(--shadow-2); }
.agent:active { transform: translateY(0); }
.agent-name { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.agent-role { font-size: 13px; line-height: 1.45; color: var(--ink-soft); flex: 1; }
.agent-foot { font-size: 12.5px; color: var(--mut); font-weight: 600; }
.agent.earn { background: rgba(255, 250, 240, 0.88); border-color: #f0dcb2; }
.agent.earn .agent-name { color: #96690a; }
.agent.note { cursor: default; }
.agent.note:hover { background: var(--glass-grad); transform: none; box-shadow: var(--ring), var(--shadow-1); }

.chip {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
  border-radius: 999px; padding: 3px 9px; background: rgba(20, 47, 69, 0.08); color: var(--ink-soft);
}
.chip.go { background: #e0f3ea; color: #0d7a4f; }
.chip.wait { background: #fdf3e0; color: #96690a; }
.chip.stop { background: #fbe7e4; color: #b03a2e; }

.tabs { display: flex; gap: 8px; justify-content: center; margin: 20px auto 0; }
.tabs button {
  border: 1px solid var(--line); background: var(--glass); border-radius: 999px;
  padding: 12px 20px; font-size: 14px; font-weight: 650; cursor: pointer; color: var(--ink-soft);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.tabs button:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); transform: translateY(-1px); }

.ticker {
  max-width: 1180px; margin: 16px auto 0; display: flex; align-items: center; gap: 12px;
  background: var(--glass-grad); border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 14px;
  box-shadow: var(--ring), var(--shadow-1);
  padding: 10px 15px; overflow: hidden;
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.ticker-label { font-size: 11px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-d); white-space: nowrap; }
.ticker-view { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); }
.ticker-track { display: inline-flex; gap: 20px; white-space: nowrap; animation: tickmove 70s linear infinite; will-change: transform; }
.tick-item { font-size: 12.5px; color: var(--ink-soft); }
.tick-item strong { color: var(--ink); }
.tick-sep { color: var(--cyan); font-size: 9px; align-self: center; }
@keyframes tickmove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stamp { max-width: 1180px; margin: 26px auto 0; border-top: 1px solid var(--line); padding-top: 24px; }
.foot-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.foot-brand svg { width: 22px; height: 22px; flex: none; }
.foot-brand-name { font-weight: 800; font-size: 15px; letter-spacing: -0.012em; }
.foot-brand-by { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--glass-grad); border: 1px solid rgba(255, 255, 255, 0.65); border-radius: var(--radius);
  box-shadow: var(--ring), var(--shadow-1); padding: 18px 10px;
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.stat { text-align: center; padding: 0 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 21px; font-weight: 850; letter-spacing: -0.018em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); }
.stat-note {
  max-width: 760px; margin: 12px auto 0; text-align: center;
  font-size: 12.5px; line-height: 1.55; color: var(--mut);
}
.fineprint { text-align: center; font-size: 12px; color: var(--mut); margin-top: 12px; }
.fineprint a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.fineprint a:hover { color: var(--cyan-d); }
.fineprint .sep { margin: 0 6px; }
.tagline { text-align: center; font-size: 13.5px; font-weight: 650; color: var(--ink-soft); margin-top: 6px; }
.loading { text-align: center; color: var(--mut); padding: 14px; grid-column: 1 / -1; }

/* ---------- sheet (in-app views) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(13, 30, 44, 0.44); -webkit-backdrop-filter: blur(3px) saturate(1.2); backdrop-filter: blur(3px) saturate(1.2); }
.sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 160px);
  box-shadow: -24px 0 54px rgba(13, 30, 44, 0.25);
  display: flex; flex-direction: column; animation: sheetin 0.38s var(--ease-sheet);
}
@keyframes sheetin { from { transform: translateX(56px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head {
  display: flex; align-items: center; gap: 10px; padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.sheet-head h2 { flex: 1; margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
.sheet-close, .sheet-back {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 16px; cursor: pointer; line-height: 1;
  box-shadow: var(--shadow-1);
  transition: background-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.sheet-close:hover, .sheet-back:hover { background: #f2f7fa; }
.sheet-close:active, .sheet-back:active { transform: scale(0.94); }
.sheet-body { overflow-y: auto; padding: 20px 22px 36px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); scrollbar-width: thin; scrollbar-color: rgba(20, 47, 69, 0.22) transparent; }
.sheet-body::-webkit-scrollbar { width: 10px; }
.sheet-body::-webkit-scrollbar-thumb { background: rgba(20, 47, 69, 0.18); border-radius: 8px; border: 2px solid #fbfdfe; }
.sheet-body::-webkit-scrollbar-track { background: transparent; }
.sheet-body h3 { color: var(--ink); font-size: 15.5px; font-weight: 750; letter-spacing: -0.008em; margin: 22px 0 8px; }
.sheet-body p { margin: 8px 0; }
.sheet-body code { background: #eef3f6; padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }
.small { font-size: 13px; }
.mut { color: var(--mut); }
.demo-note {
  background: #fff7e8; border: 1px solid #f0dcb2; color: #6b5510;
  padding: 12px 15px; border-radius: 13px; font-size: 13px; line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.endpoint-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.endpoint-line code { flex: 1 1 240px; padding: 8px 11px; font-size: 12.5px; white-space: nowrap; overflow-x: auto; word-break: break-all; }

/* ---------- connect flow (2026-11-18 redesign) ----------
   The whole connection experience on one clean sheet, in three
   taps: pick an agent, pick a problem, set a cap — then one big
   Connect button. Same glass / shadow / pill language as the rest
   of the face; big tappable rows throughout, no jargon. */
.pick-lead { font-size: 14.5px; color: var(--ink-soft); margin: 2px 0 4px; }
.flow-step { margin-top: 24px; }
.flow-h {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -0.012em;
  margin: 0 0 12px;
}
.flow-n {
  flex: none; width: 25px; height: 25px; border-radius: 50%;
  background: var(--btn-grad); color: #fff; box-shadow: var(--btn-shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.pick-list { display: flex; flex-direction: column; gap: 12px; }
/* Step 1 is a grid of agent platforms: one column on a phone, two in
   the wider sheet, same cards either way. */
.pick-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 620px) { .pick-grid { grid-template-columns: 1fr 1fr; } }
.pick-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--shadow-1);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pick-card.is-on { border-color: rgba(53, 181, 127, 0.55); background: linear-gradient(180deg, #f4fbf6, #ffffff 70%); }
.pick-card.own-panel { background: linear-gradient(180deg, #f2fafd, #ffffff 75%); border-color: #bfe3ef; margin-top: 12px; }
/* Selectable cards are real buttons: reset them to the card look. */
.pick-card.sel {
  display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
}
.pick-card.sel:hover { border-color: rgba(18, 169, 214, 0.45); box-shadow: var(--shadow-2); }
.pick-card.sel.on { border-color: rgba(18, 169, 214, 0.65); box-shadow: 0 0 0 2px rgba(18, 169, 214, 0.22), var(--shadow-1); background: linear-gradient(180deg, #f4fbfe, #ffffff 75%); }
.pick-card.sel .pick-role, .pick-card.sel .pick-meta { display: block; }
.pick-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pick-name { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.012em; }
.pick-tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cyan-d); background: rgba(18, 169, 214, 0.10); border-radius: 999px; padding: 3px 9px;
  white-space: nowrap;
}
.pick-tag.ext { color: #96690a; background: var(--gold-bg); }
.pick-role { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); margin: 7px 0 0; }
.pick-meta { font-size: 12.5px; color: var(--mut); font-weight: 600; margin: 7px 0 0; }
.pick-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 13px; }
.pick-btn { padding: 11px 26px; min-height: 44px; }
.pick-note { font-size: 12.5px; line-height: 1.5; color: var(--mut); text-align: center; margin: 14px 6px; }
.summary-line { font-size: 14.5px; font-weight: 650; line-height: 1.55; color: var(--ink); margin: 9px 0 0; }

/* Step 2 — the problem rows. */
.prob-list { display: flex; flex-direction: column; gap: 8px; }
.prob-row {
  display: flex; gap: 11px; align-items: center; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(16, 40, 61, 0.04); font: inherit; color: inherit;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}
.prob-row:hover { border-color: rgba(18, 169, 214, 0.5); box-shadow: var(--shadow-1); }
.prob-row.on { border-color: rgba(18, 169, 214, 0.65); box-shadow: 0 0 0 2px rgba(18, 169, 214, 0.22); background: #f4fbfe; }
.prob-main { flex: 1; min-width: 0; }
.prob-title { display: block; font-weight: 700; color: var(--ink); font-size: 14px; line-height: 1.35; }
.prob-sub { display: block; font-size: 12px; color: var(--mut); margin-top: 1px; }
.prob-bounty { font-weight: 800; color: var(--gold); font-size: 13px; white-space: nowrap; }
.prob-nobounty { font-size: 11.5px; color: var(--mut); white-space: nowrap; }

/* Step 3 — the cap chips and the custom fields. */
.cap-chips { display: flex; flex-direction: column; gap: 8px; }
.cap-chip {
  display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(16, 40, 61, 0.04); font: inherit; color: inherit; cursor: pointer;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}
.cap-chip:hover { border-color: rgba(18, 169, 214, 0.5); box-shadow: var(--shadow-1); }
.cap-chip.on { border-color: rgba(18, 169, 214, 0.65); box-shadow: 0 0 0 2px rgba(18, 169, 214, 0.22); background: #f4fbfe; }
.cap-chip strong { font-size: 14px; color: var(--ink); letter-spacing: -0.006em; }
.cap-chip span { font-size: 12.5px; line-height: 1.45; color: var(--mut); }
.cap-chip.custom { cursor: default; }
.cap-chip.custom:hover { border-color: var(--line); box-shadow: 0 1px 3px rgba(16, 40, 61, 0.04); }
.cap-chip.custom.on { border-color: rgba(18, 169, 214, 0.65); box-shadow: 0 0 0 2px rgba(18, 169, 214, 0.22); background: #f4fbfe; }
.cap-fields { display: flex; gap: 10px; margin-top: 9px; }
.cap-fields label {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
}
.cap-fields input {
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff;
  width: 100%; min-height: 48px;
}
.cap-fields input:focus { outline: 2px solid rgba(11, 134, 171, 0.55); outline-offset: 1px; border-color: transparent; }

.connect-cta { width: 100%; margin-top: 22px; padding: 16px 24px; font-size: 16.5px; }
.connect-cta[disabled] { opacity: 0.6; cursor: default; transform: none; filter: none; }
.flow-error { color: #b03a2e; font-size: 13.5px; font-weight: 650; line-height: 1.5; margin: 14px 0 0; }

.config-box {
  background: #0f2a3d; color: #dceef7; border-radius: 12px;
  padding: 12px 14px; margin: 10px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.55; overflow-x: auto;
}
.pick-steps { margin: 12px 0 2px; padding-left: 19px; font-size: 13.5px; color: var(--ink-soft); }
.pick-steps li { margin: 4px 0; }

/* Connect UX pass (2026-11-19): Step 4 limits box, the result
   panel's status line + connection-details disclosure, the bounty
   info control, and the shared payout popover. */
.limits-box {
  border: 1px solid var(--line); border-radius: 13px; background: #fff;
  padding: 13px 15px; display: flex; flex-direction: column; gap: 8px;
}
.limits-box .spend-label {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.spend-input { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink); }
.spend-input input {
  width: 112px; min-height: 42px; padding: 9px 10px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  font-size: 14px; color: var(--ink);
}
.spend-input input:focus { outline: 2px solid rgba(11, 134, 171, 0.55); outline-offset: 1px; border-color: transparent; }
.limits-box p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--mut); }
.connect-status { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 12px 0 0; }
.connect-details { margin-top: 12px; }
.connect-details summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--cyan-d); padding: 6px 0; }
.bounty-info {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid currentColor;
  font-size: 10.5px; font-weight: 800; font-style: italic; line-height: 1;
  cursor: pointer; vertical-align: 2px; margin-left: 5px; opacity: 0.72;
}
.bounty-info:hover, .bounty-info:focus-visible { opacity: 1; outline: none; box-shadow: 0 0 0 3px rgba(18, 169, 214, 0.25); }
.focus-bounty-row { display: flex; align-items: center; }
.focus-bounty-row .bounty-info { color: #96690a; margin-left: 7px; }
.payout-pop {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  width: min(350px, calc(100vw - 24px));
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-2); padding: 16px 18px 12px;
}
.payout-pop[hidden] { display: none; }
.payout-pop h3 { margin: 0 26px 8px 0; font-size: 15.5px; letter-spacing: -0.01em; }
.payout-pop p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.payout-pop-close {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 14px; line-height: 1; color: var(--ink-soft);
}
.payout-pop-close:hover { color: var(--ink); }
@media (max-width: 560px) {
  .payout-pop { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn {
  display: inline-block; border: 0; border-radius: 999px; padding: 11px 21px; cursor: pointer;
  background: var(--btn-grad); color: #fff; font-weight: 700; font-size: 14px;
  text-decoration: none; box-shadow: var(--btn-shadow);
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.btn.ghost:hover { box-shadow: var(--shadow-2); }
.btn[disabled] { opacity: 0.55; cursor: default; }

.steps { list-style: none; margin: 12px 0; padding: 0; }
.step { display: flex; gap: 11px; padding: 8px 0; align-items: flex-start; }
.step-mark {
  flex: none; width: 25px; height: 25px; border-radius: 50%; border: 2px solid #c9d8e1;
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; color: var(--mut);
}
.step.ok .step-mark { border-color: #35b57f; background: #e0f3ea; color: #0d7a4f; }
.step.bad .step-mark { border-color: #d9534f; background: #fbe7e4; color: #b03a2e; }
.step.now .step-mark { border-color: var(--cyan); color: var(--cyan-d); animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(18, 169, 214, 0.18); } }
.step-name { font-weight: 700; color: var(--ink); }
.step-detail { font-size: 13px; color: var(--mut); }
.step-detail ul { margin: 4px 0 0; padding-left: 16px; }

.rows { list-style: none; margin: 10px 0; padding: 0; }
.rows li { margin: 0 0 8px; }
.row {
  width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 13px 15px;
  box-shadow: 0 1px 3px rgba(16, 40, 61, 0.04);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.row:hover { border-color: rgba(18, 169, 214, 0.5); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.row-rank {
  flex: none; width: 23px; height: 23px; border-radius: 50%; background: #eef3f6;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--ink-soft);
  box-shadow: inset 0 1px 2px rgba(16, 40, 61, 0.06);
}
.row-title { font-weight: 750; color: var(--ink); font-size: 14.5px; letter-spacing: -0.006em; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; }
.row-sub { font-size: 12.5px; color: var(--mut); }
.row-why { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.row-score { margin-left: auto; flex: none; text-align: right; font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.row-score strong { display: block; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }

.facts { margin: 10px 0; }
.facts > div { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(20, 47, 69, 0.07); }
.facts dt { flex: none; width: 108px; font-weight: 700; color: var(--ink); font-size: 13px; }
.facts dd { margin: 0; flex: 1; font-size: 13.5px; }
.why-block { background: linear-gradient(180deg, #f2fafd, #eaf5fa); border: 1px solid rgba(18, 169, 214, 0.14); border-radius: 13px; padding: 6px 15px 11px; }
.why-block h3 { margin-top: 10px; }

.entry {
  border-left: 3px solid #cfe0ea; background: #f4f8fa; border-radius: 0 12px 12px 0;
  padding: 9px 13px; margin: 8px 0; font-size: 13.5px;
}
.entry.good { border-left-color: #35b57f; }
.entry.reject { border-left-color: #d9534f; }
.entry.work { border-left-color: #e8a33d; }
.entry .when { font-size: 12px; font-weight: 700; color: var(--mut); margin-bottom: 2px; }

.meter-card { border: 1px solid var(--line); border-radius: 15px; padding: 13px 15px; margin: 10px 0; background: #fff; box-shadow: var(--shadow-1); }
.meter-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.meter-name { font-weight: 750; color: var(--ink); font-size: 14px; letter-spacing: -0.006em; }
.bar { height: 8px; background: #e3edf2; border-radius: 99px; margin-top: 9px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(16, 40, 61, 0.08); }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #25b6dd, #0d94c0); border-radius: 99px; transition: width 0.6s var(--ease); }
.bar.capped i { background: #d9534f; }
.meter-nums { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mut); margin-top: 6px; }
.plain { padding-left: 20px; }
.plain li { margin: 5px 0; }

.noscript {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 12px 18px; font-size: 13.5px; max-width: min(520px, 92vw); text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .spotlight { width: 312px; }
  .agents { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 759px) {
  .topnav { flex-wrap: wrap; gap: 7px; padding: 7px 10px; }
  .brand-line { font-size: 14px; }
  .brand-logo { width: 23px; height: 23px; }
  .topnav-right { margin-left: auto; }
  .signin { padding: 8px 11px; font-size: 12.5px; }
  .connect-nav { padding: 9px 13px; font-size: 12.5px; }
  .navtabs { order: 3; width: 100%; margin: 0; overflow-x: auto; justify-content: flex-start; }
  .navtab { padding: 8px 11px; font-size: 12.5px; }
  .hero-zone { padding: 128px 12px 16px; }
  /* Phone label cards are smaller (2026-11-18 rebuild): a 218px card
     on a 390px screen is a billboard — these sizes keep the focused
     and landmark cards readable without covering the island. */
  .city-label { max-width: 176px; padding: 5px 9px 6px; border-radius: 10px; }
  .city-label .cl-name { font-size: 11.5px; max-width: 158px; }
  .city-label .cl-bounty { font-size: 11px; }
  .city-label.no-bounty .cl-bounty { font-size: 9.5px; }
  .headline { font-size: 29px; }
  .subhead { font-size: 14px; }
  .filters { gap: 6px; margin-top: 12px; }
  .fchip { padding: 9px 11px; font-size: 12px; }
  /* On a phone the spotlight is the hero's only in-flow child: it
     rests at the bottom of the world when a building is picked. */
  .spotlight {
    position: static; transform: none; width: auto; margin-top: auto;
    padding: 13px 15px; gap: 5px;
  }
  .focus-name { font-size: 15.5px; }
  .focus-why {
    font-size: 12.5px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .focus-activity { display: none; }
  .dock { padding: 84px 12px 24px; }
  .agents { grid-template-columns: 1fr 1fr; gap: 9px; }
  .agent { padding: 12px 13px; }
  .agent-name { font-size: 14px; }
  .agent-role { font-size: 12px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px 0; }
  .stat:nth-child(3) { border-left: 0; }
  .cta { font-size: 15px; padding: 13px 24px; }
  .sheet-body { padding: 16px 16px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .veil-logo { animation: none; }
  .sheet { animation: none; }
  .step.now .step-mark { animation: none; }
  .cta, .agent, .row, .navtab, .fchip, .btn, .connect-nav, .focus-open, .tabs button,
  .prob-row, .cap-chip, .pick-card.sel {
    transition: none;
  }
  .cta:hover, .agent:hover, .row:hover, .fchip:hover, .btn:hover, .connect-nav:hover, .focus-open:hover, .tabs button:hover {
    transform: none;
  }
}

/* ---------- voxel world UI (2026-11-17 rebuild; cleanup same day) ----------
   The GeminIsland furniture, and — after the owner's cleanup call —
   ALL the furniture over the world: a slim Pan / Orbit / Walk pill
   at the top-centre of the canvas and one prominent "+ Add" entry
   at the bottom-right; walk-mode furniture (hint, crosshair, touch
   joystick) layered over the stage. The container spans the hero
   and never takes clicks itself. All of it is created by
   hero3d.js — if the 3D world can't start, none of it exists. */
.world-ui {
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
}
.navmode {
  position: absolute; top: 74px; left: 50%; transform: translateX(-50%);
  pointer-events: auto;
  display: flex; gap: 3px; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--ring), var(--shadow-1);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
}
.navmode button {
  border: 0; background: transparent; border-radius: 999px; padding: 9px 17px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft); cursor: pointer;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.navmode button:hover { color: var(--ink); }
.navmode button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 40, 61, 0.08), 0 4px 12px rgba(16, 40, 61, 0.10); }
.world-add {
  position: absolute; right: 18px; bottom: 18px; pointer-events: auto;
  border: 0; border-radius: 999px; padding: 12px 24px; cursor: pointer;
  background: var(--btn-grad); color: #fff;
  font-size: 15.5px; font-weight: 800; letter-spacing: -0.005em; box-shadow: var(--btn-shadow);
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}
.world-add:hover { filter: brightness(1.05); transform: translateY(-1px); }
.world-add:active { transform: translateY(0) scale(0.98); }
.add-pop {
  position: absolute; right: 18px; bottom: 76px; pointer-events: auto;
  width: min(330px, 88vw);
  display: flex; flex-direction: column; gap: 8px;
  background: var(--glass-solid); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-3); padding: 14px;
}
.add-pop-lead {
  margin: 0 0 2px; font-size: 11.5px; font-weight: 850; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--cyan-d);
}
.add-pop-btn {
  text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px;
  box-shadow: 0 1px 3px rgba(16, 40, 61, 0.04);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.add-pop-btn:hover { border-color: rgba(18, 169, 214, 0.5); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.add-pop-btn strong { font-size: 14.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.006em; }
.add-pop-btn span { font-size: 12.5px; line-height: 1.45; color: var(--mut); }
.add-pop-note { margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: var(--mut); }

.walk-ui { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.walk-hint {
  display: none;
  position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%);
  width: max-content; max-width: 92vw;
  background: var(--glass-grad); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px;
  box-shadow: var(--ring), var(--shadow-1); padding: 9px 17px;
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  font-size: 13px; font-weight: 600; color: var(--ink-soft); text-align: center;
  opacity: 0; transition: opacity 0.5s ease;
}
body.walk-on .walk-hint { display: block; }
body.walk-on .walk-hint.show { opacity: 1; }
.crosshair {
  display: none;
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(11, 61, 85, 0.45);
}
body.walk-on .crosshair { display: block; }
.joystick {
  display: none;
  position: absolute; left: 18px; bottom: 88px; width: 104px; height: 104px;
  border-radius: 50%; pointer-events: auto; touch-action: none;
  background: rgba(255, 255, 255, 0.26); border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--ring), var(--shadow-1);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
}
body.walk-on .joystick { display: block; }
@media (pointer: fine) { body.walk-on .joystick { display: none; } }
.joy-knob {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(16, 40, 61, 0.25);
}
@media (max-width: 759px) {
  /* The pill tucks under the wrapped top bar with clear air below
     it — the bar measures ~128px tall on a phone since the
     2026-11-18 slimming (it was 136px; 118px left the pill's top
     edge underneath it, seen in the cleanup verification shots).
     + Add keeps the bottom-right corner, its popover opening
     above it. */
  .navmode { top: 140px; }
  .navmode button { padding: 9px 14px; font-size: 12.5px; }
  .world-add { right: 14px; bottom: 14px; padding: 11px 20px; font-size: 14.5px; }
  .add-pop { right: 14px; bottom: 68px; }
  .joystick { left: 14px; bottom: 104px; }
  .walk-hint { bottom: auto; top: 44%; white-space: normal; width: 88vw; }
}

/* ---------- post a problem: the intake form + problem parts ---------- */
.post-form { display: grid; gap: 14px; margin: 16px 0 8px; }
.post-form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; display: grid; gap: 10px; margin: 0; }
.post-form legend { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); padding: 0 6px; }
.pf-field { display: grid; gap: 6px; font-size: 13.5px; }
.pf-field > span { font-weight: 700; color: var(--ink); }
.pf-field small { color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.pf-field input[type="text"], .pf-field input[type="email"], .pf-field input[type="number"],
.pf-field textarea, .pf-field select {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 14.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px;
}
.pf-field textarea { resize: vertical; line-height: 1.5; }
.pf-field input:focus, .pf-field textarea:focus, .pf-field select:focus {
  outline: 2px solid rgba(18, 169, 214, 0.55); outline-offset: 1px; border-color: rgba(18, 169, 214, 0.7);
}
.pf-check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pf-check input { width: 17px; height: 17px; accent-color: #0d94c0; }
.post-form .connect-cta { justify-self: start; }
ul.parts { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 8px; }
li.part { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.part-status { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; margin-top: 2px; background: #eef3f7; color: var(--ink-soft); border: 1px solid var(--line); }
.part-status.settled { background: #e2f4e4; color: #1e6b2e; border-color: rgba(30, 107, 46, 0.25); }
.part-status.in-progress { background: #fdf3d7; color: #7a5b00; border-color: rgba(122, 91, 0, 0.25); }
.part-text { display: grid; gap: 2px; }
