.knowledge-play {
  --kn-bg: #06172c;
  --kn-panel: #102d48;
  --kn-panel-strong: #163b59;
  --kn-line: rgba(145, 198, 229, .2);
  --kn-text: #f4f9fd;
  --kn-muted: #a8bfd2;
  --kn-mint: #79dfce;
  --kn-gold: #f6d577;
  min-height: 100svh;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% -5%, rgba(34, 111, 145, .45), transparent 34rem),
    linear-gradient(180deg, #08223b 0%, var(--kn-bg) 62%);
}

.knowledge-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(100%, 760px);
  padding: 14px 20px;
  border-bottom: 1px solid rgba(151, 207, 237, .12);
  background: rgba(7, 28, 49, .84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.knowledge-nav button {
  min-height: 44px;
  padding: 0 16px;
  border-color: rgba(151, 207, 237, .22);
  background: rgba(255, 255, 255, .055);
  font-size: 13px;
  font-weight: 700;
}

.knowledge-nav button:hover {
  border-color: rgba(246, 213, 119, .5);
  background: rgba(255, 255, 255, .1);
}

.knowledge-nav > span {
  color: var(--kn-text);
  line-height: 1.25;
}

.knowledge-menu,
.knowledge-quiz,
.knowledge-summary {
  width: min(100%, 680px);
  padding: 22px 20px;
  box-sizing: border-box;
}

.knowledge-quiz {
  text-align: left;
}

.knowledge-stats {
  margin: 0;
  padding: 14px 16px 11px;
  border: 1px solid var(--kn-line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(14, 46, 72, .72);
}

.knowledge-stats span,
.knowledge-stats > span:last-child {
  color: var(--kn-muted);
  font-size: 12px;
  font-weight: 700;
}

.knowledge-stats strong {
  padding: 5px 11px;
  border: 1px solid rgba(246, 213, 119, .22);
  border-radius: 999px;
  background: rgba(246, 213, 119, .08);
  color: var(--kn-gold);
  font-size: 13px;
}

#knowledge-progress {
  display: block;
  height: 7px;
  margin: 0;
  border: 1px solid var(--kn-line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(14, 46, 72, .72);
}

#knowledge-progress::-webkit-progress-bar {
  background: rgba(14, 46, 72, .72);
}

#knowledge-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #55d7c1, var(--kn-gold));
  box-shadow: 0 0 16px rgba(121, 223, 206, .35);
}

.knowledge-question-card {
  overflow: hidden;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid rgba(145, 198, 229, .22);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(30, 75, 105, .7), rgba(11, 38, 63, .78));
  box-shadow: 0 16px 38px rgba(0, 12, 28, .24);
  text-align: center;
}

.knowledge-question-card .knowledge-eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(121, 223, 206, .2);
  border-radius: 999px;
  background: rgba(121, 223, 206, .08);
  color: var(--kn-mint);
  font-size: 11px;
  font-weight: 800;
}

.knowledge-question-image {
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 10;
  margin: 14px 0 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 17px;
  background: #061224;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(0, 8, 20, .36);
}

#knowledge-question-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin: 14px auto;
  border: 1px solid rgba(121, 223, 206, .2);
  border-radius: 22px;
  background: rgba(121, 223, 206, .08);
  font-size: 45px;
}

#knowledge-question-icon[hidden] {
  display: none !important;
}

#knowledge-question {
  max-width: 590px;
  margin: 10px auto 5px;
  color: var(--kn-text);
  font-size: clamp(21px, 4.8vw, 28px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.55;
  text-wrap: balance;
}

.knowledge-question-card > p {
  margin-top: 6px;
  color: #91aac0;
  font-size: 11px;
}

.knowledge-choices {
  gap: 10px;
}

.knowledge-choices button {
  position: relative;
  min-height: 72px;
  padding: 12px 14px;
  border-color: rgba(145, 198, 229, .24);
  border-radius: 16px;
  background: linear-gradient(145deg, #173b58, #12324e);
  box-shadow: 0 5px 0 rgba(0, 10, 24, .26);
}

.knowledge-choices button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 3px 0 0 var(--answer-tone, #63b3dd);
  pointer-events: none;
}

.knowledge-choices button:nth-child(2) { --answer-tone: #8bd59e; }
.knowledge-choices button:nth-child(3) { --answer-tone: #d69ddf; }
.knowledge-choices button:nth-child(4) { --answer-tone: #f1bf70; }

.knowledge-choices button > span {
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #c7dcea;
  font-size: 13px;
  font-weight: 800;
}

.knowledge-choices strong {
  color: var(--kn-text);
  font-size: 15px;
  line-height: 1.45;
}

.knowledge-choices button:hover:not(:disabled) {
  border-color: rgba(121, 223, 206, .45);
  background: #1d4969;
  box-shadow: 0 7px 0 rgba(0, 10, 24, .3);
}

.knowledge-choices button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(0, 10, 24, .3);
}

.knowledge-choices button.answer-correct {
  border-color: #65ddb5;
  background: linear-gradient(145deg, #185c4d, #10483e);
}

.knowledge-choices button.answer-wrong {
  border-color: #ef879c;
  background: linear-gradient(145deg, #673247, #4d2739);
}

.knowledge-hints {
  margin: 20px 0 14px;
}

.knowledge-hints button {
  min-height: 42px;
  padding: 0 17px;
  border-color: rgba(246, 213, 119, .35);
  background: rgba(246, 213, 119, .07);
  color: #f9dda0;
  font-weight: 700;
}

.knowledge-feedback {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 17px;
  background: rgba(246, 213, 119, .07);
}

.knowledge-feedback.is-correct {
  background: rgba(72, 213, 156, .08);
}

#knowledge-next {
  margin-top: 14px;
}

.knowledge-primary {
  border: 0;
  background: linear-gradient(135deg, #ffe79e, #efbb50);
  box-shadow: 0 5px 0 #865c20, 0 12px 26px rgba(238, 185, 73, .15);
}

.knowledge-primary:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.knowledge-primary:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #865c20;
}

.knowledge-primary:disabled {
  cursor: wait;
  opacity: .65;
}

.knowledge-summary {
  padding-top: 30px;
}

#knowledge-review details {
  border-color: rgba(145, 198, 229, .18);
  background: rgba(255, 255, 255, .045);
}

#knowledge-exit {
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

@media (max-width: 559px) {
  .knowledge-nav {
    padding: 11px 12px;
  }

  .knowledge-nav > span {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .knowledge-nav button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 11px;
  }

  .knowledge-menu,
  .knowledge-quiz,
  .knowledge-summary {
    padding: 15px 14px;
  }

  .knowledge-question-card {
    margin: 14px 0;
    padding: 13px;
    border-radius: 20px;
  }

  .knowledge-question-image {
    margin: 12px 0 14px;
    border-radius: 14px;
  }

  #knowledge-question {
    font-size: 21px;
    line-height: 1.5;
  }

  .knowledge-choices {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .knowledge-choices button {
    min-height: 62px;
  }

  .knowledge-hints span {
    font-size: 9px;
  }
}
