  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

  :root {
    --bg: #F5EFE3;
    --bg-soft: #FAF5EA;
    --red: #D72121;
    --red-dark: #A81616;
    --red-light: #ED3A35;
    --orange: #F47813;
    --orange-dark: #C25C0A;
    --brown: #3D2418;
    --text: #2C1810;
    --muted: #8B7B6E;
    --green: #4CAF50;
    --shadow: 0 4px 12px rgba(60, 30, 20, 0.08);
    --shadow-lg: 0 8px 24px rgba(60, 30, 20, 0.12);
  }

  html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: contain;
  }

  body {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    background: var(--bg);
  }

  /* Bottom red wave decoration */
  body::after {
    content: '';
    position: fixed;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; max-width: 480px;
    height: 80px;
    background: var(--red);
    clip-path: path('M0,40 C120,80 240,0 360,40 C420,60 460,30 480,50 L480,80 L0,80 Z');
    z-index: 0;
    pointer-events: none;
  }

  .screen {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 20px 100px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.3s ease;
  }
  .screen.active { display: flex; }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes pop {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
  }
  @keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-4deg); }
    75% { transform: rotate(4deg); }
  }
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
  }

  /* ========== HOMEPAGE ========== */
  .home-top { text-align: center; padding-top: 16px; }

  .torito-mascot {
    width: 180px; height: 180px;
    margin: 0 auto 8px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
  }
  .torito-mascot.lg { width: 150px; height: 150px; }
  .torito-mascot.md { width: 120px; height: 120px; }
  .torito-mascot.sm { width: 90px; height: 90px; }

  /* SVG Torito as fallback */
  .torito-svg { width: 100%; height: 100%; }

  /* Wordmark-logo (PNG) op de homepage */
  .logo-image {
    display: block;
    width: 70%;
    max-width: 260px;
    height: auto;
    margin: 0 auto 4px;
  }

  .logo-title {
    font-family: "Fredoka", "Baloo 2", system-ui, sans-serif;
    font-weight: 900;
    font-size: 64px;
    color: var(--red);
    letter-spacing: -1px;
    line-height: 1;
    text-shadow: 3px 3px 0 #fff, 4px 4px 0 var(--red-dark);
    margin: 0 0 4px;
    transform: rotate(-2deg);
    display: inline-block;
  }

  .logo-divider {
    width: 50px; height: 3px;
    background: var(--red);
    border-radius: 2px;
    margin: 10px auto 12px;
  }

  .tagline {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 14px;
  }

  .date-pill {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--red);
    border-radius: 10px;
    padding: 7px 14px;
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
  }

  .home-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  .home-card {
    aspect-ratio: 1.7 / 1;        /* nog vlakker, lekker compacte tegels */
    border-radius: 16px;
    padding: 11px 13px;
    display: flex; flex-direction: column; justify-content: space-between;
    color: #fff;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
    border: none;
    text-align: left;
    font-family: inherit;
  }
  .home-card:active { transform: scale(0.97); }
  .home-card.red    { background: linear-gradient(165deg, var(--red-light) 0%, var(--red-dark) 100%); }
  .home-card.orange { background: linear-gradient(165deg, #FA8E2B 0%, var(--orange-dark) 100%); }
  .home-card.brown  { background: linear-gradient(165deg, #8C5A3D 0%, #5A3622 100%); }
  .home-card.gold   { background: linear-gradient(165deg, #E8B620 0%, #B07F0E 100%); }
  .home-card.disabled { opacity: 0.7; cursor: not-allowed; }
  .home-card.disabled:active { transform: none; }

  .home-card h2 {
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    margin-bottom: 3px;
  }
  .home-card p {
    font-size: 11px;
    line-height: 1.25;
    opacity: 0.95;
    font-weight: 500;
  }
  .home-card .arrow-circle {
    width: 24px; height: 24px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    align-self: flex-start;
    margin-top: 0;
  }
  .home-card.brown .arrow-circle svg { color: #5A3622; }
  .home-card.gold  .arrow-circle svg { color: #B07F0E; }
  .home-card.red .arrow-circle svg { color: var(--red); }
  .home-card.orange .arrow-circle svg { color: var(--orange-dark); }
  .home-card .badge-soon {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .stats-button {
    background: var(--bg-soft);
    border: 2px solid #EAE0CF;
    border-radius: 18px;
    padding: 16px 20px;
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: var(--shadow);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.15s ease;
  }
  .stats-button:active { transform: scale(0.98); }
  .stats-button .left {
    display: flex; align-items: center; gap: 12px;
  }
  .stats-button .icon-bars {
    width: 28px; height: 28px;
    display: flex; align-items: flex-end; gap: 3px;
  }
  .stats-button .icon-bars span {
    width: 6px; background: var(--red); border-radius: 2px;
  }
  .stats-button .icon-bars span:nth-child(1) { height: 12px; }
  .stats-button .icon-bars span:nth-child(2) { height: 22px; }
  .stats-button .icon-bars span:nth-child(3) { height: 16px; background: var(--orange); }

  /* ========== QUIZ ========== */
  .quiz-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
  }
  .back-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #EAE0CF;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
  }
  .back-btn:active { transform: scale(0.92); }

  .progress-wrap { flex: 1; }
  .progress-info {
    display: flex; justify-content: space-between;
    font-size: 12px; font-weight: 600; color: var(--muted);
    margin-bottom: 6px;
  }
  .progress-bar {
    height: 10px;
    background: #EAE0CF;
    border-radius: 5px;
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange) 0%, var(--red) 100%);
    border-radius: 5px;
    transition: width 0.4s ease;
    width: 0%;
  }

  .timer-bar {
    height: 6px;
    background: #EAE0CF;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 18px;
  }
  .timer-fill {
    height: 100%;
    background: var(--green);
    border-radius: 3px;
    transition: width 0.1s linear, background 0.3s ease;
    width: 100%;
  }
  .timer-fill.warn { background: var(--orange); }
  .timer-fill.danger { background: var(--red); }

  .quiz-prompt {
    text-align: center;
    margin-bottom: 14px;
  }
  .quiz-prompt-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 6px;
  }
  .quiz-verb {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    word-break: break-word;
    animation: pop 0.4s ease;
  }
  .quiz-hint {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
    font-style: italic;
  }

  /* Input direct onder werkwoord — compacte layout, alle iOS-quirks vermeden.
     Tester kan ¡Listo! tikken óf Enter / Gereed op het toetsenbord (zie enterkeyhint). */
  .quiz-input-wrap {
    padding-bottom: 16px;
  }
  .quiz-input-hint {
    text-align: center;
    font-size: 11.5px;
    color: var(--muted);
    font-style: italic;
    margin-top: 8px;
  }
  .quiz-input-hint strong {
    color: var(--text);
    font-weight: 700;
    font-style: normal;
  }

  .quiz-input {
    width: 100%;
    background: #fff;
    border: 2.5px solid #EAE0CF;
    border-radius: 16px;
    padding: 18px 20px;
    font-size: 22px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease;
  }
  .quiz-input:focus { border-color: var(--red); }
  .quiz-input::placeholder { color: #BFB3A3; font-weight: 500; }

  .btn-primary {
    width: 100%;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--red-dark);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    margin-top: 14px;
  }
  .btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--red-dark);
  }
  .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .btn-primary.orange {
    background: var(--orange);
    box-shadow: 0 4px 0 var(--orange-dark);
  }
  .btn-primary.orange:active { box-shadow: 0 2px 0 var(--orange-dark); }
  .btn-secondary {
    width: 100%;
    background: transparent;
    color: var(--text);
    border: 2px solid #EAE0CF;
    border-radius: 16px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.15s ease;
  }
  .btn-secondary:active { background: #EAE0CF; }

  /* ========== FEEDBACK OVERLAY ========== */
  .feedback-overlay {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(245, 239, 227, 0.96);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 70px 18px 20px;
    z-index: 100;
    animation: fadeIn 0.25s ease;
  }
  .feedback-overlay.show { display: flex; }

  /* Horizontale "card" in de bovenhelft: mascot | body | next-knop */
  .feedback-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
  }
  .feedback-mascot {
    width: 140px; height: 140px;
    flex-shrink: 0;
    margin: 0;
  }
  .feedback-mascot.bounce { animation: pop 0.5s ease; }
  .feedback-body {
    flex: 1;
    min-width: 0;
    text-align: left;
  }
  .feedback-headline {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    line-height: 1;
  }

  .feedback-title {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
  }
  .feedback-title.correct { color: var(--green); }
  .feedback-title.incorrect { color: var(--red); }
  .feedback-title.almost { color: var(--orange); }

  /* Grote puntenweergave bij correct/almost — past nu in horizontale headline naast de titel */
  .feedback-points {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 76px;
    font-weight: 900;
    line-height: 1;
    color: var(--green);
    margin: 0;
    animation: pointsBurst 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .feedback-points.almost { color: var(--orange); }
  .feedback-points.hide { display: none; }

  .feedback-bonus {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 12px;
    background: rgba(76, 175, 80, 0.12);
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
  }
  .feedback-bonus.almost {
    background: rgba(232, 116, 44, 0.15);
    color: var(--orange-dark);
  }

  @keyframes pointsBurst {
    0%   { transform: scale(0.3) rotate(-6deg); opacity: 0; }
    50%  { transform: scale(1.2) rotate(2deg); opacity: 1; }
    75%  { transform: scale(0.95) rotate(-1deg); }
    100% { transform: scale(1) rotate(0deg); }
  }

  /* Mini-progressbalkje dat aftikt naar volgend woord */
  .feedback-autoadvance {
    width: 100%;
    max-width: 160px;
    height: 5px;
    background: #EAE0CF;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
  }
  .feedback-autoadvance .fill {
    height: 100%;
    background: var(--green);
    border-radius: 2px;
    width: 0%;
    transition: width 1s linear;
  }
  .feedback-autoadvance .fill.almost { background: var(--orange); }

  .feedback-detail {
    text-align: left;
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.4;
  }
  .feedback-detail .verb-es {
    font-weight: 800;
    color: var(--red);
    font-size: 22px;
  }
  .feedback-detail .verb-nl {
    font-weight: 800;
    color: var(--text);
    font-size: 22px;
  }
  .feedback-detail .you-typed {
    color: var(--muted);
    font-size: 15px;
    margin-top: 6px;
  }

  /* Ronde 'volgende'-knop rechts naast de feedback-card */
  .feedback-side {
    flex-shrink: 0;
  }
  .btn-icon {
    width: 68px; height: 68px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    border: none;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--red-dark);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    font-family: inherit;
  }
  .btn-icon:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--red-dark);
  }

  /* ========== START / END SCREENS ========== */
  .center-stack {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 20px 0;
  }
  .center-stack h1 {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 36px;
    color: var(--red);
    margin: 16px 0 10px;
    line-height: 1.05;
  }
  .center-stack p {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 320px;
    line-height: 1.5;
  }

  .score-circle {
    width: 180px; height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #FAF0E0 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--red);
    margin: 16px 0 24px;
    animation: pop 0.6s ease;
  }
  .score-number {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
  }
  .score-total {
    font-size: 18px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 4px;
  }
  .score-label {
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    font-weight: 600;
  }

  .stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%; max-width: 360px;
    margin-bottom: 14px;
  }

  /* Compacte hero-rij op eindscherm: Torito + titel + scorecirkel naast elkaar */
  .end-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0 14px;
    width: 100%;
    max-width: 360px;
  }
  .end-hero .torito-mascot {
    width: 110px; height: 110px;
    flex-shrink: 0;
    margin: 0;
  }
  .end-hero-side {
    flex: 1;
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .end-hero-side h1 {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--red);
    margin: 0;
    line-height: 1;
  }

  /* Compacte versie van de scorecirkel — past in de hero-rij */
  .score-circle.compact {
    width: 96px; height: 96px;
    border-width: 4px;
    margin: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
  }
  .score-circle.compact .score-number {
    font-size: 34px;
    line-height: 1;
  }
  .score-circle.compact .score-total {
    font-size: 13px;
    margin-top: 2px;
  }

  /* Toritos als prominente rode tile in stat-row */
  .stat-tile.toritos-tile {
    background: linear-gradient(135deg, var(--red-light) 0%, var(--red-dark) 100%);
    border-color: var(--red-dark);
    color: #fff;
  }
  .stat-tile.toritos-tile .value { color: #fff; }
  .stat-tile.toritos-tile .label { color: rgba(255, 255, 255, 0.9); }

  /* Toritos-beloning op het eindscherm */
  .toritos-reward {
    text-align: center;
    margin: 6px 0 16px;
  }
  .toritos-icon {
    width: 48px; height: 48px;
    margin: 0 auto -2px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .toritos-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
  }
  .toritos-number {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 64px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    animation: pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
  }
  .toritos-label {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 15px;
    color: var(--text);
    font-weight: 700;
    margin-top: 4px;
  }
  .stat-tile {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid #EAE0CF;
  }
  .stat-tile .value {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
  }
  .stat-tile .label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    font-weight: 600;
  }

  .button-stack {
    width: 100%;
    max-width: 360px;
    margin-top: 8px;
  }

  .verb-list {
    width: 100%;
    max-width: 360px;
    margin: 16px 0;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .verb-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #F2EADC;
    font-size: 15px;
  }
  .verb-row:last-child { border-bottom: none; }
  .verb-row .es { font-weight: 700; color: var(--red); }
  .verb-row .nl { color: var(--text); font-weight: 500; }

  /* ========== FINISH-SPLASH (na elke ronde) ========== */
  .finish-splash {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 32px 24px;
    background: linear-gradient(160deg, #FFF6EE 0%, #FAE3D5 60%, #F5C9B5 100%);
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  .finish-splash.show { display: flex; animation: finish-splash-in 0.35s ease both; }
  @keyframes finish-splash-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  /* Confetti-achtergrond — 24 zwevende kleurtjes */
  .finish-splash-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    background-image:
      radial-gradient(circle, var(--orange) 50%, transparent 50%),
      radial-gradient(circle, var(--red) 50%, transparent 50%),
      radial-gradient(circle, #4FC3F7 50%, transparent 50%),
      radial-gradient(circle, #66BB6A 50%, transparent 50%),
      radial-gradient(circle, #FFCA28 50%, transparent 50%),
      radial-gradient(circle, #BA68C8 50%, transparent 50%);
    background-size: 14px 14px, 12px 12px, 10px 10px, 13px 13px, 11px 11px, 12px 12px;
    background-position:
      8% 12%, 22% 24%, 76% 8%, 88% 32%,
      14% 78%, 70% 88%;
    background-repeat: no-repeat;
    opacity: 0.85;
    animation: finish-confetti-float 4.5s ease-in-out infinite;
  }
  @keyframes finish-confetti-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-14px) rotate(8deg); }
  }
  .finish-splash-mascot {
    width: 220px; height: 220px;
    z-index: 1;
    animation: finish-mascot-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
    filter: drop-shadow(0 8px 16px rgba(60, 30, 20, 0.18));
  }
  .finish-splash-mascot img,
  .finish-splash-mascot svg {
    width: 100%; height: 100%;
    object-fit: contain;
  }
  @keyframes finish-mascot-pop {
    0%   { transform: scale(0.3) rotate(-8deg); opacity: 0; }
    60%  { transform: scale(1.08) rotate(4deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg);    opacity: 1; }
  }
  .finish-splash-title {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 38px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    text-align: center;
    text-shadow: 2px 2px 0 #fff, 3px 3px 0 var(--red-dark);
    transform: rotate(-2deg);
    z-index: 1;
    animation: finish-title-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
  }
  @keyframes finish-title-in {
    from { transform: rotate(-2deg) translateY(20px); opacity: 0; }
    to   { transform: rotate(-2deg) translateY(0);    opacity: 1; }
  }
  .finish-splash-stats {
    display: flex;
    gap: 14px;
    width: 100%;
    max-width: 360px;
    z-index: 1;
  }
  .finish-stat-card {
    flex: 1;
    background: #fff;
    border: 2px solid #EAE0CF;
    border-radius: 16px;
    padding: 14px 10px 12px;
    text-align: center;
    box-shadow: 0 4px 0 rgba(60, 30, 20, 0.10);
    animation: finish-card-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .finish-stat-card.toritos { animation-delay: 0.55s; border-color: var(--red); }
  .finish-stat-card.percent { animation-delay: 0.7s;  border-color: var(--orange); }
  @keyframes finish-card-in {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
  .finish-stat-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
  }
  .finish-stat-value {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
  }
  .finish-stat-card.toritos .finish-stat-value { color: var(--red); }
  .finish-stat-card.percent .finish-stat-value { color: var(--orange-dark); }
  .finish-splash-tap-hint {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 1;
    margin-top: 4px;
    animation: finish-tap-pulse 1.8s ease-in-out infinite 1s;
  }
  @keyframes finish-tap-pulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
  }

  /* ========== STATS PAGE ========== */
  .stats-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0;
    width: 100%;
    max-width: 360px;
  }
  .stats-cards.three {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
  .stats-cards .stat-tile {
    aspect-ratio: 1.3/1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .stats-cards .stat-tile .value {
    font-size: 36px;
  }
  .stats-cards.three .stat-tile {
    aspect-ratio: 1/1;
    padding: 8px 4px;
  }
  .stats-cards.three .stat-tile .value {
    font-size: 28px;
  }
  .stats-cards.three .stat-tile .label {
    font-size: 10px;
    margin-top: 4px;
  }

  /* Stats hero: Torito mascot + grote Toritos-teller */
  .stats-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin: 8px 0 4px;
    padding: 14px 12px 10px;
    background:
      radial-gradient(circle at 80% 30%, rgba(232, 116, 44, 0.10) 0%, transparent 60%),
      radial-gradient(circle at 20% 80%, rgba(196, 48, 43, 0.10) 0%, transparent 60%);
    border-radius: 22px;
    position: relative;
  }
  .stats-hero-mascot {
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
  }
  .stats-hero-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(60, 30, 20, 0.15));
  }
  .stats-hero-side {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    line-height: 1;
    text-align: right;
    padding-right: 6px;
  }
  .stats-hero-toritos {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 72px;
    font-weight: 900;
    color: var(--red);
    line-height: 0.9;
    letter-spacing: -2px;
    text-shadow: 2px 2px 0 #fff, 3px 3px 0 var(--red-dark);
    animation: pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
  }
  .stats-hero-label {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
  }

  .stats-section-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 16px 4px 4px;
    width: 100%;
    max-width: 360px;
    text-align: left;
  }

  /* Per-modus tegels met eigen kleur */
  .stat-tile.mode-tile {
    border-width: 2px;
  }
  .stat-tile.mode-translate {
    background: linear-gradient(160deg, #FFF6EE 0%, #FFE9D2 100%);
    border-color: var(--orange);
  }
  .stat-tile.mode-translate .value { color: var(--orange-dark); }
  .stat-tile.mode-conjugate {
    background: linear-gradient(160deg, #FFEFEC 0%, #FBD7CF 100%);
    border-color: var(--red);
  }
  .stat-tile.mode-conjugate .value { color: var(--red); }
  .stat-tile.mode-match {
    background: linear-gradient(160deg, #F2E7D7 0%, #D9C4A6 100%);
    border-color: var(--brown);
  }
  .stat-tile.mode-match .value { color: var(--brown); }

  .toolbar-title {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--red);
  }

  /* ========== FICHES ========== */
  .fiche-filter-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
  }
  .fiche-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    user-select: none;
  }

  .toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
  }
  .toggle-switch input {
    opacity: 0;
    width: 0; height: 0;
    position: absolute;
  }
  .toggle-slider {
    position: absolute;
    inset: 0;
    background: #D8CCB8;
    border-radius: 24px;
    transition: background 0.2s ease;
  }
  .toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  }
  .toggle-switch input:checked + .toggle-slider { background: var(--red); }
  .toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

  .fiche-controls { margin-bottom: 14px; }
  .fiche-select-wrap {
    position: relative;
    width: 100%;
  }
  .fiche-select {
    width: 100%;
    appearance: none; -webkit-appearance: none;
    background: #fff;
    border: 2px solid #EAE0CF;
    border-radius: 14px;
    padding: 14px 44px 14px 18px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow);
  }
  .fiche-select:focus { outline: none; border-color: var(--red); }
  .fiche-select-arrow {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--red);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    pointer-events: none;
    text-shadow: 0 1px 0 rgba(168, 22, 22, 0.25);
  }

  .fiche-tense-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }
  .fiche-tense-btn {
    background: var(--bg-soft);
    border: 2px solid #EAE0CF;
    color: var(--text);
    border-radius: 12px;
    padding: 11px 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .fiche-tense-btn:active { transform: scale(0.97); }
  .fiche-tense-btn.active {
    background: var(--red);
    border-color: var(--red-dark);
    color: #fff;
    box-shadow: 0 3px 0 var(--red-dark);
  }

  .fiche-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px 18px 14px;
    box-shadow: var(--shadow-lg);
    border: 2px solid #EAE0CF;
  }
  .fiche-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }
  .fiche-verb-line {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .fiche-verb-es {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    display: inline-block;
  }

  /* Audio-uitspraak knop (klein, rond, met luidsprekericoon) */
  .speak-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid var(--red);
    background: rgba(196, 48, 43, 0.08);
    color: var(--red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: transform 0.12s ease, background 0.15s ease;
  }
  .speak-btn:active {
    transform: scale(0.9);
    background: var(--red);
    color: #fff;
  }
  .speak-btn.playing {
    background: var(--red);
    color: #fff;
    animation: speakPulse 1s ease-in-out infinite;
  }
  .speak-btn svg { width: 16px; height: 16px; }
  @keyframes speakPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 48, 43, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(196, 48, 43, 0); }
  }

  /* Speaker-knop varianten voor andere plekken */
  .speak-btn.sm { width: 28px; height: 28px; border-width: 1.5px; }
  .speak-btn.sm svg { width: 13px; height: 13px; }
  .speak-btn.lg { width: 40px; height: 40px; }
  .speak-btn.lg svg { width: 18px; height: 18px; }
  .fiche-verb-nl {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 4px;
    display: block;
  }
  .fiche-badge {
    flex-shrink: 0;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 10px;
    white-space: nowrap;
    margin-top: 6px;
  }
  .fiche-badge.regular {
    background: rgba(76, 175, 80, 0.15);
    color: var(--green);
  }
  .fiche-badge.irregular {
    background: rgba(232, 116, 44, 0.18);
    color: var(--orange-dark);
  }
  .fiche-tense-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
    padding-top: 8px;
    border-top: 1px solid #F2EADC;
  }
  .fiche-conjugations {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .fiche-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 9px 4px;
    border-bottom: 1px solid #F7F0E2;
    gap: 12px;
  }
  .fiche-row:last-child { border-bottom: none; }
  .fiche-pronoun {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
    flex-shrink: 0;
  }
  .fiche-form {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    text-align: right;
  }
  .fiche-bottom-actions {
    margin-top: 16px;
  }

  /* "Willekeurig werkwoord"-knop met icoon */
  .btn-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .btn-with-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  /* Subtiele puls + periodieke icoondraai om aandacht te trekken */
  @keyframes shufflePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.035); }
  }
  @keyframes shuffleIconSpin {
    0%, 72%, 100% { transform: rotate(0deg); }
    78%, 92% { transform: rotate(360deg); }
  }
  .btn-shuffle-attn {
    animation: shufflePulse 2.6s ease-in-out infinite;
  }
  .btn-shuffle-attn svg {
    animation: shuffleIconSpin 5s ease-in-out infinite;
  }
  /* Toegankelijk: respecteer voorkeur voor minder beweging */
  @media (prefers-reduced-motion: reduce) {
    .btn-shuffle-attn,
    .btn-shuffle-attn svg { animation: none; }
  }

  /* Korte tijd-uitleg + link naar Theorie onder de fiche-kaart */
  .fiche-tense-note {
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--bg-soft);
    border-left: 4px solid var(--orange);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
  }
  .fiche-tense-note strong { color: var(--red); }
  .fiche-tense-note em { color: var(--orange-dark); font-style: italic; }
  .fiche-tense-note a {
    display: inline-block;
    margin-top: 6px;
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
  }
  .fiche-tense-note a:hover { text-decoration: underline; }

  /* ========== THEORIE ========== */
  .theory-intro {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 16px;
    background: var(--bg-soft);
    padding: 12px 14px;
    border-radius: 12px;
    border-left: 4px solid var(--red);
  }
  .theory-intro strong { color: var(--red); }

  .theory-card-title {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 4px;
  }
  .theory-card-subtitle {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 14px;
  }

  .theory-section {
    padding: 12px 0;
    border-top: 1px solid #F2EADC;
  }
  .theory-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
  }

  .theory-stem-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 17px;
    margin-bottom: 4px;
  }
  .theory-stem-row .label { color: var(--muted); font-weight: 600; font-size: 13px; }
  .theory-stem-row .value {
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 800;
    color: var(--text);
  }
  .theory-stem-row .value .ending-mark {
    color: var(--red);
  }

  .theory-endings {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
  }
  .theory-ending-pill {
    background: rgba(196, 48, 43, 0.10);
    color: var(--red);
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 800;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 8px;
  }

  .theory-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 8px 4px;
    border-bottom: 1px solid #F7F0E2;
    gap: 12px;
  }
  .theory-row:last-child { border-bottom: none; }
  .theory-pronoun {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
    flex-shrink: 0;
  }
  .theory-form {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    text-align: right;
  }
  .theory-form .stem { color: var(--text); font-weight: 600; }
  .theory-form .dash { color: var(--muted); margin: 0 1px; }
  .theory-form .ending { color: var(--red); font-weight: 800; }

  .theory-note {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(232, 116, 44, 0.10);
    border-radius: 10px;
    color: var(--orange-dark);
  }
  .theory-note strong { color: var(--orange-dark); }

  .theory-footer {
    font-size: 13px;
    color: var(--muted);
    margin-top: 14px;
    line-height: 1.5;
  }
  .theory-footer a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
  }
  .theory-footer a:hover { text-decoration: underline; }

  /* ========== MATCHEN-modus ========== */
  /* Grid behoudt natuurlijke knopgrootte. Torito vult de rest. */
  #screen-match-quiz {
    padding-bottom: 20px;
  }
  .match-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 8px 0 12px;
  }
  /* Torito-achtergrond onder de quiz-input op vertalen-scherm */
  .quiz-bg-torito {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    padding: 8px 0;
    pointer-events: none;
    opacity: 0.85;
  }
  .quiz-bg-torito > div,
  .quiz-bg-torito img {
    width: auto;
    max-width: 180px;
    max-height: 100%;
    object-fit: contain;
  }

  /* Torito-achtergrond onder de grid — vult eventuele lege schermruimte
     op grotere toestellen, schaalt mee met het beschikbare gebied. */
  .match-bg-torito {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    padding: 8px 0;
    pointer-events: none;
    opacity: 0.95;
  }
  .match-bg-torito > div,
  .match-bg-torito img {
    width: auto;
    max-width: 220px;
    max-height: 100%;
    object-fit: contain;
    transform-origin: 50% 90%;
  }

  /* Dance-animatie: wordt geactiveerd na elke voltooide set van 5 */
  @keyframes torito-dance {
    0%   { transform: translateY(0)    rotate(0deg)  scale(1);    }
    12%  { transform: translateY(-14px) rotate(-8deg) scale(1.06); }
    25%  { transform: translateY(0)    rotate(6deg)  scale(1.02); }
    38%  { transform: translateY(-10px) rotate(-6deg) scale(1.05); }
    50%  { transform: translateY(0)    rotate(8deg)  scale(1.02); }
    62%  { transform: translateY(-12px) rotate(-5deg) scale(1.04); }
    75%  { transform: translateY(0)    rotate(4deg)  scale(1.02); }
    88%  { transform: translateY(-6px)  rotate(-3deg) scale(1.03); }
    100% { transform: translateY(0)    rotate(0deg)  scale(1);    }
  }
  @keyframes torito-sparkle {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.5); }
    30%  { opacity: 1; transform: translate(var(--dx, 0), var(--dy, 0)) scale(1); }
    100% { opacity: 0; transform: translate(calc(var(--dx, 0) * 1.4), calc(var(--dy, 0) * 1.4)) scale(0.7); }
  }
  .match-bg-torito.dancing {
    position: relative;
  }
  .match-bg-torito.dancing > div,
  .match-bg-torito.dancing img {
    animation: torito-dance 850ms cubic-bezier(0.45, 0.05, 0.55, 0.95) both;
  }
  .match-bg-torito .sparkle {
    position: absolute;
    pointer-events: none;
    font-size: 22px;
    line-height: 1;
    animation: torito-sparkle 850ms ease-out forwards;
    will-change: transform, opacity;
  }
  .match-btn {
    background: #fff;
    border: 2px solid #EAE0CF;
    border-radius: 14px;
    padding: 12px 8px;
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 2px 0 #D8CCB8;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease, border-color 0.15s ease;
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
    min-height: 54px;
    display: flex; align-items: center; justify-content: center;
  }
  .match-btn.es { color: var(--red); }
  .match-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #D8CCB8; }
  .match-btn.selected {
    background: rgba(196, 48, 43, 0.10);
    border-color: var(--red);
    box-shadow: 0 2px 0 var(--red-dark);
  }
  .match-btn.matched {
    background: #4CAF50;
    border-color: #3a8c3e;
    color: #fff;
    box-shadow: 0 2px 0 #3a8c3e;
    cursor: default;
  }
  .match-btn.matched.es { color: #fff; }
  .match-btn.wrong {
    animation: matchShake 0.4s ease-in-out;
    background: rgba(196, 48, 43, 0.18);
    border-color: var(--red);
  }
  @keyframes matchShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
  }

  .match-set-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
  }
  .match-set-header strong { color: var(--red); font-size: 15px; }

  .match-instruction {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
    font-style: italic;
  }

  /* Mode-buttons op Vertalen start-scherm — strakke pillen zonder beschrijving */
  .mode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin-bottom: 12px;
  }
  .mode-btn {
    border: none;
    border-radius: 18px;
    padding: 16px 18px;
    font-family: "Fredoka", system-ui, sans-serif;
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .mode-btn:active { transform: scale(0.97); }
  .mode-btn.red    { background: linear-gradient(165deg, var(--red-light) 0%, var(--red-dark) 100%); }
  .mode-btn.orange { background: linear-gradient(165deg, #FA8E2B 0%, var(--orange-dark) 100%); }
  .mode-btn .title {
    font-weight: 800;
    font-size: 22px;
    line-height: 1;
  }
  .mode-btn .arrow-circle {
    width: 30px; height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .mode-btn.red .arrow-circle svg    { color: var(--red); }
  .mode-btn.orange .arrow-circle svg { color: var(--orange-dark); }

  /* Uitleg onder de mode-buttons */
  .mode-explanations {
    width: 100%;
    max-width: 360px;
    margin: 4px 0 14px;
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text);
  }
  .mode-explanation {
    padding: 4px 0;
  }
  .mode-explanation + .mode-explanation {
    border-top: 1px solid #EAE0CF;
    margin-top: 4px;
    padding-top: 8px;
  }
  .mode-explanation strong {
    font-weight: 800;
  }
  .mode-explanation.red strong    { color: var(--red); }
  .mode-explanation.orange strong { color: var(--orange-dark); }

  /* Pool-badge op het Vertalen start-scherm — toont hoeveel werkwoorden in de pool zitten */
  .pool-info {
    margin: 4px 0 16px;
    text-align: center;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
  }
  .pool-info-line {
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 8px;
  }
  .pool-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background: linear-gradient(135deg, var(--red-light) 0%, var(--red-dark) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 8px 20px;
    box-shadow: 0 4px 0 var(--red-dark);
    animation: poolBadgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .pool-badge .num {
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 900;
    font-size: 36px;
    line-height: 1;
  }
  .pool-badge .lbl {
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.95;
  }
  @keyframes poolBadgePop {
    0%   { transform: scale(0.5) rotate(-4deg); opacity: 0; }
    60%  { transform: scale(1.08) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); }
  }

  /* ========== ABOUT ========== */
  .about-content {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    padding: 0 4px 8px;
  }
  .about-content p { margin-bottom: 12px; }
  .about-content strong { color: var(--red); }

  /* Mascot in float-layout: tekst stroomt rond de afbeelding */
  .about-section {
    margin-bottom: 20px;
    overflow: hidden; /* clearfix voor floats binnen */
  }
  .about-mascot {
    display: block;
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
  }
  .about-mascot img,
  .about-mascot svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(60, 30, 20, 0.12));
  }
  .about-mascot.float-left {
    float: left;
    margin: 0 14px 6px 0;
  }
  .about-mascot.float-right {
    float: right;
    margin: 0 0 6px 14px;
  }

  /* Feedback-blok: krijgt eigen accent-card achter de mascot + tekst */
  .about-feedback-section {
    background: linear-gradient(160deg, rgba(244, 120, 19, 0.08) 0%, rgba(215, 33, 33, 0.06) 100%);
    border: 2px solid rgba(215, 33, 33, 0.18);
    border-radius: 18px;
    padding: 14px 16px 12px;
    margin: 18px 0 22px;
  }
  .about-feedback-intro {
    font-style: italic;
    color: var(--text);
    margin-bottom: 10px !important;
  }
  .about-contact {
    background: #fff;
    border: 2px solid #EAE0CF;
    border-radius: 12px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow);
  }
  .about-contact a {
    color: var(--red);
    font-weight: 800;
    text-decoration: none;
  }
  .about-contact a:hover { text-decoration: underline; }
  .about-contact .icon { font-size: 18px; }

  /* Slotsectie — grote mascot + final blessing */
  .about-final-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 6px;
  }
  .about-mascot.about-mascot-large {
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
  }
  .about-final {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 19px;
    font-style: italic;
    color: var(--red);
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
  }

  /* ========== INSTALL APP ========== */
  .install-intro {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text);
    text-align: center;
    margin-bottom: 18px;
    padding: 0 4px;
  }
  .install-mascot {
    display: flex;
    justify-content: center;
    margin: 4px 0 14px;
  }
  .install-mascot > div { width: 130px; height: 130px; }

  .install-card {
    background: #fff;
    border: 2px solid #EAE0CF;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
  }
  .install-card-title {
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 800;
    font-size: 17px;
    color: var(--red);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .install-card-title .platform-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
  }
  .install-steps {
    list-style: none;
    counter-reset: step;
    padding: 0; margin: 0;
  }
  .install-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 32px;
    padding-bottom: 10px;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--text);
  }
  .install-steps li:last-child { padding-bottom: 0; }
  .install-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    font-family: "Fredoka", system-ui, sans-serif;
  }
  .install-steps li b { color: var(--red); font-weight: 700; }

  .install-tip {
    background: rgba(76, 175, 80, 0.10);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    color: var(--green);
    margin-top: 8px;
    line-height: 1.4;
  }
  .install-tip b { font-weight: 700; }

  .install-installed {
    background: rgba(76, 175, 80, 0.12);
    border: 2px solid var(--green);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    color: var(--green);
    font-weight: 700;
    margin-bottom: 14px;
  }

  /* ========== WELCOME (eerste login) ========== */
  .welcome-stack {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px;
  }
  .welcome-stack .torito-mascot { width: 130px; height: 130px; margin-bottom: 8px; }
  .welcome-greeting {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--red);
    line-height: 1.1;
    margin-bottom: 14px;
  }

  .welcome-tip {
    width: 100%;
    background: linear-gradient(135deg, rgba(196, 48, 43, 0.08) 0%, rgba(232, 116, 44, 0.08) 100%);
    border: 2px solid var(--red);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(196, 48, 43, 0.12);
    text-align: left;
    position: relative;
  }
  .welcome-tip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }
  .welcome-tip-icon {
    width: 28px; height: 28px;
    background: var(--red);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #fff;
  }
  .welcome-tip-title {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
  }
  .welcome-tip-body {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 8px;
  }
  .welcome-tip-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--red);
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    cursor: pointer;
  }
  .welcome-tip-link:hover { text-decoration: underline; }

  .welcome-content {
    text-align: left;
    width: 100%;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text);
  }
  .welcome-content p { margin-bottom: 12px; }
  .welcome-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
  }
  .welcome-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
  }
  .welcome-content ul li::before {
    content: '·';
    position: absolute;
    left: 6px; top: -2px;
    color: var(--red);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
  }
  .welcome-content ul li b { color: var(--red); font-weight: 800; }
  .welcome-content .beta-note {
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
  }
  .welcome-content .beta-note a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
  }

  .welcome-actions {
    width: 100%;
    margin-top: 4px;
  }

  /* ========== BETA-GATE ========== */
  .beta-gate-stack {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 24px 4px;
  }
  .beta-gate-stack .torito-mascot { width: 130px; height: 130px; margin-bottom: 8px; }
  .beta-gate-stack .logo-image { width: 60%; max-width: 220px; margin: 0 auto 14px; }
  .beta-gate-badge {
    display: inline-block;
    background: rgba(196, 48, 43, 0.12);
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
  }
  .beta-gate-text {
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.5;
    max-width: 320px;
    margin-bottom: 18px;
  }
  .beta-gate-text a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
  }
  .beta-gate-text a:hover { text-decoration: underline; }
  .beta-gate-form {
    width: 100%;
    max-width: 320px;
  }
  .beta-gate-input {
    width: 100%;
    background: #fff;
    border: 2.5px solid #EAE0CF;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    color: var(--text);
    text-align: center;
    outline: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  .beta-gate-input:focus { border-color: var(--red); }
  .beta-gate-input.error {
    border-color: var(--red);
    animation: shake 0.4s ease;
  }
  .beta-gate-error {
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
    margin: 8px 0 0;
    min-height: 18px;
  }

  /* ========== ADMIN · STATS ========== */
  .user-menu .admin-menu-item {
    color: var(--red);
    font-weight: 700;
    border-bottom: 1px solid #F2EADC;
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-radius: 8px 8px 0 0;
  }

  .admin-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }
  .admin-stat-tile {
    background: #fff;
    border: 2px solid #EAE0CF;
    border-radius: 12px;
    padding: 12px 6px;
    text-align: center;
    box-shadow: var(--shadow);
  }
  .admin-stat-tile .value {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
  }
  .admin-stat-tile .label {
    font-size: 10.5px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-top: 6px;
  }

  .admin-user-card {
    background: #fff;
    border: 1px solid #EAE0CF;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
  }
  .admin-user-actions {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100%;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #D8CCB8;
  }
  .btn-tiny-danger {
    background: transparent;
    color: var(--red);
    border: 1.5px solid rgba(215, 33, 33, 0.35);
    border-radius: 999px;
    padding: 5px 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
  }
  .btn-tiny-danger:hover {
    background: rgba(215, 33, 33, 0.08);
    border-color: var(--red);
  }
  .btn-tiny-danger:active { background: rgba(215, 33, 33, 0.16); }
  .admin-user-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
  }
  .admin-user-name {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
  }
  .admin-user-name .admin-badge {
    display: inline-block;
    background: rgba(196, 48, 43, 0.15);
    color: var(--red);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
  }
  .admin-user-email {
    font-size: 12.5px;
    color: var(--muted);
    word-break: break-all;
    margin-top: 2px;
  }
  .admin-user-rounds {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    flex-shrink: 0;
    text-align: right;
  }
  .admin-user-rounds .label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 2px;
  }
  .admin-user-meta {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    padding: 8px 0;
    border-top: 1px solid #F2EADC;
    border-bottom: 1px solid #F2EADC;
    margin-bottom: 8px;
  }
  .admin-user-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1.4;
  }
  .admin-user-stats .item .label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 1px;
  }
  .admin-user-stats .item .value {
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 800;
    color: var(--text);
    font-size: 15px;
  }
  .admin-user-stats .item.accent .value { color: var(--red); }
  .admin-user-stats .item.green .value  { color: var(--green); }

  /* ========== GEBRUIKTE WERKWOORDEN ========== */
  /* ========== ADMIN · GRAPHICS ========== */
  .graphics-intro {
    background: var(--bg-soft);
    border: 1.5px solid #EAE0CF;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.45;
  }
  .graphics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .graphics-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1.5px solid #EAE0CF;
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(60, 30, 20, 0.06);
    transition: transform .12s, box-shadow .12s;
  }
  .graphics-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(60, 30, 20, 0.10);
  }
  .graphics-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background:
      linear-gradient(160deg, #FFF6EE 0%, #FAE3D5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .graphics-thumb img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(60, 30, 20, 0.12));
  }
  .graphics-info {
    flex: 1 1 auto;
    min-width: 0;
  }
  .graphics-name {
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: var(--red);
    line-height: 1.2;
    margin-bottom: 3px;
  }
  .graphics-where {
    font-size: 12.5px;
    color: var(--text);
    line-height: 1.4;
  }
  .graphics-file {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 4px;
    word-break: break-all;
  }
  @media (min-width: 540px) {
    .graphics-grid { grid-template-columns: 1fr 1fr; }
  }

  .verbs-list-intro {
    background: var(--bg-soft);
    border-left: 4px solid var(--red);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text);
  }
  .verbs-list-intro strong { color: var(--red); }

  .verbs-section { margin-bottom: 18px; }
  .verbs-section-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: var(--bg-soft);
    border-radius: 12px;
    font-family: "Fredoka", system-ui, sans-serif;
    flex-wrap: wrap;
  }
  .verbs-section-header .accent-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: center;
  }
  .verbs-section-header.red .accent-dot    { background: var(--red); }
  .verbs-section-header.orange .accent-dot { background: var(--orange); }
  .verbs-section-header.brown .accent-dot  { background: #5A3622; }
  .verbs-section-header.gold .accent-dot   { background: #B07F0E; }
  .verbs-section-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
  }
  .verbs-section-header .sub {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
  }
  .verbs-section-header .badge-sub {
    margin-left: auto;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: var(--muted);
    background: rgba(0,0,0,0.04);
    padding: 3px 8px;
    border-radius: 999px;
  }

  .verbs-table {
    background: #fff;
    border: 1px solid #EAE0CF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .verbs-row {
    display: grid;
    grid-template-columns: 36px 1fr 1.4fr;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    align-items: baseline;
    border-bottom: 1px solid #F2EADC;
  }
  .verbs-row:last-child { border-bottom: none; }
  .verbs-row .num {
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: right;
  }
  .verbs-row .es {
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 700;
    color: var(--red);
  }
  .verbs-row .nl {
    color: var(--text);
    font-weight: 500;
  }

  /* Torito-prof als sympathieke afsluiter onderaan Fiches & Theorie */
  .torito-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24px auto 8px;
    opacity: 0.9;
    pointer-events: none;
  }
  .torito-footer .mascot {
    width: 110px;
    height: 110px;
  }
  .torito-footer .caption {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    margin-top: -4px;
    font-style: italic;
  }

  /* Categorie-selector bovenaan Theorie — 5 pillen, horizontaal scrollbaar
     met fade-gradient en pijl-hint zodat scrollbaarheid duidelijk is */
  .theory-cat-wrapper {
    position: relative;
    margin-bottom: 14px;
  }
  .theory-cat-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }
  .theory-cat-row::-webkit-scrollbar { display: none; }
  .theory-cat-row .fiche-tense-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 11px 18px;
    font-size: 13.5px;
  }

  /* Rechter fade + pulserend pijltje als signaal "scroll voor meer" */
  .theory-cat-fade {
    position: absolute;
    top: 0; right: -2px; bottom: 4px;
    width: 44px;
    background: linear-gradient(to right, transparent 0%, var(--bg) 70%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    transition: opacity 0.3s ease;
  }
  .theory-cat-fade .chev {
    color: var(--red);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    animation: chevSwipe 1.6s ease-in-out infinite;
    font-family: "Fredoka", system-ui, sans-serif;
  }
  .theory-cat-wrapper.scrolled-end .theory-cat-fade { opacity: 0; }
  @keyframes chevSwipe {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(4px); opacity: 0.45; }
  }

  .theory-cat-content { display: none; }
  .theory-cat-content.active { display: block; }

  .theory-paragraph {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text);
    margin-bottom: 14px;
  }
  .theory-paragraph strong { color: var(--red); }
  .theory-paragraph em { color: var(--orange-dark); font-style: italic; }

  .theory-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0;
  }
  .theory-comparison-col {
    background: #fff;
    border: 1px solid #EAE0CF;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
  }
  .theory-comparison-col h4 {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
  }
  .theory-comparison-col.left h4 { color: var(--red); }
  .theory-comparison-col.right h4 { color: var(--orange-dark); }
  .theory-comparison-col ul {
    list-style: none;
    padding: 0; margin: 0;
    font-size: 13px;
    line-height: 1.5;
  }
  .theory-comparison-col li {
    padding: 4px 0;
    border-bottom: 1px solid #F7F0E2;
  }
  .theory-comparison-col li:last-child { border: none; }
  .theory-comparison-col em {
    font-style: italic;
    color: var(--muted);
    font-size: 12px;
    display: block;
    margin-top: 1px;
  }

  .theory-pattern-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 12px 0;
  }
  .theory-pattern {
    background: #fff;
    border: 2px solid #EAE0CF;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
  }
  .theory-pattern .arrow {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 800;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
  }
  .theory-pattern .desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .theory-pattern .examples {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
  }
  .theory-pattern .examples strong { color: var(--red); }

  .theory-boot-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.6;
  }
  .theory-boot-row .person { color: var(--muted); font-weight: 600; font-size: 13px; }
  .theory-boot-row .form { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; }
  .theory-boot-row .form .change { color: var(--red); }
  .theory-boot-row .form.regular { color: var(--muted); font-weight: 600; }

  .theory-mini-table {
    background: #fff;
    border: 1px solid #EAE0CF;
    border-radius: 10px;
    padding: 4px 12px;
    margin: 10px 0;
  }
  .theory-mini-table .row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #F7F0E2;
    font-size: 14px;
  }
  .theory-mini-table .row:last-child { border: none; }
  .theory-mini-table .row .lbl { color: var(--muted); font-weight: 600; }
  .theory-mini-table .row .val {
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 700;
    color: var(--text);
  }

  /* Group-pillen (-ar, -er, -ir) hergebruiken fiche-tense-btn styling */

  /* ========== VERVOEGEN ========== */
  /* --- Config-scherm --- */
  .conj-config-section {
    margin-bottom: 18px;
  }
  .conj-config-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
    padding-left: 4px;
  }
  .conj-config-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 2px solid #EAE0CF;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 14.5px;
    font-weight: 600;
    box-shadow: var(--shadow);
  }

  /* --- Quiz prompt: type-format --- */
  .conj-prompt {
    text-align: center;
    margin-bottom: 18px;
  }
  .conj-prompt-tense {
    display: block;
    background: rgba(196, 48, 43, 0.12);
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 999px;
    margin: 0 auto 14px;
    width: fit-content;
  }
  .conj-prompt-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.05;
    animation: pop 0.4s ease;
  }
  .conj-prompt-pronoun,
  .conj-prompt-verb {
    color: var(--red);
    white-space: nowrap;
  }
  .conj-prompt-dash {
    color: var(--red);
    opacity: 0.55;
    font-weight: 600;
  }
  .conj-prompt-verb-nl {
    font-size: 14px;
    color: var(--muted);
    font-style: italic;
    font-weight: 500;
    margin-top: 8px;
  }
  .conj-irregular-flag {
    display: inline-block;
    background: rgba(232, 116, 44, 0.18);
    color: var(--orange-dark);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 9px;
    border-radius: 999px;
    margin-top: 8px;
  }

  /* --- Quiz prompt: choice-format --- */
  .conj-prompt-form {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    animation: pop 0.4s ease;
    margin-bottom: 6px;
  }
  .conj-prompt-form-question {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 8px;
  }

  /* --- Choice-buttons grid --- */
  .conj-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .conj-choice-btn {
    background: #fff;
    border: 2px solid #EAE0CF;
    border-radius: 14px;
    padding: 16px 12px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 3px 0 #D8CCB8;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
  }
  .conj-choice-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #D8CCB8;
  }
  .conj-choice-btn.correct {
    background: #4CAF50;
    border-color: #3a8c3e;
    color: #fff;
    box-shadow: 0 3px 0 #3a8c3e;
  }
  .conj-choice-btn.wrong {
    background: var(--red);
    border-color: var(--red-dark);
    color: #fff;
    box-shadow: 0 3px 0 var(--red-dark);
  }
  .conj-choice-btn:disabled {
    cursor: not-allowed;
    opacity: 0.85;
  }

  /* Mute background wave on quiz screens */
  body.in-quiz::after { display: none; }

  /* ========== SPLASH ========== */
  .splash {
    position: fixed; inset: 0;
    max-width: 480px; margin: 0 auto;
    background: var(--bg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 200;
  }
  .splash .torito-mascot { width: 140px; height: 140px; margin-bottom: 16px; }
  .splash .logo-title { font-size: 48px; }
  .splash-spinner {
    width: 28px; height: 28px;
    border: 3px solid #EAE0CF;
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-top: 18px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ========== LOGIN ========== */
  .login-form-card {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 2px solid #EAE0CF;
    margin: 16px 0;
  }
  .login-form-card label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
  }
  .login-form-card input {
    width: 100%;
    background: var(--bg-soft);
    border: 2px solid #EAE0CF;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text);
    outline: none;
    margin-bottom: 14px;
    transition: border-color 0.2s ease;
  }
  .login-form-card input:focus { border-color: var(--red); background: #fff; }
  .login-form-card input.error { border-color: var(--red); }
  .login-error {
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    min-height: 18px;
  }
  .login-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
  }

  /* ========== USER CHIP ========== */
  .user-chip {
    position: absolute;
    top: 16px; right: 16px;
    display: flex; align-items: center; gap: 8px;
    background: #fff;
    border: 2px solid #EAE0CF;
    border-radius: 999px;
    padding: 6px 14px 6px 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 10;
  }
  .user-chip:active { transform: scale(0.96); }
  .user-chip .avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
    color: #fff;
    font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
  }
  .user-menu {
    position: absolute;
    top: 56px; right: 16px;
    background: #fff;
    border: 2px solid #EAE0CF;
    border-radius: 14px;
    padding: 6px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 20;
    display: none;
  }
  .user-menu.show { display: block; }
  .user-menu .user-info {
    padding: 10px 12px 12px;
    border-bottom: 1px solid #F2EADC;
    margin-bottom: 6px;
  }
  .user-menu .user-info .name { font-weight: 700; font-size: 14px; }
  .user-menu .user-info .email { color: var(--muted); font-size: 12px; margin-top: 2px; word-break: break-all; }
  .user-menu button {
    width: 100%;
    background: none; border: none;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
  }
  .user-menu button:hover, .user-menu button:active { background: var(--bg-soft); }
  .user-menu button.danger { color: var(--red); }

  /* Pool-selector in dropdown: drie pillen 50 / 100 / 250 */
  .user-menu .menu-section-label {
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
  }
  .user-menu .pool-row {
    display: flex;
    gap: 6px;
    padding: 4px 8px 8px;
    border-bottom: 1px solid #F2EADC;
    margin-bottom: 6px;
  }
  .user-menu .pool-pill {
    flex: 1;
    text-align: center;
    padding: 8px 6px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    background: var(--bg-soft) !important;
    color: var(--text);
    border: 2px solid transparent !important;
    transition: all 0.15s ease;
  }
  .user-menu .pool-pill.active {
    background: var(--red) !important;
    color: #fff;
    border-color: var(--red-dark) !important;
  }

  /* ========== TOAST ========== */
  .toast {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 90%;
  }
  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
  }

  @media (max-width: 360px) {
    .logo-title { font-size: 54px; }
    .quiz-verb { font-size: 44px; }
    .home-card h2 { font-size: 22px; }
    .home-card p { font-size: 12.5px; }
  }
