/* -- 2-column layout -- */
.qz-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  width: 100%;
  align-items: start;
}

@media (max-width: 700px) {
  .qz-two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* -- Question / Answer panel (cardless) -- */
.qz-panel {
  width: 100%;
  min-height: 200px;
}

.qz-view {
  display: none;
}

.qz-view.active {
  display: block;
  animation: qzSlideUp 0.32s cubic-bezier(0.22,1,0.36,1) forwards;
}

@keyframes qzSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qz-hint-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 18px;
}

.qz-statement-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}

.qz-result-icon {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
}

.qz-result-answer {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.qz-result-verdict {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.qz-result-explanation {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 600px;
  margin: 0;
}

/* -- Top bar -- */
.qz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
}

.qz-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.qz-score-pill {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.qz-score-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: #eda641;
}

.qz-score-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.qz-counter {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
}

.qz-vline {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

.qz-answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 0;
}

.qz-answer-btn {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
  line-height: 1.4;
  backdrop-filter: blur(4px);
  width: 100%;
  min-height: 62px;
}

.qz-answer-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.qz-answer-btn:disabled {
  cursor: not-allowed;
  transform: none;
}

.qz-answer-btn.correct-ans {
  background: rgba(241, 162, 116, 0.22);
  border-color: #f1a274;
  opacity: 1 !important;
}

.qz-answer-btn.wrong-ans {
  background: rgba(183, 48, 71, 0.22);
  border-color: #eda641;
  opacity: 1 !important;
}

.qz-answer-btn:disabled:not(.correct-ans):not(.wrong-ans) {
  opacity: 0.35;
}

.qz-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: all 0.3s;
  flex-shrink: 0;
}

.qz-dot.done {
  background: #eda641;
}

.qz-dot.current {
  background: #eda641;
  width: 28px;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .quiz-stack,
  .quiz-flip-wrap {
    width: 90vw;
    max-width: 560px;
    height: 300px;
  }

  .quiz-deck {
    height: 340px;
  }

  .qz-answer-grid {
    width: 90vw;
    max-width: 560px;
  }

  .qz-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .quiz-stack,
  .quiz-flip-wrap {
    width: 94vw;
    height: 280px;
  }

  .quiz-deck {
    height: 320px;
  }

  .qz-answer-grid {
    grid-template-columns: 1fr;
  }
}

/* -- Result screen color fixes (on dark quiz bg) -- */
#quiz #qzResultArea,
#quiz #qzResultArea * {
  color: #fff;
}

#quiz #qzResultArea .text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

#quiz #qzResultArea .btn-outline-green {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  background: transparent !important;
}

#quiz #qzResultArea .btn-outline-green:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
  color: #fff !important;
}

/* Center the results block */
#quiz #qzResultArea {
  margin-left: auto;
  margin-right: auto;
}
