:root {
  color-scheme: light;
  --color-base-background: #fff;
  --color-gray-transparent-900: rgba(0, 0, 0, .95);
  --color-gray-transparent-800: rgba(0, 0, 0, .7);
  --color-gray-transparent-700: rgba(0, 0, 0, .54);
  --color-gray-transparent-600: rgba(0, 0, 0, .42);
  --color-gray-transparent-100: rgba(0, 0, 0, .1);
  --color-gray-transparent-50: rgba(0, 0, 0, .04);
  --color-gray-transparent-10: rgba(0, 0, 0, .01);
  --color-gray-solid-900: #0d0d0d;
  --color-gray-solid-800: #4d4d4d;
  --color-gray-solid-700: #757575;
  --color-gray-solid-600: #949494;
  --color-gray-solid-100: #e5e5e5;
  --color-gray-solid-50: #f5f5f5;
  --color-gray-solid-10: #fcfcfc;
  --color-gray-solid-0: #fff;
  --color-purple-500: #381fd1;
  --color-purple-450: #6452e5;
  --color-purple-400: #7e6de9;
  --color-purple-300: #a599f0;
  --color-purple-200: #ccc5f6;
  --color-purple-100: #d9d4fa;
  --color-purple-50: #f3f2fc;
  --color-blue-500: #10284b;
  --color-blue-300: #043d62;
  --color-blue-100: #e7f5fe;
  --color-red-500: #ba1c1c;
  --color-red-alt-500: #ba1c1c;
  --color-red-100: #fbc1c1;
  --color-red-50: #fde0e0;
  --color-yellow-500: #fedb63;
  --color-yellow-alt-500: #fedb63;
  --color-yellow-100: #fcf0b7;
  --color-yellow-50: #fcf0b7;
  --color-green-500: #28691b;
  --color-green-alt-500: #28691b;
  --color-green-100: #dbf4d7;
  --color-green-50: #edf9eb;
  --color-bone-100: #f6f6eb;
  --color-bone-200: #ecece1;
  --color-brand-purple: var(--color-purple-500);
  --color-brand-teal: #9ad6cd;
  --color-brand-yellow: var(--color-yellow-500);
  --color-brand-red: #fc6f6b;
  --color-brand-blue: var(--color-blue-500);
  --color-brand-bone: var(--color-bone-100);
  --color-gray-transparent-primary: var(--color-gray-transparent-900);
  --color-gray-transparent-secondary: var(--color-gray-transparent-800);
  --color-gray-transparent-tertiary: var(--color-gray-transparent-700);
  --color-gray-transparent-border: var(--color-gray-transparent-100);
  --color-gray-transparent-background-2: var(--color-gray-transparent-50);
  --color-gray-transparent-background-1: var(--color-gray-transparent-10);
  --color-gray-solid-primary: var(--color-gray-solid-900);
  --color-gray-solid-secondary: var(--color-gray-solid-800);
  --color-gray-solid-tertiary: var(--color-gray-solid-700);
  --color-gray-solid-border: var(--color-gray-solid-100);
  --color-gray-solid-background-2: var(--color-gray-solid-50);
  --color-gray-solid-background-1: var(--color-gray-solid-10);
  --color-gray-solid-background-0: var(--color-gray-solid-0);
  --color-purple-background: var(--color-purple-50);
  --color-bone-background-1: var(--color-bone-100);
  --color-bone-background-2: var(--color-bone-200);
  --bg: #f7f8fa;
  --panel: rgba(255, 255, 255, .88);
  --panel-solid: #ffffff;
  --ink: #111318;
  --muted: #626975;
  --soft: #f1f4f7;
  --line: #1f2630;
  --hairline: rgba(17, 24, 39, .14);
  --blue: #0071e3;
  --blue-soft: #eef6ff;
  --green: #1f7a45;
  --green-soft: #e6f6ec;
  --shadow: 0 24px 70px rgba(20, 28, 38, .08);
  --shadow-strong: 0 34px 100px rgba(20, 28, 38, .14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 31, 209, .10), transparent 26%),
    radial-gradient(circle at 76% 14%, rgba(154, 214, 205, .32), transparent 24%),
    radial-gradient(circle at 54% 88%, rgba(254, 219, 99, .22), transparent 30%),
    linear-gradient(135deg, var(--color-bone-background-1) 0%, var(--color-purple-background) 54%, var(--color-blue-100) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -42%;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(from 120deg at 50% 50%,
      rgba(56, 31, 209, .16),
      rgba(255, 255, 255, 0) 18%,
      rgba(154, 214, 205, .22) 34%,
      rgba(255, 255, 255, 0) 48%,
      rgba(254, 219, 99, .18) 64%,
      rgba(255, 255, 255, 0) 82%,
      rgba(56, 31, 209, .16)),
    linear-gradient(115deg,
      rgba(255, 255, 255, .16),
      rgba(204, 197, 246, .16) 34%,
      rgba(219, 244, 215, .16) 62%,
      rgba(255, 255, 255, .22));
  filter: blur(36px) saturate(1.08);
  animation: ambientField 36s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(17, 24, 39, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, .014) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, .08) 72%, transparent);
  opacity: .52;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
  padding: 22px 36px 24px;
}

.app.is-locked {
  filter: blur(10px);
  opacity: .16;
  pointer-events: none;
  user-select: none;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(250, 250, 250, .76);
  backdrop-filter: blur(18px);
}

.auth-screen[hidden] {
  display: none;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(320px, 420px);
  gap: 42px;
  width: min(880px, 100%);
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: 30px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .10);
}

.auth-brand {
  grid-column: 1 / -1;
}

.auth-copy h1 {
  max-width: 12ch;
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: .95;
}

.auth-copy p:not(.eyebrow),
.auth-note {
  color: var(--muted);
  line-height: 1.5;
}

.auth-form {
  display: grid;
  align-self: end;
  gap: 14px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.auth-tabs button,
.auth-submit {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
}

.auth-tabs button.is-active,
.auth-submit {
  background: var(--ink);
  color: #ffffff;
}

.auth-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.oauth-button,
.guest-button {
  min-height: 44px;
  border: 1px solid rgba(17, 24, 39, .14);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 760;
  box-shadow: 0 10px 24px rgba(20, 28, 38, .045);
}

.oauth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.oauth-button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, .16);
  font-weight: 900;
}

.guest-button {
  background: var(--green-soft);
  color: #123d25;
  border-color: rgba(31, 122, 69, .26);
}

.oauth-button:hover,
.guest-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(20, 28, 38, .08);
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-form input {
  height: 48px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 650;
  text-transform: none;
}

.auth-note {
  min-height: 42px;
  margin: 0;
  font-size: .9rem;
}

.ambient-dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4b5563;
  opacity: .16;
  animation: drift var(--duration, 16s) ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(var(--dx, 20px), var(--dy, -20px), 0);
  }
}

@keyframes ambientField {
  from {
    transform: translate3d(-1.5%, -1%, 0) rotate(-4deg) scale(1);
  }

  to {
    transform: translate3d(1.5%, 1%, 0) rotate(4deg) scale(1.04);
  }
}

.topbar {
  display: grid;
  grid-template-columns: 270px 1fr;
  align-items: center;
  gap: 32px;
  min-height: 58px;
}

.brand {
  justify-self: start;
  color: inherit;
  text-decoration: none;
}

.brand strong {
  display: block;
  letter-spacing: .34em;
  font-size: 1rem;
  font-weight: 720;
}

.brand span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.25;
}

.top-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.top-meta > span {
  color: var(--muted);
  font-size: .95rem;
}

.search {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(20, 28, 38, .07);
  backdrop-filter: blur(18px);
}

.search:focus-within {
  border-color: rgba(0, 113, 227, .42);
  box-shadow: 0 22px 64px rgba(0, 113, 227, .10);
}

.search label {
  color: var(--muted);
  font-size: .9rem;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.search input::placeholder {
  color: #9a9a9a;
}

.profile-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 7px 13px 7px 8px;
  overflow: hidden;
  border: 2px solid rgba(17, 24, 39, .82);
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  color: var(--ink);
  font-weight: 850;
  box-shadow:
    0 4px 0 rgba(17, 24, 39, .82),
    0 16px 34px rgba(20, 28, 38, .10);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.profile-button::before {
  content: none;
}

.profile-button::after {
  content: "";
  position: absolute;
  inset: 7px auto auto 7px;
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .72);
}

.profile-button:hover,
.profile-button[aria-expanded="true"] {
  border-color: rgba(17, 24, 39, .92);
  box-shadow:
    0 2px 0 rgba(17, 24, 39, .82),
    0 14px 30px rgba(20, 28, 38, .12);
  transform: translateY(2px);
}

.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-style: solid;
  background:
    linear-gradient(135deg, #75c56e 0 50%, #4a9d50 50%),
    #68b965;
  box-shadow:
    inset 0 8.333% 0 rgba(255, 255, 255, .32),
    inset 0 -11.111% 0 rgba(26, 91, 48, .18);
}

.profile-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 2px solid rgba(17, 24, 39, .82);
  border-radius: 10px;
}

.profile-avatar span,
.profile-avatar::before,
.profile-avatar::after,
.rank-orbit::before,
.rank-orbit::after,
.rank-orbit span {
  content: "";
  position: absolute;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .26);
}

.profile-avatar::before,
.profile-avatar::after,
.rank-orbit::before,
.rank-orbit::after {
  content: none;
}

.profile-avatar::before {
  left: 25%;
  top: 27.778%;
  width: 13.889%;
  height: 13.889%;
  border-radius: 2px;
}

.profile-avatar::after {
  right: 25%;
  top: 27.778%;
  width: 13.889%;
  height: 13.889%;
  border-radius: 2px;
}

.profile-avatar span {
  position: static;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-avatar .level-emoji {
  display: grid;
  place-items: center;
  font-size: 1.16rem;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(17, 24, 39, .26));
}

.profile-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  min-width: 64px;
  text-align: left;
}

.profile-kicker {
  color: #4f5f4f;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.profile-copy strong {
  font-size: 1rem;
  line-height: 1;
}

.level-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 28px;
  padding: 5px 8px;
  border: 2px solid rgba(17, 24, 39, .78);
  border-radius: 10px;
  background:
    linear-gradient(180deg, #fff3a6, #ffd84d);
  color: #2f2600;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .02em;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .50),
    0 2px 0 rgba(17, 24, 39, .78);
}

.level-chip span {
  color: #111318;
  font-size: 1.08rem;
  line-height: .9;
}

.profile-button .profile-avatar,
.profile-dropdown .profile-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  border: 2px solid rgba(17, 24, 39, .82);
  border-radius: 10px;
  background:
    linear-gradient(135deg, #75c56e 0 50%, #4a9d50 50%),
    #68b965;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, .32),
    inset 0 -4px 0 rgba(26, 91, 48, .18);
}

.profile-button .level-chip,
.profile-dropdown .level-chip {
  width: auto;
  min-width: 62px;
  max-width: max-content;
  height: 30px;
  min-height: 30px;
  padding: 5px 8px;
  border: 2px solid rgba(17, 24, 39, .78);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff3a6, #ffd84d);
  color: #2f2600;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .02em;
  line-height: 1;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .50),
    0 2px 0 rgba(17, 24, 39, .78);
}

.profile-button .level-chip span,
.profile-dropdown .level-chip span {
  color: #111318;
  font-size: 1.08rem;
  line-height: .9;
}

.chevron {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-right: 1.7px solid rgba(17, 24, 39, .72);
  border-bottom: 1.7px solid rgba(17, 24, 39, .72);
  transform: rotate(45deg) translateY(-2px);
}

.highlight-button,
.logout-button,
.panel-close {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(17, 24, 39, .18);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 720;
  box-shadow: 0 10px 30px rgba(20, 28, 38, .05);
  backdrop-filter: blur(14px);
}

.highlight-button:hover,
.logout-button:hover,
.panel-close:hover {
  background: var(--ink);
  color: #ffffff;
}

.profile-menu {
  position: relative;
  flex: 0 0 auto;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 9;
  width: 390px;
  padding: 18px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .24) transparent;
  border: 2px solid #05070c;
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 0%, rgba(126, 109, 233, .34), transparent 32%),
    radial-gradient(circle at 92% 16%, rgba(154, 214, 205, .24), transparent 28%),
    radial-gradient(circle at 42% 96%, rgba(254, 219, 99, .14), transparent 30%),
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px),
    linear-gradient(135deg, #171428 0%, #081a24 46%, #05070d 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 18px 18px, 18px 18px, auto;
  color: #ffffff;
  box-shadow:
    0 5px 0 #05070c,
    0 34px 100px rgba(4, 8, 16, .38);
  backdrop-filter: blur(16px);
  transform: translateY(-8px) scale(.98);
  opacity: 0;
  transition: transform .24s cubic-bezier(.16, 1, .3, 1), opacity .2s ease;
}

.profile-dropdown::-webkit-scrollbar {
  width: 8px;
}

.profile-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.profile-dropdown::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .24);
  background-clip: padding-box;
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.profile-panel {
  animation: profilePanelIn .24s cubic-bezier(.16, 1, .3, 1) both;
}

.profile-panel[hidden] {
  display: none;
}

@keyframes profilePanelIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.rank-hero {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
}

.rank-orbit::before,
.rank-orbit::after {
  animation: none;
}

.rank-orbit::before {
  left: 25%;
  top: 27.778%;
  width: 13.889%;
  height: 13.889%;
  border-radius: 2px;
}

.rank-orbit::after {
  right: 25%;
  top: 27.778%;
  width: 13.889%;
  height: 13.889%;
  border-radius: 2px;
}

.profile-dropdown h2 {
  margin-bottom: 6px;
  font-size: 1.75rem;
  line-height: 1;
}

.profile-dropdown p:not(.eyebrow) {
  color: rgba(255, 255, 255, .70);
  line-height: 1.42;
}

.profile-dropdown .eyebrow {
  color: rgba(255, 255, 255, .52);
}

.rank-progress {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.rank-progress-top,
.rank-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rank-progress-top {
  color: rgba(255, 255, 255, .62);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rank-track {
  height: 12px;
  margin-top: 8px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
}

.rank-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #37a86b);
  transition: width .45s cubic-bezier(.16, 1, .3, 1);
}

.rank-metrics {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.rank-metrics div {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
}

.rank-metrics span {
  display: block;
  color: rgba(255, 255, 255, .58);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rank-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 1.22rem;
}

.impact-inventory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.impact-inventory div {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 66px;
  padding: 9px 6px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
  color: #ffffff;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.impact-inventory div::after {
  content: none;
}

.impact-inventory div > strong {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .72);
  font-size: .68rem;
  line-height: 18px;
  text-align: center;
}

.impact-inventory div.has-count > strong {
  background: #ffd84d;
  color: #1f2600;
  box-shadow: 0 0 0 4px rgba(255, 216, 77, .16);
}

.impact-inventory div:hover {
  border-color: rgba(255, 216, 77, .48);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.impact-inventory [data-lucide] {
  width: 21px;
  height: 21px;
  stroke-width: 2.15;
}

.rank-quests {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.rank-quests p {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  color: rgba(255, 255, 255, .70);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.35;
}

.rank-quests [data-lucide] {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 1px;
  color: rgba(255, 216, 77, .88);
  stroke-width: 2.2;
}

.level-ladder {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.level-ladder > span:not(.level-chip) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 2px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .02em;
  text-align: center;
}

.level-ladder .level-chip {
  justify-self: stretch;
  align-self: center;
}

.level-ladder .is-locked {
  border-color: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .05));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08);
}

.profile-nav-button {
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 12px 12px 11px;
  border: 1px solid rgba(255, 216, 77, .38);
  border-radius: 14px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 216, 77, .22), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07));
  color: #ffffff;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 12px 28px rgba(0, 0, 0, .16);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.profile-nav-button:hover {
  border-color: rgba(255, 216, 77, .42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .09));
  transform: translateY(-1px);
}

.profile-nav-button span {
  display: grid;
  gap: 3px;
}

.profile-nav-button strong {
  font-size: .88rem;
  font-weight: 900;
}

.profile-nav-button small {
  color: rgba(255, 255, 255, .62);
  font-size: .75rem;
}

.profile-nav-button [data-lucide] {
  width: 20px;
  height: 20px;
  color: rgba(255, 216, 77, .9);
}

.profile-nav-button > [data-lucide]:first-child {
  display: grid;
  place-self: center;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 9px;
  background: rgba(255, 216, 77, .16);
  color: #ffd84d;
}

.profile-nav-button .profile-nav-arrow {
  justify-self: end;
  width: 18px;
  height: 18px;
}

.history-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-topbar .eyebrow {
  margin: 0;
}

.history-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px 0 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #ffffff;
  font-size: .78rem;
  font-weight: 850;
}

.history-back:hover {
  background: rgba(255, 255, 255, .16);
}

.history-back [data-lucide] {
  width: 15px;
  height: 15px;
}

.history-heading {
  margin-top: 14px;
}

.history-heading h2 {
  margin-bottom: 8px;
  font-size: 1.65rem;
}

.history-heading p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: .9rem;
  line-height: 1.45;
}

.history-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.history-summary div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
}

.history-summary span {
  display: block;
  color: rgba(255, 255, 255, .58);
  font-size: .67rem;
  font-weight: 850;
  text-transform: uppercase;
}

.history-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 1.12rem;
}

.history-search {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .09);
}

.history-search [data-lucide] {
  width: 17px;
  height: 17px;
  color: rgba(255, 255, 255, .54);
}

.history-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: .84rem;
  font-weight: 650;
}

.history-search input::placeholder {
  color: rgba(255, 255, 255, .44);
}

.donation-history-list {
  display: grid;
  gap: 7px;
  max-height: min(390px, calc(100vh - 455px));
  min-height: 92px;
  margin-top: 12px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .24) transparent;
}

.donation-history-list::-webkit-scrollbar {
  width: 6px;
}

.donation-history-list::-webkit-scrollbar-track {
  background: transparent;
}

.donation-history-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}

.donation-history-empty {
  margin: 0;
  padding: 16px 14px;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: rgba(255, 255, 255, .62);
  font-size: .78rem;
}

.donation-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .06));
  color: #ffffff;
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.donation-history-item:hover {
  border-color: rgba(255, 216, 77, .44);
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08));
}

.donation-history-main,
.donation-history-meta {
  display: grid;
  gap: 2px;
}

.donation-history-main {
  min-width: 0;
}

.donation-history-main strong,
.donation-history-meta strong {
  font-size: .86rem;
  line-height: 1.1;
}

.donation-history-main small,
.donation-history-meta small {
  color: rgba(255, 255, 255, .62);
  font-size: .72rem;
}

.donation-history-meta {
  flex: 0 0 auto;
  text-align: right;
}

.logout-button {
  width: 100%;
  margin-top: 12px;
}

@keyframes rankPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: .58;
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(720px, 1fr) minmax(380px, 430px);
  gap: 52px;
  align-items: center;
  height: calc(100vh - 104px);
  min-height: 0;
  padding-top: 0;
}

.intro-panel {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 280px;
  padding-top: 0;
  padding-bottom: 72px;
  transform: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 14px;
  font-size: clamp(2.45rem, 2.95vw, 3.65rem);
  line-height: .98;
  letter-spacing: 0;
}

.intro-panel > p:not(.eyebrow),
.location-card p,
.modal-card p,
.article-list a {
  color: var(--muted);
  line-height: 1.55;
}

.intro-panel > p:not(.eyebrow) {
  font-size: .98rem;
  line-height: 1.6;
}

.trust-notes {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.trust-notes span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(17, 24, 39, .10);
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(20, 28, 38, .035);
}

.site-links {
  position: fixed;
  left: 22px;
  bottom: 14px;
  z-index: 12;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  max-width: 430px;
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(17, 24, 39, .08);
  box-shadow: 0 10px 30px rgba(20, 28, 38, .04);
  backdrop-filter: blur(14px);
}

.site-links a {
  text-decoration: none;
}

.site-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-links span {
  flex-basis: auto;
}

.profile-stats,
.mission-facts {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.mission-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 0;
  padding: 5px;
  border: 1px solid rgba(17, 24, 39, .10);
  border-radius: 18px;
  background: rgba(246, 248, 251, .92);
}

.mission-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.mission-tabs button.is-active {
  border-color: rgba(17, 24, 39, .08);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 26px rgba(20, 28, 38, .08);
}

.mission-tabs button:hover {
  border-color: rgba(0, 113, 227, .18);
  color: var(--ink);
  transform: translateY(-1px);
}

.mission-tabs button.is-active:hover {
  color: var(--ink);
}

.mission-tabs [data-lucide] {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke-width: 2.2;
}

.profile-stats {
  grid-template-columns: 1fr;
}

.profile-stats div,
.mission-facts div {
  padding: 7px 0;
  border-top: 1px solid var(--hairline);
}

.level-hint {
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  line-height: 1.55;
}

dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.globe-wrap {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 12px;
  min-width: 0;
  justify-self: center;
  width: min(50vw, 680px);
  margin-left: 300px;
  transform: translateY(-12px);
}

.globe-wrap .search {
  width: min(620px, 100%);
}

#earthCanvas {
  width: min(40vw, 600px);
  max-width: 100%;
  aspect-ratio: 1;
  touch-action: none;
}

.globe-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

dt {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: .62rem;
  font-weight: 900;
  line-height: 1;
  animation: none;
}

.well-icon {
  border-radius: 6px;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-3px) rotate(6deg);
  }
}

.level-up-burst {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(250, 250, 250, .2);
  opacity: 0;
  animation: burstBackdrop 1.65s ease forwards;
}

.level-up-card {
  min-width: 280px;
  padding: 26px;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow-strong);
  text-align: center;
  animation: burstCard 1.4s cubic-bezier(.16, 1, .3, 1) forwards;
}

.level-up-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2.2rem;
}

@keyframes burstBackdrop {
  0% {
    opacity: 0;
  }

  20%, 80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes burstCard {
  0% {
    transform: translateY(24px) scale(.82);
    opacity: 0;
  }

  24% {
    transform: translateY(0) scale(1.04);
    opacity: 1;
  }

  72% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-12px) scale(.96);
    opacity: 0;
  }
}

.globe-controls button,
.paypal-button,
.read-button,
.project-card {
  border: 1px solid rgba(17, 24, 39, .16);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.globe-controls button {
  min-height: 38px;
  padding: 0 16px;
}

.globe-controls button:hover,
.read-button:hover,
.project-card:hover,
.project-card.is-active {
  border-color: rgba(0, 113, 227, .30);
  background: #ffffff;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(20, 28, 38, .07);
}

.decision-panel {
  --panel-y: clamp(0px, calc((100vh - 720px) * .22), 48px);
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
  display: grid;
  gap: 12px;
  align-self: start;
  position: sticky;
  top: 0;
  max-height: calc(100vh - 82px - var(--panel-y));
  transform: translateY(var(--panel-y));
}

.location-card,
.modal-card {
  padding: 22px 24px;
  border: 1px solid rgba(17, 24, 39, .10);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.decision-panel .location-card {
  max-height: calc(100vh - 82px - var(--panel-y));
  overflow: visible;
}

.location-card[hidden] {
  display: none;
}

.highlights-panel {
  animation: panelIn .26s cubic-bezier(.16, 1, .3, 1);
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-title h2 {
  margin: 0;
}

@keyframes panelIn {
  from {
    transform: translateY(12px) scale(.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.location-card h2,
.modal-card h2 {
  margin-bottom: 7px;
  font-size: 1.5rem;
  line-height: 1.08;
  letter-spacing: -.01em;
}

#missionLocation {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 700;
}

#missionCopy {
  line-height: 1.45;
}

.mission-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 10px 0 12px;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 16px;
}

.donation-option {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.donation-option.is-active {
  border-color: var(--blue);
  background: linear-gradient(180deg, #f7fbff, #eef6ff);
  color: #0b2341;
  box-shadow:
    inset 0 0 0 1px rgba(0, 113, 227, .72),
    0 14px 34px rgba(0, 113, 227, .10);
}

.donation-option:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.donation-option strong {
  display: grid;
  gap: 2px;
  margin-bottom: 3px;
  line-height: 1.15;
}

.donation-option em {
  font-style: normal;
  font-size: .92rem;
}

.donation-option span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.18;
}

.donation-option.is-active span {
  color: #385b82;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 8px;
}

.quantity-row label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stepper {
  display: grid;
  grid-template-columns: 34px 54px 34px;
  border: 1px solid rgba(17, 24, 39, .18);
  border-radius: 999px;
  overflow: hidden;
}

.stepper button,
.stepper input {
  height: 34px;
  border: 0;
  background: var(--panel);
  color: var(--ink);
  text-align: center;
  font-weight: 750;
}

.stepper input {
  border-inline: 1px solid var(--hairline);
}

.paypal-button {
  width: 100%;
  min-height: 46px;
  border-color: rgba(31, 122, 69, .26);
  background: linear-gradient(180deg, #eaf8ef, #d9f1e2);
  color: #103d22;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(35, 124, 70, .13);
}

.paypal-button:hover {
  border-color: #2f8b52;
  background: #c9ecd3;
  color: #0b351c;
}

.read-button {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border-color: rgba(17, 24, 39, .86);
  background: linear-gradient(180deg, #151922, #0f1116);
  color: #ffffff;
  font-weight: 700;
}

.read-button:hover {
  background: #ffffff;
  color: var(--ink);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(250, 250, 250, .72);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .28s ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop.is-open {
  opacity: 1;
}

.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, .28) transparent;
  transform: translateY(18px) scale(.96);
  opacity: 0;
  transition: transform .34s cubic-bezier(.16, 1, .3, 1), opacity .24s ease;
}

.modal-card::-webkit-scrollbar {
  width: 10px;
}

.modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
  min-height: 72px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(0, 0, 0, .24);
  background-clip: padding-box;
}

.modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, .36);
  background-clip: padding-box;
}

.modal-backdrop.is-open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.proof-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.proof-list div {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}

.proof-card p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.info-modal-card {
  width: min(680px, 100%);
}

.info-modal-body {
  margin-top: 16px;
}

.info-modal-body p {
  color: var(--muted);
  line-height: 1.55;
}

.info-modal-body dl {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.info-modal-body dl div {
  padding: 13px 0;
  border-top: 1px solid var(--hairline);
}

.info-modal-body dd {
  color: var(--muted);
  line-height: 1.45;
}

.impact-signal {
  position: fixed;
  right: 36px;
  left: clamp(520px, 45vw, 720px);
  bottom: 8px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  width: auto;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .08);
  backdrop-filter: blur(14px);
  transform: translateY(0);
  transition: opacity .32s ease, transform .32s cubic-bezier(.16, 1, .3, 1);
}

.impact-signal.is-changing {
  opacity: 0;
  transform: translateY(10px);
}

.impact-signal > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  min-width: 0;
}

.impact-signal .eyebrow {
  display: none;
}

.impact-signal h2 {
  margin: 0;
  font-size: .84rem;
  line-height: 1.1;
  white-space: nowrap;
}

.impact-signal p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
  line-height: 1.1;
}

.signal-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.signal-actions button,
.impact-signal a {
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 750;
  text-decoration: none;
}

.signal-actions button {
  max-width: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  transition: max-width .24s cubic-bezier(.16, 1, .3, 1), opacity .18s ease;
}

.impact-signal:hover .signal-actions button,
.signal-actions:focus-within button {
  max-width: 72px;
  opacity: 1;
}

.impact-signal .signal-dots {
  grid-column: 1 / -1;
  display: none !important;
  gap: 6px;
}

.signal-modal {
  background: rgba(250, 250, 250, .62);
  backdrop-filter: blur(18px) saturate(1.08);
}

.signal-modal-card {
  width: min(1040px, 100%);
  padding: 30px 34px;
  border-radius: 30px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, .16);
}

.signal-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.signal-item {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 22px;
  padding: 15px 0;
  border-top: 1px solid var(--hairline);
  opacity: 0;
  transform: translateY(8px);
  animation: signalItemIn .36s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.signal-item time {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-item h3 {
  margin: 0 0 4px;
  font-size: 1.06rem;
}

.signal-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.38;
}

.signal-item a {
  display: inline-block;
  margin-top: 6px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}

@keyframes signalItemIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.signal-dots span {
  width: 6px;
  height: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.signal-dots .is-active {
  background: var(--line);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
}

.article-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.article-list a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
}

.article-list strong {
  display: block;
  color: var(--ink);
  font-size: .98rem;
}

.article-list span {
  display: block;
  margin-top: 4px;
  font-size: .9rem;
}

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.project-card {
  min-height: 70px;
  padding: 12px 14px;
  text-align: left;
  border-radius: 20px;
}

.project-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.project-card small {
  color: inherit;
  opacity: .68;
}

@media (max-width: 1240px) {
  .topbar,
  .hero {
    grid-template-columns: 1fr;
  }

  .profile-button {
    justify-self: start;
  }

  .brand {
    justify-self: start;
  }

  .search {
    justify-self: stretch;
    width: 100%;
  }

  .top-meta {
    justify-content: flex-start;
  }

  .intro-panel,
  .decision-panel {
    max-width: 760px;
    justify-self: center;
  }

  .intro-panel,
  .globe-wrap,
  .decision-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .globe-wrap {
    justify-self: center;
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  #earthCanvas {
    width: min(92vw, 760px);
  }

  .impact-signal {
    left: 24px;
    right: 24px;
  }
}

@media (max-width: 720px) {
  .app {
    padding: 18px;
  }

  .auth-screen {
    padding: 18px;
  }

  .auth-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .search {
    grid-template-columns: 1fr;
    gap: 0;
    height: auto;
    padding: 12px 16px;
    border-radius: 18px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .location-card,
  .modal-card {
    padding: 18px;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .globe-controls {
    justify-content: center;
    margin-top: -16px;
  }

  .impact-signal {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .signal-modal-card {
    padding: 22px;
  }

  .signal-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
