/* map.css — owned by its module; see docs/GAME.md

   The property as a game world. Everything floating over the map is a DOM
   element, so it follows the house rules: transform and opacity only, one
   curve, and every pulse stops under prefers-reduced-motion (app.css has
   the global rule; the ones here that loop are switched off below too). */

.maprap { overflow: hidden; background: #1a1712; }

/* The lens. Pointer-events off: it is paint, not a surface. */
.qf-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 55%, transparent 55%, rgba(10,8,5,.55)),
    linear-gradient(180deg, rgba(10,8,5,.35), transparent 18%, transparent 82%, rgba(10,8,5,.45));
}
.maplibregl-ctrl-top-right { z-index: 4; }
.maplibregl-ctrl-top-right .maplibregl-ctrl-group {
  background: rgba(26,23,18,.82); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow); border-radius: 12px; overflow: hidden;
}
.maplibregl-ctrl-group button + button { border-top-color: var(--line); }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(.92) sepia(.2); }
.maplibregl-ctrl-top-right { margin: 6px 4px 0 0; }
.maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(26,23,18,.7); color: var(--faint); }
.maplibregl-ctrl-attrib.maplibregl-compact a { color: var(--dim); }
.maplibregl-ctrl-attrib-button { filter: invert(.8); }

/* ─── layer chips, top left ───────────────────────────────────── */

.qf-layers {
  position: absolute; top: 12px; left: 16px; right: 64px; z-index: 4;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
}
.qf-layers::-webkit-scrollbar { display: none; }
.qf-chip {
  flex: none; font: inherit; font-size: 12px; font-weight: 560; letter-spacing: .01em;
  padding: 7px 11px; min-height: 32px; border-radius: 99px;
  color: var(--faint); background: rgba(26,23,18,.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.qf-chip[aria-pressed="true"] { color: var(--ink); border-color: rgba(233,196,106,.5);
                                 background: rgba(40,33,22,.85); }
.qf-chip:active { transform: scale(.94); }

/* ─── the bottom row: home, unpinned, draw ────────────────────── */

.qf-bottom {
  /* right: 44px keeps clear of the ⓘ attribution button */
  position: absolute; left: 16px; right: 44px; bottom: 12px; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end;
  pointer-events: none;
}
.qf-bottom[hidden] { display: none; }
.qf-pill {
  pointer-events: auto; font: inherit; font-size: 13px; font-weight: 560;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; min-height: 40px; border-radius: 99px;
  color: var(--ink); background: rgba(26,23,18,.86);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: rise var(--dur) var(--ease) both;
  transition: transform var(--dur-fast) var(--ease);
}
.qf-pill:active { transform: scale(.95); }
.qf-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor;
               stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qf-pill .qf-caret { color: var(--faint); display: inline-block;
                     transition: transform var(--dur) var(--ease); }
.qf-pill[aria-expanded="true"] .qf-caret { transform: rotate(90deg); }
.qf-home { color: #1c1406; background: rgba(233,196,106,.95); border-color: transparent; }

/* The unpinned list, when somebody asks for it: above the bottom row, a
   third of the screen at most. Overrides the old half-screen panel. */
.unpinned { bottom: 64px; left: 16px; right: 16px; max-height: 38%; z-index: 6; }
.qf-listhead { display: flex; align-items: center; gap: 8px; }
.qf-listhead h4 { flex: 1; }
.qf-x { font: inherit; font-size: 20px; line-height: 1; color: var(--dim);
        background: none; border: 0; width: 32px; height: 32px; margin: -6px -8px -4px 0; }

/* ─── an area: a flag on a stem over a lit ring ───────────────── */

/* 🪤 Never give a marker's ROOT element a transform, a transition on it,
   an animation or `position`. MapLibre places a marker by writing an inline
   translate() on that element and positions it absolutely: a `position:
   relative` here put the alert ring 30 px off its fence, and a rotate() or
   a drop-in keyframe on the root either vanishes or throws the marker to
   the corner for the length of the animation. Everything that moves is a
   child. */
.qf-loc {
  display: flex; flex-direction: column; align-items: center;
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  --c: var(--life);
}
.qf-loc > * { animation: qf-drop .6s var(--spring) both; }
/* Places over devices over the ground rings: a flag is what you tap. */
.maplibregl-marker.qf-k-area { z-index: 3; }
.maplibregl-marker.qf-k-who { z-index: 2; }
.maplibregl-marker.qf-k-dev { z-index: 1; }
.qf-loc.warm { --c: var(--solar); }
.qf-loc.hot { --c: var(--now); }
.qf-flag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px; border-radius: 99px; position: relative;
  background: linear-gradient(180deg, rgba(38,32,24,.94), rgba(22,19,14,.94));
  border: 1px solid color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 6px 18px -4px rgba(0,0,0,.7),
              0 0 18px -2px color-mix(in srgb, var(--c) 55%, transparent);
  color: var(--ink); white-space: nowrap;
  transition: transform var(--dur) var(--spring);
}
.qf-loc:active .qf-flag { transform: scale(.92); }
.qf-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
         background: color-mix(in srgb, var(--c) 22%, #16130e);
         box-shadow: inset 0 0 0 1.5px var(--c); }
.qf-ic .ic { width: 15px; height: 15px; color: var(--ink); }
.qf-name { font-family: 'Instrument Serif', serif; font-style: italic;
           font-size: 16px; line-height: 1; letter-spacing: .005em; }
.qf-count { font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff;
            min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
            display: grid; place-items: center; background: var(--c);
            margin-left: 2px; margin-right: -4px; }
.qf-stem { width: 2px; height: 24px; border-radius: 2px;
           background: linear-gradient(180deg, var(--c), transparent); opacity: .9; }
/* Far out, a flag is just its icon: fifteen names at z16 are a word cloud. */
.qf-far .qf-loc:not(.hot) .qf-name { display: none; }
.qf-far .qf-loc:not(.hot) .qf-flag { padding-right: 4px; }

/* An urgent place breathes. Only those. */
.qf-loc.hot .qf-ic { animation: qf-breathe 2.4s var(--ease) infinite; }
@keyframes qf-breathe {
  0%, 100% { box-shadow: inset 0 0 0 1.5px var(--c), 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); }
  60% { box-shadow: inset 0 0 0 1.5px var(--c), 0 0 0 7px transparent; }
}
@keyframes qf-drop { from { opacity: 0; transform: translateY(-14px) scale(.8); } }

/* ─── devices ─────────────────────────────────────────────────── */

.qf-dev {
  --c: var(--life);
  width: 24px; height: 24px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(22,19,14,.88); border: 1.5px solid var(--c);
  box-shadow: 0 3px 10px rgba(0,0,0,.55), 0 0 10px -2px var(--c);
}
.qf-dev svg { width: 13px; height: 13px; fill: none; stroke: var(--ink);
              stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qf-dev.silent { --c: var(--now); }
.qf-dev.waiting { --c: var(--solar); }
.qf-dev.off { --c: var(--faint); opacity: .7; }

/* ─── people ──────────────────────────────────────────────────── */

.qf-who { background: none; border: 0; padding: 0 0 7px; cursor: pointer; }
.qf-who::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 8px; height: 8px;
                 transform: translateX(-50%) rotate(45deg); background: var(--water);
                 border-radius: 1px; }
.qf-face { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
           overflow: hidden; position: relative; z-index: 1;
           background: #2a3a44; border: 2px solid var(--water);
           box-shadow: 0 4px 12px rgba(0,0,0,.6); color: var(--ink); font-size: 14px; }
.qf-face svg { width: 30px; height: 30px; display: block; }

/* ─── alerts: rings on the ground ─────────────────────────────── */

/* A ring around the thing that raised it, hollow so the device inside it
   is still what a finger lands on. */
.qf-alert { width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
            background: radial-gradient(circle, transparent 52%, rgba(215,109,93,.28) 54%, transparent 72%);
            border: 2px solid var(--now); box-shadow: 0 0 18px rgba(215,109,93,.55); }
.qf-alert i { position: absolute; inset: -2px; border-radius: 50%;
              border: 2px solid var(--now); animation: qf-ping 2.2s var(--ease) infinite; }
.qf-alert i + i { animation-delay: 1.1s; }
.qf-alert.warn, .qf-alert.info { border-color: var(--solar); box-shadow: 0 0 18px rgba(227,169,92,.5);
  background: radial-gradient(circle, transparent 52%, rgba(227,169,92,.25) 54%, transparent 72%); }
.qf-alert.warn i, .qf-alert.info i { border-color: var(--solar); }
@keyframes qf-ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2); } }

/* the toggles */
.qf-hide-places .qf-k-area,
.qf-hide-devices .qf-k-dev,
.qf-hide-people .qf-k-who,
.qf-hide-alerts .qf-k-alert { display: none; }

/* ─── in the sheet ────────────────────────────────────────────── */

/* The fly-in happens behind the sheet, so the backdrop that dims and blurs
   every other sheet in the app is lifted for the map's own: the place you
   just flew to stays in focus above it. Matched on the content (the sheet
   element is shared and reused), so no other module's sheet is touched. */
.sheet-bg:has(+ .sheet .qf-areasheet) {
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.4));
  backdrop-filter: none; -webkit-backdrop-filter: none;
}

.qf-devrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.qf-devchip { font: inherit; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px;
              padding: 6px 11px 6px 8px; border-radius: 99px; color: var(--dim);
              background: var(--panel-2); border: 1px solid var(--line); }
.qf-devchip svg, .qf-devhead svg { width: 16px; height: 16px; fill: none; stroke: var(--life);
              stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qf-devchip.silent svg, .qf-devhead.silent svg { stroke: var(--now); }
.qf-devchip.waiting svg, .qf-devhead.waiting svg { stroke: var(--solar); }
.qf-devhead svg { width: 20px; height: 20px; }
.qf-read { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
           gap: 8px; margin: 14px 0 0; }
.qf-read div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
               padding: 9px 11px; }
.qf-read dt { font-size: 11.5px; color: var(--faint); text-transform: capitalize; }
.qf-read dd { margin: 2px 0 0; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.qf-read small { font-size: 12px; color: var(--dim); }

/* ─── drawing the property line ───────────────────────────────── */

.qf-draw {
  position: absolute; left: 16px; right: 16px; bottom: 30px; z-index: 6;
  background: rgba(26,23,18,.93); border: 1px solid rgba(233,196,106,.45);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: var(--r-lg); padding: 12px 14px; box-shadow: var(--shadow-up);
  font-size: 13px; color: var(--dim); animation: rise var(--dur) var(--ease) both;
}
.qf-draw p { margin: 0; }
.qf-draw b { color: var(--ink); }
.qf-draw .qf-err { margin-top: 6px; color: var(--now); }
.qf-draw .row { margin-top: 10px; }
.qf-draw .btn.go { margin-left: auto; }
.qf-corner { width: 22px; height: 22px; border-radius: 50%; cursor: grab;
             background: var(--gold); border: 3px solid #1c1406;
             box-shadow: 0 0 0 2px var(--gold), 0 3px 10px rgba(0,0,0,.6); }
/* A finger is bigger than the dot; the target is not. */
.qf-corner::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  .qf-loc.hot .qf-ic, .qf-alert i { animation: none !important; }
  .qf-alert i { opacity: .5; transform: scale(1.3); }
}

/* ═══ play ══════════════════════════════════════════════════════════
   The phone is the controller. Same house rules as everything above:
   nothing that moves is a marker's root (the root gets MapLibre's inline
   translate); every loop stops under reduced motion (bottom of file). */

/* Explore ↔ Play, top left. The layer chips move down a row under it. */
.qf-mode {
  position: absolute; top: 12px; left: 16px; z-index: 5;
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 99px;
  background: rgba(22,19,14,.84); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.qf-mode[hidden] { display: none; }
.qf-mode button {
  font: inherit; font-size: 13.5px; font-weight: 620; letter-spacing: .01em;
  min-height: 38px; padding: 0 15px; border-radius: 99px; border: 0;
  color: var(--dim); background: transparent;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.qf-mode button:active { transform: scale(.95); }
.qf-mode button[aria-pressed="true"] { color: var(--ink); background: rgba(255,255,255,.07); }
.qf-mode button[data-qfmode="play"] { color: #f6e3b3; }
.qf-mode button[data-qfmode="play"][aria-pressed="true"] {
  color: #1c1406; background: linear-gradient(180deg, #f3d98f, #e2b95a);
  box-shadow: 0 0 18px -4px rgba(233,196,106,.8), inset 0 1px 0 rgba(255,255,255,.5);
}
.qf-tri { width: 0; height: 0; border-style: solid; border-width: 5.5px 0 5.5px 9px;
          border-color: transparent transparent transparent currentColor; }
.qf-layers { top: 64px; left: 16px; }
.qf-playing .maplibregl-ctrl-geolocate { display: none; }
/* The ⓘ rides above the HUD card rather than under it. */
.qf-playing .maplibregl-ctrl-bottom-right { bottom: var(--hud-h, 0px); }
/* A place's flag steps aside where a quest token stands. */
.maplibregl-marker.qf-under-quest { display: none; }
.qf-playing .qf-loc .qf-name { display: none; }
.qf-playing .qf-loc .qf-flag { padding-right: 4px; opacity: .8; }
.qf-playing .qf-loc .qf-count { display: none; }

/* ─── quest tokens: a gem floating over the ring ──────────────── */

.maplibregl-marker.qf-k-quest { z-index: 4; }
.maplibregl-marker.qf-k-quest.near, .maplibregl-marker.qf-k-quest.here { z-index: 5; }
.qf-q {
  --k: var(--water);
  display: flex; flex-direction: column; align-items: center;
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--ink);
}
.qf-qf { display: flex; flex-direction: column; align-items: center;
         animation: qf-drop .6s var(--spring) both, qf-float 3.6s ease-in-out .6s infinite; }
.qf-qlabel {
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: 17px; line-height: 1;
  white-space: nowrap; padding: 5px 11px 6px; margin-bottom: 12px; border-radius: 99px;
  background: rgba(22,19,14,.9); border: 1px solid color-mix(in srgb, var(--k) 55%, transparent);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(6px) scale(.9); transform-origin: 50% 100%;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--spring);
}
.qf-q.near .qf-qlabel, .qf-q.here .qf-qlabel { opacity: 1; transform: none; }
.qf-gem {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  transform: rotate(45deg);
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), transparent 42%),
    linear-gradient(315deg, color-mix(in srgb, var(--k) 55%, #1a140c), var(--k));
  border: 1.5px solid rgba(255,250,235,.7);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 8px 20px -6px rgba(0,0,0,.8),
              0 0 22px -2px color-mix(in srgb, var(--k) 80%, transparent);
  transition: transform var(--dur) var(--spring), box-shadow var(--dur) var(--ease);
}
.qf-gemic { transform: rotate(-45deg); display: grid; place-items: center; }
.qf-gemic .ic { width: 19px; height: 19px; color: #1c1406; }
.qf-qpts {
  margin-top: 9px; padding: 2px 8px; border-radius: 99px; white-space: nowrap;
  font-size: 12px; font-weight: 760; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  color: var(--k); background: rgba(20,17,12,.92);
  border: 1px solid color-mix(in srgb, var(--k) 50%, transparent);
  display: inline-flex; align-items: center; gap: 6px;
}
.qf-qpts i { font-style: normal; font-weight: 560; color: var(--dim); font-size: 11px; }
.qf-qshadow { width: 30px; height: 9px; margin-top: 7px; border-radius: 50%;
              background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent);
              animation: qf-shade 3.6s ease-in-out .6s infinite; }
.qf-q.near .qf-gem { transform: rotate(45deg) scale(1.16); }
.qf-q.here .qf-gem { transform: rotate(45deg) scale(1.22); animation: qf-gemglow 1.8s var(--ease) infinite; }
@keyframes qf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes qf-shade { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.8); opacity: .7; } }
@keyframes qf-gemglow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 8px 20px -6px rgba(0,0,0,.8), 0 0 22px -2px var(--k); }
  50% { box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 8px 20px -6px rgba(0,0,0,.8), 0 0 40px 6px var(--k); }
}

/* ─── you ─────────────────────────────────────────────────────── */

.maplibregl-marker.qf-me-root { z-index: 6; pointer-events: none; }
.qf-me { display: block; position: relative; width: 60px; height: 58px; }
/* The ground under your feet: a flattened disc with the heading arrow on
   its rim, so it foreshortens like something lying on the ground. */
.qf-me-ground { position: absolute; left: 50%; bottom: -24px; width: 48px; height: 48px; margin-left: -24px;
                transform: scaleY(.46); }
.qf-me-ground::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
                        border: 2.5px solid var(--tc, var(--water));
                        background: radial-gradient(closest-side, color-mix(in srgb, var(--tc, var(--water)) 30%, transparent), transparent);
                        box-shadow: 0 0 16px color-mix(in srgb, var(--tc, var(--water)) 70%, transparent); }
.qf-me-arrow { position: absolute; inset: 0; transform: rotate(var(--rel, 0deg)); opacity: 0;
               transition: opacity var(--dur) var(--ease); }
.qf-me-root.headed .qf-me-arrow { opacity: 1; }
.qf-me-arrow::before { content: ""; position: absolute; left: 50%; top: -13px; margin-left: -8px;
                       border-style: solid; border-width: 0 8px 13px 8px;
                       border-color: transparent transparent var(--tc, var(--water)) transparent;
                       filter: drop-shadow(0 0 4px rgba(191,234,255,.8)); }
.qf-me-shadow { position: absolute; left: 50%; bottom: -5px; width: 34px; height: 11px; margin-left: -17px;
                border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
.qf-me-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; }
.qf-me-bob { display: block; transform-origin: 50% 100%; }
.qf-me-flip { display: block; transform: scaleX(var(--face, 1)); transition: transform var(--dur) var(--spring); }
.qf-me-flip svg { width: 52px; height: 52px; display: block;
                  filter: drop-shadow(0 3px 3px rgba(0,0,0,.55)) drop-shadow(0 0 1.5px rgba(255,248,230,.9)); }
.qf-me-dot { display: block; width: 20px; height: 20px; border-radius: 50%; margin-bottom: 4px;
             background: var(--water); border: 3px solid #fff; box-shadow: 0 0 12px var(--water); }
.qf-me-root.walking .qf-me-bob { animation: qf-step .42s ease-in-out infinite alternate; }
@keyframes qf-step { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-4px) rotate(3deg); } }

/* ─── the others ──────────────────────────────────────────────── */

.qf-wname { position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%);
            white-space: nowrap; font-size: 11px; font-weight: 650; letter-spacing: .02em;
            padding: 2px 7px; border-radius: 99px; color: var(--ink);
            background: rgba(20,17,12,.86); border: 1px solid var(--line-2); }
.qf-team .qf-face { border-color: var(--tc); box-shadow: 0 4px 12px rgba(0,0,0,.6), 0 0 12px -2px var(--tc); }
.qf-team::after { background: var(--tc); }

/* ─── the HUD card ────────────────────────────────────────────── */

.qf-hud {
  --k: var(--water);
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 6;
  padding: 12px 14px; border-radius: 22px; color: var(--ink);
  background: linear-gradient(180deg, rgba(34,29,22,.94), rgba(22,19,14,.95));
  border: 1px solid color-mix(in srgb, var(--k) 38%, var(--line-2));
  box-shadow: 0 -1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -12px rgba(0,0,0,.85),
              0 0 32px -14px var(--k);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: rise var(--dur) var(--ease) both;
}
.qf-hud[hidden] { display: none; }
.qf-hudrow { display: flex; align-items: center; gap: 12px; width: 100%; }
button.qf-hudrow { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.qf-hudtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qf-hudtext b { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 22px; line-height: 1.05;
                overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-hudtext small { font-size: 12.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-hud-nogeo .qf-hudtext small, .qf-hud-empty .qf-hudtext small { white-space: normal; }
.qf-hudtext [data-qfdist] { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.qf-compass { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
              background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--k) 25%, #231d15), #16120d);
              border: 1.5px solid color-mix(in srgb, var(--k) 70%, transparent);
              box-shadow: 0 0 16px -4px var(--k); }
.qf-compass svg { width: 24px; height: 24px; fill: var(--k); stroke: #fff8e8; stroke-width: 1;
                  stroke-linejoin: round; filter: drop-shadow(0 0 5px var(--k)); }
.qf-hudpts { flex: none; font-size: 17px; font-weight: 780; color: #1c1406; padding: 7px 11px; border-radius: 12px;
             background: var(--k); box-shadow: 0 0 18px -4px var(--k); font-variant-numeric: tabular-nums; }
.qf-hudact { display: flex; gap: 8px; margin-top: 10px; }
.qf-hudact .btn.go { flex: 1; }
.qf-herehead small { color: var(--k); font-weight: 650; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.qf-herehead b { font-size: 26px; }
.qf-startrow { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px;
               border-top: 1px solid var(--line); }
.qf-startrow .qf-hudtext b { font-family: inherit; font-size: 15px; font-weight: 600; white-space: normal; }
.qf-start { flex: none; min-height: 46px; padding: 0 18px; font-size: 15px; font-weight: 700;
            color: #1c1406 !important; background: var(--k) !important; border-color: transparent !important;
            box-shadow: 0 0 22px -4px var(--k); }
.qf-startpts { opacity: .75; font-weight: 700; margin-left: 2px; }
.qf-live { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--life);
           box-shadow: 0 0 0 0 rgba(134,185,111,.7); animation: qf-livering 1.8s var(--ease) infinite; }
@keyframes qf-livering { to { box-shadow: 0 0 0 10px transparent; } }
.qf-timer { flex: none; font-size: 30px; font-weight: 300; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.qf-huderr { margin: 8px 0 0; font-size: 12.5px; color: var(--now); }
.qf-demobar { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px;
              border-top: 1px dashed var(--line-2); font-size: 11.5px; color: var(--faint); }
.qf-demobar span { flex: 1; }
.qf-mini { font: inherit; font-size: 11.5px; font-weight: 600; color: var(--dim); padding: 4px 10px; border-radius: 99px;
           background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.qf-hud .spin { flex: none; }

/* ─── Follow me, and the location card ────────────────────────── */

.qf-follow {
  position: absolute; right: 12px; bottom: calc(var(--hud-h, 0px) + 12px); z-index: 6;
  font: inherit; font-size: 13px; font-weight: 620; color: #10202a;
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 15px 0 12px;
  border-radius: 99px; border: 0; background: var(--water);
  box-shadow: 0 8px 22px -8px rgba(0,0,0,.8), 0 0 18px -6px var(--water);
  animation: rise var(--dur) var(--ease) both;
}
.qf-follow[hidden] { display: none; }
.qf-follow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.qf-ask {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 7;
  padding: 18px 18px 16px; border-radius: 24px; color: var(--dim); font-size: 14px; line-height: 1.45;
  background: linear-gradient(180deg, rgba(36,30,22,.96), rgba(22,19,14,.97));
  border: 1px solid rgba(233,196,106,.4); box-shadow: 0 24px 50px -16px rgba(0,0,0,.9);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: rise var(--dur-slow) var(--ease) both;
}
.qf-ask[hidden] { display: none; }
.qf-ask h3 { margin: 4px 0 6px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 26px; color: var(--ink); }
.qf-ask p { margin: 0 0 8px; }
.qf-asksmall { font-size: 12.5px; color: var(--faint); }
.qf-askart { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
             background: rgba(233,196,106,.14); box-shadow: inset 0 0 0 1.5px var(--gold); }
.qf-askart .ic { width: 20px; height: 20px; color: var(--gold); }
.qf-askrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.qf-askrow .btn.go { flex: 1 1 100%; }

/* A card in Today that the map just sent somebody to. */
.card.qf-flash { box-shadow: 0 0 0 2px var(--gold), 0 0 28px -6px var(--gold); transition: box-shadow .6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .qf-qf, .qf-qshadow, .qf-q.here .qf-gem, .qf-live, .qf-me-root.walking .qf-me-bob { animation: none !important; }
  .qf-qlabel, .qf-me-flip, .qf-gem { transition: none; }
}
