/**
 * Secondary surfaces — habitat / wardrobe / shop / profile
 * Same Biolume language as the care shell, less dashboard clutter.
 */

.tg-page {
  display: grid;
  gap: 1rem;
}

.tg-page__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.15rem 0 0.25rem;
}

.tg-page__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tg-teal);
  font-weight: 750;
}

.tg-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.95fr);
  gap: 1.1rem;
  align-items: stretch;
}

.tg-split .tg-habitat__stage--compact {
  min-height: min(58vh, 560px);
  border-radius: calc(var(--tg-radius) + 0.45rem);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--tg-shadow);
  background:
    radial-gradient(ellipse 70% 55% at 50% 58%, rgba(45, 212, 191, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(12, 42, 48, 0.45), rgba(7, 22, 28, 0.88));
  overflow: hidden;
}

.tg-panel--wide {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: min(58vh, 560px);
  background: var(--tg-panel);
  border: 1px solid var(--tg-line);
  border-radius: calc(var(--tg-radius) + 0.15rem);
  padding: 1rem 1.1rem 1.15rem;
  backdrop-filter: blur(14px);
}

.tg-panel--wide > .tg-display,
.tg-panel--wide > .tg-lead {
  margin-bottom: 0;
}

.tg-panel--wide > .tg-lead {
  color: var(--tg-muted);
  max-width: 36rem;
}

.tg-shop {
  display: grid;
  gap: 1rem;
}

.tg-shop__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.35rem 0 0.15rem;
}

.tg-shop__head .tg-lead {
  margin-bottom: 0;
}

.tg-filters,
.tg-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.15rem 0;
}

.tg-grid--shop {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.tg-card {
  border: 1px solid color-mix(in srgb, var(--tg-teal) 16%, transparent);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.12);
  border-radius: 1.05rem;
  padding: 0.75rem;
  display: grid;
  gap: 0.45rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.18s cubic-bezier(0.34, 1.35, 0.64, 1), background 0.2s, box-shadow 0.2s;
}

.tg-card:hover {
  border-color: color-mix(in srgb, var(--tg-lime) 35%, transparent);
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--tg-lime) 6%, transparent);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.tg-card.is-equipped {
  border-color: color-mix(in srgb, var(--tg-lime) 50%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tg-lime) 18%, transparent);
}

.tg-card__preview {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(45, 212, 191, 0.12), transparent 65%),
    rgba(0, 0, 0, 0.22);
  border-radius: 0.85rem;
}

.tg-habitat-controls {
  display: grid;
  gap: 0.85rem;
}

.tg-control-block {
  display: grid;
  gap: 0.45rem;
}

.tg-profile-gifts {
  display: grid;
  gap: 0.55rem;
}

@media (max-width: 920px) {
  .tg-split {
    grid-template-columns: 1fr;
  }

  .tg-split .tg-habitat__stage--compact {
    min-height: min(46vh, 340px);
  }

  .tg-panel--wide {
    min-height: 0;
  }
}

/* Progression & soft economy (Pou / Finch / Paradise) */
.tg-progress-card {
  display: grid;
  gap: 0.55rem;
}

.tg-progress-card__row,
.tg-progress-card__next {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--tg-muted);
}

.tg-progress-card__row strong,
.tg-progress-card__next strong {
  color: #ecfccb;
  text-align: right;
}

.tg-progress-card__sub {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--tg-teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tg-progress-roadmap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tg-progress-chip {
  font-size: 0.68rem;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--tg-muted);
  background: rgba(6, 18, 24, 0.55);
}

.tg-progress-chip.is-on {
  border-color: rgba(163, 230, 53, 0.4);
  color: #ecfccb;
  background: rgba(20, 83, 45, 0.35);
}

.tg-progress-missions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.tg-progress-mission {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--tg-muted);
}

.tg-progress-mission.is-claimed {
  opacity: 0.55;
}

.tg-progress-mission.is-ready {
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

.tg-deal-banner {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(251, 191, 36, 0.14), transparent 55%),
    rgba(8, 28, 36, 0.92);
}

.tg-deal-banner__title {
  font-weight: 800;
  color: #fde68a;
  font-size: 0.9rem;
}

.tg-deal-banner__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--tg-muted);
}

.tg-deal-banner__was,
.tg-price-was {
  text-decoration: line-through;
  opacity: 0.55;
  margin-left: 0.25rem;
}

.tg-price-deal {
  color: #a3e635;
  font-weight: 800;
}

.tg-deal-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.85);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.tg-card.is-daily-deal {
  border-color: rgba(251, 191, 36, 0.35);
}

.tg-card.is-daily-deal .tg-card__preview {
  position: relative;
}
