/* Page enrich + Map wake — cards must display as cards (not inline links) */

.cu-page-hero { text-align: center; margin: 0.5rem 0 1rem; }
.cu-page-hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--cu-gold, #d4b45a);
  margin: 0 0 0.4rem;
  font-weight: 800;
}
html[data-theme="light"] .cu-page-hero h1 { color: #8b6f3f; }

/* Generic rich grid */
.cu-rich-grid,
.cu-grid,
.lab-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)) !important;
  gap: 0.75rem !important;
  max-width: min(56rem, 100%);
  margin: 0.75rem auto 1.25rem !important;
}

.cu-rich-card,
.cu-card,
.lab-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.3rem !important;
  padding: 1rem 1.05rem !important;
  border-radius: 16px !important;
  border: 1px solid rgba(184, 166, 135, 0.45) !important;
  background: #1a2420 !important;
  color: #e8f0ea !important;
  text-decoration: none !important;
  min-height: 8.25rem !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18) !important;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
html[data-theme="light"] .cu-rich-card,
html[data-theme="light"] .cu-card,
html[data-theme="light"] .lab-card {
  background: #fffef8 !important;
  color: #2a2319 !important;
  border-color: #b8a687 !important;
  box-shadow: 0 6px 18px rgba(42, 35, 25, 0.07) !important;
}
.cu-card:hover,
.cu-rich-card:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 125, 94, 0.55) !important;
}
.cu-card .tag,
.cu-rich-card .tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7dcea0;
}
html[data-theme="light"] .cu-card .tag { color: #1e7d5e; }
.cu-card strong,
.cu-rich-card strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: inherit !important;
}
.cu-card .desc,
.cu-rich-card span {
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0.9;
}
.cu-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.cu-badge.open { background: #1e7d5e; color: #fff; }
.cu-badge.locked { background: rgba(255,255,255,0.12); color: #c5cfc8; }
html[data-theme="light"] .cu-badge.locked { background: #e8e0d0; color: #5a4f3f; }

/* Phase chips row */
.cu-phase-row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.45rem !important;
  margin: 0 0 1rem !important;
}
@media (max-width: 520px) {
  .cu-phase-row { grid-template-columns: repeat(2, 1fr) !important; }
}
.cu-phase-chip {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 3.5rem !important;
  padding: 0.5rem !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  border: 1px solid rgba(184,166,135,0.35) !important;
  background: #24302a !important;
  color: #e8f0ea !important;
  font-size: 0.78rem !important;
}
html[data-theme="light"] .cu-phase-chip {
  background: #fffef8 !important;
  color: #2a2319 !important;
}
.cu-phase-chip.on {
  border-color: #1e7d5e !important;
  box-shadow: 0 0 0 2px rgba(30,125,94,0.35);
}
.cu-phase-chip.locked { opacity: 0.75; }
.cu-phase-chip strong { display: block; font-size: 0.85rem; }

/* Medallions — not grey dead */
.cu-medallion-row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.5rem !important;
  margin: 0.75rem 0 !important;
}
@media (max-width: 520px) {
  .cu-medallion-row { grid-template-columns: repeat(2, 1fr) !important; }
}
.cu-medallion {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.2rem;
  padding: 0.65rem 0.4rem !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  border: 1.5px solid rgba(30,125,94,0.3) !important;
  background: linear-gradient(180deg, #24382f, #1a2822) !important;
  color: #e8f0ea !important;
  text-align: center;
}
html[data-theme="light"] .cu-medallion {
  background: linear-gradient(180deg, #fffef8, #ebe0cb) !important;
  color: #2a2319 !important;
  border-color: rgba(30,125,94,0.35) !important;
}
.cu-medallion .ring { font-size: 1.4rem; }
.cu-medallion strong { font-size: 0.85rem; }
.cu-medallion small { font-size: 0.68rem; opacity: 0.85; }
.cu-medallion.on {
  border-color: #1e7d5e !important;
  box-shadow: 0 4px 16px rgba(30,125,94,0.35);
}
.cu-medallion.locked { opacity: 0.7; }

/* Continue band */
.cu-continue {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: min(56rem, 100%);
  margin: 0.5rem auto 0.85rem !important;
  padding: 0.85rem 1rem !important;
  border-radius: 14px !important;
  border: 1px solid rgba(30,125,94,0.35) !important;
  background: rgba(30,125,94,0.12) !important;
}
.cu-continue a {
  display: inline-flex !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px !important;
  background: #1e7d5e !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* How phases */
.cu-how {
  margin: 0 auto 1rem !important;
  max-width: min(56rem, 100%);
  padding: 0.85rem 1rem !important;
  border-radius: 14px !important;
  border: 1px solid rgba(184,166,135,0.35) !important;
  background: rgba(0,0,0,0.22) !important;
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
  color: #c5cfc8 !important;
}
html[data-theme="light"] .cu-how {
  background: rgba(42,35,25,0.06) !important;
  color: #5a4f3f !important;
}
.cu-how strong { color: #f3e6c0; }
html[data-theme="light"] .cu-how strong { color: #5c4623; }

.cu-section-kicker {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.5rem;
}

/* Kill black bar overlays fighting continue */
.cu-continue + * { position: relative; z-index: 1; }
