.progress-page {
  --progress-green: #13aa8b;
  --progress-yellow: #ffc835;
  --progress-coral: #f15f6d;
}

.progress-hero {
  padding-bottom: 136px;
}

.progress-layout {
  position: relative;
  z-index: 2;
  margin-top: -86px;
  padding-bottom: 74px;
}

.progress-panel {
  padding: clamp(24px, 4vw, 46px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.progress-panel__heading,
.progress-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.progress-panel__heading h2,
.progress-section__heading h2 {
  margin: 0;
  color: var(--navy);
  line-height: 1.2;
}

.progress-panel__heading h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.progress-kicker {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.progress-play {
  flex: 0 0 auto;
}

.progress-status,
.progress-account-note {
  padding: 13px 16px;
  color: #176a59;
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
  background: #e2f7f1;
  border-radius: 13px;
}

.progress-status {
  min-height: 50px;
  margin: 24px 0 12px;
}

.progress-status[data-tone="warning"] {
  color: #805900;
  background: #fff3cf;
}

.progress-account-note {
  margin: 0 0 18px;
  color: #284b78;
  background: #eaf7ff;
}

.progress-account-note a {
  font-weight: 800;
}

.progress-empty,
.progress-content {
  width: 100%;
}

.progress-empty[hidden],
.progress-content[hidden],
.progress-account-note[hidden] {
  display: none;
}

.progress-empty {
  padding: clamp(28px, 5vw, 52px) 22px;
  text-align: center;
  background: linear-gradient(145deg, #f8fcff, #edf8ff);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.progress-empty__mascot {
  width: auto;
  height: 150px;
  object-fit: contain;
}

.progress-empty h2 {
  margin: 14px 0 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.progress-empty p {
  max-width: 520px;
  margin: 8px auto 20px;
  color: var(--muted);
}

.progress-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.progress-metric {
  min-width: 0;
  padding: 22px 14px;
  text-align: center;
  background: linear-gradient(145deg, #f9fcff, #edf8ff);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.progress-metric__value {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
}

.progress-metric__label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.progress-section {
  padding-top: 28px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.progress-section__heading {
  margin-bottom: 16px;
}

.progress-section__heading h2 {
  font-size: clamp(1.3rem, 3vw, 1.65rem);
}

.progress-section__heading p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.progress-bests {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.progress-best {
  position: relative;
  min-width: 0;
  padding: 19px 17px 17px;
  overflow: hidden;
  color: var(--navy);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 7px 20px rgba(6, 43, 99, .05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.progress-best::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: var(--accent, var(--blue));
}

.progress-best:hover,
.progress-best:focus-visible {
  color: var(--navy);
  border-color: var(--accent, var(--blue));
  box-shadow: 0 13px 28px rgba(6, 43, 99, .1);
  transform: translateY(-2px);
}

.progress-best:focus-visible {
  outline: 4px solid rgba(8, 120, 232, .18);
  outline-offset: 3px;
}

.progress-best__name {
  margin: 0;
  overflow: hidden;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-best__score {
  margin: 10px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.progress-best__score.is-empty {
  color: #9db4cc;
}

.progress-best__trend {
  min-height: 1.3em;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.progress-best__trend.is-up {
  color: #138269;
}

.progress-best__trend.is-down {
  color: var(--progress-coral);
}

.progress-recent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.progress-result {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.progress-result__mark {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  background: var(--accent, var(--blue));
  border-radius: 50%;
}

.progress-result__text {
  flex: 1 1 auto;
  min-width: 0;
}

.progress-result__name,
.progress-result__date,
.progress-result__score {
  margin: 0;
}

.progress-result__name {
  overflow: hidden;
  color: var(--navy);
  font-size: .84rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-result__date {
  margin-top: 2px;
  color: var(--muted);
  font-size: .7rem;
}

.progress-result__score {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: .84rem;
  font-weight: 800;
  text-align: right;
}

.progress-result--empty {
  grid-column: 1 / -1;
}

.progress-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

@media (max-width: 980px) {
  .progress-bests {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .progress-recent {
    grid-template-columns: 1fr;
  }

  .progress-panel__heading,
  .progress-section__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .progress-play {
    display: none;
  }
}

@media (max-width: 600px) {
  .progress-hero {
    padding-bottom: 112px;
  }

  .progress-layout {
    margin-top: -68px;
    padding-bottom: 48px;
  }

  .progress-panel {
    padding: 20px 16px;
    border-radius: 17px;
  }

  .progress-summary {
    gap: 8px;
  }

  .progress-metric {
    padding: 16px 7px;
  }

  .progress-metric__label {
    font-size: .69rem;
  }

  .progress-bests {
    grid-template-columns: 1fr;
  }

  .progress-actions,
  .progress-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-best {
    transition: none;
  }
}
