/* NL.Wayfind: home + car markers, map pins, coach tip, sheets */
.wf-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
#hud > .wf-layer, #hud > .wf-layer * { pointer-events: none; } /* #hud > * sets pointer-events:auto; this full-screen layer must never swallow taps */
#hud > .wf-layer button *, #hud > .wf-layer button, #hud > .wf-layer [data-wf], #hud > .wf-layer [data-wfx], #hud > .wf-layer [data-wfu], #hud > .wf-layer [data-wfr] { pointer-events: auto; }
.wf-layer[hidden] { display: none; }
.wf-m, .wf-mp { position: absolute; left: 0; top: 0; pointer-events: auto; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; will-change: transform; -webkit-tap-highlight-color: transparent; }
.wf-m[hidden] { display: none; }
/* street-view marker system: frosted-glass badge + tick, label pill, edge chevrons. One look for Home / Car / Destination. */
.wf-m { --c: #FF5A6E; position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 100%; font-family: var(--nl-font-ui, system-ui), system-ui, sans-serif; will-change: transform, opacity; }
.wf-m.k-home { --c: #19C9B3; } .wf-m.k-find { --c: #9A8CFF; } .wf-m.k-car { --c: #4C9BFF; } .wf-m.k-dest { --c: #FF5A6E; }
.wf-badge { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--c);
  background: linear-gradient(180deg, rgba(34, 44, 74, .62), rgba(12, 18, 38, .72)); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1.5px color-mix(in srgb, var(--c) 78%, transparent), 0 6px 18px rgba(4, 10, 28, .38), 0 1px 3px rgba(4, 10, 28, .5); transition: width .25s, height .25s; }
.wf-gl { display: grid; place-items: center; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.wf-gl svg { width: 22px; height: 22px; }
.wf-chev { display: none; }
.wf-tick { width: 0; height: 0; margin-top: -1px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid color-mix(in srgb, var(--c) 85%, #0c1226); filter: drop-shadow(0 2px 2px rgba(4, 10, 28, .4)); }
.wf-lab { position: absolute; left: calc(100% + 8px); top: 7px; display: flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; color: #fff; font-size: 12.5px; line-height: 1.1;
  background: linear-gradient(180deg, rgba(34, 44, 74, .62), rgba(12, 18, 38, .72)); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 12px rgba(4, 10, 28, .32); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.wf-lab b { font-weight: 800; letter-spacing: .01em; }
.wf-lab i { font-style: normal; font-weight: 600; opacity: .82; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.wf-dist { display: none; }
.wf-m.m-far .wf-badge { width: 30px; height: 30px; } .wf-m.m-far .wf-gl svg { width: 16px; height: 16px; } .wf-m.m-far .wf-lab { display: none; } .wf-m.m-far .wf-tick { border-left-width: 4px; border-right-width: 4px; border-top-width: 6px; }
.wf-m.m-near .wf-lab { display: none; }
/* off screen: directional chevron hugging the edge, distance below */
.wf-m.m-off .wf-badge { width: 40px; height: 40px; }
.wf-m.m-off .wf-gl, .wf-m.m-off .wf-tick, .wf-m.m-off .wf-lab { display: none; }
.wf-m.m-off .wf-chev { display: grid; place-items: center; transform: rotate(var(--ang, 0rad)); }
.wf-m.m-off .wf-chev svg { width: 22px; height: 22px; }
.wf-m.m-off .wf-dist { display: block; position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; font: 700 11px/1.2 var(--nl-font-ui, system-ui), system-ui, sans-serif; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; background: rgba(12, 18, 38, .72); }
.wf-m.here .wf-badge, .wf-m.urgent .wf-badge { animation: wfPulse 1.6s ease-in-out infinite; }
@keyframes wfPulse { 50% { transform: scale(1.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 2px var(--c), 0 0 18px color-mix(in srgb, var(--c) 70%, transparent), 0 6px 18px rgba(4, 10, 28, .38); } }
.wf-glow { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse, color-mix(in srgb, var(--gc, #19C9B3) 75%, transparent) 0, color-mix(in srgb, var(--gc, #19C9B3) 28%, transparent) 45%, transparent 72%); mix-blend-mode: screen; }
.wf-glow.k-home { --gc: #19C9B3; } .wf-glow.k-find { --gc: #9A8CFF; } .wf-glow.k-car { --gc: #4C9BFF; } .wf-glow.k-dest { --gc: #FF5A6E; }
.wf-glow[hidden] { display: none; }
.wf-route { position: absolute; left: 0; top: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wf-badge { animation: none !important; } }
/* big-map label pills (the pins themselves are 3D meshes in the map scene) */
.wf-mp { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 7px; border-radius: 999px; white-space: nowrap; color: #fff; font-family: var(--nl-font-ui, system-ui), system-ui, sans-serif;
  background: linear-gradient(180deg, rgba(34, 44, 74, .78), rgba(12, 18, 38, .86)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 14px rgba(4, 10, 28, .4); }
.wf-md { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 45%); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); flex: none; }
.wf-mp { --c: #E8344A; } .wf-mp.k-home { --c: #10BFA9; } .wf-mp.k-car { --c: #3B8CFF; }
.wf-mt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.wf-mt b { font-weight: 800; font-size: 13px; } .wf-mt small { font-weight: 600; font-size: 11px; opacity: .82; margin-top: 1px; font-variant-numeric: tabular-nums; }
.wf-mp.off { opacity: .8; }
.wf3d #mapWp.mv-wp { background: none !important; box-shadow: none !important; }
.wf3d #mapWp.mv-wp::before, .wf3d #mapWp.mv-wp::after { display: none; }
/* guide chip, undo toast, pin menu */
.wf-chip { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 999px; background: rgba(11, 20, 48, .9); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); pointer-events: auto; max-width: calc(100% - 140px); z-index: 5; }
.wf-chip[hidden] { display: none; }
.wf-cd { width: 14px; height: 14px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff, #ff8f9c 25%, #E02F44 60%, #8e1424); }
.wf-cn { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.wf-cn b { font: 700 13px/1.1 system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-cn small { font: 500 11px/1.1 system-ui, sans-serif; opacity: .8; margin-top: 1px; }
.wf-x2 { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; flex: none; }
.wf-undo { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 9400; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 999px; background: #0B1430; color: #fff; font: 600 14px system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.wf-undo[hidden] { display: none; }
.wf-undo button { border: 0; border-radius: 999px; padding: 8px 16px; background: #FFC72C; color: #0B1430; font: 800 13px system-ui, sans-serif; cursor: pointer; min-height: 36px; }
.wf-menu { position: fixed; z-index: 9400; width: 160px; padding: 8px; border-radius: 14px; background: #fff; color: #0B1430; box-shadow: 0 8px 26px rgba(0, 0, 0, .4); text-align: center; font-family: system-ui, sans-serif; }
.wf-menu[hidden] { display: none; }
.wf-mn { display: block; font: 700 12px system-ui, sans-serif; margin-bottom: 6px; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-menu button { width: 100%; border: 0; border-radius: 10px; padding: 10px; background: #E02F44; color: #fff; font: 800 14px system-ui, sans-serif; cursor: pointer; min-height: 40px; }
.wf-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; color: #fff; }
.wf-ic svg { width: 18px; height: 18px; }
/* prompt contrast: always dark text on a near-opaque light pill (was unreadable at night / over dark scenes) */
.actbar .prompt { background: rgba(255, 255, 255, .92); color: #0B1430; }
.actbar .prompt .pt { color: #0B1430; text-shadow: none; }
/* coach tip */
.wf-coach { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(11, 20, 48, .92); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); pointer-events: auto; z-index: 7; font: 500 13px/1.3 var(--nl-font-ui, system-ui), system-ui, sans-serif; }
.wf-coach[hidden] { display: none; }
.wf-coach .wf-ic { width: 36px; height: 36px; background: #19C9B3; }
.wf-coach .wf-ct { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.wf-coach .wf-ct b { font: 800 14px/1.1 system-ui, sans-serif; }
.wf-coach .wf-x { border: 0; border-radius: 999px; padding: 8px 14px; background: #fff; color: #0B1430; font: 700 13px system-ui, sans-serif; cursor: pointer; min-height: 36px; }
/* sheet */
.wf-sheet { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: flex-end; justify-content: center; }
.wf-sheet[hidden] { display: none; }
.wf-scrim { position: absolute; inset: 0; background: rgba(11, 20, 48, .5); }
.wf-card { position: relative; width: min(460px, 100%); max-height: 88vh; overflow: auto; background: var(--nl-surface, #fff); color: var(--nl-ink, #0B1430); border-radius: 22px 22px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); font-family: var(--nl-font-ui, system-ui), system-ui, sans-serif; }
@media (min-width: 700px) { .wf-sheet { align-items: center; } .wf-card { border-radius: 22px; } }
.wf-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.wf-h h3 { margin: 0 0 2px; font: 800 19px/1.15 var(--nl-font-display, system-ui), system-ui, sans-serif; }
.wf-h p { margin: 0; font-size: 13px; line-height: 1.35; color: var(--nl-ink-2, #3A4566); }
.wf-hi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.wf-hi svg { width: 24px; height: 24px; }
.wf-homec { background: #19B7A3; } .wf-carc { background: #3B8CFF; } .wf-findc { background: #7B6CF0; }
.wf-close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--nl-surface-2, #F7F9FC); color: inherit; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.wf-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 8px; padding: 12px 14px; min-height: 56px; border-radius: 14px; border: 1.5px solid var(--nl-line, rgba(11, 20, 48, .12)); background: var(--nl-surface-2, #F7F9FC); color: inherit; cursor: pointer; font: inherit; }
.wf-btn.wf-pri { background: #0B1430; color: #fff; border-color: #0B1430; }
.wf-btn.dis { opacity: .5; cursor: not-allowed; }
.wf-bi { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(127, 140, 170, .18); flex: none; font-weight: 800; }
.wf-btn.wf-pri .wf-bi { background: rgba(255, 255, 255, .18); }
.wf-bt { display: flex; flex-direction: column; gap: 2px; }
.wf-bt b { font: 700 15px/1.2 system-ui, sans-serif; }
.wf-bt small { font: 500 12px/1.25 system-ui, sans-serif; opacity: .75; }
.wf-b { font-size: 12px; }
@media (max-width: 699px) { .wf-chip { top: 112px; max-width: calc(100% - 96px); } }
/* first-arrival "Your home" card (fades in/out over the ~2.3 s orbit; never takes input) */
.wf-intro { position: absolute; left: 50%; top: 20%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 6; opacity: 0; text-align: center; font-family: var(--nl-font-ui, system-ui), system-ui, sans-serif; width: min(420px, calc(100% - 32px)); }
.wf-intro[hidden] { display: none; }
#hud > .wf-layer .wf-intro, #hud > .wf-layer .wf-intro * { pointer-events: none; }
.wf-intro.on { animation: wfIntro 2.3s ease both; }
.wf-it { display: flex; align-items: center; gap: 10px; padding: 10px 20px 10px 12px; border-radius: 999px; color: #fff; background: linear-gradient(180deg, #1FD1BB, #0E9D8C); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 30px rgba(0, 70, 64, .45); flex-wrap: wrap; justify-content: center; }
.wf-ii { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2); } .wf-ii svg { width: 20px; height: 20px; }
.wf-it b { font-weight: 800; font-size: 20px; line-height: 1.1; letter-spacing: .01em; } .wf-it i { font-weight: 600; font-size: 13px; line-height: 1.1; font-style: normal; opacity: .92; flex-basis: 100%; margin: -2px 0 0 46px; text-align: left; }
.wf-intro small { font-weight: 600; font-size: 11px; line-height: 1; color: #fff; opacity: .85; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
@keyframes wfIntro { 0% { opacity: 0; transform: translate(-50%, 8px); } 15% { opacity: 1; transform: translate(-50%, 0); } 78% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 520px) { .wf-intro { top: 17%; } .wf-it b { font-size: 18px; } }
/* Home map pill = the same brand-teal as the in-world "Home" label */
.wf-mp.k-home { background: linear-gradient(180deg, #1FD1BB, #0E9D8C); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 1.5px rgba(255, 255, 255, .85), 0 4px 14px rgba(0, 70, 64, .45); }
.wf-mp.k-home .wf-md { background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
