/* ── Grammatica pagina ──────────────────────────────────────────────────── */

#gr-confetti { position:fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:9999; overflow:hidden; }
.gr-confetti-piece { position:absolute; top:-20px; animation:gr-fall linear forwards; }
@keyframes gr-fall { to { transform:translateY(110vh) rotate(720deg); opacity:0; } }

.gr-sparkle { position:fixed; pointer-events:none; z-index:9998; font-size:22px; animation:gr-spark 0.9s ease-out forwards; }
@keyframes gr-spark { to { transform:translate(var(--tx),var(--ty)) scale(0); opacity:0; } }

/* Moduskeuze */
.gr-mode-grid { display:flex; flex-direction:column; gap:14px; margin-top:8px; }
.gr-mode-tile {
  display:flex; align-items:center; gap:16px; padding:20px 22px;
  border-radius:22px; border:none; cursor:pointer; color:white; text-align:left;
  box-shadow:0 5px 18px rgba(0,0,0,0.15); transition:transform .12s, box-shadow .12s;
  -webkit-tap-highlight-color:transparent;
}
.gr-mode-tile:active { transform:scale(0.97); box-shadow:0 2px 6px rgba(0,0,0,0.15); }
.gr-mode-emoji { font-size:38px; flex-shrink:0; }
.gr-mode-naam  { font-family:'Nunito',sans-serif; font-size:19px; font-weight:900; display:block; }
.gr-mode-desc  { font-family:'Nunito',sans-serif; font-size:13px; font-weight:600; opacity:.85; display:block; margin-top:2px; }

/* Voortgang */
.gr-progress-row   { display:flex; justify-content:flex-end; margin-bottom:6px; }
.gr-progress-text  { font-size:13px; font-weight:700; color:var(--muted); }
.gr-progress-bar   { background:rgba(67,97,238,0.12); border-radius:8px; height:8px; margin-bottom:20px; overflow:hidden; }
.gr-progress-fill  { height:100%; background:linear-gradient(90deg,#4361EE,#06D6A0); border-radius:8px; transition:width .4s ease; }

/* Oefenkaart */
.gr-card { background:rgba(67,97,238,0.05); border:2px solid rgba(67,97,238,0.15); border-radius:20px; padding:22px 18px; margin-bottom:14px; }

/* Werkwoorden */
.gr-inf-label   { font-size:14px; font-weight:700; color:var(--muted); margin-bottom:6px; }
.gr-inf-label strong { color:var(--text); font-size:18px; }
.gr-uitleg-tip  { background:rgba(244,161,0,0.12); border:1px solid rgba(244,161,0,0.3); border-radius:10px; padding:8px 12px; font-size:13px; font-weight:700; color:#b45309; margin:8px 0; }
.gr-subj-label  { font-size:14px; font-weight:700; color:var(--muted); margin-bottom:8px; }
.gr-subj-label strong { color:#4361EE; font-size:16px; }
.gr-zin         { font-size:18px; font-weight:700; color:var(--text); line-height:1.6; margin-bottom:18px; }
.gr-blank       { display:inline-block; min-width:80px; border-bottom:3px solid #4361EE; color:#4361EE; font-weight:900; }
.gr-prefix      { color:#06D6A0; font-weight:900; }

/* Opties (werkwoorden + samengesteld) */
.gr-opties      { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.gr-optie-btn {
  padding:16px 8px; border-radius:14px; border:3px solid rgba(67,97,238,0.2);
  background:rgba(67,97,238,0.06); font-family:'Nunito',sans-serif;
  font-size:17px; font-weight:800; color:var(--text); cursor:pointer;
  transition:transform .1s, background .15s; min-height:60px;
  -webkit-tap-highlight-color:transparent; word-break:break-word;
}
.gr-optie-btn:hover:not(:disabled) { background:rgba(67,97,238,0.14); border-color:rgba(67,97,238,0.45); }
.gr-optie-btn:active:not(:disabled) { transform:scale(0.96); }
.gr-optie-btn.gr-correct { background:rgba(6,214,160,0.18); border-color:#06D6A0; color:#059669; }
.gr-optie-btn.gr-wrong   { background:rgba(255,107,91,0.15); border-color:#FF6B5B; color:#dc2626; }
.gr-optie-btn:disabled   { cursor:default; }

/* Woordsoorten */
.gr-ws-instructie { font-size:15px; font-weight:800; color:var(--muted); text-align:center; margin-bottom:12px; }
.gr-zin-ws { font-size:18px; font-weight:700; line-height:1.7; margin-bottom:18px; text-align:center; }
.gr-target-word {
  display:inline-block; background:rgba(67,97,238,0.15); border-bottom:3px solid #4361EE;
  border-radius:4px; padding:0 4px; color:#4361EE; font-weight:900;
}
.gr-ws-opties { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.gr-ws-btn {
  padding:12px 6px; border-radius:12px; border:2px solid;
  background:transparent; font-family:'Nunito',sans-serif;
  font-size:13px; font-weight:800; cursor:pointer;
  transition:background .15s; -webkit-tap-highlight-color:transparent;
}
.gr-ws-btn:hover:not(:disabled) { opacity:0.75; }
.gr-ws-btn:disabled { cursor:default; }

/* Samengestelde zinnen */
.gr-sz-instructie { font-size:14px; font-weight:700; color:var(--muted); margin-bottom:10px; }
.gr-sz-zin { font-size:16px; font-weight:700; line-height:1.7; margin-bottom:14px; text-align:center; background:rgba(67,97,238,0.05); border-radius:12px; padding:12px 10px; }
.gr-sz-deel { color:var(--muted); }
.gr-sz-actief { color:var(--text); font-weight:900; background:rgba(67,97,238,0.12); border-radius:6px; padding:2px 5px; }
.gr-sz-vw { color:#9B72CF; font-weight:900; font-style:italic; }
.gr-sz-vraag { font-size:15px; font-weight:800; color:var(--text); margin-bottom:6px; line-height:1.5; }
.gr-sz-deeltxt { font-size:14px; font-weight:600; color:var(--muted); margin-bottom:16px; font-style:italic; }

/* Feedback */
.gr-feedback { min-height:44px; border-radius:12px; padding:11px 14px; font-size:14px; font-weight:700; text-align:center; line-height:1.6; }
.gr-fb-ok    { background:rgba(6,214,160,0.12);  color:#059669; }
.gr-fb-fout  { background:rgba(255,107,91,0.12); color:#dc2626; }
.gr-fb-regel { display:block; font-size:12px; font-weight:600; opacity:0.80; margin-top:3px; font-style:italic; }

/* Volgende-knop */
.gr-next-btn {
  display:block; width:100%; padding:16px; border:none; border-radius:16px;
  background:linear-gradient(135deg,#4361EE,#06D6A0); color:white;
  font-family:'Nunito',sans-serif; font-size:18px; font-weight:900;
  cursor:pointer; margin-top:8px; box-shadow:0 4px 14px rgba(67,97,238,0.35);
  transition:transform .12s;
}
.gr-next-btn:active { transform:scale(0.97); }

/* Resultaat */
.gr-result-card { background:rgba(67,97,238,0.07); border:2px solid rgba(67,97,238,0.2); border-radius:24px; padding:36px 24px; text-align:center; margin-top:8px; }
.gr-result-emoji { font-size:64px; margin-bottom:12px; }
.gr-result-score { font-size:48px; font-weight:900; color:#4361EE; margin-bottom:4px; }
.gr-result-pct   { font-size:22px; font-weight:800; color:var(--muted); margin-bottom:16px; }
.gr-result-msg   { font-size:17px; font-weight:700; color:var(--text); margin-bottom:28px; line-height:1.5; }
.gr-result-btns  { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

.gr-btn-primary   { padding:14px 28px; border:none; border-radius:14px; background:linear-gradient(135deg,#4361EE,#06D6A0); color:white; font-family:'Nunito',sans-serif; font-size:16px; font-weight:900; cursor:pointer; box-shadow:0 4px 12px rgba(67,97,238,0.3); }
.gr-btn-secondary { padding:14px 28px; border:2px solid rgba(67,97,238,0.3); border-radius:14px; background:transparent; color:var(--text); font-family:'Nunito',sans-serif; font-size:16px; font-weight:800; cursor:pointer; }

/* Stoppen-knop */
.gr-stop-btn { position:fixed; top:14px; left:14px; z-index:100; background:rgba(255,255,255,0.85); border:none; border-radius:50px; padding:8px 14px; font-family:'Nunito',sans-serif; font-size:14px; font-weight:700; color:var(--muted); cursor:pointer; }
[data-theme="dark"] .gr-stop-btn { background:rgba(40,40,60,0.85); }
