:root {
  --lost-layout: 1;
  --lost-cols: 10;
  --lost-bar-h: 44px;
  --lost-bar-pad: 6px;
  --lost-row-h: 56px;
  --lost-btn: 44;
  --lost-btn-lc: 48;
  --lost-btn-now: calc(var(--lost-btn) * 1px);
  --lost-slop: 24;
  --lost-slop-lc: 32;
  --lost-dead: 1.5;
  --lost-slide: 0.36;
  --lost-fade: 0.3;
  --lost-walk-accel: 40;
  --lost-walk-catch: 9;
  --lost-turn: 0.14;
  --lost-settle: 0.22;
  --lost-critter-spring: 13;
  --lost-critter-fps: 20;
  --lost-glowmark-r: 0.8;
  --lost-glowmark-alpha: 0.6;
  --lost-glowmark-beat: 2.2;
  --lost-ride-back: 0.34;
  --lost-ride-up: 0.08;
  --lost-ride-side: 1.25;
  --lost-say-word: 0.022;
  --lost-say-fade: 0.2;
  --lost-say-in: 0.32s;
  --lost-say-out: 0.18;
  --lost-say-rise: 14px;
  --lost-say-from: 0.9;
  --lost-toast-in: 0.34s;
  --lost-toast-out: 0.26;
  --lost-toast-rise: -14px;
  --lost-count: 0.7;
  --lost-pop-s: 1.08;
  --lost-pop-in: 0.5s;
  --lost-pin-in: 0.42s;
  --lost-pin-delay: 0.12s;
  --lost-tool-in: 0.6s;
  --lost-tool-tilt: -10deg;
  --lost-tool-from: 0.5;
  --lost-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --lost-ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
  --lost-title: 2s;
  --lost-step: 2;
  --lost-bubble-lines: 2;
  --lost-bubble-w: min(100vw - 24px, 420px);
  --lost-trail-dot: 3.2;
  --lost-trail-gap: 1;
  --lost-outline: 2;
  --lost-outline-ink: #2a2521;
  --lost-trail: #fff3b8;
  --lost-route: rgba(255, 255, 255, 0.7);
  --lost-mark: #ffffff;
  --lost-ring: #ffd257;
  --lost-print: #3a2c20;
  --lost-peek: rgba(24, 30, 24, 0.34);
  --lost-void: #46703c;
  --lost-void-in: #17141c;
  --lost-fin-len: 6.8;
  --lost-fin-still: 2.4;
  --lost-fin-zoom: 1.32;
  --lost-fin-title: 56px;
  --lost-room-mx: -0.4;
  --lost-room-my: 0.5;
  --lost-room-max: 1.7;
  --lost-vignette: rgba(12, 9, 16, 0.94);
  --lost-vignette-mid: rgba(12, 9, 16, 0.42);
  --lost-vignette-clear: rgba(12, 9, 16, 0);
  --lost-vignette-in: 0.62;
  --lost-cant: #c8372b;
  --lost-spark: #ffe27a;
  --lost-drop: #7fd0f5;
  --lost-dust: #c9a57a;
  --lost-heart: #ff7fa3;
  --lost-bubble: #fffaf2;
  --lost-bubble-ink: #2a2521;
  --lost-bubble-rim: #2a2521;
  --lost-bubble-rim-w: 2;
  --lost-bubble-icon: 26;
  --lost-bubble-pad: 6;
  --lost-badge: 20;
  --lost-badge-offer: #ffd257;
  --lost-badge-open: #fffaf2;
  --lost-badge-ready: #8fdc7a;
  --lost-badge-ink: #2a2521;
  --lost-dark-tint: #0d0b14;
  --lost-dark-alpha: 0.82;
  --lost-storm-alpha: 0.12;
  --lost-rain: #dff3ff;
  --lost-rain-alpha: 0.5;
  --lost-rain-speed: 520;
  --lost-rain-veil: 0.05;
  --lost-fog: #f2f6f8;
  --lost-fog-alpha: 0.6;
  --lost-fog-haze: 0.09;
  --lost-fog-speed: 7;
  --lost-fog-path: 0.45;
  --lost-fog-clear: 2.2;
  --lost-fog-wisps: 8;
  --lost-frost: #dff1ff;
  --lost-frost-alpha: 0.32;
  --lost-snow: #ffffff;
  --lost-snow-alpha: 0.85;
  --lost-snow-speed: 26;
  --lost-sun: #fff0b0;
  --lost-sun-alpha: 0.12;
  --lost-wind-line: #ffffff;
  --lost-wind-alpha: 0.45;
  --lost-wind-speed: 90;
  --lost-light-r: 2.4;
  --lost-light-jar-r: 4;
  --lost-hud-gap: var(--sp-2);
  --lost-hud-z: 14;
  --lost-say-z: 16;
  --lost-say-min: 76px;
  --lost-say-pad: 12px 44px 14px 12px;
  --lost-say-face: 56px;
  --lost-say-next: 28px;
  --lost-say-rim: var(--surface-3);
  --lost-say-face-bg: var(--surface-2);
  --lost-say-name: #ffd257;
  --lost-toast-top: calc(var(--safe-top) + var(--lost-bar-h) + var(--lost-bar-pad) * 2 + var(--sp-2));
  --lost-chip-max: 62vw;
  --lost-letter: 40px;
  --lost-map-cell: 62px;
  --lost-tab-h: 52px;
  --lost-tab-gap: 2px;
  --lost-tool-w: 92px;
  --lost-app-toast: 140px;
  --lost-sign-k: 0.78;
  --lost-sign-hit: 56;
  --lost-sign-x: 0.55;
  --lost-sign-leaf: #6cc04f;
  --lost-sign-path: #d8bd8a;
  --lost-sign-glow: #fff1a8;
  --lost-map-fog: repeating-linear-gradient(135deg, rgba(120, 120, 120, 0.18) 0 6px, rgba(120, 120, 120, 0.08) 6px 12px);
  --lost-map-seen: #cdeab5;
  --lost-map-here: #ffd257;
  --lost-card-bg: linear-gradient(135deg, #e3f5d2, #fff6d8);
  --lost-card-art: transparent;
  --lost-hero-h: 116px;
  --lost-card-ink: #2a2521;
  --lost-ph-grass-a: #9bd873;
  --lost-ph-grass-b: #7fc75f;
  --lost-ph-path-a: #ecd7a0;
  --lost-ph-path-b: #f7e9c0;
  --lost-ph-tall: #3f9a45;
  --lost-ph-wall-a: #3f7d3a;
  --lost-ph-wall-b: #5aa651;
  --lost-ph-rock: #b9b6aa;
  --lost-ph-bush: #4c9e48;
  --lost-ph-water-a: #8dd6f2;
  --lost-ph-water-b: #45a3d6;
  --lost-ph-ice: #e6f8ff;
  --lost-ph-bed: #e3d2a0;
  --lost-ph-dock: #b98756;
  --lost-ph-cliff: #a58f74;
  --lost-ph-gap: #5d4a3c;
  --lost-ph-wind: #c9efd9;
  --lost-ph-dark: #2c2638;
  --lost-ph-mud: #9a7650;
  --lost-ph-snow: #f4fbff;
  --lost-ph-soil: #b98a5c;
  --lost-ph-plank: #caa06a;
  --lost-ph-glow: #ffe27a;
  --lost-ph-ink: #2a2521;
  --lost-ph-thing: #f2c06b;
  --lost-ph-thing-b: #f7e3b0;
  --lost-ph-npc-1: #ff9f80;
  --lost-ph-npc-2: #ffd257;
  --lost-ph-npc-3: #9fd8ff;
  --lost-ph-npc-4: #d5a6ff;
  --lost-ph-npc-5: #ffb3d1;
  --lost-ph-npc-6: #b7e08a;
  --lost-ph-seed: #ffd257;
  --lost-ph-stamp: #ff8fa8;
  --lost-ph-door: #8a5a3c;
  --lost-ph-gate: #c5b8e8;
  --lost-ph-way: #58c060;
  --lost-ph-way-off: #9aa593;
  --lost-ph-hero: #f7efcf;
  --lost-ph-hero-leaf: #7fbf55;
  --lost-ph-eye: #2a2521;
  --lost-ph-paper: #fffaf2;
  --lost-ph-floor: #d9c3a0;
  --lost-ph-earth: #6b4f3a;
  --lost-ph-shade: rgba(0, 0, 0, 0.18);
}

:root.lc {
  --lost-btn-now: calc(var(--lost-btn-lc) * 1px);
  --lost-bar-h: 48px;
}

.lost-leave {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: lost-fade-out calc(var(--lost-fade) * 1s) var(--lost-ease-out) forwards;
}

@keyframes lost-fade-out {
  to {
    opacity: 0;
  }
}

#lost-hud {
  position: fixed;
  inset: 0;
  z-index: var(--lost-hud-z);
  animation: lost-word var(--t-med) var(--lost-ease-out) backwards;
  pointer-events: none;
  color: var(--hud-glass-ink);
}

.lost-on .pm-bar,
.lost-on #bubble {
  display: none;
}

.lost-on #toast:not(.low) {
  top: calc(var(--lost-toast-top) + var(--lost-app-toast));
}

#lost-hud > * {
  pointer-events: none;
}

#lost-hud button,
#lost-hud .lost-say {
  pointer-events: auto;
}

.lost-top {
  position: absolute;
  top: calc(var(--safe-top) + var(--lost-bar-pad));
  left: calc(var(--safe-left) + var(--sp-2));
  right: calc(var(--safe-right) + var(--sp-2));
  height: var(--lost-btn-now);
  display: flex;
  align-items: center;
  gap: var(--lost-hud-gap);
}

.lost-btn {
  flex: none;
  width: var(--lost-btn-now);
  height: var(--lost-btn-now);
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  position: relative;
  transition: transform var(--t-fast) var(--ease-spring);
}

.lost-btn:active,
.lost-chip:active {
  transform: scale(var(--press-s));
  transition-duration: 0s;
}

.lost-region {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  min-height: calc(var(--lost-btn-now) - var(--sp-2));
  border-radius: var(--r-pill);
  margin-right: auto;
}

.lost-region b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-s);
  font-weight: var(--fw-x);
}

.lost-sky {
  display: inline-flex;
  color: var(--ink-soft);
}

.lost-seeds {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-2);
  min-height: calc(var(--lost-btn-now) - var(--sp-2));
  border-radius: var(--r-pill);
  font-size: var(--fs-s);
  font-weight: var(--fw-x);
  transition: transform var(--t-fast) var(--ease-spring);
}

.lost-seeds.bump {
  transform: scale(1.14);
}

.lost-row {
  position: absolute;
  left: calc(var(--safe-left) + var(--sp-2));
  right: calc(var(--safe-right) + var(--sp-2));
  bottom: var(--safe-bottom);
  height: var(--lost-row-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lost-hud-gap);
}

.lost-chip {
  position: relative;
  min-width: 0;
  max-width: var(--lost-chip-max);
  min-height: var(--lost-btn-now);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-2);
  border-radius: var(--r-pill);
  text-align: left;
  transition: transform var(--t-fast) var(--ease-spring);
}

.lost-chip-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: var(--lh-tight);
}

.lost-chip-text small {
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lost-chip-text b {
  font-size: var(--fs-s);
  font-weight: var(--fw-x);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lost-chip-need {
  flex: none;
  display: grid;
  place-items: center;
  padding: var(--sp-1);
  border-radius: var(--r-pill);
  background: var(--surface-2);
}

.lost-chip-hint {
  position: absolute;
  left: var(--sp-2);
  bottom: calc(100% + var(--sp-1));
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--lost-card-ink);
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
  white-space: nowrap;
}

.lost-dot {
  position: absolute;
  top: var(--sp-1);
  right: var(--sp-1);
  width: var(--sp-3);
  height: var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--pop);
  box-shadow: 0 0 0 2px var(--hud-glass);
}

#lost-hud.cue-book .lost-book {
  animation: lost-pulse 0.9s var(--ease-spring) 3;
}

#lost-hud.cue-book .lost-book::after {
  content: attr(data-cue);
  pointer-events: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + var(--sp-2));
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--lost-card-ink);
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
  white-space: nowrap;
}

@keyframes lost-pulse {
  50% {
    transform: scale(1.16);
  }
}

.lost-cue-walk {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
  white-space: nowrap;
  display: none;
}

#lost-hud.cue-walk .lost-cue-walk {
  display: block;
}

.lost-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 24%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  text-align: center;
  color: var(--lost-mark);
  text-shadow: 0 2px 0 var(--lost-outline-ink), 0 0 12px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity var(--t-med) ease;
}

.lost-title.on {
  opacity: 1;
}

.lost-title b {
  font-size: 1.7rem;
  font-weight: var(--fw-x);
  letter-spacing: 0.01em;
}

.lost-toasts {
  position: absolute;
  top: var(--lost-toast-top);
  left: var(--sp-3);
  right: var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
}

.lost-toast {
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), var(--elev-2);
  animation: lost-drop var(--lost-toast-in) var(--ease-spring) backwards;
}

.lost-toast.out {
  animation: lost-lift calc(var(--lost-toast-out) * 1s) var(--lost-ease-in) forwards;
}

.lost-toast.pop {
  animation: lost-drop var(--lost-toast-in) var(--ease-spring) backwards, lost-pop var(--lost-pop-in) var(--ease-spring) var(--lost-toast-in);
}

.lost-toast.pop.out {
  animation: lost-lift calc(var(--lost-toast-out) * 1s) var(--lost-ease-in) forwards;
}

.lost-toast.pop .lost-ic {
  animation: lost-pop var(--lost-pop-in) var(--ease-bounce) var(--lost-toast-in) backwards;
}

@keyframes lost-drop {
  from {
    opacity: 0;
    transform: translateY(var(--lost-toast-rise)) scale(0.9);
  }
}

@keyframes lost-lift {
  to {
    opacity: 0;
    transform: translateY(var(--lost-toast-rise)) scale(0.96);
  }
}

@keyframes lost-pop {
  40% {
    transform: scale(var(--lost-pop-s));
  }
}

.lost-toast-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: var(--lh-tight);
}

.lost-toast-text small {
  color: var(--ink-soft);
  font-size: var(--fs-xs);
}

.lost-toast-text b {
  font-size: var(--fs-s);
  font-weight: var(--fw-x);
}

.lost-pay {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-s);
  font-weight: var(--fw-x);
}

.lost-pay > span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.lost-say {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + var(--sp-2));
  width: var(--lost-bubble-w);
  min-height: var(--lost-say-min);
  transform: translateX(-50%);
  z-index: var(--lost-say-z);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--lost-say-pad);
  border-radius: var(--r-l);
  box-shadow: inset 0 0 0 2px var(--lost-say-rim), var(--elev-3);
  background: var(--surface);
  color: var(--ink);
  transform-origin: 50% 100%;
  animation: lost-rise var(--lost-say-in) var(--ease-spring) backwards;
}

.lost-say[hidden] {
  display: none;
}

.lost-say.next {
  animation: lost-swap var(--t-fast) var(--lost-ease-out) backwards;
}

.lost-say.out,
#lost-hud .lost-say.out,
#lost-hud .lost-say.out * {
  pointer-events: none;
}

.lost-say.out {
  animation: lost-sink calc(var(--lost-say-out) * 1s) var(--lost-ease-in) forwards;
}

.lost-w {
  display: inline-block;
  animation: lost-word calc(var(--lost-say-fade) * 1s) var(--lost-ease-out) backwards;
  animation-delay: calc(var(--i) * var(--lost-say-word) * 1s);
}

.lost-say.all .lost-w,
.lost-say.out .lost-w {
  animation: none;
}

@keyframes lost-rise {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(var(--lost-say-rise)) scale(var(--lost-say-from));
  }
}

@keyframes lost-swap {
  from {
    transform: translateX(-50%) scale(0.98);
  }
}

@keyframes lost-sink {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(var(--lost-say-rise)) scale(var(--lost-say-from));
  }
}

@keyframes lost-word {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
}

.lost-say-face {
  flex: none;
  align-self: flex-start;
  width: var(--lost-say-face);
  height: var(--lost-say-face);
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--lost-say-face-bg);
  box-shadow: inset 0 0 0 2px var(--lost-say-rim);
}

.lost-say-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.lost-say-who {
  align-self: flex-start;
  padding: 0 var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--lost-say-name);
  color: var(--lost-card-ink);
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
  line-height: 1.6;
}

.lost-say p {
  margin: 0;
  font-size: var(--fs-m);
  font-weight: var(--fw-b);
  line-height: 1.3;
}

.lost-say.caption {
  justify-content: center;
}

.lost-say.caption p {
  font-style: italic;
  text-align: center;
}

.lost-say-next {
  position: absolute;
  right: var(--sp-2);
  bottom: var(--sp-2);
  width: var(--lost-say-next);
  height: var(--lost-say-next);
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  animation: lost-bob 1s ease-in-out infinite;
}

@keyframes lost-bob {
  50% {
    transform: translateY(3px);
  }
}

#lost-hud.lost-saying .lost-row,
#lost-hud.lost-saying .lost-pad {
  visibility: hidden;
}

#lost-hud.lost-busy .lost-row {
  opacity: 0.4;
}

#lost-hud::before,
#lost-hud::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  background: var(--lost-void-in);
  transition: height var(--t-med) ease;
}

#lost-hud::before {
  top: 0;
}

#lost-hud::after {
  bottom: 0;
}

#lost-hud.lost-scene::before,
#lost-hud.lost-scene::after {
  height: var(--lost-letter);
}

#lost-hud.lost-scene .lost-title {
  top: auto;
  bottom: calc(var(--safe-bottom) + var(--lost-letter) + var(--lost-fin-title));
}

#lost-hud.lost-scene .lost-top,
#lost-hud.lost-scene .lost-toasts,
#lost-hud.lost-scene .lost-row {
  opacity: 0;
}

.lost-pad {
  position: absolute;
  left: calc(var(--safe-left) + var(--sp-2));
  right: calc(var(--safe-right) + var(--sp-2));
  bottom: calc(var(--safe-bottom) + var(--lost-row-h) + var(--sp-2));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.lost-pad[hidden] {
  display: none;
}

.lost-dpad {
  display: grid;
  grid-template-columns: repeat(3, var(--lost-btn-now));
  grid-template-rows: repeat(3, var(--lost-btn-now));
}

.lost-d-n {
  grid-area: 1 / 2;
}

.lost-d-w {
  grid-area: 2 / 1;
}

.lost-d-e {
  grid-area: 2 / 3;
}

.lost-d-s {
  grid-area: 3 / 2;
}

.lost-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 60px;
  margin-bottom: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-l);
  background: var(--lost-card-bg);
  box-shadow: inset 0 0 0 1px var(--line), var(--elev-1);
  color: var(--lost-card-ink);
  text-align: left;
  transition: transform var(--t-fast) var(--ease-spring);
}

.lost-card:active {
  transform: scale(var(--press-s));
  transition-duration: 0s;
}

.lost-card .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.lost-card b {
  font-size: var(--fs-m);
  font-weight: var(--fw-x);
  line-height: var(--lh-tight);
}

.lost-card small {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-2);
  font-size: var(--fs-xs);
  opacity: 0.8;
}

.lost-card-art {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-m);
  background: var(--lost-card-art);
  color: var(--lost-mark);
}

.lost-card.lost-hero {
  position: relative;
  display: block;
  height: var(--lost-hero-h);
  padding: 0;
  overflow: hidden;
}

.lost-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lost-hero-txt {
  position: absolute;
  left: var(--sp-2);
  top: var(--sp-2);
  max-width: calc(100% - 2 * var(--sp-2));
  display: flex;
  flex-direction: column;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-m);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--elev-1);
  color: var(--ink);
}

.lost-hero-txt small {
  color: var(--ink-soft);
  opacity: 1;
}

.lost-hero-go {
  position: absolute;
  right: var(--sp-2);
  bottom: var(--sp-2);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: var(--fw-x);
  box-shadow: var(--elev-2);
}

.lost-card.locked .lost-card-art {
  filter: grayscale(0.7);
}

.lost-card-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--lost-mark);
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
}

.lost-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  text-align: center;
}

.lost-locked-art {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: var(--r-l);
  background: var(--lost-card-bg);
  color: var(--accent);
}

.lost-locked-at {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-weight: var(--fw-x);
}

.lost-pause-card .set-row {
  width: 100%;
}

.lost-pause-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}

.lost-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-1);
  padding: 0 var(--sp-3) var(--sp-2);
}

.lost-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--lost-tab-gap);
  min-width: 0;
  min-height: var(--lost-tab-h);
  padding: var(--sp-1) 0;
  border-radius: var(--r-m);
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  font-weight: var(--fw-b);
}

.lost-tab span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lost-tab.on {
  background: var(--accent);
  color: var(--on-accent);
}

.lost-book {
  padding: var(--sp-2) var(--sp-3) calc(var(--safe-bottom) + var(--sp-3));
}

.lost-h {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin: var(--sp-3) 0 var(--sp-2);
  font-size: var(--fs-s);
  font-weight: var(--fw-x);
}

.lost-h .num {
  margin-left: auto;
  color: var(--ink-soft);
}

.lost-now {
  display: flow-root;
  padding: 0 var(--sp-3) var(--sp-2);
  border-radius: var(--r-l);
  background: var(--surface-2);
}

.lost-now-row,
.lost-q {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-m);
  text-align: left;
}

.lost-q {
  margin-bottom: var(--sp-1);
  background: var(--surface-2);
}

.lost-q.on {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.lost-q.done {
  opacity: 0.6;
}

.lost-now-row .grow,
.lost-q .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: var(--lh-tight);
}

.lost-now-row b,
.lost-q b {
  font-size: var(--fs-s);
  font-weight: var(--fw-b);
}

.lost-now-row small,
.lost-q small {
  color: var(--ink-soft);
  font-size: var(--fs-xs);
}

.lost-q-tag {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  padding: 2px var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
}

.lost-q-tag.new {
  background: var(--gold);
  color: var(--lost-card-ink);
}

.lost-q-tag.done {
  color: var(--good);
}

.lost-empty {
  margin: 0;
  padding: var(--sp-2) 0;
  color: var(--ink-soft);
  font-size: var(--fs-s);
}

.lost-regions,
.lost-rooms,
.lost-vane-opts,
.lost-vane-live {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.lost-map {
  display: grid;
  grid-template-columns: repeat(var(--lost-map-cols), minmax(0, var(--lost-map-cell)));
  justify-content: center;
  gap: 3px;
  padding: var(--sp-2);
  border-radius: var(--r-l);
  background: var(--surface-2);
}

.lost-map-cell {
  position: relative;
  aspect-ratio: 10 / 11;
  display: grid;
  place-items: center;
  border-radius: var(--r-m);
  background: var(--lost-map-fog);
}

.lost-map-cell.none {
  background: none;
}

.lost-map-cell .lost-m,
.lost-map-cell .lost-ic {
  animation: lost-pin var(--lost-pin-in) var(--ease-spring) var(--lost-pin-delay) backwards;
}

@keyframes lost-pin {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.5);
  }
}

.lost-map-cell.seen {
  background: var(--lost-map-seen);
}

.lost-map-cell.here {
  box-shadow: inset 0 0 0 3px var(--lost-map-here);
}

.lost-map-cell.on {
  box-shadow: inset 0 0 0 3px var(--accent);
}

.lost-m {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: var(--fw-x);
}

.lost-m.here {
  left: 2px;
  bottom: 2px;
  background: var(--lost-map-here);
  color: var(--lost-card-ink);
}

.lost-m.target {
  right: 2px;
  top: 2px;
  background: var(--pop);
  color: var(--lost-mark);
}

.lost-m.offer {
  left: 2px;
  top: 2px;
  background: var(--gold);
  color: var(--lost-card-ink);
}

.lost-m.vane {
  right: 2px;
  bottom: 2px;
}

.lost-m.pin {
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  background: none;
}

.lost-room {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: var(--fs-xs);
}

.lost-room.here {
  box-shadow: inset 0 0 0 2px var(--lost-map-here);
}

.lost-map-tip {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin: var(--sp-2) 0;
  color: var(--ink-soft);
  font-size: var(--fs-xs);
}

.lost-hearts,
.lost-stamps,
.lost-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.lost-totals > span,
.lost-seed-n {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-weight: var(--fw-x);
}

.lost-seed-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
  margin-bottom: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
}

.lost-seed-row .lost-stamps {
  grid-column: 1 / -1;
}

.lost-friends,
.lost-tools,
.lost-bag {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: var(--sp-2);
}

.lost-friend,
.lost-tool,
.lost-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--sp-2) var(--sp-1);
  border-radius: var(--r-m);
  background: var(--surface-2);
  text-align: center;
}

.lost-friend small,
.lost-tool small,
.lost-item small {
  font-size: var(--fs-2xs);
  line-height: var(--lh-tight);
  color: var(--ink-soft);
}

.lost-tools {
  grid-template-columns: repeat(auto-fill, minmax(var(--lost-tool-w), 1fr));
}

.lost-bag .lost-empty {
  grid-column: 1 / -1;
}

.lost-book .lost-hearts {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  justify-items: center;
  gap: 0;
}

.lost-opts {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.lost-qcard {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: 0 var(--sp-1) var(--sp-2);
}

.lost-q-kind {
  align-self: flex-start;
  padding: 2px var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
}

.lost-q-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.lost-dots {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.lost-dots i {
  flex: 1;
  max-width: 28px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
}

.lost-dots i.done {
  background: var(--good);
}

.lost-dots i.now {
  background: var(--gold);
}

.lost-clue,
.lost-need {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-m);
  background: var(--surface-2);
  font-size: var(--fs-s);
}

.lost-q-pay {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.lost-q-pay small {
  color: var(--ink-soft);
}

.lost-tool-card > .lost-ic,
.lost-finale-card > .lost-ic {
  animation: lost-reveal var(--lost-tool-in) var(--ease-spring) var(--t-fast) backwards;
}

.lost-tool-card > :not(.lost-ic),
.lost-finale-card > :not(.lost-ic) {
  animation: lost-word var(--t-med) var(--lost-ease-out) var(--t-med) backwards;
}

@keyframes lost-reveal {
  from {
    opacity: 0;
    transform: scale(var(--lost-tool-from)) rotate(var(--lost-tool-tilt));
  }
}

.lost-tool-card small,
.lost-finale-card small {
  color: var(--ink-soft);
  font-weight: var(--fw-x);
}

.lost-vane {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-bottom: var(--sp-2);
}

.reduce-motion .lost-toast,
.reduce-motion .lost-say,
.reduce-motion .lost-say-next,
.reduce-motion #lost-hud.cue-book .lost-book {
  animation: none;
}

:root {
  --lost-art-line: 1;
  --lost-art-shade: 0.2;
  --lost-art-lift: 0.2;
  --lost-art-rim: 0.1;
  --lost-art-flow: 0.6;
  --lost-art-gust: 0.8;
  --lost-art-blotch: 0.42;
  --lost-art-tuft: 0.62;
  --lost-art-edge: 0.07;
  --lost-art-night-alpha: 0.42;
  --lost-art-night-glow: 0.55;
  --lost-night-tint: #1d2a5c;
  --lost-night-alpha: 0.42;
  --lost-night-glow: #ffe9a0;
  --lost-night-glow-alpha: 0.22;
  --lost-night-top: 0.25;
  --lost-season-spring-tint: #ffd9ec;
  --lost-season-spring-alpha: 0.06;
  --lost-season-summer-tint: #fff3b0;
  --lost-season-summer-alpha: 0;
  --lost-season-autumn-tint: #ff9a3c;
  --lost-season-autumn-alpha: 0.1;
  --lost-season-winter-tint: #cfe6ff;
  --lost-season-winter-alpha: 0.14;
  --lost-hero-body: #ffe5ab;
  --lost-hero-belly: #fff3d6;
  --lost-hero-foot: #e48a45;
  --lost-hero-ink: #4a2c1c;
  --lost-hero-stem: #7fbf55;

  --lost-meadow-grass-a: #9bd873;
  --lost-meadow-grass-b: #7fc75f;
  --lost-meadow-path-a: #ecd7a0;
  --lost-meadow-path-b: #f7e9c0;
  --lost-meadow-tall: #5cb851;
  --lost-meadow-wall-a: #5f9a4c;
  --lost-meadow-wall-b: #5aa651;
  --lost-meadow-rock: #b9b6aa;
  --lost-meadow-bush: #55ad4f;
  --lost-meadow-water-a: #76cbee;
  --lost-meadow-water-b: #45a3d6;
  --lost-meadow-ice: #dcf4fb;
  --lost-meadow-bed: #e3d2a0;
  --lost-meadow-dock: #b98756;
  --lost-meadow-cliff: #bb986c;
  --lost-meadow-gap: #5d4737;
  --lost-meadow-wind: #d2f0cc;
  --lost-meadow-dark: #2c2a3a;
  --lost-meadow-mud: #9a7655;
  --lost-meadow-snow: #f3fbff;
  --lost-meadow-soil: #ab7a4d;
  --lost-meadow-plank: #c99a63;
  --lost-meadow-glow: #fff0a6;
  --lost-meadow-ink: #3b2a22;
  --lost-meadow-leaf: #5fb650;
  --lost-meadow-leaf-b: #7cc65a;
  --lost-meadow-trunk: #9a6b45;
  --lost-meadow-bloom: #ff9ec4;
  --lost-meadow-accent: #ffd35a;
  --lost-meadow-tree: round;

  --lost-meadow-room-grass-a: #dcbd8c;
  --lost-meadow-room-grass-b: #cba978;
  --lost-meadow-room-path-a: #e9d3a6;
  --lost-meadow-room-path-b: #f3e3bf;
  --lost-meadow-room-wall-a: #a8794f;
  --lost-meadow-room-wall-b: #6c4932;
  --lost-meadow-room-dark: #2a2230;
  --lost-meadow-room-soil: #9a6a42;

  --lost-meadow-dark-grass-a: #7f8b98;
  --lost-meadow-dark-grass-b: #6f7b89;
  --lost-meadow-dark-path-a: #98a3ad;
  --lost-meadow-dark-path-b: #a9b3bc;
  --lost-meadow-dark-wall-a: #56616f;
  --lost-meadow-dark-wall-b: #2f3642;
  --lost-meadow-dark-dark: #1b1e2a;
  --lost-meadow-dark-soil: #5f5a58;
  --lost-meadow-dark-water-a: #5f9fc4;
  --lost-meadow-dark-water-b: #36709e;

  --lost-wood-grass-a: #7bb98f;
  --lost-wood-grass-b: #63a581;
  --lost-wood-path-a: #cfc7a4;
  --lost-wood-path-b: #dfdac0;
  --lost-wood-tall: #3f8468;
  --lost-wood-wall-a: #4b7d68;
  --lost-wood-wall-b: #45806c;
  --lost-wood-rock: #9ea8b2;
  --lost-wood-bush: #4b957a;
  --lost-wood-water-a: #72bcdc;
  --lost-wood-water-b: #4089bd;
  --lost-wood-ice: #d6eefa;
  --lost-wood-bed: #cbc4a2;
  --lost-wood-dock: #9c7a58;
  --lost-wood-cliff: #8f897c;
  --lost-wood-gap: #3b3542;
  --lost-wood-wind: #c8e8dc;
  --lost-wood-dark: #23212f;
  --lost-wood-mud: #7c6450;
  --lost-wood-snow: #eef7ff;
  --lost-wood-soil: #836549;
  --lost-wood-plank: #ab8660;
  --lost-wood-glow: #c4ecff;
  --lost-wood-ink: #2f2a33;
  --lost-wood-leaf: #3f8d6e;
  --lost-wood-leaf-b: #4e9c7c;
  --lost-wood-trunk: #6f5442;
  --lost-wood-bloom: #cbb6ff;
  --lost-wood-accent: #ff8f7a;
  --lost-wood-tree: pine;

  --lost-wood-room-grass-a: #c4a37e;
  --lost-wood-room-grass-b: #b4926e;
  --lost-wood-room-path-a: #d9c39c;
  --lost-wood-room-path-b: #e6d6b6;
  --lost-wood-room-wall-a: #80604a;
  --lost-wood-room-wall-b: #4c382e;
  --lost-wood-room-dark: #241f2a;

  --lost-wood-dark-grass-a: #68707e;
  --lost-wood-dark-grass-b: #5a6270;
  --lost-wood-dark-path-a: #838b97;
  --lost-wood-dark-path-b: #959da8;
  --lost-wood-dark-wall-a: #454b5c;
  --lost-wood-dark-wall-b: #25283a;
  --lost-wood-dark-dark: #161722;
  --lost-wood-dark-soil: #514c50;

  --lost-downs-grass-a: #a9d263;
  --lost-downs-grass-b: #92c051;
  --lost-downs-path-a: #efe9d8;
  --lost-downs-path-b: #fbf8ee;
  --lost-downs-tall: #7fae3e;
  --lost-downs-wall-a: #6f9a42;
  --lost-downs-wall-b: #6b9a43;
  --lost-downs-rock: #e2dccb;
  --lost-downs-bush: #5f9f3d;
  --lost-downs-water-a: #7ac8e4;
  --lost-downs-water-b: #4b9fcb;
  --lost-downs-ice: #dff3f8;
  --lost-downs-bed: #e9e2cc;
  --lost-downs-dock: #b88655;
  --lost-downs-cliff: #e4dccb;
  --lost-downs-gap: #6b4b33;
  --lost-downs-wind: #e6efc0;
  --lost-downs-dark: #2d2220;
  --lost-downs-mud: #a27c54;
  --lost-downs-snow: #f6fbff;
  --lost-downs-soil: #b7824e;
  --lost-downs-plank: #cb9a60;
  --lost-downs-glow: #ffe9a0;
  --lost-downs-ink: #3d2b20;
  --lost-downs-leaf: #79ad3f;
  --lost-downs-leaf-b: #9cc34e;
  --lost-downs-trunk: #9a6b45;
  --lost-downs-bloom: #ff9d6e;
  --lost-downs-accent: #e9574b;
  --lost-downs-tree: gold;

  --lost-downs-under-grass-a: #bb9066;
  --lost-downs-under-grass-b: #a97e57;
  --lost-downs-under-path-a: #d8b687;
  --lost-downs-under-path-b: #e6caa0;
  --lost-downs-under-wall-a: #8b6040;
  --lost-downs-under-wall-b: #55382a;
  --lost-downs-under-dark: #271b19;
  --lost-downs-under-soil: #8e6038;
  --lost-downs-under-gap: #3a2620;
  --lost-downs-under-glow: #ffd27a;

  --lost-downs-room-grass-a: #e4c693;
  --lost-downs-room-grass-b: #d4b37f;
  --lost-downs-room-path-a: #efd9ad;
  --lost-downs-room-path-b: #f7e8c8;
  --lost-downs-room-wall-a: #aa7b50;
  --lost-downs-room-wall-b: #6d4b34;
  --lost-downs-room-dark: #2a2020;
}

.hc {
  --lost-art-line: 1.6;
}
