.challenge-hub-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 44px;
  color: #112537;
}

.challenge-hub-page * {
  box-sizing: border-box;
}

.challenge-hero {
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(135deg, #0c3149 0%, #194d65 45%, #3a775f 100%);
  color: #f7fbff;
  box-shadow: 0 28px 52px rgba(10, 34, 51, .14);
}

.challenge-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.challenge-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: .98;
  font-family: Georgia, "Times New Roman", serif;
}

.challenge-hero p {
  margin: 0;
  max-width: 68ch;
  line-height: 1.65;
}

.challenge-hero__body {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
}

.challenge-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.challenge-hero__pills span,
.challenge-mode-card__pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  font-weight: 700;
}

.challenge-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.challenge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.challenge-btn--primary {
  border-color: transparent;
  background: #f3cf63;
  color: #163244;
}

.challenge-notice,
.challenge-empty {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #f6fafc;
  border: 1px solid rgba(17, 37, 55, .08);
  line-height: 1.6;
}

.challenge-notice {
  background: #fff9eb;
  border-color: rgba(191, 146, 36, .25);
  color: #714f00;
}

.challenge-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 20px;
  margin-top: 22px;
}

.challenge-hub-grid--summary {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
}

.challenge-panel {
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fbfd 0%, #eef4f7 100%);
  border: 1px solid rgba(17, 37, 55, .08);
  box-shadow: 0 18px 36px rgba(17, 37, 55, .08);
}

.challenge-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.challenge-panel__head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.04;
  color: #133246;
}

.challenge-panel__head p {
  margin: 0;
  color: #547085;
  line-height: 1.58;
}

.challenge-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.challenge-mode-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(17, 37, 55, .08);
  background: #ffffff;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.challenge-mode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(17, 37, 55, .10);
}

.challenge-mode-card.is-active {
  border-color: rgba(20, 84, 110, .42);
  box-shadow: 0 18px 30px rgba(20, 84, 110, .14);
}

.challenge-mode-card.is-disabled {
  opacity: .62;
}

.challenge-mode-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ebf5f8;
  color: #1d5d73;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.challenge-mode-card__status.is-prepared {
  background: #fff4e8;
  color: #a25d00;
}

.challenge-mode-card h3 {
  margin: 0;
  font-size: 22px;
  color: #143449;
}

.challenge-mode-card p {
  margin: 0;
  color: #4d687d;
  line-height: 1.58;
}

.challenge-mode-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.challenge-mode-card__pills span {
  color: #173548;
  background: #edf6fa;
  border-color: rgba(17, 37, 55, .06);
}

.challenge-form {
  display: grid;
  gap: 16px;
}

.challenge-field {
  display: grid;
  gap: 8px;
}

.challenge-field span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5a768b;
}

.challenge-field select,
.challenge-field__value {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(17, 37, 55, .12);
  background: #fff;
  color: #163042;
  font-size: 15px;
}

.challenge-activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.challenge-activity-filters label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(17, 37, 55, .12);
  color: #183549;
}

.challenge-launch-meta,
.challenge-module-list {
  color: #516d81;
  line-height: 1.6;
}

.challenge-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.challenge-stat {
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(17, 37, 55, .08);
}

.challenge-stat span {
  display: block;
  color: #6b8396;
  font-size: 13px;
  font-weight: 700;
}

.challenge-stat b {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  color: #173548;
}

.challenge-module-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(17, 37, 55, .10);
}

.challenge-module-item:last-child {
  border-bottom: 0;
}

.challenge-resume-card {
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(17, 37, 55, .10);
}

.challenge-resume-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #133246;
}

.challenge-resume-card p {
  margin: 0 0 14px;
  color: #4f697d;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .challenge-hub-grid,
  .challenge-hub-grid--summary {
    grid-template-columns: 1fr;
  }

  .challenge-hero__body,
  .challenge-panel__head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .challenge-hub-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .challenge-hero,
  .challenge-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .challenge-stat-grid {
    grid-template-columns: 1fr;
  }
}
