body {
  background:
    radial-gradient(circle at 12% 8%, rgba(246, 217, 159, 0.16), transparent 22%),
    radial-gradient(circle at 86% 12%, rgba(165, 196, 125, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(24, 24, 18, 0.36) 0%, rgba(24, 23, 18, 0.74) 46%, rgba(20, 19, 15, 0.94) 100%),
    url("/assets/cozy/companion/backgrounds/forest-square.webp") center top / cover no-repeat fixed;
}

/* morning-mist overlay removed — doubled the forest bg and made panels look messy */

#app-root {
  position: relative;
  z-index: 0;
}

.landing-shell {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 20px;
}

.landing-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 233, 200, 0.14);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(33, 30, 24, 0.54), rgba(33, 30, 24, 0.22));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.landing-shell > * {
  position: relative;
  z-index: 1;
}

.top-bar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(52, 45, 31, 0.84), rgba(37, 34, 24, 0.9));
  border-bottom-color: rgba(192, 164, 108, 0.28);
}

.top-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 237, 0.06), rgba(39, 34, 25, 0.66)),
    url("/assets/cozy/companion/banners/header-garden.webp") center / cover no-repeat;
  opacity: 0.72;
}

.top-bar > * {
  position: relative;
  z-index: 1;
}

.brand h1,
.login-card h1,
.hero-name {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.site-nav-slot .site-mode-nav__link,
.site-nav-slot .site-mode-nav__badge,
.tab,
.user-info,
.balances {
  backdrop-filter: blur(10px);
}

.site-nav-slot .site-mode-nav__link {
  background: linear-gradient(180deg, rgba(74, 64, 45, 0.72), rgba(48, 42, 31, 0.68));
  border-color: rgba(189, 160, 104, 0.28);
}

.site-nav-slot .site-mode-nav__link:hover,
.site-nav-slot .site-mode-nav__link.is-active {
  border-color: rgba(220, 194, 132, 0.44);
}

.site-nav-slot .site-mode-nav__link:active {
  transform: scale(0.95);
}

.site-nav-slot .site-mode-nav__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.user-info,
.balances {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(201, 170, 111, 0.2);
  border-radius: 999px;
  background: rgba(46, 39, 28, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 244, 219, 0.08);
}

.panel {
  background:
    linear-gradient(180deg, rgba(65, 56, 39, 0.9), rgba(43, 38, 28, 0.9));
  border-color: rgba(175, 147, 97, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 225, 0.06),
    0 18px 38px rgba(0, 0, 0, 0.16);
}

.panel--secondary {
  background: linear-gradient(180deg, rgba(73, 62, 42, 0.66), rgba(47, 42, 31, 0.56));
}

.tab-content {
  position: relative;
}

.tab-bar {
  background:
    linear-gradient(180deg, rgba(42, 37, 28, 0.9), rgba(32, 28, 22, 0.96));
  border-top-color: rgba(188, 159, 100, 0.26);
}

.tab {
  background: linear-gradient(180deg, rgba(72, 62, 44, 0.74), rgba(49, 43, 31, 0.74));
  border-color: rgba(171, 147, 100, 0.2);
}

.tab.active {
  background: linear-gradient(180deg, rgba(102, 88, 57, 0.92), rgba(67, 58, 40, 0.92));
}

.login-banner {
  object-fit: cover;
  object-position: center;
}

.login-card {
  backdrop-filter: blur(12px);
}

@media (max-width: 700px) {
  .landing-shell::before {
    inset: 8px 0 0;
    border-radius: 24px;
  }

  .user-info,
  .balances {
    flex-wrap: wrap;
  }
}

/* City header and section warmth */
.city-section { position: relative; }
.city-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(231, 192, 111, 0.08), transparent 60%);
  pointer-events: none;
}
.city-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(223, 182, 104, 0.12);
  position: relative;
}
.city-header__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.city-tier-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(223, 182, 104, 0.44);
  background: linear-gradient(180deg, rgba(200, 168, 88, 0.22), rgba(160, 130, 68, 0.14));
  color: var(--text-warm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Donor list grid */
.donor-list {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(162, 133, 84, 0.12);
}
.donor-entry {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  border-left: 3px solid transparent;
}
.donor-entry--top {
  background: rgba(231, 192, 111, 0.1);
  border: 1px solid rgba(223, 182, 104, 0.24);
  border-left: 3px solid var(--text-warm);
}
.donor-entry__rank { text-align: center; font-size: 16px; }
.donor-entry__name { color: var(--text); font-weight: 600; }
.donor-entry__score { color: var(--muted); font-variant-numeric: tabular-nums; }

/* City donation progress bars */
.city-progress { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.city-progress__bar {
  flex: 1; height: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.city-progress__bar span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent, #a4cf7f), var(--warn, #dfb668));
  transition: width 0.6s ease;
  box-shadow: 0 0 8px rgba(164, 207, 127, 0.25);
}
.city-progress__text { font-size: 12px; color: var(--muted, #d0c1a6); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }

