.challenge-app {
  --green: #58cc02;
  --green-dark: #46a302;
  --ink: #334155;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 300px;
  min-height: calc(100vh - 80px);
  background: #fff;
  color: var(--ink);
}
.challenge-nav {
  border-right: 2px solid #e5e7eb;
  padding: 28px 18px;
}
.challenge-brand {
  display: block;
  color: var(--green);
  font-size: 32px;
  font-weight: 1000;
  margin: 0 12px 25px;
}
.challenge-nav button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 13px;
  border-radius: 13px;
  margin: 3px 0;
  font-size: 15px;
  font-weight: 800;
  color: #64748b;
}
.challenge-nav button.active,
.challenge-nav button:hover {
  background: #eaf8ff;
  color: #1cb0f6;
}
.challenge-main {
  padding: 0 5% 60px;
}
.challenge-top {
  height: 72px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  border-bottom: 2px solid #edf0f4;
  font-size: 16px;
}
.heart-stat {
  color: #ff4b4b;
}
.streak-stat {
  color: #ff9600;
}
.xp-stat {
  color: #1cb0f6;
}
.challenge-setup {
  max-width: 720px;
  margin: 55px auto;
  text-align: center;
}
.challenge-kicker {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.challenge-setup h1 {
  font-size: 42px;
  margin: 12px 0;
}
.challenge-setup > p {
  font-size: 18px;
  color: #64748b;
}
.challenge-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 30px 0;
}
.challenge-selectors label {
  text-align: left;
  font-size: 13px;
  font-weight: 900;
}
.challenge-selectors select {
  display: block;
  width: 100%;
  padding: 13px;
  margin-top: 7px;
  border: 2px solid #dce3ea;
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
}
.path-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 38px 0;
}
.path-node {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5e7eb;
  border-bottom: 6px solid #cbd5e1;
  font-size: 22px;
  font-weight: 900;
}
.path-node.done,
.path-node.current {
  background: var(--green);
  color: #fff;
  border-color: var(--green-dark);
}
.path-node.current {
  box-shadow: 0 0 0 8px #dfffc8;
}
.path-line {
  width: 52px;
  height: 6px;
  background: #dbe3ea;
}
.challenge-start {
  background: var(--green);
  border: 0;
  border-bottom: 5px solid var(--green-dark);
  color: #fff;
  padding: 15px 34px;
  border-radius: 14px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.challenge-question {
  position: relative;
  max-width: 760px;
  margin: 48px auto;
}
.challenge-question.answer-suspense {
  animation: challengeSuspense 0.55s ease-in-out;
}
.challenge-question.answer-suspense .challenge-progress span {
  box-shadow: 0 0 18px var(--green);
}
@keyframes challengeSuspense {
  50% {
    transform: scale(0.988);
    filter: brightness(0.97);
  }
}
.challenge-progress {
  height: 16px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
}
.challenge-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  transition: 0.3s;
}
.challenge-close {
  position: absolute;
  right: -45px;
  top: -10px;
  border: 0;
  background: transparent;
  font-size: 32px;
  color: #94a3b8;
}
.challenge-question h2 {
  font-size: 30px;
  line-height: 1.3;
  margin: 35px 0 24px;
}
.challenge-options {
  display: grid;
  gap: 12px;
}
.challenge-options button {
  background: #fff;
  border: 2px solid #dce3ea;
  border-bottom-width: 5px;
  border-radius: 14px;
  padding: 17px;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.challenge-options button:hover,
.challenge-options button.selected {
  border-color: #1cb0f6;
  background: #e9f8ff;
}
.challenge-options button.correct {
  border-color: var(--green);
  background: #efffe4;
}
.challenge-options button.wrong {
  border-color: #ff4b4b;
  background: #fff0f0;
}
.challenge-feedback {
  position: fixed;
  z-index: 50;
  left: 190px;
  right: 300px;
  bottom: 0;
  padding: 20px 8%;
  background: #d7ffb8;
  border-top: 2px solid #b8ee8e;
}
.challenge-feedback.wrong {
  background: #ffdfe0;
  border-color: #ffc2c4;
}
.challenge-feedback strong {
  font-size: 22px;
  color: #3e8f00;
}
.challenge-feedback.wrong strong {
  color: #d52d36;
}
.challenge-feedback button {
  float: right;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 13px 24px;
  font-weight: 900;
}
.challenge-feedback.wrong button {
  background: #ff4b4b;
}
.challenge-finish {
  max-width: 650px;
  text-align: center;
  margin: 65px auto;
}
.finish-badge {
  font-size: 76px;
}
.finish-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 28px 0;
}
.finish-stats article {
  border: 2px solid #e4e9ef;
  border-radius: 15px;
  padding: 18px;
}
.finish-stats b {
  display: block;
  font-size: 28px;
  color: #ff9600;
}
.challenge-side {
  border-left: 2px solid #e5e7eb;
  padding: 28px 20px;
}
.league-card,
.goal-card {
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
}
.league-card > span {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 900;
}
.league-card ol {
  padding: 0;
  list-style: none;
}
.league-card li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  padding: 10px;
  border-radius: 8px;
}
.league-card li.you {
  background: #fff7d1;
}
.goal-ring {
  width: 125px;
  height: 125px;
  border: 12px solid #ffc800;
  border-right-color: #edf0f4;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  margin: auto;
}
.goal-ring b {
  font-size: 28px;
}
@media (max-width: 1050px) {
  .challenge-app {
    grid-template-columns: 90px 1fr;
  }
  .challenge-side {
    display: none;
  }
  .challenge-nav button {
    font-size: 0;
    text-align: center;
  }
  .challenge-nav button:first-letter {
    font-size: 22px;
  }
  .challenge-feedback {
    left: 90px;
    right: 0;
  }
}
@media (max-width: 650px) {
  .challenge-app {
    display: block;
  }
  .challenge-nav {
    position: fixed;
    z-index: 60;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    background: #fff;
    display: flex;
    padding: 5px;
    border: 0;
    border-top: 2px solid #e5e7eb;
  }
  .challenge-brand {
    display: none;
  }
  .challenge-nav button {
    font-size: 0;
    margin: 0;
  }
  .challenge-nav button:first-letter {
    font-size: 23px;
  }
  .challenge-main {
    padding: 0 5% 90px;
  }
  .challenge-top {
    justify-content: center;
  }
  .challenge-setup {
    margin: 30px auto;
  }
  .challenge-setup h1 {
    font-size: 32px;
  }
  .challenge-selectors {
    grid-template-columns: 1fr;
  }
  .challenge-question h2 {
    font-size: 24px;
  }
  .challenge-close {
    right: 0;
    top: 20px;
  }
  .challenge-feedback {
    left: 0;
    right: 0;
    bottom: 66px;
  }
  .finish-stats {
    grid-template-columns: 1fr;
  }
  .challenge-question {
    margin-top: 25px;
  }
}
