/* ── Startscherm ─────────────────────────────────────────────────────────── */
.toets-card {
  background: var(--card-bg, white);
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 4px 24px rgba(58, 46, 46, 0.08);
  border: 2px solid var(--card-border, #FFD9C8);
}

.uitleg-lijst {
  list-style: none;
  counter-reset: stap;
  margin-bottom: 32px;
}

.uitleg-lijst li {
  counter-increment: stap;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--card-border, #FFD9C8);
  color: var(--text, #3A2E2E);
}

.uitleg-lijst li::before {
  content: counter(stap);
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple, #9B72CF), #7c5aa8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ── Kaart keuze ─────────────────────────────────────────────────────────── */
.kaart-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted, #9E8080);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.kaart-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.kaart-btn {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 14px;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border: 2px solid var(--card-border, #FFD9C8);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: inherit;
}

.kaart-btn:hover {
  border-color: var(--purple, #9B72CF);
  background: rgba(155, 114, 207, 0.04);
}

.kaart-btn.gekozen {
  border-color: var(--purple, #9B72CF);
  background: rgba(155, 114, 207, 0.08);
  box-shadow: 0 4px 16px rgba(155, 114, 207, 0.2);
}

.kaart-num {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple, #9B72CF), #7c5aa8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  justify-self: center;
}

.kaart-naam {
  font-size: 17px;
  font-weight: 800;
  color: var(--text, #3A2E2E);
}

.kaart-info {
  font-size: 13px;
  color: var(--muted, #9E8080);
  font-weight: 600;
}

.start-toets-btn {
  width: 100%;
  padding: 18px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple, #9B72CF), #7c5aa8);
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(155, 114, 207, 0.35);
  margin-top: 8px;
}

.start-toets-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(155, 114, 207, 0.45);
}

.start-toets-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Toets scherm ────────────────────────────────────────────────────────── */
.toets-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0 16px;
  justify-content: center;
}

.timer-ring {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.timer-ring svg {
  width: 100%;
  height: 100%;
}

#timerArc {
  transition: stroke-dashoffset 0.9s linear, stroke 0.5s ease;
}

.timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: var(--text, #3A2E2E);
}

.toets-stats {
  display: flex;
  gap: 16px;
}

.stat-blok {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
  background: rgba(6, 214, 160, 0.1);
  border: 2px solid rgba(6, 214, 160, 0.25);
  border-radius: 14px;
  padding: 12px 10px;
}

.stat-blok.stat-fout {
  background: rgba(255, 107, 91, 0.08);
  border-color: rgba(255, 107, 91, 0.2);
}

.stat-blok.stat-total {
  background: rgba(155, 114, 207, 0.08);
  border-color: rgba(155, 114, 207, 0.2);
}

.stat-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--text, #3A2E2E);
  line-height: 1;
}

.stat-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #9E8080);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Woord display ───────────────────────────────────────────────────────── */
.woord-display {
  text-align: center;
  padding: 40px 20px 32px;
}

.woord-nummer {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted, #9E8080);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.woord-tekst {
  font-size: clamp(52px, 15vw, 96px);
  font-weight: 900;
  color: var(--purple, #9B72CF);
  line-height: 1.1;
  letter-spacing: -1px;
  min-height: 1.2em;
}

.woord-tekst.woord-in {
  animation: woordIn 0.15s ease-out;
}

@keyframes woordIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Knoppen ─────────────────────────────────────────────────────────────── */
.toets-btns {
  display: flex;
  gap: 16px;
  padding: 0 16px 16px;
}

.toets-actie-btn {
  flex: 1;
  padding: 22px 12px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 900;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.12s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.goed-btn {
  background: linear-gradient(135deg, #06D6A0, #05a57a);
  color: white;
}

.fout-btn {
  background: linear-gradient(135deg, #FF6B5B, #cc4a3a);
  color: white;
}

.toets-actie-btn:active,
.toets-actie-btn.flash {
  transform: scale(0.95);
}

.keyboard-hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted, #9E8080);
  font-weight: 600;
  padding-bottom: 20px;
}

/* ── Resultaat ───────────────────────────────────────────────────────────── */
.resultaat-card {
  text-align: center;
}

.resultaat-emoji {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 8px;
}

.resultaat-card h2 {
  font-size: 32px;
  color: var(--purple, #9B72CF);
  margin-bottom: 28px;
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.score-blok {
  background: rgba(155, 114, 207, 0.08);
  border: 2px solid rgba(155, 114, 207, 0.2);
  border-radius: 16px;
  padding: 16px 8px;
}

.score-blok.hoofd-score {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(155, 114, 207, 0.12), rgba(155, 114, 207, 0.06));
}

.score-getal {
  font-size: 52px;
  font-weight: 900;
  color: var(--purple, #9B72CF);
  line-height: 1;
}

.score-getal.klein {
  font-size: 34px;
}

.score-lbl {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted, #9E8080);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* AVI balk */
.avi-balk {
  margin-bottom: 28px;
  text-align: left;
}

.avi-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #3A2E2E);
  margin-bottom: 10px;
}

.avi-track {
  height: 16px;
  background: var(--card-border, #FFD9C8);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.avi-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.avi-schaal {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted, #9E8080);
  font-weight: 700;
}

.resultaat-btns {
  display: flex;
  gap: 12px;
}

/* ── Dark mode ───────────────────────────────────────────────────────────── */
[data-theme="dark"] .toets-card,
[data-theme="dark"] .resultaat-card {
  background: var(--card-bg);
  border-color: var(--card-border);
}

[data-theme="dark"] .kaart-btn {
  background: #2a2a3e;
  border-color: var(--card-border);
}

[data-theme="dark"] .kaart-btn.gekozen {
  background: rgba(155, 114, 207, 0.15);
}

[data-theme="dark"] .score-blok {
  background: rgba(155, 114, 207, 0.12);
  border-color: rgba(155, 114, 207, 0.25);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .toets-card { padding: 28px 20px; }

  .toets-header { gap: 16px; }
  .timer-ring { width: 90px; height: 90px; }
  .timer-text { font-size: 22px; }
  .stat-num { font-size: 22px; }

  .woord-tekst { font-size: clamp(48px, 18vw, 80px); }

  .toets-btns { gap: 10px; padding: 0 8px 12px; }
  .toets-actie-btn { font-size: 20px; padding: 18px 8px; }

  .keyboard-hint { display: none; }

  .score-getal { font-size: 40px; }
}
