.tab-bar {
  z-index: 80 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-shell.is-ecosystem-view .wallet-gate:not(.directs-card) {
  display: none !important;
}

.page-shell > main.content-grid[hidden],
.page-shell > main.ecosystem-grid[hidden] {
  display: none !important;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 10px;
  overflow: hidden;
  padding-bottom: calc(168px + env(safe-area-inset-bottom, 0px));
}

.ecosystem-stage,
.ecosystem-band,
.ecosystem-road,
.ecosystem-launch-panel {
  min-width: 0;
}

.ecosystem-kicker {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 247, 234, .68);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ecosystem-kicker.dark {
  color: var(--teal);
}

.ecosystem-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 252px;
  border: 1px solid rgba(30, 27, 24, .14);
  border-radius: 28px;
  padding: 22px;
  color: #fff7ea;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 247, 234, .22), transparent 22%),
    linear-gradient(135deg, rgba(18, 24, 25, .98), rgba(12, 88, 82, .96) 52%, rgba(218, 167, 83, .82)),
    var(--paper);
  box-shadow: 0 30px 86px rgba(39, 41, 25, .24);
}

.ecosystem-hero-panel:after {
  content: "";
  position: absolute;
  right: -22%;
  bottom: -40%;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 247, 234, .18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 247, 234, .2), transparent 44%),
    radial-gradient(circle at 62% 42%, rgba(255, 255, 255, .16), transparent 30%);
  pointer-events: none;
}

.ecosystem-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 208px;
  max-width: 720px;
  flex-direction: column;
  justify-content: space-between;
}

.ecosystem-hero-status {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 247, 234, .2);
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 247, 234, .84);
  backdrop-filter: blur(14px);
}

.ecosystem-hero-status span {
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.ecosystem-hero-status strong {
  color: #fff7ea;
  font-size: .72rem;
}

.ecosystem-hero-panel h2 {
  margin: 0;
  max-width: 6em;
  font-size: clamp(2.35rem, 10vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.ecosystem-hero-panel p {
  margin: 10px 0 0;
  max-width: 31em;
  color: rgba(255, 247, 234, .72);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.4;
}

.ecosystem-orbit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: min(100%, 560px);
  margin-top: 18px;
}

.ecosystem-orbit span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 247, 234, .2);
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 247, 234, .86);
  backdrop-filter: blur(12px);
}

.ecosystem-orbit strong {
  color: #fff7ea;
  font-size: .9rem;
  font-weight: 900;
}

.ecosystem-orbit small {
  color: rgba(255, 247, 234, .62);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ecosystem-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.ecosystem-stats-row div {
  min-width: 0;
  border: 1px solid rgba(30, 27, 24, .1);
  border-radius: 18px;
  padding: 12px 9px;
  background: rgba(255, 251, 243, .88);
  box-shadow: 0 18px 48px rgba(62, 40, 16, .1);
}

.ecosystem-stats-row span,
.ecosystem-hint,
.flywheel-grid p,
.trust-list p,
.global-grid p,
.game-tile p,
.road-track span,
.launch-copy p,
.terminal-step p {
  color: var(--muted);
}

.ecosystem-stats-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 800;
}

.ecosystem-stats-row strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .98rem;
}

.ecosystem-launch-panel,
.ecosystem-band,
.ecosystem-road {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.ecosystem-launch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  color: #fff7ea;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 247, 234, .18), transparent 24%),
    linear-gradient(135deg, rgba(30, 27, 24, .98), rgba(20, 87, 80, .9) 58%, rgba(217, 139, 43, .72)),
    var(--paper);
}

.launch-copy {
  align-self: center;
  padding: 4px 2px;
}

.launch-copy h3 {
  margin: 0;
  color: #fff7ea;
  font-size: clamp(2.3rem, 10vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.launch-copy p {
  margin: 10px 0 0;
  line-height: 1.56;
}

.launch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.launch-tags span {
  border: 1px solid rgba(255, 247, 234, .18);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 247, 234, .86);
  font-size: .72rem;
  font-weight: 900;
}

.launch-terminal {
  border: 1px solid rgba(255, 247, 234, .16);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
}

.launch-terminal-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.launch-terminal-compact div {
  border: 1px solid rgba(255, 247, 234, .16);
  border-radius: 14px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, .08);
}

.launch-terminal-compact span {
  color: rgba(255, 247, 234, .56);
  font-size: .68rem;
  font-weight: 900;
}

.launch-terminal-compact strong {
  display: block;
  margin-top: 7px;
  color: #fff7ea;
  font-size: 1rem;
}

.terminal-head,
.terminal-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.terminal-head strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.terminal-head span,
.ecosystem-hint {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(217, 139, 43, .14);
  color: var(--amber);
  font-size: .72rem;
  font-weight: 900;
}

.terminal-step {
  align-items: center;
  border: 1px solid rgba(30, 27, 24, .08);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, .58);
}

.terminal-step + .terminal-step {
  margin-top: 9px;
}

.terminal-step > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: rgba(30, 27, 24, .08);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 900;
}

.terminal-step.is-active > span {
  color: #fff7ea;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.terminal-step strong {
  display: block;
  color: var(--ink);
  line-height: 1.15;
}

.ecosystem-band-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ecosystem-band-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.44rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.flywheel-band {
  background:
    radial-gradient(circle at top right, rgba(21, 122, 110, .12), transparent 34%),
    var(--paper);
}

.feature-matrix-band {
  background:
    radial-gradient(circle at top right, rgba(46, 103, 177, .12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(217, 139, 43, .12), transparent 28%),
    var(--paper);
}

.feature-matrix {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 72%);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.feature-matrix::-webkit-scrollbar {
  display: none;
}

.feature-matrix article {
  scroll-snap-align: start;
  min-width: 0;
  min-height: 178px;
  border: 1px solid rgba(30, 27, 24, .1);
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 251, 243, .94));
}

.feature-matrix article.is-primary {
  color: #fff7ea;
  background:
    linear-gradient(135deg, rgba(30, 27, 24, .96), rgba(46, 103, 177, .82)),
    var(--paper);
}

.feature-matrix article div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feature-matrix span {
  color: var(--teal);
  font-size: .72rem;
  font-weight: 900;
}

.feature-matrix article div strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 7px;
  background: rgba(30, 27, 24, .06);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
}

.feature-matrix article.is-primary div strong {
  background: rgba(255, 255, 255, .13);
  color: #fff7ea;
}

.feature-matrix h4 {
  margin: 50px 0 0;
  color: var(--ink);
  font-size: 1.38rem;
  line-height: 1.12;
}

.feature-matrix article.is-primary h4,
.feature-matrix article.is-primary span {
  color: #fff7ea;
}


.game-band {
  background:
    radial-gradient(circle at top right, rgba(21, 122, 110, .13), transparent 34%),
    var(--paper);
}

.game-rail,
.road-track {
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.game-rail::-webkit-scrollbar,
.road-track::-webkit-scrollbar {
  display: none;
}

.game-rail {
  grid-auto-columns: minmax(238px, 62%);
}

.game-tile,
.road-track div {
  scroll-snap-align: start;
}

.game-tile {
  position: relative;
  min-height: 150px;
  border: 1px solid rgba(30, 27, 24, .12);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, .62);
}

.game-index {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 15px;
  color: #fff7ea;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 900;
}

.game-tile h4 {
  margin: 28px 0 0;
  color: var(--ink);
  font-size: 1.32rem;
  line-height: 1.12;
}

.game-tile strong {
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(30, 27, 24, .06);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 900;
}

.road-track {
  grid-auto-columns: minmax(210px, 52%);
}

.road-track div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  background: rgba(255, 255, 255, .62);
}

.road-track strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 1.02rem;
}

@media (max-width: 720px) {
  .ecosystem-grid {
    gap: 14px;
    padding-bottom: calc(176px + env(safe-area-inset-bottom, 0px));
  }

  .ecosystem-hero-panel {
    min-height: 254px;
    padding: 18px;
  }

  .ecosystem-hero-copy {
    min-height: 218px;
  }

  .ecosystem-hero-panel h2 {
    max-width: 5.6em;
    font-size: clamp(2.15rem, 10.8vw, 2.9rem);
  }

  .ecosystem-hero-panel p {
    margin-top: 10px;
    font-size: .76rem;
    line-height: 1.36;
  }

  .ecosystem-orbit {
    gap: 8px;
    margin-top: 14px;
  }

  .ecosystem-orbit span {
    border-radius: 14px;
    padding: 10px;
  }

  .ecosystem-orbit strong {
    font-size: .82rem;
  }

  .ecosystem-orbit small {
    font-size: .62rem;
  }

  .ecosystem-hero-status {
    top: 14px;
    right: 14px;
    padding: 6px 8px;
  }

  .ecosystem-launch-panel,
  .ecosystem-band,
  .ecosystem-road {
    border-radius: 22px;
    padding: 16px;
  }

  .launch-copy h3 {
    font-size: 2.45rem;
  }

  .launch-copy p {
    font-size: .88rem;
    line-height: 1.48;
  }

  .terminal-step {
    padding: 11px;
  }

  .ecosystem-band-head {
    align-items: flex-start;
  }

  .ecosystem-hint {
    white-space: nowrap;
  }

  .feature-matrix article {
    min-height: 172px;
    padding: 16px;
  }

  .feature-matrix article div {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .feature-matrix h4 {
    margin-top: 48px;
    font-size: 1.28rem;
  }

  .game-rail {
    grid-auto-columns: 78%;
  }

  .road-track {
    grid-auto-columns: 72%;
  }
}
