/* Scoped to the progressive ecosystem layer; legacy Clubhouse remains independent. */
#ecosystem {
  --eco-ink: #253b32;
  --eco-surface: #fffaf0;
  --eco-leaf: #416d48;
  color: var(--eco-ink);
}
#ecosystem .eco-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}
#ecosystem .eco-nav a {
  padding: 12px 16px;
  border-radius: 24px;
  background: #e3ecd9;
  color: #25472e;
  font-weight: 650;
  text-decoration: none;
}
#ecosystem .eco-scene {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 20px;
  background: #293c44;
}
#ecosystem .eco-scene img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
#ecosystem .eco-scene figcaption {
  background: #253b32;
  color: #fffaf0;
  padding: 14px 20px;
}
#ecosystem .eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
}
#ecosystem .eco-item {
  border: 1px solid #b6c5aa;
  border-radius: 16px;
  padding: 18px;
  background: var(--eco-surface);
}
#ecosystem .eco-item h3 {
  margin: 0 0 8px;
}
#ecosystem .eco-item p {
  font-size: 15px;
}
#ecosystem .eco-item[data-earned="true"] {
  border-color: #8b6e21;
  background: #fff3cd;
}
#ecosystem .eco-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #426045;
}
#ecosystem .eco-meter {
  height: 12px;
  width: 100%;
  accent-color: #60338d;
}
#ecosystem .eco-message {
  padding: 12px 16px;
  border-left: 4px solid #60338d;
  background: #f5edf9;
}
#ecosystem fieldset {
  border: 1px solid #c4cdbd;
  border-radius: 14px;
  margin: 16px 0;
  padding: 16px;
}
#ecosystem legend {
  font-weight: 700;
}
#ecosystem button,
#ecosystem .button {
  min-height: 44px;
}
#ecosystem .eco-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#ecosystem small {
  color: #546353;
}
#ecosystem :focus-visible {
  outline: 3px solid #683d86;
  outline-offset: 3px;
}
#ecosystem .eco-readonly {
  font-family: inherit;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  #ecosystem .eco-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  #ecosystem .eco-nav a {
    font-size: 14px;
    padding: 10px;
  }
  #ecosystem figure {
    margin: 0 0 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #ecosystem * {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}
#ecosystem .eco-chapter-art {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}
#ecosystem .eco-cosmetic {
  object-fit: contain;
  float: right;
  margin: 0 0 10px 14px;
}
#passport .portrait[data-keepsake]:not([data-keepsake=""]) {
  border: 5px double #a87425;
  outline: 3px solid #f3dfa4;
  outline-offset: 4px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff7df, #e1ebce);
}
#passport .portrait[data-keepsake="meadow-after-rain-keepsake"] {
  border-color: #3c8187;
  outline-color: #a8d7dc;
  background: linear-gradient(145deg, #effcfa, #d6eaf0);
}
#passport .eco-equipped {
  font-weight: 700;
  color: #674420;
  align-self: center;
}
.eco-garden-preview {
  width: min(80vw, 900px);
  height: min(70vh, 650px);
  border: 0;
  display: block;
  margin-top: 12px;
  border-radius: 16px;
}
#ecosystem .eco-scene img {
  height: auto;
}
