.path-stage-card,
.group-section,
.empty-shell {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.path-stage-card {
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 30% 15%, #4a3d32 0%, #2a2520 55%, #14110d 100%);
  color: var(--paper);
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(58, 47, 38, 0.18);
}

.path-stage-card .stage-badge {
  color: var(--paper);
  background: rgba(201, 166, 107, 0.14);
}

.path-stage-card .stage-total,
.path-stage-card p,
.path-stage-card .progress-label,
.path-stage-card .progress-note,
.path-stage-card .meta-label {
  color: rgba(255, 251, 243, 0.74);
}

.path-stage-card h2,
.group-title,
.empty-shell h2,
.achievement-title {
  font-family: "Fraunces", Georgia, serif;
}

.path-stage-card h2 {
  margin: 16px 0 0;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 400;
  line-height: 1.12;
}

.path-stage-card p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.progress-block {
  margin-top: 22px;
}

.progress-label {
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 251, 243, 0.1);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terra) 0%, var(--gold) 100%);
}

.progress-note {
  margin-top: 10px;
  font-size: 14px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.meta-card,
.achievement-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.meta-card {
  padding: 18px;
  background: rgba(255, 251, 243, 0.06);
  border-color: rgba(255, 251, 243, 0.1);
}

.meta-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.meta-card strong {
  font-size: 20px;
}

.groups-shell {
  display: grid;
  gap: 20px;
}

.group-title {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
}

.group-subtitle {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.achievement-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.achievement-card.unlocked {
  border-color: rgba(140, 159, 135, 0.34);
  box-shadow: 0 0 0 1px rgba(140, 159, 135, 0.08) inset;
}

.achievement-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.achievement-title {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
}

.achievement-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.achievement-badge.unlocked {
  color: #6a7f64;
  border: 1px solid rgba(140, 159, 135, 0.34);
  background: rgba(140, 159, 135, 0.12);
}

.achievement-badge.locked {
  color: var(--ink-soft);
  border: 1px solid rgba(36, 31, 26, 0.12);
  background: rgba(36, 31, 26, 0.04);
}

.achievement-description,
.achievement-hint {
  margin: 12px 0 0;
  line-height: 1.65;
}

.achievement-description {
  color: var(--ink);
}

.achievement-hint {
  color: var(--terra-deep);
  font-size: 14px;
}

.empty-shell h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 400;
}

.empty-shell p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

@media (max-width: 900px) {
  .meta-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .path-stage-card,
  .group-section,
  .empty-shell {
    padding: 24px 18px;
  }

  .actions {
    flex-direction: column;
  }
}
