:root {
  color-scheme: dark;
  --bg: #06100e;
  --bg-deep: #030908;
  --panel: rgba(9, 25, 22, 0.78);
  --panel-strong: rgba(7, 22, 19, 0.94);
  --panel-soft: rgba(17, 42, 36, 0.6);
  --line: rgba(226, 255, 239, 0.12);
  --line-strong: rgba(226, 255, 239, 0.22);
  --text: #f5fbf6;
  --muted: #a7b9b0;
  --muted-2: #71867d;
  --lime: #d8ff69;
  --mint: #5de0c5;
  --blue: #55aaff;
  --amber: #ffbd66;
  --danger: #ff7c7c;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --topbar-h: 82px;
  --rail-w: 82px;
  --ease: cubic-bezier(.2, .78, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

button, input, select { font: inherit; }
button { color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 620px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 45%, rgba(24, 87, 77, .18), transparent 33%),
    linear-gradient(145deg, #04100e 0%, #071711 45%, #030807 100%);
}

.space {
  position: absolute;
  inset: 0;
  z-index: -4;
  opacity: .8;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.65) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(119,224,203,.55) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(255,255,255,.35) 0 .8px, transparent 1px);
  background-size: 83px 83px, 137px 137px, 53px 53px;
  background-position: 19px 31px, 64px 11px, 9px 17px;
  mask-image: radial-gradient(circle at center, black 0 58%, transparent 95%);
}

.space::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 30%, rgba(1, 4, 4, .08) 55%, rgba(1, 4, 4, .7) 100%),
    linear-gradient(90deg, rgba(2,9,8,.55), transparent 25%, transparent 72%, rgba(2,9,8,.5));
}

#globeCanvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 0 28px rgba(57, 180, 170, .16));
}

#globeCanvas:active { cursor: grabbing; }

.marker-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.globe-marker {
  --marker-color: var(--lime);
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  transform: translate3d(0,0,0) scale(.88);
  transition: opacity .18s linear, transform .25s var(--ease), filter .25s ease;
}

.globe-marker[hidden] { display: none; }
.globe-marker .pin-core {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(4, 18, 16, .82);
  border: 2px solid var(--marker-color);
  box-shadow: 0 0 0 5px rgba(255,255,255,.06), 0 0 22px color-mix(in srgb, var(--marker-color) 48%, transparent);
  font-size: 11px;
  font-weight: 900;
}

.globe-marker .pin-pulse {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid var(--marker-color);
  opacity: .4;
  animation: pulse-ring 2.4s ease-out infinite;
}

.globe-marker::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 44px;
  transform: translateX(-50%) translateY(-3px);
  white-space: nowrap;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 15, 13, .86);
  color: #eef8f1;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  backdrop-filter: blur(12px);
}

.globe-marker:hover::after,
.globe-marker:focus-visible::after,
.globe-marker.selected::after,
.globe-marker.label-open::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.globe-marker:hover { transform: translate3d(0,0,0) scale(1.08); }
.globe-marker.selected { transform: translate3d(0,0,0) scale(1.15); filter: drop-shadow(0 0 16px var(--marker-color)); }
.globe-marker.selected .pin-core { background: var(--marker-color); color: #07110e; }

.place-label {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e7f4ec;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .18s ease, transform .18s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}
.place-label.is-visible { pointer-events: auto; }
.place-label .place-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(232, 246, 236, .9);
  box-shadow: 0 0 0 3px rgba(93,224,197,.18);
  flex: 0 0 auto;
}
.place-label .place-name {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(4, 16, 13, .72);
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.place-label.rank-1 .place-name {
  font-size: 10px;
  font-weight: 800;
  background: rgba(4, 18, 15, .82);
  border-color: rgba(93,224,197,.28);
}
.place-label.rank-3 .place-name {
  font-size: 8px;
  font-weight: 650;
  color: rgba(230,242,234,.88);
}
.place-label:hover .place-name,
.place-label:focus-visible .place-name {
  border-color: rgba(216,255,105,.45);
  color: #f4ffe8;
}

@keyframes pulse-ring {
  0% { transform: scale(.7); opacity: .55; }
  75%, 100% { transform: scale(1.65); opacity: 0; }
}

.topbar {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: 0;
  height: var(--topbar-h);
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(360px, 640px) minmax(230px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(230,255,240,.08);
  background: linear-gradient(180deg, rgba(3, 11, 9, .86), rgba(3, 11, 9, .38));
  backdrop-filter: blur(18px) saturate(1.1);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 5px 0;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(216,255,105,.5);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #50d7b6 0 13%, #0b5a50 14% 43%, #08251f 44% 100%);
  box-shadow: inset -8px -5px 12px rgba(0,0,0,.35), 0 0 16px rgba(93,224,197,.22);
}

.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(216,255,105,.72);
  border-radius: 50%;
  inset: 7px -5px;
  transform: rotate(-23deg);
}
.brand-mark::after { inset: -4px 11px; transform: rotate(31deg); opacity: .65; }
.brand-mark span { position: absolute; width: 5px; height: 5px; background: var(--lime); border-radius: 50%; right: -3px; top: 8px; box-shadow: 0 0 8px var(--lime); }

.brand-word {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: .15em;
}

.beta-pill {
  border: 1px solid rgba(216,255,105,.28);
  color: var(--lime);
  background: rgba(216,255,105,.07);
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .12em;
}

.search-trigger {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 18px;
  border: 1px solid rgba(219,255,234,.16);
  border-radius: 999px;
  background: rgba(13, 31, 27, .66);
  color: var(--muted);
  cursor: text;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 28px rgba(0,0,0,.12);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.search-trigger:hover { border-color: rgba(216,255,105,.45); background: rgba(18,43,37,.78); transform: translateY(-1px); }
.search-placeholder { flex: 1; text-align: left; font-size: 14px; }
.search-trigger kbd {
  min-width: 40px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  color: #d9e5de;
  font-size: 11px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
}

.search-icon {
  width: 16px;
  height: 16px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.8px; background: currentColor; right: -5px; bottom: -2px; transform: rotate(45deg); border-radius: 3px; }

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button, .profile-button {
  border: 1px solid var(--line);
  background: rgba(13,31,27,.6);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.icon-button:hover, .profile-button:hover { border-color: rgba(216,255,105,.35); background: rgba(19,43,37,.8); }

.icon-button {
  height: 44px;
  padding: 0 13px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
.icon-button > span:first-child { color: var(--lime); font-size: 16px; }
.badge-count { min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: rgba(216,255,105,.13); color: var(--lime); font-size: 9px; }

.profile-button {
  height: 48px;
  padding: 4px 11px 4px 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-orbit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d8ff69, #5de0c5);
  color: #07120f;
  font-weight: 900;
}
.profile-copy { display: grid; text-align: left; line-height: 1.1; }
.profile-copy strong { font-size: 11px; }
.profile-copy small { font-size: 9px; color: var(--muted); margin-top: 3px; }

.side-rail {
  position: absolute;
  z-index: 15;
  top: var(--topbar-h);
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid rgba(225,255,239,.07);
  background: linear-gradient(90deg, rgba(4,13,11,.72), rgba(4,13,11,.2));
}

.rail-button {
  width: 58px;
  min-height: 58px;
  padding: 9px 4px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 3px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.rail-button > span { font-size: 19px; line-height: 1; }
.rail-button small { font-size: 8px; letter-spacing: .05em; font-weight: 750; }
.rail-button:hover { color: #d8e7de; background: rgba(255,255,255,.04); }
.rail-button.active { color: var(--lime); border-color: rgba(216,255,105,.2); background: rgba(216,255,105,.07); }
.rail-button:last-child { margin-top: auto; }

.experience { position: absolute; inset: var(--topbar-h) 0 0 var(--rail-w); z-index: 4; pointer-events: none; }
.experience button, .experience a, .mission-card, .place-card { pointer-events: auto; }

.hero-copy {
  position: absolute;
  left: clamp(38px, 5vw, 92px);
  top: clamp(65px, 9vh, 118px);
  width: min(530px, 40vw);
  transition: opacity .45s ease, transform .45s var(--ease);
}
.hero-copy.dimmed { opacity: .18; transform: translateY(-8px); pointer-events: none; }
.eyebrow {
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
}
.eyebrow span { width: 26px; height: 1px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.hero-copy h1 {
  margin: 0;
  font-size: clamp(45px, 5vw, 78px);
  line-height: .97;
  letter-spacing: -.055em;
  font-weight: 780;
  text-wrap: balance;
}
.hero-copy h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: #c7e5d4; }
.hero-sub { width: min(480px, 100%); margin: 23px 0 0; color: #a8bbb1; line-height: 1.65; font-size: 15px; }
.hero-actions { margin-top: 27px; display: flex; gap: 10px; flex-wrap: wrap; }

.primary-button, .ghost-button, .mission-button, .text-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s var(--ease), filter .2s ease, background .2s ease, border-color .2s ease;
}
.primary-button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 14px;
  background: var(--lime);
  color: #0a160f;
  box-shadow: 0 12px 32px rgba(216,255,105,.14);
}
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.primary-button.compact { min-height: 43px; padding: 0 16px; gap: 12px; font-size: 12px; }
.ghost-button {
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9,27,23,.55);
  color: #d7e5dc;
}
.ghost-button:hover { border-color: rgba(216,255,105,.35); transform: translateY(-2px); }

.mission-card {
  position: absolute;
  top: clamp(44px, 7vh, 78px);
  right: 26px;
  width: 295px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(10,31,26,.82), rgba(5,17,15,.7));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.15);
}
.mission-topline { display: flex; align-items: center; gap: 8px; color: #bacdc2; font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 9px var(--lime); }
.tiny-button { margin-left: auto; width: 20px; height: 20px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.streak-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 15px 0; }
.streak-row > div { padding: 10px 6px; border-radius: 13px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.05); text-align: center; }
.streak-row strong { display: block; font-size: 18px; color: #f7fff8; }
.streak-row span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.quest-block { padding: 13px; border: 1px solid rgba(93,224,197,.13); border-radius: 14px; background: rgba(93,224,197,.055); }
.quest-heading { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: #dcebe3; font-weight: 750; }
.quest-heading strong { color: var(--mint); }
.quest-block p { margin: 8px 0 11px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.progress-track { height: 5px; overflow: hidden; background: rgba(255,255,255,.08); border-radius: 99px; }
.progress-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--lime)); border-radius: inherit; transition: width .45s var(--ease); }
.mission-button { width: 100%; min-height: 41px; margin-top: 11px; padding: 0 13px; border: 1px solid rgba(216,255,105,.18); border-radius: 12px; background: rgba(216,255,105,.08); color: var(--lime); display: flex; justify-content: space-between; align-items: center; font-size: 10px; }
.mission-button:hover { background: rgba(216,255,105,.13); transform: translateY(-1px); }

.place-card {
  position: absolute;
  left: clamp(25px, 4vw, 62px);
  bottom: 35px;
  width: min(690px, calc(100vw - 480px));
  min-width: 570px;
  height: 235px;
  padding: 9px;
  display: grid;
  grid-template-columns: 235px 1fr;
  gap: 17px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(9,27,23,.9), rgba(5,16,14,.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(19px) saturate(1.15);
  transition: transform .45s var(--ease), opacity .35s ease, width .4s var(--ease);
}
.place-card.bump { animation: card-bump .42s var(--ease); }
@keyframes card-bump { 0%{transform:translateY(8px);opacity:.5}100%{transform:translateY(0);opacity:1} }
.place-image-wrap { position: relative; border-radius: 18px; overflow: hidden; min-width: 0; background: #0a1a15; }
.place-image-wrap::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 35%,rgba(2,10,8,.72)); pointer-events:none; }
.place-image-wrap img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; transition: transform 7s ease; }
.place-card:hover .place-image-wrap img { transform: scale(1.05); }
.image-badge { position: absolute; z-index: 2; left: 10px; top: 10px; padding: 6px 8px; border-radius: 8px; background: rgba(3,14,12,.66); border: 1px solid rgba(255,255,255,.14); color: #e4eee8; font-size: 7px; font-weight: 850; letter-spacing: .12em; backdrop-filter: blur(9px); }
.place-content { padding: 8px 9px 7px 0; min-width: 0; display: flex; flex-direction: column; }
.place-kicker { display: flex; align-items: center; gap: 7px; color: #9eb2a8; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.biome-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px currentColor; }
.place-title-row { margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.place-title-row h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.place-title-row p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.round-save { flex: 0 0 auto; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); color: #d8e5de; cursor: pointer; font-size: 18px; }
.round-save.saved { background: var(--lime); color: #0b160f; border-color: var(--lime); }
.place-summary { margin: 8px 0 9px; color: #b7c8bf; font-size: 11px; line-height: 1.45; max-width: 95%; }
.place-weather {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 9px;
  padding: 8px 10px;
  border: 1px solid rgba(93,224,197,.14);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(93,224,197,.07), rgba(255,255,255,.02));
  color: #c5d8ce;
  font-size: 9px;
  line-height: 1.35;
}
.place-weather .weather-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.place-weather .weather-temp {
  color: #eef8f1;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.place-weather .weather-condition { color: #d7ebe0; font-weight: 700; }
.place-weather .weather-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #93a99e;
}
.place-weather .weather-meta b { color: #dcece3; font-weight: 750; }
.place-weather .weather-loading,
.place-weather .weather-error { color: #8fa59b; font-style: italic; }
.place-stats { display: flex; gap: 7px; flex-wrap: wrap; }
.habitat-weather {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(93,224,197,.16);
  border-radius: 16px;
  background: rgba(93,224,197,.05);
}
.habitat-weather-now { display: grid; gap: 6px; align-content: start; }
.habitat-weather-now small { color: var(--lime); font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.habitat-weather-now strong { font-size: 28px; letter-spacing: -.03em; }
.habitat-weather-now p { margin: 0; color: #d5e7dd; font-size: 12px; }
.habitat-weather-now span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.habitat-forecast { display: grid; gap: 7px; }
.forecast-day {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(3,14,12,.34);
  color: #c2d3ca;
  font-size: 10px;
}
.forecast-day b { color: #e7f3ec; }
.forecast-day em { color: var(--muted); font-style: normal; }
.stat-chip { padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.035); color: #92a79d; font-size: 8px; }
.stat-chip strong { color: #e8f4ed; margin-right: 3px; }
.place-actions { margin-top: auto; display: flex; align-items: center; gap: 13px; }
.text-button { background: transparent; color: var(--muted); font-size: 9px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.text-button:hover { color: var(--lime); border-color: var(--lime); }

.globe-hud {
  position: absolute;
  z-index: 8;
  right: 29px;
  bottom: 40px;
  width: 42px;
  padding: 4px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6,20,17,.7);
  backdrop-filter: blur(12px);
}
.globe-hud button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #a9bbb2; cursor: pointer; font-size: 16px; }
.globe-hud button:hover { background: rgba(216,255,105,.09); color: var(--lime); }

.interaction-hint {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: #6f857a;
  background: rgba(4,15,13,.46);
  font-size: 8px;
  letter-spacing: .03em;
  backdrop-filter: blur(8px);
  transition: opacity .3s ease;
}
.interaction-hint strong { color: #aabeb3; }
.drag-glyph { color: var(--mint); font-size: 13px; }
.data-credit { position: absolute; right: 88px; bottom: 48px; z-index: 5; color: rgba(180,202,191,.42); font-size: 7px; letter-spacing: .04em; }

.profile-popover {
  position: absolute;
  z-index: 60;
  right: 27px;
  top: 72px;
  width: 350px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(7,22,19,.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.profile-popover[hidden] { display: none; }
.popover-head { display: flex; justify-content: space-between; gap: 12px; }
.popover-head small { color: var(--lime); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.popover-head h3 { margin: 5px 0 17px; font-size: 17px; }
.close-mini { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.field-label, .profile-popover legend { display: block; margin: 5px 0 8px; color: #a8bbb0; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-popover select, .radius-control select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.05);
  color: #e8f1ec;
  padding: 10px 12px;
}
.profile-popover fieldset { margin: 17px 0 0; padding: 0; border: 0; }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.interest-grid label { position: relative; }
.interest-grid input { position: absolute; opacity: 0; pointer-events: none; }
.interest-grid span { display: block; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 10px; cursor: pointer; }
.interest-grid input:checked + span { border-color: rgba(216,255,105,.4); background: rgba(216,255,105,.09); color: var(--lime); }
.privacy-note { margin: 14px 0 0; color: var(--muted-2); font-size: 8px; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}
.overlay[hidden] { display: none; }
.overlay-backdrop { position: absolute; inset: 0; background: rgba(1,7,6,.72); backdrop-filter: blur(12px); animation: fade-in .2s ease both; }
@keyframes fade-in { from { opacity:0 } to { opacity:1 } }

.search-panel {
  position: relative;
  z-index: 1;
  width: min(1050px, calc(100vw - 64px));
  height: min(710px, calc(100vh - 80px));
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: rgba(6,20,17,.97);
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
  overflow: hidden;
  animation: panel-in .32s var(--ease) both;
}
@keyframes panel-in { from{opacity:0;transform:translateY(18px) scale(.985)} to{opacity:1;transform:none} }
.search-panel-head { height: 82px; padding: 15px 19px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.search-input-shell { height: 52px; flex: 1; display: flex; align-items: center; gap: 13px; padding: 0 14px 0 18px; border: 1px solid rgba(216,255,105,.22); border-radius: 15px; background: rgba(255,255,255,.045); color: var(--lime); }
.search-input-shell input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #f4faf6; font-size: 15px; }
.search-input-shell input::placeholder { color: #6f8479; }
.search-input-shell button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--muted); cursor: pointer; }
.escape-button { height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; letter-spacing: .12em; }
.search-body { height: calc(100% - 82px); display: grid; grid-template-columns: 1fr 310px; }
.search-main { min-width: 0; padding: 24px 22px; overflow: auto; }
.search-aside { padding: 24px 18px; border-left: 1px solid var(--line); background: rgba(255,255,255,.016); overflow: auto; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 13px; }
.section-heading > span { font-size: 13px; font-weight: 800; }
.section-heading small, .aside-label { color: var(--muted-2); font-size: 8px; letter-spacing: .12em; font-weight: 800; }
.search-results { display: grid; gap: 8px; }
.search-empty { padding: 55px 24px; border: 1px dashed var(--line); border-radius: 17px; text-align: center; color: var(--muted); }
.search-empty strong { display: block; margin-bottom: 6px; color: #e5eee9; }
.result-group-label { margin: 15px 0 5px; color: var(--muted-2); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.result-row {
  width: 100%;
  min-height: 68px;
  padding: 9px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}
.result-row:hover, .result-row:focus-visible { border-color: rgba(216,255,105,.22); background: rgba(216,255,105,.055); }
.result-thumb { width: 52px; height: 52px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; background: rgba(93,224,197,.1); font-size: 22px; }
.result-thumb img { width:100%; height:100%; object-fit:cover; }
.result-copy { min-width: 0; }
.result-copy strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-meta { color: var(--muted-2); font-size: 8px; text-align: right; }
.result-meta b { display: block; color: var(--lime); font-size: 11px; margin-bottom: 3px; }
.journey-list { display: grid; gap: 9px; }
.journey-card { position: relative; min-height: 96px; padding: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background-size: cover; background-position: center; cursor: pointer; text-align: left; }
.journey-card::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(3,13,11,.92),rgba(3,13,11,.25)); }
.journey-card > * { position: relative; z-index: 1; }
.journey-card small { color: var(--lime); font-size: 7px; letter-spacing: .1em; font-weight: 850; }
.journey-card strong { display: block; margin-top: 8px; font-size: 13px; }
.journey-card span { display: block; margin-top: 3px; color: #b3c3ba; font-size: 8px; }
.search-tip { margin-top: 16px; padding: 13px; display: flex; gap: 11px; border: 1px solid rgba(93,224,197,.12); border-radius: 14px; background: rgba(93,224,197,.045); color: var(--muted); }
.search-tip > span { color: var(--mint); font-size: 20px; }
.search-tip p { margin: 0; font-size: 9px; line-height: 1.5; }
.search-tip strong { color: #e6f2eb; }

.guide-panel {
  position: fixed;
  z-index: 75;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(720px, 100vw);
  border-left: 1px solid var(--line-strong);
  background: #081713;
  box-shadow: -35px 0 100px rgba(0,0,0,.5);
  transform: translateX(105%);
  transition: transform .5s var(--ease);
  overflow: hidden;
}
.guide-panel.open { transform: translateX(0); }
.guide-scroll { height: 100%; overflow: auto; overscroll-behavior: contain; }
.guide-hero { position: relative; min-height: 330px; padding: 26px; display: flex; align-items: flex-end; background-color: #071410; background-size: contain; background-repeat: no-repeat; background-position: center; }
.guide-hero-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(1,7,6,.12),rgba(2,10,8,.92)); }
.guide-close { position:absolute; z-index:2; right:20px; top:20px; width:42px; height:42px; border:1px solid rgba(255,255,255,.18); border-radius:13px; background:rgba(3,14,12,.6); color:#fff; cursor:pointer; backdrop-filter:blur(9px); font-size:20px; }
.guide-hero-copy { position:relative; z-index:1; max-width:580px; }
.guide-hero-copy > p:first-child { margin:0 0 9px; color:var(--lime); font-size:9px; font-weight:850; letter-spacing:.15em; }
.guide-hero-copy h2 { margin:0; font-size:42px; line-height:1; letter-spacing:-.045em; }
.guide-hero-copy > p:nth-of-type(2) { margin:12px 0 0; max-width:520px; color:#c0d0c7; font-size:13px; line-height:1.55; }
.guide-meta { margin-top:15px; display:flex; gap:7px; flex-wrap:wrap; }
.guide-meta span { padding:7px 9px; border:1px solid rgba(255,255,255,.13); border-radius:9px; background:rgba(3,13,11,.5); color:#c3d2ca; font-size:8px; backdrop-filter:blur(8px); }
.guide-sticky { position:sticky; top:0; z-index:5; padding:12px 19px; border-bottom:1px solid var(--line); background:rgba(8,23,19,.94); backdrop-filter:blur(18px); display:flex; justify-content:space-between; align-items:center; gap:16px; }
.guide-tabs { display:flex; gap:4px; }
.guide-tabs button { min-height:37px; padding:0 13px; border:1px solid transparent; border-radius:10px; background:transparent; color:var(--muted); cursor:pointer; font-size:10px; font-weight:750; }
.guide-tabs button.active { color:var(--lime); background:rgba(216,255,105,.075); border-color:rgba(216,255,105,.16); }
.guide-tools { display:flex; align-items:center; gap:8px; }
.sync-button { height:36px; padding:0 11px; display:flex; align-items:center; gap:7px; border:1px solid rgba(93,224,197,.16); border-radius:10px; background:rgba(93,224,197,.06); color:var(--mint); cursor:pointer; font-size:8px; font-weight:800; }
.sync-button.loading .sync-dot { animation: blink .7s ease infinite alternate; }
@keyframes blink { to{opacity:.2} }
.sync-dot { width:6px; height:6px; border-radius:50%; background:currentColor; box-shadow:0 0 7px currentColor; }
.radius-control { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:8px; }
.radius-control select { width:auto; padding:7px 8px; font-size:8px; }
.guide-content { padding:23px 22px 50px; }
.content-intro { margin-bottom:17px; display:flex; justify-content:space-between; gap:20px; align-items:flex-end; }
.content-intro h3 { margin:0; font-size:19px; }
.content-intro p { margin:5px 0 0; color:var(--muted); font-size:10px; line-height:1.5; }
.content-intro small { color:var(--muted-2); font-size:8px; }
.species-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.species-card { position:relative; min-height:225px; overflow:hidden; padding:0; border:1px solid var(--line); border-radius:18px; background:#102821; cursor:pointer; text-align:left; }
.species-card:hover { border-color:rgba(216,255,105,.3); transform:translateY(-2px); }
.species-card-media { position:absolute; inset:0; background-color:#0a1a15; background-size:contain; background-repeat:no-repeat; background-position:center; transition:transform .45s var(--ease); }
.species-card:hover .species-card-media { transform:scale(1.035); }
.species-card-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(2,10,8,.05) 20%,rgba(2,10,8,.92) 90%); }
.species-card-icon { position:absolute; left:18px; top:17px; z-index:1; font-size:34px; filter:drop-shadow(0 5px 12px rgba(0,0,0,.45)); }
.species-card-copy { position:absolute; z-index:1; left:16px; right:16px; bottom:15px; }
.species-card-copy small { color:var(--lime); font-size:7px; font-weight:850; letter-spacing:.12em; }
.species-card-copy strong { display:block; margin-top:5px; font-size:16px; }
.species-card-copy em { display:block; margin-top:2px; color:#aebfb6; font-size:9px; font-style:italic; }
.species-card-count { position:absolute; right:11px; top:11px; z-index:1; padding:5px 7px; border-radius:8px; background:rgba(3,14,12,.62); border:1px solid rgba(255,255,255,.1); color:#dbe7e0; font-size:7px; backdrop-filter:blur(8px); }
.live-banner { margin-bottom:13px; padding:10px 12px; display:flex; gap:9px; align-items:center; border:1px solid rgba(93,224,197,.13); border-radius:12px; background:rgba(93,224,197,.05); color:#9fc3b7; font-size:9px; line-height:1.45; }
.live-banner strong { color:var(--mint); }
.skeleton-card { min-height:225px; border-radius:18px; background:linear-gradient(90deg,rgba(255,255,255,.035),rgba(255,255,255,.075),rgba(255,255,255,.035)); background-size:200% 100%; animation:shimmer 1.2s linear infinite; }
@keyframes shimmer { to{background-position:-200% 0} }
.error-card { padding:26px; border:1px dashed rgba(255,124,124,.25); border-radius:16px; color:#c8aaa7; text-align:center; }
.error-card button { margin-top:12px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.04); color:#e9f2ed; cursor:pointer; }
.habitat-story { display:grid; gap:14px; }
.story-lede { font-family:Georgia,serif; font-size:28px; line-height:1.28; color:#d9ece0; letter-spacing:-.025em; }
.habitat-meta-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.habitat-meta { padding:12px 13px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.03); }
.habitat-meta span { display:block; color:var(--lime); font-size:7px; font-weight:850; letter-spacing:.14em; }
.habitat-meta strong { display:block; margin-top:6px; color:#d7e7de; font-size:10px; font-weight:650; line-height:1.45; }
.story-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:11px; }
.story-card { padding:17px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.025); }
.story-card span { color:var(--lime); font-size:8px; font-weight:850; letter-spacing:.12em; }
.story-card h4 { margin:8px 0 6px; font-size:14px; }
.story-card p { margin:0; color:var(--muted); font-size:10px; line-height:1.55; }
.nearby-places { padding:14px; border:1px solid rgba(93,224,197,.16); border-radius:16px; background:rgba(93,224,197,.04); }
.nearby-places-head { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-bottom:10px; }
.nearby-places-head small { color:var(--lime); font-size:8px; font-weight:850; letter-spacing:.14em; }
.nearby-places-head strong { color:#b9cec4; font-size:10px; font-weight:600; }
.nearby-place-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.nearby-place-chip {
  display:grid; gap:3px; padding:10px 11px; border:1px solid var(--line); border-radius:12px;
  background:rgba(3,14,12,.4); color:inherit; text-align:left; cursor:pointer;
}
.nearby-place-chip strong { font-size:11px; }
.nearby-place-chip span { color:var(--muted); font-size:9px; }
.nearby-place-chip:hover { border-color:rgba(216,255,105,.35); background:rgba(216,255,105,.06); }
@media (max-width: 900px) {
  .habitat-meta-row { grid-template-columns:1fr; }
  .nearby-place-grid { grid-template-columns:1fr; }
  .habitat-weather { grid-template-columns:1fr; }
}
.mission-sheet { padding:20px; border:1px solid rgba(216,255,105,.18); border-radius:18px; background:linear-gradient(145deg,rgba(216,255,105,.08),rgba(93,224,197,.035)); }
.mission-sheet h3 { margin:0; font-size:25px; }
.mission-sheet > p { color:var(--muted); line-height:1.6; }
.mission-steps { display:grid; gap:8px; margin-top:16px; }
.mission-step { padding:13px; display:flex; align-items:center; gap:12px; border:1px solid var(--line); border-radius:12px; background:rgba(3,14,12,.34); }
.mission-step b { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:rgba(216,255,105,.12); color:var(--lime); }
.mission-step span { color:#bdccc4; font-size:10px; }

.species-modal {
  position: relative;
  z-index: 1;
  width: min(970px, calc(100vw - 52px));
  height: min(720px, calc(100vh - 52px));
  display: grid;
  grid-template-columns: 43% 57%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 27px;
  background: #071612;
  box-shadow: 0 40px 130px rgba(0,0,0,.62);
  animation: panel-in .32s var(--ease) both;
}
.species-close { position:absolute; z-index:4; right:18px; top:18px; width:40px; height:40px; border:1px solid var(--line); border-radius:12px; background:rgba(4,16,13,.7); color:#fff; cursor:pointer; font-size:20px; backdrop-filter:blur(8px); }
.species-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #071410;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.species-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: none;
  background: #071410;
}
.species-visual.has-photo .species-photo { display: block; }
.species-visual.has-photo .species-big-icon { display: none; }
.species-visual-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 8, 7, 0.02), rgba(2, 8, 7, 0.55));
}
.species-visual.has-photo .species-visual-shade {
  background: linear-gradient(180deg, transparent 55%, rgba(2, 8, 7, 0.72));
}
.species-big-icon {
  position: relative;
  z-index: 1;
  font-size: 110px;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.45));
}
.photo-credit { position:absolute; z-index:2; left:16px; right:16px; bottom:14px; color:rgba(235,245,239,.65); font-size:7px; line-height:1.4; }
.photo-credit a { color:rgba(235,245,239,.9); text-decoration:underline; text-underline-offset:2px; }
.species-body { padding:38px 40px 60px; overflow:auto; }
.species-topline { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.species-topline > span { color:var(--lime); font-size:8px; font-weight:850; letter-spacing:.15em; }
.save-species { height:34px; padding:0 11px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.035); color:#d8e5dd; cursor:pointer; font-size:9px; }
.save-species.saved { background:rgba(216,255,105,.11); border-color:rgba(216,255,105,.32); color:var(--lime); }
.species-body h2 { margin:12px 0 0; font-size:42px; letter-spacing:-.045em; }
.scientific { margin:3px 0 0; color:#8ea49a; font-family:Georgia,serif; font-style:italic; font-size:14px; }
.personalized-badge { display:inline-flex; margin-top:17px; padding:6px 8px; border:1px solid rgba(93,224,197,.18); border-radius:8px; background:rgba(93,224,197,.06); color:var(--mint); font-size:7px; font-weight:850; letter-spacing:.1em; }
.species-lede { margin:16px 0 20px; color:#c5d4cc; font-size:15px; line-height:1.65; }
.fact-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.fact-tile { padding:12px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.025); }
.fact-tile span { display:block; color:var(--muted-2); font-size:7px; letter-spacing:.09em; text-transform:uppercase; }
.fact-tile strong { display:block; margin-top:6px; color:#e3eee8; font-size:10px; line-height:1.35; }
.why-section, .look-section { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.why-section h3, .look-section h3 { margin:0 0 8px; font-size:13px; }
.why-section p, .look-section p { margin:0; color:var(--muted); font-size:11px; line-height:1.65; }
.mini-quiz { margin-top:24px; padding:17px; border:1px solid rgba(216,255,105,.15); border-radius:15px; background:rgba(216,255,105,.045); }
.mini-quiz > small { color:var(--lime); font-size:7px; font-weight:850; letter-spacing:.13em; }
.mini-quiz h4 { margin:8px 0 12px; font-size:13px; }
.quiz-options { display:grid; gap:7px; }
.quiz-options button { padding:10px 11px; border:1px solid var(--line); border-radius:10px; background:rgba(3,14,12,.34); color:#bfcfc6; cursor:pointer; text-align:left; font-size:9px; }
.quiz-options button.correct { border-color:rgba(216,255,105,.45); color:var(--lime); background:rgba(216,255,105,.08); }
.quiz-options button.wrong { border-color:rgba(255,124,124,.32); color:#ffaaaa; }
.quiz-feedback { margin:9px 0 0; color:var(--muted); font-size:9px; }

.journal-panel, .about-panel {
  position:relative;
  z-index:1;
  width:min(900px,calc(100vw - 54px));
  max-height:calc(100vh - 60px);
  overflow:auto;
  border:1px solid var(--line-strong);
  border-radius:26px;
  background:rgba(7,22,19,.98);
  box-shadow:0 40px 130px rgba(0,0,0,.58);
  animation:panel-in .32s var(--ease) both;
}
.journal-head { padding:24px 26px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); }
.journal-head small { color:var(--lime); font-size:8px; font-weight:850; letter-spacing:.13em; }
.journal-head h2 { margin:5px 0 0; font-size:29px; }
.journal-head button, .about-close { width:40px; height:40px; border:1px solid var(--line); border-radius:12px; background:transparent; color:#dce8e1; cursor:pointer; font-size:20px; }
.journal-summary { padding:17px 26px; display:flex; gap:10px; border-bottom:1px solid var(--line); }
.journal-stat { padding:10px 13px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.025); }
.journal-stat strong { display:block; font-size:18px; }
.journal-stat span { color:var(--muted); font-size:8px; }
.journal-content { padding:24px 26px 36px; }
.journal-section + .journal-section { margin-top:26px; }
.journal-section h3 { margin:0 0 12px; font-size:14px; }
.saved-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.saved-card { min-height:135px; padding:14px; border:1px solid var(--line); border-radius:15px; background-size:cover; background-position:center; position:relative; overflow:hidden; cursor:pointer; text-align:left; }
.saved-card::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(2,9,7,.05),rgba(2,9,7,.9)); }
.saved-card > * { position:relative; z-index:1; }
.saved-card span { font-size:26px; }
.saved-card strong { display:block; margin-top:30px; font-size:12px; }
.saved-card small { display:block; margin-top:3px; color:#adc0b6; font-size:8px; }
.empty-journal { padding:35px; border:1px dashed var(--line); border-radius:16px; text-align:center; color:var(--muted); font-size:11px; }

.about-panel { padding:38px; width:min(850px,calc(100vw - 54px)); }
.about-close { position:absolute; right:20px; top:20px; }
.about-panel h2 { max-width:650px; margin:0; font-size:45px; line-height:1.04; letter-spacing:-.045em; }
.about-panel > p:nth-of-type(2) { max-width:690px; color:var(--muted); line-height:1.7; }
.about-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:11px; margin-top:25px; }
.about-grid > div { padding:17px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.024); }
.about-grid strong { color:var(--lime); font-size:9px; letter-spacing:.1em; }
.about-grid h3 { margin:9px 0 6px; font-size:14px; }
.about-grid p { margin:0; color:var(--muted); font-size:10px; line-height:1.55; }
.credits-box { margin-top:19px; padding:15px; border-radius:14px; background:rgba(93,224,197,.055); border:1px solid rgba(93,224,197,.13); }
.credits-box strong { font-size:10px; }
.credits-box p { margin:6px 0 0; color:var(--muted); font-size:9px; line-height:1.55; }
.products-box .product-links {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0.55rem 0.75rem;
  margin-top:10px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.01em;
}
.products-box .product-links a {
  color:var(--lime);
  text-decoration:none;
}
.products-box .product-links a:hover {
  text-decoration:underline;
  text-underline-offset:0.18em;
}
.products-box .product-links span { color:var(--muted); font-weight:500; }
.products-box > p:last-child { margin-top:10px; }

.toast {
  position:fixed;
  z-index:200;
  left:50%;
  bottom:28px;
  transform:translate(-50%,20px);
  min-width:220px;
  max-width:min(520px,calc(100vw - 40px));
  padding:12px 15px;
  border:1px solid var(--line-strong);
  border-radius:13px;
  background:rgba(6,22,18,.96);
  color:#dce9e2;
  box-shadow:0 18px 48px rgba(0,0,0,.4);
  opacity:0;
  pointer-events:none;
  text-align:center;
  font-size:10px;
  transition:opacity .25s ease, transform .25s var(--ease);
}
.toast.show { opacity:1; transform:translate(-50%,0); }
.noscript { position:fixed; inset:0; display:grid; place-items:center; background:#06100e; color:white; z-index:999; }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: minmax(210px, .8fr) minmax(320px, 1.4fr) minmax(160px, .8fr); gap: 14px; padding-inline: 20px; }
  .button-label, .profile-copy { display: none; }
  .mission-card { width: 250px; right: 18px; }
  .place-card { width: min(610px, calc(100vw - 370px)); min-width: 530px; grid-template-columns: 205px 1fr; }
  .hero-copy { width: 43vw; }
}

@media (max-width: 940px) {
  :root { --topbar-h: 68px; --rail-w: 0px; }
  .app-shell { min-height: 540px; }
  .topbar { grid-template-columns: auto 1fr auto; padding: 10px 13px; gap: 10px; }
  .brand-word, .beta-pill { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .search-trigger { height: 44px; padding-left: 14px; }
  .search-placeholder { font-size: 12px; }
  .search-trigger kbd { display: none; }
  .journal-button { width: 42px; padding: 0; justify-content: center; }
  .journal-button .badge-count { position:absolute; margin: -27px -32px 0 0; }
  .profile-button { display: none; }
  .side-rail { top:auto; left:50%; bottom:max(12px,env(safe-area-inset-bottom)); transform:translateX(-50%); width:auto; height:64px; padding:5px; flex-direction:row; border:1px solid var(--line); border-radius:20px; background:rgba(5,18,15,.9); backdrop-filter:blur(18px); }
  .rail-button { width:58px; min-height:52px; }
  .rail-button:last-child { margin-top:0; }
  .experience { inset: var(--topbar-h) 0 0 0; }
  .mission-card { display:none; }
  .hero-copy { top: 44px; left: 22px; width: min(550px, calc(100vw - 44px)); }
  .hero-copy h1 { font-size: clamp(42px, 9vw, 66px); }
  .hero-sub { font-size: 13px; width: min(440px, 85vw); }
  .place-card { left: 15px; right: 15px; bottom: 86px; width: auto; min-width:0; height: 205px; grid-template-columns: 170px 1fr; }
  .place-summary { display:none; }
  .place-stats { margin-top:8px; }
  .globe-hud { right: 14px; bottom: 162px; }
  .interaction-hint, .data-credit { display:none; }
  .profile-popover { right:12px; top:64px; }
  .search-panel { width: calc(100vw - 24px); height: calc(100vh - 24px); }
  .search-body { grid-template-columns: 1fr; }
  .search-aside { display:none; }
  .guide-panel { width:100vw; }
}

@media (max-width: 640px) {
  .search-trigger { justify-content:center; padding:0; }
  .search-placeholder { display:none; }
  .search-trigger .search-icon { margin-right:4px; }
  .hero-copy { top: 24px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-sub { margin-top: 14px; line-height:1.5; }
  .hero-actions { margin-top:17px; }
  .ghost-button { display:none; }
  .primary-button { min-height:44px; }
  .place-card { height: 170px; grid-template-columns: 118px 1fr; gap:10px; padding:7px; border-radius:20px; }
  .place-content { padding:5px 6px 5px 0; }
  .place-title-row h2 { font-size:18px; }
  .place-title-row p { font-size:9px; }
  .place-kicker { font-size:6px; }
  .place-kicker span:nth-child(n+3) { display:none; }
  .place-weather { margin-bottom:6px; padding:6px 8px; gap:6px 8px; }
  .place-weather .weather-temp { font-size:15px; }
  .place-weather .weather-meta { display:none; }
  .place-stats { display:none; }
  .place-actions { gap:8px; }
  .primary-button.compact { min-height:37px; padding:0 11px; font-size:9px; gap:6px; }
  .text-button { display:none; }
  .round-save { width:31px; height:31px; }
  .image-badge { font-size:5px; padding:5px 6px; }
  .globe-hud { display:none; }
  .side-rail { height:60px; bottom:max(8px,env(safe-area-inset-bottom)); }
  .rail-button { width:54px; min-height:48px; border-radius:14px; }
  .rail-button small { font-size:7px; }
  .search-panel-head { height:70px; padding:10px; }
  .search-input-shell { height:48px; }
  .escape-button { width:38px; padding:0; font-size:0; }
  .escape-button::after { content:'×'; font-size:18px; }
  .search-body { height:calc(100% - 70px); }
  .search-main { padding:18px 12px; }
  .section-heading small { display:none; }
  .result-row { grid-template-columns:48px 1fr; }
  .result-meta { display:none; }
  .guide-hero { min-height:270px; padding:20px; }
  .guide-hero-copy h2 { font-size:34px; }
  .guide-sticky { align-items:flex-start; flex-direction:column; padding:10px 12px; }
  .guide-tabs { width:100%; }
  .guide-tabs button { flex:1; padding:0 7px; }
  .guide-tools { width:100%; justify-content:space-between; }
  .guide-content { padding:17px 12px 40px; }
  .species-grid { grid-template-columns:1fr; }
  .species-card { min-height:205px; }
  .story-grid { grid-template-columns:1fr; }
  .species-modal { width:calc(100vw - 16px); height:calc(100vh - 16px); grid-template-columns:1fr; grid-template-rows:minmax(42%, 46%) minmax(0, 1fr); border-radius:20px; }
  .species-body { padding: 22px 18px 40px; }
  .species-body { padding:24px 20px 44px; }
  .species-body h2 { font-size:34px; }
  .species-big-icon { font-size:80px; }
  .fact-grid { grid-template-columns:1fr 1fr; }
  .journal-panel, .about-panel { width:calc(100vw - 18px); max-height:calc(100vh - 18px); border-radius:20px; }
  .saved-grid { grid-template-columns:1fr 1fr; }
  .about-panel { padding:28px 20px; }
  .about-panel h2 { font-size:34px; }
  .about-grid { grid-template-columns:1fr; }
}

@media (max-height: 760px) and (min-width: 941px) {
  .hero-copy { top: 40px; }
  .hero-copy h1 { font-size: 55px; }
  .hero-sub { margin-top:14px; }
  .hero-actions { margin-top:18px; }
  .mission-card { top:28px; }
  .place-card { height:210px; bottom:22px; }
  .place-summary { margin-block:6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
