.swb-intro{background:#fff;border-bottom:1px solid #f0eeee;padding:12px 16px 14px;max-width:480px;margin:0 auto;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;position:relative}
.swb-intro::after{content:'';position:absolute;bottom:0;left:16px;right:16px;height:2px;background:linear-gradient(90deg,var(--accent,#AE1C28),transparent);border-radius:1px;opacity:0.35}
.swb-intro-back{font-size:.75rem;color:#bbb;text-decoration:none;display:inline-flex;align-items:center;gap:3px;margin-bottom:4px;transition:color .15s;letter-spacing:.01em}
.swb-intro-back:hover{color:var(--accent,#AE1C28)}
.swb-intro h1{font-size:1.1rem;font-weight:800;color:var(--accent,#AE1C28);margin:0 0 2px}
.swb-intro p{font-size:.8rem;color:#999;margin:0;line-height:1.4}
@media(prefers-color-scheme:dark){.swb-intro{background:var(--bg,#0f172a);border-bottom-color:#1e293b}.swb-intro p{color:#94a3b8}.swb-intro-back{color:#475569}}
body.swb-dark .swb-intro{background:var(--bg,#0f172a);border-bottom-color:#1e293b}
body.swb-dark .swb-intro p{color:#94a3b8}
body.swb-dark .swb-intro-back{color:#475569}
.swb-seo{max-width:840px;margin:0 auto;padding:16px 16px 8px;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif}
.swb-seo h2,.swb-seo h3{color:#374151}
.swb-seo h2{font-size:1rem;font-weight:700;margin:0 0 8px}
.swb-seo p{font-size:.82rem;line-height:1.6;color:#4b5563;margin:0 0 8px}
.swb-seo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin:12px 0}
.swb-seo-card{background:#fafafa;border:1px solid #e5e7eb;border-radius:12px;padding:10px}
.swb-seo-card h3{font-size:.82rem;margin:0 0 4px;color:#374151}
.swb-seo-card p{font-size:.78rem;margin:0;color:#4b5563}
.swb-seo-faq{background:#fafafa;border:1px solid #e5e7eb;border-radius:12px;padding:10px;margin-top:6px}
.swb-seo-faq h3{font-size:.82rem;color:#374151;margin:0 0 6px}
.swb-blog-section{max-width:840px;margin:0 auto;padding:16px 16px 24px;border-top:1px solid #f3f4f6;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif}
.swb-blog-section h2{font-size:.78rem;font-weight:700;color:#9ca3af;letter-spacing:.08em;text-transform:uppercase;margin:0 0 10px}
.swb-blog-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.swb-blog-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:12px;text-decoration:none;color:inherit;transition:border-color .15s,transform .2s cubic-bezier(.22,1,.36,1)}
.swb-blog-card:hover{border-color:var(--accent,#2dd4c4);transform:translateY(-2px)}
.swb-blog-card-date{font-size:.7rem;color:#9ca3af;margin-bottom:4px}
.swb-blog-card h3{font-size:.85rem;font-weight:700;color:#111;line-height:1.4;margin:0 0 4px}
.swb-blog-card p{font-size:.78rem;color:#6b7280;line-height:1.5;margin:0;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.swb-blog-more{display:inline-block;margin-top:10px;font-size:.8rem;font-weight:700;color:var(--accent,#2dd4c4);text-decoration:none}
.swb-blog-more:hover{text-decoration:underline}
.swb-footer{text-align:center;padding:14px 16px 28px;font-size:.78rem;color:#ccc;max-width:480px;margin:0 auto;border-top:1px solid #f3f4f6}
.swb-footer a{color:#bbb;text-decoration:none;margin:0 4px;transition:color .15s}
.swb-footer a:hover{color:#6b7280}
/* ── FLOATING MENU ── */
.fab{position:fixed;top:1rem;right:1rem;z-index:1000;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,0.92);backdrop-filter:blur(8px);border:1px solid rgba(0,0,0,0.1);box-shadow:0 2px 12px rgba(0,0,0,0.12);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer}
.fab span{display:block;width:20px;height:2px;background:#111;border-radius:2px;transition:transform 0.25s,opacity 0.25s}
.fab.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.fab.open span:nth-child(2){opacity:0}
.fab.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.float-menu{display:none;position:fixed;top:3.75rem;right:1rem;z-index:999;background:#fff;border:1px solid #e5e7eb;border-radius:1rem;box-shadow:0 8px 24px rgba(0,0,0,0.1);min-width:200px;overflow:hidden}
.float-menu.open{display:block}
.float-menu-logo{display:flex;justify-content:center;padding:1rem 1.25rem 0.75rem;border-bottom:1px solid #f3f4f6}
.float-menu-logo img{height:36px;width:auto}
.float-menu-label{font-size:0.7rem;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:#9ca3af;padding:0.6rem 1.25rem 0.25rem}
.float-menu a{display:flex;align-items:center;gap:0.75rem;padding:0.65rem 1.25rem;text-decoration:none;color:#111;font-size:0.95rem;font-weight:500;transition:background 0.15s}
.float-menu a.float-menu-active{color:var(--accent,#DD0000);font-weight:700}
.float-menu a:last-child{margin-bottom:0.4rem}
.float-menu a:hover{background:#f9fafb}
.float-menu-lang-row{display:flex;align-items:center;gap:6px;padding:0.45rem 1.25rem 0.5rem}
.float-menu-lang-btn{flex:1;padding:5px 0;border:1px solid #e5e7eb;border-radius:999px;background:#f9fafb;font-size:0.82rem;font-weight:700;cursor:pointer;transition:background 0.15s,border-color 0.15s;color:#555}
.float-menu-lang-btn.active{background:var(--accent,#DD0000);border-color:var(--accent,#DD0000);color:#fff}
.float-menu-lang-btn:hover:not(.active){background:#f0f0f0}
.float-menu-lang-link{flex:1;display:flex;align-items:center;justify-content:center;padding:5px 0;border:1px solid #e5e7eb;border-radius:999px;background:#f9fafb;font-size:0.82rem;font-weight:700;text-decoration:none;color:#555;transition:background 0.15s,border-color 0.15s,color 0.15s}
.float-menu a.float-menu-lang-link{padding:5px 0;font-size:0.82rem;font-weight:700;color:#555;gap:0;justify-content:center}
.float-menu-lang-link.active{background:var(--accent,#DD0000);border-color:var(--accent,#DD0000);color:#fff}
.float-menu a.float-menu-lang-link.active{color:#fff}
.float-menu-lang-link:hover:not(.active){background:#f0f0f0}
:root {
  --accent: #AE1C28;
  --accent-dark: #8B1620;
  --accent-light: #D4404F;
}
:root {
  --bg: #ffffff;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --border: #e0ddd5;
  --success: #2d8a4e;
  --success-bg: #e8f5ed;
  --error: #c0392b;
  --error-bg: #fdecea;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 6px 28px rgba(0,0,0,0.11);
  --radius: 14px;
  --radius-lg: 18px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* HOME SCREEN */
.home-screen {
  display: flex;
  flex-direction: column;
  padding: 24px 16px 32px;
  gap: 0;
  flex: 1;
}

.app-header {
  text-align: center;
  padding: 16px 0 20px;
}

.home-header {
  text-align: center;
  padding: 16px 0 20px;
}

.home-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.home-logo {
  height: 36px;
  width: auto;
  display: inline-block;
  transition: opacity 0.2s;
}
.home-logo:hover { opacity: 0.75; }

.home-flag { font-size: 2rem; line-height: 1; }

.home-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
}

.home-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}

.home-account-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 194, 168, 0.1), rgba(255, 255, 255, 0.96));
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.home-account-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-account-cta-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
}

.home-account-cta-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.home-account-cta .home-account-cta-btn {
  width: auto;
  white-space: nowrap;
  margin-top: 0;
  padding: 12px 24px;
}

@media (max-width: 440px) {
  .home-account-cta .home-account-cta-btn {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
}

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

.exercise-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  color: inherit;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  appearance: none;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.15s, box-shadow 0.22s;
}

.exercise-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1), 0 0 0 1px var(--accent-light);
}

.exercise-card.locked {
  background: #f5f1ea;
  border-color: #d7d0c4;
  color: #8a8175;
  cursor: pointer;
  box-shadow: none;
}

.exercise-card.locked:hover {
  transform: none;
  border-color: #d7d0c4;
  box-shadow: none;
}

.exercise-card-emoji { font-size: 1.8rem; line-height: 1; }

.exercise-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}

.exercise-card-description {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.exercise-card.locked .exercise-card-title,
.exercise-card.locked .exercise-card-description,
.exercise-card.locked .exercise-card-emoji {
  color: #8a8175;
}

.exercise-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9500;
}

.exercise-gate {
  position: relative;
  width: min(440px, 100%);
  background: #fff8ea;
  border: 2px solid #f0d59b;
  border-radius: 18px;
  padding: 24px 18px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.exercise-gate-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.exercise-gate-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.exercise-gate-text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.exercise-gate-btn {
  width: 100%;
}

.exercise-back-btn {
  width: 100%;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: white;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.exercise-back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.app-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
}

.app-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}

/* TABS */
.tabs {
  display: flex;
  flex-direction: row;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  gap: 0;
}

.tab-btn {
  flex: 1;
  padding: 10px 6px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.15s, border-color 0.15s;
  text-align: center;
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-btn:hover:not(.active) {
  color: var(--text);
}

/* SECTION TITLE */
.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

/* LIST CARDS */
.list-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.personal-list-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 2px solid #e8b200;
  background: linear-gradient(135deg, #fffdf0, #fff9d6);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  margin-bottom: 10px;
}
.personal-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 178, 0, 0.22);
}
.personal-list-card.active {
  border-color: #d4a000;
  background: linear-gradient(135deg, #fff9d0, #fff3b0);
  box-shadow: 0 4px 16px rgba(232, 178, 0, 0.28);
}
.personal-list-card-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.personal-list-card-info {
  flex: 1;
}
.personal-list-card-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #7a5800;
}
.personal-list-card-sub {
  font-size: 0.88rem;
  color: #a07820;
  margin-top: 2px;
}
.personal-list-card.disabled {
  opacity: 0.45;
  cursor: default;
  border-color: #ddd;
  background: #f9f9f9;
}
.personal-list-card.disabled .personal-list-card-name {
  color: #999;
}
.personal-list-card.disabled .personal-list-card-sub {
  color: #aaa;
}

/* Premium-locked state voor de persoonlijke woordenlijst */
.personal-list-card.premium-locked {
  cursor: pointer;
  opacity: 0.85;
  border-style: dashed;
  border-color: #d4a000;
  background: linear-gradient(135deg, #fffef5, #fffbe8);
}
.personal-list-card.premium-locked:hover {
  opacity: 1;
  box-shadow: 0 6px 20px rgba(232,178,0,0.22);
  transform: translateY(-2px);
}
.personal-list-premium-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c4a03;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 7px;
  vertical-align: middle;
}
.personal-list-manage-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
  flex-shrink: 0;
}
.personal-list-manage-btn:hover {
  opacity: 1;
  background: rgba(212,160,0,0.12);
}

/* WordlistManager modal */
.wordlist-manager-overlay {
  align-items: flex-end;
}
@media (min-width: 480px) {
  .wordlist-manager-overlay {
    align-items: center;
  }
}
.wordlist-manager {
  position: relative;
  width: min(500px, 100%);
  max-height: 90vh;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1.5rem 1.25rem 1.5rem;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
@media (min-width: 480px) {
  .wordlist-manager {
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.22);
    padding: 1.75rem;
  }
}
.wordlist-manager-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #7a5800;
  margin-bottom: 4px;
  padding-right: 2rem;
}
.wordlist-count {
  font-size: 0.8rem;
  color: #a07820;
  margin-bottom: 1rem;
}
.wordlist-manager-list {
  flex: 1;
  overflow-y: auto;
  max-height: 280px;
  border: 1.5px solid #e9e2d0;
  border-radius: 0.85rem;
  background: #fffdf5;
  margin-bottom: 0.9rem;
}
.wordlist-manager-empty {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: #a07820;
}
.wordlist-manager-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #f0e8d0;
  font-size: 0.9rem;
}
.wordlist-manager-entry:last-child {
  border-bottom: none;
}
.wordlist-entry-word {
  font-weight: 700;
  color: #333;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wordlist-entry-sep {
  color: #d4a000;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.wordlist-entry-nl {
  color: #555;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wordlist-entry-delete {
  background: none;
  border: none;
  color: #e87070;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
}
.wordlist-entry-delete:hover {
  opacity: 1;
  background: rgba(232,112,112,0.1);
}
.wordlist-add-form {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 0.85rem;
}
.wordlist-add-input {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid #e5e0d0;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: #111;
  background: #fdfaf2;
  transition: border-color 0.15s;
  min-width: 0;
}
.wordlist-add-input:focus {
  outline: none;
  border-color: #d4a000;
}
.wordlist-add-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, transform 0.15s;
}
.wordlist-add-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.wordlist-add-btn:not(:disabled):hover {
  opacity: 0.85;
  transform: scale(1.08);
}
.wordlist-manager-actions {
  display: flex;
  gap: 10px;
}
.wordlist-save-btn {
  flex: 1;
  font-size: 0.95rem;
}

/* Dark mode voor wordlist manager */
body.swb-dark .wordlist-manager {
  background: #1e293b;
}
body.swb-dark .wordlist-manager-title { color: #fde68a; }
body.swb-dark .wordlist-count { color: #94a3b8; }
body.swb-dark .wordlist-manager-list { background: #0f172a; border-color: #334155; }
body.swb-dark .wordlist-manager-entry { border-color: #1e293b; }
body.swb-dark .wordlist-entry-word { color: #f1f5f9; }
body.swb-dark .wordlist-entry-nl { color: #94a3b8; }
body.swb-dark .wordlist-entry-sep { color: #fbbf24; }
body.swb-dark .wordlist-add-input { background: #0f172a; border-color: #334155; color: #f1f5f9; }
body.swb-dark .wordlist-add-input:focus { border-color: #fbbf24; }
body.swb-dark .personal-list-card.premium-locked { background: linear-gradient(135deg, #2a1f0a, #1e1608); border-color: #d4a000; }
body.swb-dark .personal-list-premium-badge { color: #1a0f00; }

.list-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.list-card:hover:not(.active) {
  border-color: #c8c8c8;
}

.list-card.active {
  border-color: var(--success);
  background: #f2faf5;
  cursor: default;
}

.list-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.list-card-emoji {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.list-card-info {
  flex: 1;
  min-width: 0;
}

.list-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.list-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.list-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.list-topic-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  background: #f0f0f0;
  color: #999;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  user-select: none;
}

.list-topic-pill.selected {
  background: rgba(221, 0, 0, 0.09);
  color: var(--accent);
  border-color: rgba(221, 0, 0, 0.3);
}

.list-card.active .list-topic-pill:hover {
  background: #e8e8e8;
}

.list-card.active .list-topic-pill.selected:hover {
  background: rgba(221, 0, 0, 0.16);
}

/* STICKY START TOP */
.start-sticky-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  padding: 10px 0 8px;
  margin-bottom: 4px;
}

/* TOPICS WARNING */
.topics-warning {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(221, 0, 0, 0.07);
  border: 1.5px solid rgba(221, 0, 0, 0.2);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 8px;
}

/* START ROW */
.start-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.start-row .count-selector {
  flex: 1;
  margin-bottom: 0;
}

.words-available {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

/* CEFR BADGES */
.cefr-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 20px;
  color: white;
  letter-spacing: 0.03em;
}

.cefr-A1 { background: #2ecc71; }
.cefr-A2 { background: #3498db; }
.cefr-B1 { background: #f39c12; }
.cefr-B2 { background: #e67e22; }
.cefr-C1 { background: #9b59b6; }

/* TOPIC SELECTOR */
.topic-selector {
  display: flex;
  flex-direction: row;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.topic-btn {
  padding: 6px 12px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.15s;
  white-space: nowrap;
}

.topic-btn.active {
  border-color: var(--accent);
  background: #fff5f5;
  color: var(--accent);
}

.topic-btn:hover:not(.active) {
  border-color: var(--accent-light);
  color: var(--text);
}

/* COUNT SELECTOR */
.count-selector {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.adsense-block {
  width: 100%;
  margin: 18px 0 16px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

#swb-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  background: #1e293b;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
}
#swb-cookie-banner p { margin: 0; flex: 1; min-width: 180px; }
#swb-cookie-banner a { color: #7dd3fc; text-decoration: underline; }
.swb-cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.swb-cookie-btns button {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
#swb-cookie-decline { background: #334155; color: #94a3b8; }
#swb-cookie-accept { background: var(--accent, #2dd4c4); color: #fff; }

.count-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.15s;
}

.count-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

/* START BUTTON */
.start-btn {
  display: block;
  width: 100%;
  padding: 15px 28px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff3333 100%);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(221, 0, 0, 0.28);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  margin-top: 8px;
}

.start-btn:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(221, 0, 0, 0.36);
}

.start-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(221, 0, 0, 0.2);
}

.start-btn:disabled {
  background: #ccc;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* GAME SCREEN */
@keyframes screen-enter {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.game-screen {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  flex: 1;
  animation: screen-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.game-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 99px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.stop-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.15s;
}

.stop-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* SCORE BAR */
.score-bar {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  box-shadow: var(--shadow);
}

.score-item {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

.score-item.good { color: var(--success); }
.score-item.bad { color: var(--error); }
.score-item.pct { color: var(--text-muted); margin-left: auto; }
.score-item.label { color: var(--text-muted); font-size: 0.8rem; }

/* QUESTION WRAP */
@keyframes question-enter {
  0%   { opacity: 0; transform: translateY(14px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.question-wrap {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 20px 24px;
  text-align: center;
  animation: question-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.question-word {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.question-topic {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.tip-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.15s;
  margin-top: 8px;
}

.tip-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tip-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
  padding: 8px 12px;
  background: #f0f0f0;
  border-radius: var(--radius-sm);
}

/* INPUT */
.text-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--card-bg);
  outline: none;
  transition: border-color 0.15s;
  text-align: center;
}

.text-input:focus {
  border-color: var(--accent);
}

/* BUTTONS */
.check-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.check-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.16);
}

.check-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.next-btn {
  width: 100%;
  padding: 14px;
  background: var(--card-bg);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.next-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* FOUTEN OEFENEN — tekstveld */
.swb-text-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.swb-text-input:focus {
  border-color: var(--accent);
}
.swb-text-input:disabled {
  background: #f3f4f6;
  color: #999;
}

/* FEEDBACK BOX */
@keyframes feedback-enter {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.feedback-box {
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  animation: feedback-enter 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.feedback-box.correct {
  background: var(--success-bg);
  color: var(--success);
  border: 2px solid #a8dabb;
}

.feedback-box.incorrect {
  background: var(--error-bg);
  color: var(--error);
  border: 2px solid #f5b7b1;
}

.feedback-answer {
  font-size: 0.85rem;
  margin-top: 4px;
  opacity: 0.85;
}

/* MASCOT */
.mascot {
  text-align: center;
  line-height: 1;
  transition: all 0.2s;
}
.mascot-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@keyframes owl-bounce {
  0%   { transform: scale(1) translateY(0); }
  30%  { transform: scale(1.25) translateY(-12px); }
  55%  { transform: scale(0.95) translateY(5px); }
  75%  { transform: scale(1.08) translateY(-5px); }
  100% { transform: scale(1) translateY(0); }
}
@keyframes owl-shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20%  { transform: translateX(-7px) rotate(-6deg); }
  40%  { transform: translateX(7px) rotate(6deg); }
  60%  { transform: translateX(-4px) rotate(-3deg); }
  80%  { transform: translateX(4px) rotate(3deg); }
}
@keyframes owl-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.mascot-img.mascot-happy  { animation: owl-bounce 0.55s ease-out; }
.mascot-img.mascot-sad    { animation: owl-shake 0.5s ease-in-out; }
.mascot-img.mascot-neutral { animation: owl-float 3s ease-in-out infinite; }

.mascot-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

/* SUMMARY SCREEN */
.summary-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
  gap: 16px;
  flex: 1;
}

@keyframes summary-enter {
  0%   { opacity: 0; transform: translateY(20px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.summary-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
  text-align: center;
  width: 100%;
  animation: summary-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.summary-emoji {
  font-size: 3rem;
  margin-bottom: 8px;
}

.summary-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

.stars {
  font-size: 2rem;
  letter-spacing: 4px;
  margin: 12px 0;
}

.summary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.summary-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.replay-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.replay-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.16);
}

.home-btn {
  width: 100%;
  padding: 14px;
  background: var(--card-bg);
  color: var(--text-muted);
  border: 2px solid var(--border);
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* REVIEW WIDGET */
.review-widget {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #e5e7eb);
  text-align: center;
}

.review-widget-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.review-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.review-star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 2px;
  line-height: 1;
  transition: transform 0.1s;
  opacity: 0.35;
  filter: grayscale(1);
}

.review-star.active {
  opacity: 1;
  filter: none;
}

.review-star:hover,
.review-star.hover {
  transform: scale(1.2);
  opacity: 1;
  filter: none;
}

.review-thanks {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* VERB GAME */
.verb-selector-wrap {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 4px;
}

.verb-select-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.verb-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.verb-select:focus { border-color: var(--accent); }

.tense-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.tense-btn {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.15s;
  text-align: center;
  line-height: 1.2;
}

.tense-btn.active {
  border-color: var(--accent);
  background: #fff5f5;
  color: var(--accent);
}

.tense-btn:hover:not(.active) {
  border-color: var(--accent-light);
  color: var(--text);
}

.verb-form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.verb-form-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.verb-form-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.verb-pronoun {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 72px;
}

.verb-input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}

.verb-input:focus { border-color: var(--accent); }
.verb-input.correct { border-color: var(--success); background: var(--success-bg); }
.verb-input.incorrect { border-color: var(--error); background: var(--error-bg); }

.verb-input-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 28px;
  text-align: right;
}

/* DIALOGUE GAME */
.dialogue-screen {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  flex: 1;
}

.dialogue-level-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.level-btn {
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  transition: all 0.15s;
}

.level-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff5f5;
}

.dialogue-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.dialogue-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.dialogue-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.dialogue-card-emoji {
  font-size: 1.8rem;
}

.dialogue-card-info {
  flex: 1;
}

.dialogue-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.dialogue-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.npc-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* CHAT HISTORY */
.chat-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.chat-bubble.npc {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: var(--text);
  box-shadow: var(--shadow);
}

.chat-bubble.player {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-bubble.player.wrong {
  background: var(--error);
}

.chat-nl {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 2px;
  font-style: italic;
}

/* NPC QUESTION CARD */
.npc-question-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}

.npc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.npc-avatar {
  font-size: 1.6rem;
}

.npc-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
}

.npc-speech {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.npc-speech-nl {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.option-btn {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  transition: all 0.15s;
  line-height: 1.3;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateX(3px);
}

.option-btn.selected.correct {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}

.option-btn.selected.incorrect {
  border-color: var(--error);
  background: var(--error-bg);
  color: var(--error);
}

.option-btn.reveal-correct {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}

.option-btn:disabled {
  cursor: default;
}

.option-btn:focus-visible,
.exercise-card:focus-visible,
.exercise-back-btn:focus-visible,
.count-btn:focus-visible,
.start-btn:focus-visible,
.memory-start-btn:focus-visible,
.falling-start-btn:focus-visible,
.swipe-start-btn:focus-visible,
.swipe-review-btn:focus-visible,
.next-btn:focus-visible {
  outline: 3px solid rgba(221, 0, 0, 0.22);
  outline-offset: 3px;
}

.article-drill-note {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff5f5, #fff0f0);
  border: 2px solid #fecaca;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-question-card {
  text-align: center;
}

.article-noun {
  font-size: 2rem;
}

.article-choice-hint {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-choices {
  gap: 10px;
}

.article-choice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 72px;
}

.article-choice-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}

.story-body {
  white-space: pre-line;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
  text-align: left;
  background: #fffdf7;
  border: 2px solid #f6e7b0;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

.story-question {
  font-size: 1rem;
  font-weight: 900;
  color: var(--accent);
  text-align: left;
  margin-bottom: 10px;
}

.story-translate-btn {
  display: inline-flex;
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: white;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 12px;
}

.story-translate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.story-translation {
  white-space: pre-line;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text);
  text-align: left;
  background: #f7fafc;
  border: 2px solid #dbe7f3;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.option-nl {
  font-size: 0.75rem;
  opacity: 0.75;
  font-style: italic;
  margin-top: 2px;
}

/* STREAK */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff3cd;
  border: 2px solid #f39c12;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #b7770d;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

/* CONFETTI */
.confetti-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state-emoji {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state-text {
  font-size: 0.95rem;
  font-weight: 600;
}

/* LOADING */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 12px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 360px) {
  .app-title { font-size: 1.6rem; }
  .home-title { font-size: 1.6rem; }
  .home-account-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-account-cta-btn {
    width: 100%;
  }
  .word-grid { grid-template-columns: 1fr 1fr; }
  .question-word { font-size: 1.6rem; }
}

/* MEMORY GAME */
.memory-screen {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  flex: 1;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .memory-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.memory-card {
  aspect-ratio: 3 / 4;
  cursor: pointer;
  perspective: 600px;
  user-select: none;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.memory-card:not(.flipped):not(.matched):hover {
  transform: scale(1.06);
}

.memory-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-sm);
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-back,
.memory-card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.memory-card-back {
  background: linear-gradient(135deg, var(--accent, #d69e2e), #f6ad55);
  font-size: 1.4rem;
}

.memory-card-front {
  background: var(--card-bg);
  transform: rotateY(180deg);
  padding: 4px;
  gap: 2px;
}

.memory-card.matched .memory-card-front {
  background: var(--success-bg);
  border-color: var(--success);
}

.memory-card-word {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
}

.memory-card-nl {
  font-size: 0.58rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  font-style: italic;
}

.memory-replay-btn {
  width: 100%;
  padding: 14px;
  background: #d69e2e;
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
}

.memory-replay-btn:hover { background: #b7860e; }

.memory-start-btn {
  display: block;
  width: 100%;
  padding: 12px 8px;
  background: #d69e2e;
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
}

.memory-start-btn:hover { background: #b7860e; }

.memory-start-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.swipe-start-btn {
  display: block;
  width: 100%;
  padding: 12px 8px;
  background: linear-gradient(135deg, #111827, #374151);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 8px;
}

.swipe-start-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(17,24,39,0.22);
}

.swipe-start-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.swipe-review-note {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

.swipe-review-btn {
  display: block;
  width: 100%;
  padding: 12px 8px;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 8px;
}

.swipe-review-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(249,115,22,0.24);
}

.swipe-review-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── FALLING WORD GAME ── */
.falling-start-btn {
  display: block;
  width: 100%;
  padding: 12px 8px;
  background: #e67e22;
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
}

.falling-start-btn:hover {
  background: #ca6f1e;
  transform: translateY(-1px);
}

.falling-start-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.falling-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.falling-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: white;
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
}

.falling-lives {
  font-size: 1rem;
  letter-spacing: 2px;
}

.falling-score {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.falling-level {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 800;
  color: #e67e22;
  background: #fef3e2;
  border-radius: 20px;
  padding: 3px 10px;
}

.falling-arena {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
}

.falling-mascot {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  pointer-events: none;
}
.falling-mascot .mascot-img {
  width: 52px;
  height: 52px;
}

.falling-word {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -70px;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--accent);
  background: white;
  border: 3px solid var(--accent);
  border-radius: 14px;
  padding: 10px 22px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(221,0,0,0.15);
  animation: word-fall linear forwards;
  z-index: 1;
}

.falling-word.flash-correct {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
  animation-play-state: paused;
}

.falling-word.flash-wrong {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
  animation-play-state: paused;
}

@keyframes word-fall {
  from { top: -70px; }
  to   { top: 100%; }
}

.falling-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px 16px;
  background: white;
  border-top: 2px solid var(--border);
  flex-shrink: 0;
}

.falling-option-btn {
  width: 100%;
  padding: 13px 16px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.08s;
  text-align: left;
}

.falling-option-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.falling-option-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: #fff5f5;
}

.falling-option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.progress-fill.swipe { background: linear-gradient(90deg, #111827, #f97316); }

.progress-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.top-home-btn {
  padding: 6px 12px;
  flex-shrink: 0;
}

.swipe-game {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 10px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(249,115,22,0.14), transparent 24%),
    linear-gradient(180deg, #0f172a 0%, #111827 40%, #1f2937 100%);
}

.swipe-hint-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.76);
}

.swipe-viewport {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-snap-stop: always;
  border-radius: 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.swipe-viewport::-webkit-scrollbar { display: none; }

.swipe-slide {
  width: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.swipe-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100%;
  border-radius: 28px;
  padding: 18px 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  color: white;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(249,115,22,0.32), transparent 24%),
    linear-gradient(180deg, #111827 0%, #0f172a 100%);
  box-shadow: 0 20px 44px rgba(15,23,42,0.38);
  transform: scale(0.985);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swipe-card.active {
  transform: scale(1);
  box-shadow: 0 22px 48px rgba(15,23,42,0.48);
}

.swipe-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.swipe-index {
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.swipe-card .list-topic-pill {
  background: rgba(255,255,255,0.16);
  color: white;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swipe-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 20px;
  text-align: center;
}

.swipe-word-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.swipe-label,
.swipe-answer-label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.72;
}

.swipe-prompt {
  font-size: clamp(2.8rem, 12vw, 5.2rem);
  font-weight: 900;
  line-height: 0.95;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}

.swipe-answer {
  width: min(100%, 420px);
  max-width: 100%;
  border-radius: 22px;
  padding: 18px 16px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.swipe-answer.always-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.swipe-answer-text {
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  font-weight: 800;
  margin-top: 6px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}

.swipe-card-bottom { min-height: 40px; }

.swipe-card-caption {
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0.8;
}

.swipe-rated-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.swipe-rated-pill.known {
  background: rgba(110,231,183,0.2);
  color: #d1fae5;
}

.swipe-rated-pill.again {
  background: rgba(253,186,116,0.2);
  color: #ffedd5;
}

.swipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.swipe-action-btn {
  border: none;
  border-radius: 18px;
  padding: 14px 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 900;
  cursor: pointer;
  color: white;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.swipe-action-btn:hover:not(:disabled) { transform: translateY(-1px); }

.swipe-action-btn.again {
  background: linear-gradient(135deg, #ea580c, #fb923c);
  box-shadow: 0 10px 22px rgba(234,88,12,0.24);
}

.swipe-action-btn.known {
  background: linear-gradient(135deg, #16a34a, #4ade80);
  box-shadow: 0 10px 22px rgba(22,163,74,0.24);
}

.swipe-action-btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
  transform: none;
}

/* ── FLOATING MENU ── */
.fab {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.fab span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.fab.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fab.open span:nth-child(2) { opacity: 0; }
.fab.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.float-menu {
  display: none;
  position: fixed;
  top: 3.75rem;
  right: 1rem;
  z-index: 999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 200px;
  overflow: hidden;
}
.float-menu.open { display: block; }
.float-menu-logo {
  display: flex;
  justify-content: center;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}
.float-menu-logo img { height: 36px; width: auto; }
.float-menu-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0.6rem 1.25rem 0.25rem;
}
.float-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  color: #111;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s;
}
.float-menu a:last-child { margin-bottom: 0.4rem; }
.float-menu a:hover { background: #f9fafb; }
.float-menu a.float-menu-active { color: var(--accent); font-weight: 700; }
.float-menu-lang-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1.25rem 0.5rem;
}
.float-menu-lang-btn {
  flex: 1;
  padding: 5px 0;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  color: #555;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.float-menu-lang-btn:hover { border-color: var(--accent); }
.float-menu-lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 480px) {
  .exercise-grid { grid-template-columns: 1fr; }
  .swipe-game {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 8px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .swipe-viewport { border-radius: 22px; }
  .swipe-card { padding: 14px 12px 16px; border-radius: 22px; }
  .swipe-card-top { align-items: flex-start; }
  .swipe-prompt { font-size: min(18vw, 4rem); }
  .swipe-answer { width: 100%; padding: 14px; }
  .swipe-answer-text { font-size: min(8vw, 1.6rem); }
  .swipe-actions {
    position: sticky;
    bottom: 0;
    padding-top: 4px;
    padding-bottom: calc(2px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(15,23,42,0), rgba(15,23,42,0.72) 35%, rgba(15,23,42,0.92) 100%);
  }
}

.sentence-builder-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sentence-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sentence-prompt {
  font-size: 1.4rem;
  font-weight: 900;
  color: #1a202c;
}

.sentence-help {
  font-size: 0.9rem;
  color: #718096;
  line-height: 1.5;
}

.sentence-answer-drop,
.sentence-token-bank {
  min-height: 88px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px dashed #cbd5e0;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sentence-answer-drop.is-dragover,
.sentence-token-bank.is-dragover {
  border-color: #dd0000;
  background: #fff5f5;
  transform: translateY(-1px);
}

.sentence-answer-placeholder {
  font-size: 0.95rem;
  color: #a0aec0;
  font-weight: 700;
}

.sentence-token {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fff7e6, #ffe4b5);
  color: #744210;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: grab;
  box-shadow: 0 6px 14px rgba(221, 0, 0, 0.12);
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.15s;
}

.sentence-token:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 8px 20px rgba(221, 0, 0, 0.18);
}

.sentence-token-answer {
  background: linear-gradient(135deg, #dd0000, #f56565);
  color: #fff;
}

.sentence-actions {
  display: flex;
  gap: 10px;
}

.sentence-action-btn,
.sentence-check-btn {
  flex: 1;
}

@media (max-width: 640px) {
  .sentence-actions {
    flex-direction: column;
  }

  .sentence-prompt {
    font-size: 1.2rem;
  }
}

.hangman-start-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.hangman-start-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
}

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

.hangman-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px 32px;
}

.hangman-card {
  background: #fff;
  border: 2px solid #dbeafe;
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.hangman-clue {
  color: #374151;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.hangman-topic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.hangman-word {
  font-size: clamp(1.35rem, 5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  color: #0f172a;
  margin-bottom: 14px;
  word-break: break-word;
}

.hangman-wrong {
  color: #6b7280;
  font-size: 0.88rem;
  font-weight: 700;
}

.hangman-keyboard {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.hangman-key {
  border: 0;
  border-radius: 12px;
  padding: 12px 0;
  background: #fff;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: lowercase;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.hangman-key:not(:disabled):hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
}

.hangman-key.correct {
  background: #dcfce7;
  color: #166534;
}

.hangman-key.wrong {
  background: #fee2e2;
  color: #b91c1c;
}

.hangman-key:disabled {
  cursor: default;
  opacity: 1;
}

/* ── MODE SELECT ─────────────────────────────────────────────────────────────── */
.mode-select-screen {
  display: flex;
  flex-direction: column;
  padding: 24px 16px 40px;
  flex: 1;
}

.mode-select-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow);
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 32px rgba(0,0,0,0.1);
}

.mode-card-guide {
  text-decoration: none;
  background: linear-gradient(135deg, #f4fbf6 0%, #eefaf3 100%);
  border-color: #a7dbb6;
}

.mode-card-guide:hover {
  border-color: #4aa66a;
}

.mode-card-leerpad {
  background: linear-gradient(135deg, #fff9f0 0%, #fef3e8 100%);
  border-color: #f5c97a;
}

.mode-card-leerpad:hover {
  border-color: var(--accent);
}

.mode-card-skill-studio {
  background: linear-gradient(135deg, #eef6ff 0%, #f4f7ff 100%);
  border-color: #b7cdfb;
}

.mode-card-skill-studio:hover {
  border-color: #5b86e5;
}

.mode-card-skill-studio.locked {
  position: relative;
  background: linear-gradient(135deg, #fff9ec 0%, #fff4d8 100%);
  border-color: #f0d59b;
}

.mode-card-premium-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(124, 74, 3, 0.1);
  color: #7c4a03;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.premium-gate {
  background: linear-gradient(180deg, #fff9ec 0%, #fff4d8 100%);
  border-color: #f0d59b;
}

.premium-gate-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(124, 74, 3, 0.12);
}

.premium-gate-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: #7c4a03;
}

.premium-gate-note {
  font-size: 0.8rem;
  font-weight: 700;
  color: #7a6a58;
  text-align: right;
}

.mode-card-emoji {
  font-size: 2.2rem;
  line-height: 1;
}

.mode-card-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
}

.mode-card-desc {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── SKILL STUDIO ───────────────────────────────────────────────────────────── */
.skill-studio-screen {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 40px;
  flex: 1;
}

.skill-studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.skill-studio-card {
  border: 2px solid #dbe7ff;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.skill-studio-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  border-color: #7aa2f7;
}

.skill-studio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.skill-studio-card-emoji {
  font-size: 1.8rem;
}

.skill-studio-card-count {
  font-size: 0.76rem;
  font-weight: 800;
  color: #3157b8;
  background: #e8f0ff;
  border-radius: 999px;
  padding: 6px 10px;
}

.skill-studio-card-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
}

.skill-studio-card-desc {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 600;
}

.skill-studio-lesson-header {
  margin-bottom: 14px;
}

.skill-studio-lesson-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b86e5;
  margin: 6px 0 8px 40px;
}

.skill-studio-lesson-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  margin-left: 40px;
}

.skill-studio-level-badge {
  display: inline-flex;
  align-items: center;
  margin: 10px 0 0 40px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #3157b8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skill-studio-lesson-card,
.skill-studio-result-card {
  width: 100%;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 22px 20px;
}

.skill-studio-lesson-section-title {
  font-size: 0.8rem;
  font-weight: 900;
  color: #5b86e5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.skill-studio-lesson-copy p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.skill-studio-lesson-copy.structured {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-studio-content-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
  margin: 4px 0 0;
}

.skill-studio-content-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-studio-content-list li {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text);
}

.skill-studio-example-box {
  background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-studio-example-label {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3157b8;
}

.skill-studio-example-line {
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 700;
}

.skill-studio-quiz-intro {
  background: #f8fafc;
  border: 1px solid #dbe7ff;
  color: var(--text-muted);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 8px 0 16px;
}

.skill-studio-quiz-screen {
  padding-top: 8px;
}

.skill-studio-result-screen {
  justify-content: center;
}

.skill-studio-result-card {
  max-width: 420px;
  text-align: center;
  margin: 0 auto;
}

.skill-studio-result-emoji {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 8px;
}

.skill-studio-result-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
}

.skill-studio-result-score {
  font-size: 1rem;
  font-weight: 800;
  color: #3157b8;
  margin-top: 8px;
}

.skill-studio-result-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 600;
  margin: 12px 0 16px;
}

/* ── SKILL STUDIO VERB TABLES ────────────────────────────────────────────────── */
.skill-studio-verb-table {
  background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  overflow: hidden;
}

.skill-studio-verb-table-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #dbe7ff;
}

.skill-studio-verb-table-emoji {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.skill-studio-verb-table-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.skill-studio-verb-table-infinitive {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
}

.skill-studio-verb-table-translation {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.skill-studio-verb-table-tense {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #3157b8;
  background: #e8f0ff;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.skill-studio-verb-table-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.skill-studio-verb-table-row {
  display: flex;
  flex-direction: column;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(219, 231, 255, 0.6);
}

.skill-studio-verb-table-row:nth-child(odd) {
  border-right: 1px solid rgba(219, 231, 255, 0.6);
}

.skill-studio-verb-table-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.skill-studio-verb-table-person {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: lowercase;
}

.skill-studio-verb-table-form {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text);
}

body.swb-dark .skill-studio-verb-table {
  background: #0f172a;
  border-color: #334155;
}

body.swb-dark .skill-studio-verb-table-header {
  border-color: #334155;
}

body.swb-dark .skill-studio-verb-table-row {
  border-color: rgba(51, 65, 85, 0.7);
}

body.swb-dark .skill-studio-verb-table-row:nth-child(odd) {
  border-right-color: rgba(51, 65, 85, 0.7);
}

body.swb-dark .skill-studio-verb-table-tense {
  background: #172554;
  color: #bfdbfe;
}

/* ── LEERPAD HOME ────────────────────────────────────────────────────────────── */
.leerpad-screen {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 40px;
  flex: 1;
}

.leerpad-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.leerpad-back-btn {
  border: none;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.leerpad-back-btn:hover { color: var(--accent); }

.leerpad-header-info {
  flex: 1;
}

.leerpad-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
}

.leerpad-progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.leerpad-xp-badge {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f5c97a;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #92400e;
  white-space: nowrap;
  flex-shrink: 0;
}

.leerpad-overall-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.leerpad-overall-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light, var(--accent)));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.leerpad-congrats {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px solid #6ee7b7;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #065f46;
  text-align: center;
  margin-bottom: 16px;
}

.leerpad-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.leerpad-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #f9fafb;
  border: 1px solid var(--border);
}

.leerpad-group-header.started {
  background: #fffbeb;
  border-color: #fde68a;
}

.leerpad-group-header.done {
  background: #f0fdf4;
  border-color: #86efac;
}

.leerpad-group-label-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  flex: 1;
}

.leerpad-group-count {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
}

.leerpad-level-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.leerpad-level-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: white;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
  box-shadow: var(--shadow);
  width: 100%;
}

.leerpad-level-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.leerpad-level-btn.completed {
  background: #f0fdf4;
  border-color: #86efac;
}

.leerpad-level-btn.bonus {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border-color: #fde047;
}

.leerpad-level-btn.bonus:hover:not(:disabled) {
  border-color: #eab308;
}

.leerpad-level-btn.bonus.completed {
  background: #f0fdf4;
  border-color: #86efac;
}

.leerpad-level-btn.locked {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: default;
  box-shadow: none;
}

.leerpad-level-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.leerpad-level-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.leerpad-level-info {
  flex: 1;
  min-width: 0;
}

.leerpad-level-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: inherit;
}

.leerpad-level-words {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.leerpad-level-btn.locked .leerpad-level-name,
.leerpad-level-btn.locked .leerpad-level-words {
  color: #9ca3af;
}

.leerpad-level-status-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── LEERPAD LEVEL TOP BAR ───────────────────────────────────────────────────── */
.leerpad-level-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px 6px;
  background: var(--bg);
}

.leerpad-level-topbar-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
}

/* ── LEERPAD RESULT SCREEN ───────────────────────────────────────────────────── */
.leerpad-result-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 40px;
  flex: 1;
}

.leerpad-result-card {
  width: 100%;
  max-width: 380px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.leerpad-result-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 4px;
}

.leerpad-result-title {
  font-size: 1.5rem;
  font-weight: 900;
}

.leerpad-result-title.passed { color: var(--success); }
.leerpad-result-title.failed { color: var(--error); }

.leerpad-result-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.leerpad-result-xp {
  font-size: 1rem;
  font-weight: 800;
  color: #d97706;
  background: #fef3c7;
  border-radius: 999px;
  padding: 6px 16px;
}

.leerpad-result-fail-msg {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
}

.leerpad-result-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.leerpad-guest-notice {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fffbeb;
  border: 2px solid #fde68a;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.leerpad-guest-notice-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: #92400e;
  line-height: 1.4;
}

.leerpad-guest-login-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s;
}

.leerpad-guest-login-btn:hover { opacity: 0.88; }

/* ── NEXT POPUP OVERLAY ────────────────────────────────────────────────────── */
.next-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(3px);
}

.next-popup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  border-radius: 24px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.32);
  max-width: 340px;
  width: 100%;
  text-align: center;
}

.next-popup-owl {
  width: 80px;
  height: 80px;
  margin-bottom: 2px;
}

.next-popup-owl .mascot-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.next-popup-title {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.1;
}

.next-popup.correct   .next-popup-title { color: #166534; }
.next-popup.incorrect .next-popup-title { color: #991b1b; }

.next-popup-sub {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 2px;
}

.next-popup-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.next-popup-bar {
  height: 100%;
  border-radius: 4px;
  transform-origin: left;
  animation: next-timer-shrink 5s linear forwards;
}

.next-popup.correct   .next-popup-bar { background: #22c55e; }
.next-popup.incorrect .next-popup-bar { background: #ef4444; }

@keyframes next-timer-shrink {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

.next-popup-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b7280;
}

.next-popup-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  font: inherit;
  margin-top: 4px;
  transition: opacity 0.15s;
}

.next-popup.correct   .next-popup-btn { background: linear-gradient(135deg, #22c55e, #16a34a); }
.next-popup.incorrect .next-popup-btn { background: linear-gradient(135deg, #ef4444, #dc2626); }
.next-popup-btn:hover { opacity: 0.88; }

/* ── DARK MODE ────────────────────────────────────────────────────────────── */
body.swb-dark {
  --card-bg: #1e293b;
  --bg: #0f172a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
}

body.swb-dark .exercise-card.locked {
  background: #131e30;
  border-color: #2d3748;
  color: #64748b;
}

body.swb-dark .exercise-card.locked .exercise-card-title,
body.swb-dark .exercise-card.locked .exercise-card-description,
body.swb-dark .exercise-card.locked .exercise-card-emoji {
  color: #64748b;
}

body.swb-dark .mode-card-leerpad {
  background: #1c1608;
  border-color: #713f12;
}

body.swb-dark .mode-card-skill-studio {
  background: #10192b;
  border-color: #3157b8;
}
body.swb-dark .mode-card-skill-studio.locked {
  background: linear-gradient(180deg, rgba(120,53,15,0.28) 0%, rgba(92,44,10,0.42) 100%);
  border-color: rgba(245,158,11,0.42);
}
body.swb-dark .mode-card-premium-badge,
body.swb-dark .premium-gate-price {
  color: #fde68a;
}
body.swb-dark .premium-gate {
  background: linear-gradient(180deg, #2f2416 0%, #1f160d 100%);
  border-color: rgba(245,158,11,0.42);
}
body.swb-dark .premium-gate-price-row {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(245,158,11,0.18);
}
body.swb-dark .premium-gate-note {
  color: #e5e7eb;
}

body.swb-dark .mode-card-title { color: #f1f5f9; }
body.swb-dark .mode-card-desc  { color: #94a3b8; }
body.swb-dark .skill-studio-card,
body.swb-dark .skill-studio-lesson-card,
body.swb-dark .skill-studio-result-card {
  background: #1e293b;
  border-color: #334155;
}

body.swb-dark .skill-studio-card-count {
  background: #172554;
  color: #bfdbfe;
}

body.swb-dark .skill-studio-quiz-intro {
  background: #0f172a;
  border-color: #334155;
}

body.swb-dark .skill-studio-example-box {
  background: #0f172a;
  border-color: #334155;
}

body.swb-dark .skill-studio-example-label {
  color: #93c5fd;
}

body.swb-dark .skill-studio-level-badge {
  background: #172554;
  color: #bfdbfe;
}

body.swb-dark .next-popup                    { background: #1e293b; }
body.swb-dark .next-popup-bar-wrap           { background: rgba(255,255,255,0.08); }
body.swb-dark .next-popup-sub                { color: #94a3b8; }
body.swb-dark .next-popup-counter            { color: #94a3b8; }
body.swb-dark .next-popup.correct   .next-popup-title { color: #86efac; }
body.swb-dark .next-popup.incorrect .next-popup-title { color: #fca5a5; }

body.swb-dark .story-body {
  background: #1a1f2e;
  border-color: #334155;
  color: #e2e8f0;
}

body.swb-dark .story-translation {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

body.swb-dark .hangman-card {
  background: #1e293b;
  border-color: #334155;
}

body.swb-dark .hangman-key {
  background: #1e293b;
  color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.swb-dark .hangman-key.correct {
  background: #14532d;
  color: #86efac;
}

body.swb-dark .hangman-key.wrong {
  background: #450a0a;
  color: #fca5a5;
}

body.swb-dark .sentence-card {
  background: #1e293b;
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}

body.swb-dark .sentence-prompt { color: #f1f5f9; }
body.swb-dark .sentence-help   { color: #94a3b8; }

body.swb-dark .sentence-answer-drop,
body.swb-dark .sentence-token-bank {
  background: rgba(30, 41, 59, 0.8);
  border-color: #475569;
}

body.swb-dark .falling-top {
  background: #1e293b;
  border-color: #334155;
}

body.swb-dark .falling-options {
  background: #1e293b;
  border-color: #334155;
}

body.swb-dark .falling-option-btn {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

body.swb-dark .verb-form-card,
body.swb-dark .verb-selector-wrap {
  background: #1e293b;
  border-color: #334155;
}

body.swb-dark .verb-select {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

body.swb-dark .tip-text {
  background: #1e293b;
  color: #94a3b8;
}

body.swb-dark .fab {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(255,255,255,0.1);
}

body.swb-dark .fab span { background: #f1f5f9; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
  }
}
