/* ================================
   GLOBAL RESET & BASE
================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e3a8a 0%, #020617 55%, #000000 100%);
  color: #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 16px 0;
  overflow-y: auto;
}

html[data-theme="light"] body {
  background: radial-gradient(circle at top, #e5e7eb 0%, #cbd5f5 40%, #93c5fd 100%);
  color: #0f172a;
}

html[data-theme="light"] body > div:first-of-type:not(.app-shell),
html[data-theme="light"] .app-shell {
  background: radial-gradient(circle at top left, #ffffff, #e5e7eb);
  box-shadow:
    0 30px 80px rgba(15,23,42,0.35),
    0 0 0 1px rgba(148,163,184,0.6);
}

html[data-theme="light"] .sidebar {
  background: radial-gradient(circle at top, #f9fafb, #e5e7eb 60%, #dbeafe 100%);
  border-right-color: rgba(148,163,184,0.8);
}

html[data-theme="light"] .quiz-card,
html[data-theme="light"] .player-stats-card,
html[data-theme="light"] .achievements-card {
  background: radial-gradient(circle at top left, #ffffff, #e5e7eb);
  border-color: rgba(148,163,184,0.8);
}

html[data-theme="light"] .nav-btn,
html[data-theme="light"] #navSetup,
html[data-theme="light"] #navLanguage,
html[data-theme="light"] #navGame,
html[data-theme="light"] #navBadges,
html[data-theme="light"] #navStats,
html[data-theme="light"] #navHighscores {
  background: radial-gradient(circle at top, #ffffff, #e5e7eb);
  color: #0f172a;
}

/* ================================
   APP SHELL
================================== */

.app-shell {
  width: 100%;
  max-width: 1280px;
  min-height: 72vh;
  height: auto;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(2,6,23,0.98));
  border-radius: 28px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.85),
    0 0 0 1px rgba(15,23,42,0.8);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow-x: hidden;
  overflow-y: visible;
  padding: 0;
}

/* Fallback: if there is geen expliciete app-shell wrapper,
   style het eerste div-element als shell */
body > div:first-of-type:not(.app-shell) {
  width: 100%;
  max-width: 1280px;
  min-height: 72vh;
  height: auto;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(2,6,23,0.98));
  border-radius: 28px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.85),
    0 0 0 1px rgba(15,23,42,0.8);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow-x: hidden;
  overflow-y: visible;
}

/* MAIN CONTENT WRAPPER */

.content {
  position: relative;
  padding: 26px 28px;
  overflow: visible;
}

.account-btn {
  position: absolute;
  top: 16px;
  right: 24px;
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  color: #e5e7eb;
  cursor: pointer;
}

.account-btn:hover {
  border-color: rgba(59,130,246,0.9);
  box-shadow: 0 6px 16px rgba(15,23,42,0.9);
}

/* ================================
   SIDEBAR NAVIGATIE
================================== */

.sidebar {
  background: radial-gradient(circle at top, #020617, #020617 60%, #000000 100%);
  border-right: 1px solid rgba(15,23,42,0.95);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.sidebar-title {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5b4fc;
  opacity: 0.85;
  margin-bottom: 6px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-toggle-btn {
  display: none;
}

/* Sidebar highscores blok */
/*.sidebar-highscores {...} etc removed, highscores now on separate screen */

.hs-name {
  font-weight: 500;
  color: rgba(191,219,254,0.9);
}

.hs-score {
  font-weight: 700;
  color: #facc15;
  text-shadow: 0 0 8px rgba(250,204,21,0.85);
}

.hs-tooltip {
  position: absolute;
  left: 12px;
  bottom: 80px;
  padding: 8px 10px;
  border-radius: 12px;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  border: 1px solid rgba(148,163,184,0.7);
  box-shadow: 0 10px 24px rgba(15,23,42,0.95);
  font-size: 11px;
  color: rgba(209,213,219,0.95);
  pointer-events: none;
}

.hs-tooltip-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.hs-tooltip-line {
  font-size: 11px;
  color: rgba(191,219,254,0.9);
}

/* Login panel in sidebar */

.login-panel {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(15,23,42,0.9);
  font-size: 12px;
  color: rgba(209,213,219,0.9);
}

.login-title {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a5b4fc;
  opacity: 0.9;
}

.login-row {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.login-password-row {
  margin-bottom: 4px;
}

#loginPassword {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
}

#loginPassword:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.7);
}

#loginName {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
}

#loginName:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.7);
}

.login-btn {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  color: #e5e7eb;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}

.login-btn:hover {
  border-color: rgba(129,140,248,0.9);
  box-shadow: 0 6px 16px rgba(15,23,42,0.9);
}

.login-current {
  font-size: 11px;
  color: rgba(156,163,175,0.95);
}

.logout-btn {
  margin-top: 4px;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: transparent;
  color: rgba(209,213,219,0.9);
  cursor: pointer;
}

.logout-btn:hover {
  border-color: rgba(239,68,68,0.9);
  color: #fecaca;
}

/* Registratieformulier */

.register-open-btn {
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px dashed rgba(148,163,184,0.7);
  background: transparent;
  color: rgba(191,219,254,0.9);
  cursor: pointer;
  text-align: left;
}

.register-open-btn:hover {
  border-style: solid;
  border-color: rgba(59,130,246,0.9);
  color: #bfdbfe;
}

.account-inline-btn {
  margin-top: 6px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: linear-gradient(135deg, #22d3ee, #3b82f6, #a855f7);
  color: #0b1120;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.account-inline-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15,23,42,0.9);
}

/* Registratie overlay */

.register-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,1));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.register-overlay-inner {
  width: 100%;
  max-width: 360px;
  padding: 18px 20px 16px;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.8);
  background: radial-gradient(circle at top left, rgba(30,64,175,0.6), rgba(15,23,42,0.98));
  box-shadow: 0 22px 50px rgba(15,23,42,1);
}

.register-overlay-inner h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #eff6ff;
}

.register-overlay-text {
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(191,219,254,0.9);
}

.register-overlay-inner #registerName,
.register-overlay-inner #registerEmail,
.register-overlay-inner #registerClass,
.register-overlay-inner #registerLevel,
.register-overlay-inner #registerPassword,
.register-overlay-inner #registerPassword2 {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  padding: 7px 10px;
  font-size: 12px;
  outline: none;
  margin-bottom: 6px;
}

.register-overlay-inner #registerName:focus,
.register-overlay-inner #registerPassword:focus,
.register-overlay-inner #registerEmail:focus,
.register-overlay-inner #registerClass:focus,
.register-overlay-inner #registerLevel:focus,
.register-overlay-inner #registerPassword2:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.7);
}

.register-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.register-row select {
  appearance: none;
}

.register-overlay-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

/* Account overlay (wachtwoord wijzigen) */

.account-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,1));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.account-overlay-inner {
  width: 100%;
  max-width: 360px;
  padding: 18px 20px 16px;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.8);
  background: radial-gradient(circle at top left, rgba(30,64,175,0.6), rgba(15,23,42,0.98));
  box-shadow: 0 22px 50px rgba(15,23,42,1);
}

.account-overlay-inner h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #eff6ff;
}

.account-overlay-text {
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(191,219,254,0.9);
}

.account-section {
  margin-bottom: 12px;
}

.account-section h3 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #bfdbfe;
}

.account-section .account-label {
  margin-top: 2px;
}

.account-overlay-inner #accountOldPassword,
.account-overlay-inner #accountNewPassword,
.account-overlay-inner #accountNewPassword2,
.account-overlay-inner #accountEmail,
.account-overlay-inner #settingPreferredLang {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  padding: 7px 10px;
  font-size: 12px;
  outline: none;
  margin-bottom: 6px;
}

.account-overlay-inner #accountOldPassword:focus,
.account-overlay-inner #accountNewPassword:focus,
.account-overlay-inner #accountNewPassword2:focus,
.account-overlay-inner #settingPreferredLang:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.7);
}

.account-preferences {
  padding-top: 4px;
  border-top: 1px solid rgba(30,64,175,0.7);
}

.account-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(209,213,219,0.9);
  margin-bottom: 8px;
}

.account-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.account-field {
  margin-bottom: 8px;
}

.account-label {
  display: block;
  font-size: 11px;
  color: rgba(148,163,184,0.9);
  margin-bottom: 3px;
}

.account-theme-options {
  display: flex;
  gap: 6px;
}

.account-theme-btn {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  padding: 5px 8px;
  font-size: 11px;
  cursor: pointer;
}

.account-theme-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #0b1120;
}

.account-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.account-field select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  font-size: 13px;
}

.account-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(226,232,240,0.9);
}

.account-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.account-overlay-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.account-admin-link {
  display: inline-flex;
  margin-top: 10px;
  font-size: 11px;
  color: #bfdbfe;
  text-decoration: none;
}

.account-admin-link:hover {
  text-decoration: underline;
}

/* Reuse admin-style filters and tables inside de game voor stats */
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-filters label {
  font-size: 12px;
  color: rgba(191,219,254,0.9);
}

.admin-filters select {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  padding: 5px 10px;
  font-size: 12px;
  outline: none;
}

.admin-filters select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.7);
}

.wordstats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 12px;
}

.wordstats-table th,
.wordstats-table td {
  border-bottom: 1px solid rgba(30,64,175,0.7);
  padding: 4px 6px;
  text-align: left;
}

.wordstats-table th {
  font-weight: 600;
  color: #bfdbfe;
}

.wordstats-accuracy-good {
  color: #bbf7d0;
}

.wordstats-accuracy-medium {
  color: #fde68a;
}

.wordstats-accuracy-low {
  color: #fecaca;
}

.admin-status {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(191,219,254,0.85);
}

/* Overlay die de game verstopt tot je ingelogd bent */

.login-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,1));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.login-overlay-inner {
  text-align: center;
  max-width: 320px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.7);
  background: radial-gradient(circle at top left, rgba(30,64,175,0.6), rgba(15,23,42,0.98));
  box-shadow: 0 18px 40px rgba(15,23,42,1);
}

.login-overlay-inner h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #eff6ff;
}

.login-overlay-inner p {
  margin: 0;
  font-size: 13px;
  color: rgba(191,219,254,0.9);
}

/* Als HTML geen expliciete .sidebar heeft, gebruik eerste kolom-stijling */
body > div:first-of-type:not(.app-shell) > button#navSetup,
body > div:first-of-type:not(.app-shell) > button#navBadges,
body > div:first-of-type:not(.app-shell) > button#navStats,
body > div:first-of-type:not(.app-shell) > button#navHighscores,
body > div:first-of-type:not(.app-shell) > button#navFlashcards {
  display: block;
}

/* verberg taal/woordbattle knoppen in de sidebar */
#navLanguage,
#navGame {
  display: none !important;
}

/* footer was hier, maar is verwijderd op verzoek */

/* Nav buttons */

.nav-btn,
#navSetup,
#navLanguage,
#navGame,
#navBadges,
#navStats,
#navHighscores,
#navBattleBeta,
#navFlashcards {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
  color: #e5e7eb;
  font-size: 13px;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  display: block;
  position: relative;
  overflow: hidden;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease;
}

.nav-btn::before,
#navSetup::before,
#navLanguage::before,
#navGame::before,
#navBadges::before,
#navStats::before,
#navHighscores::before,
#navBattleBeta::before,
#navFlashcards::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.25), transparent 65%);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.nav-btn:hover,
#navSetup:hover,
#navLanguage:hover,
#navGame:hover,
#navBadges:hover,
#navStats:hover,
#navHighscores:hover,
#navBattleBeta:hover,
#navFlashcards:hover {
  transform: translateY(-1px);
  border-color: rgba(129,140,248,0.9);
  box-shadow: 0 10px 24px rgba(15,23,42,0.9);
}

.nav-btn:hover::before,
#navSetup:hover::before,
#navLanguage:hover::before,
#navGame:hover::before,
#navBadges:hover::before,
#navStats:hover::before,
#navHighscores:hover::before,
#navBattleBeta:hover::before,
#navFlashcards:hover::before {
  opacity: 1;
}

.nav-btn.active,
#navSetup.active,
#navLanguage.active,
#navGame.active,
#navBadges.active,
#navStats.active,
#navHighscores.active,
#navBattleBeta.active,
#navFlashcards.active {
  background: linear-gradient(135deg, #22d3ee, #3b82f6, #a855f7);
  color: #f9fafb;
  border-color: transparent;
  box-shadow:
    0 0 20px rgba(59,130,246,0.9),
    0 0 38px rgba(129,140,248,0.9);
}

/* Badges knop met goudaccent */
#navBadges {
  border-color: rgba(250,204,21,0.85);
  background: linear-gradient(135deg, #422006, #92400e);
  color: #facc15;
  font-weight: 600;
}

#navBadges::before {
  background: radial-gradient(circle at top left, rgba(250,204,21,0.35), transparent 65%);
}

#navBadges.active {
  background: linear-gradient(135deg, #facc15, #f97316, #fb7185);
  color: #0b1120;
  box-shadow:
    0 0 22px rgba(250,204,21,0.9),
    0 0 40px rgba(248,250,252,0.3);
}

/* Stats knop met blauwe/groene accent */
#navStats {
  border-color: rgba(56,189,248,0.9);
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(15,23,42,1));
  color: #e0f2fe;
}

#navStats.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0b1120;
  box-shadow:
    0 0 20px rgba(34,197,94,0.9),
    0 0 36px rgba(52,211,153,0.9);
}

/* Highscores knop met paars/goud accent */
#navHighscores {
  border-color: rgba(147,51,234,0.9);
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(15,23,42,1));
  color: #ede9fe;
}

#navHighscores.active {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #0b1120;
  box-shadow:
    0 0 20px rgba(168,85,247,0.9),
    0 0 36px rgba(236,72,153,0.9);
}

/* Battle Beta knop */
#navBattleBeta {
  border-color: rgba(34,197,94,0.9);
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(15,23,42,1));
  color: #bbf7d0;
  box-shadow: 0 0 0 1px rgba(34,197,94,0.25);
}
#navBattleBeta.active {
  background: linear-gradient(135deg, #22c55e, #3b82f6, #8b5cf6);
  color: #0b1120;
  box-shadow:
    0 0 20px rgba(34,197,94,0.85),
    0 0 36px rgba(59,130,246,0.85);
}

/* ================================
   MAIN CONTENT AREA
================================== */

.main-panel {
  padding: 100px 90px 30px 100px;
  position: relative;
  overflow: visible;
}

.main-panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 0% 0%, rgba(59,130,246,0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(129,140,248,0.18), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.main-inner {
  position: relative;
  z-index: 1;
  height: auto;
  display: flex;
  flex-direction: column;
}

/* ================================
   SCREENS
================================== */

.screen {
  display: none;
  height: auto;
}

.active-screen {
  display: block;
}

.block {
  margin-bottom: 26px;
}

.block h1 {
  font-size: 32px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #eff6ff;
  margin: 0 0 4px;
  text-shadow:
    0 0 22px rgba(59,130,246,0.9),
    0 0 44px rgba(129,140,248,0.95);
}

.block .subtitle {
  font-size: 13px;
  color: rgba(191,219,254,0.8);
  margin-bottom: 14px;
}

.block h2 {
  font-size: 16px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #bfdbfe;
}

/* Extra ruimte tussen labels en invoervelden in stap 2 */
#screen-setup .block p {
  margin-bottom: 14px;
}

/* Algemene tekst */

.block p {
  font-size: 13px;
}

/* ================================
   BADGES SHOP
================================== */

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.badge-card {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.6);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.badge-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
}

.badge-name {
  font-weight: 600;
  color: #e5e7eb;
  font-size: 12px;
}

.badge-price {
  font-size: 11px;
  color: #a5b4fc;
}

.badge-desc {
  font-size: 11px;
  color: rgba(191,219,254,0.85);
}

.badge-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.badge-btn {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  color: #e5e7eb;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
}

.badge-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.badge-btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #0b1120;
}

.shop-section-title {
  margin: 12px 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bfdbfe;
}

.badge-card-avatar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.avatar-preview {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.avatar-preview img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148,163,184,0.7);
}

.badges-message {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(191,219,254,0.85);
}

.hs-name-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hs-badge-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
}

/* ================================
   MODE & INPUT
================================== */

.mode-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.mode-btn {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.7);
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  color: #e5e7eb;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 13px;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.mode-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(129,140,248,0.9);
  box-shadow: 0 10px 26px rgba(15,23,42,0.9);
}

.mode-btn.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: transparent;
  color: #f9fafb;
  box-shadow: 0 0 24px rgba(34,197,94,0.8);
}

.mode-btn strong {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mode-btn span {
  font-size: 12px;
  color: rgba(226,232,240,0.85);
}

.mode-select-block {
  margin-top: 18px;
}

.mode-label {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  margin-bottom: 6px;
}

.mode-description {
  margin: 0;
  font-size: 12px;
  color: rgba(191,219,254,0.85);
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-row input[type="text"] {
  /* ongeveer halve breedte van de rij */
  flex: 0 0 50%;
  max-width: 50%;

  /* hoogte en look meer in lijn met de Single game button */
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  padding: 10px 16px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.input-row input[type="text"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.7);
  background: rgba(15,23,42,1);
}

/* Quick name buttons */

.quick-name-btn,
#p1Liam,
#p1Ryan,
#p2Liam,
#p2Ryan {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.75);
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  color: #e5e7eb;
  font-size: 13px;      /* groter tekst */
  padding: 9px 16px;    /* hogere en bredere knop */
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.quick-name-btn:hover,
#p1Liam:hover,
#p1Ryan:hover,
#p2Liam:hover,
#p2Ryan:hover {
  transform: translateY(-1px);
  border-color: rgba(129,140,248,0.9);
  box-shadow: 0 8px 20px rgba(15,23,42,0.9);
}

/* Volgende knop */

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: none;
  padding: 11px 22px;
  margin-top: 18px;
  font-size: 13px;
  cursor: pointer;
  background: linear-gradient(135deg, #22d3ee, #3b82f6, #a855f7);
  color: #f9fafb;
  box-shadow:
    0 0 18px rgba(59,130,246,0.9),
    0 0 32px rgba(129,140,248,0.9);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
  width: 180px;
}

.primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 0 24px rgba(59,130,246,1),
    0 0 40px rgba(129,140,248,1);
}

/* ================================
   TAAL KIEZEN
================================== */

.language-select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 6px;
}

.language-select-row select {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}

.language-select-row select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.7);
}

.secondary-btn,
#refreshWordsBtn,
#startGameBtn {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  color: #e5e7eb;
  padding: 11px 22px;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  width: 180px;
}

.secondary-btn:hover,
#refreshWordsBtn:hover,
#startGameBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(129,140,248,0.9);
  box-shadow: 0 8px 20px rgba(15,23,42,0.9);
}

.lang-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0 22px;
  max-width: 520px;
}

.lang-grid-inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 100%;
}

.lang-grid-inline .lang-card {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
}

.lang-grid-inline .lang-text {
  flex: 1;
}

.lang-card {
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.6);
  background: radial-gradient(circle at top left,
    rgba(15,23,42,0.98),
    rgba(15,23,42,0.96));
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  color: #e5e7eb;
  transition:
    transform 0.12s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
  min-height: 54px;
}

.lang-card:hover {
  transform: translateY(-1px);
  border-color: rgba(129,140,248,0.95);
  box-shadow: 0 12px 30px rgba(15,23,42,0.95);
}

.lang-card.active {
  background: linear-gradient(135deg, #22d3ee, #3b82f6, #8b5cf6);
  border-color: transparent;
  box-shadow:
    0 0 20px rgba(59,130,246,0.9),
    0 0 36px rgba(129,140,248,0.95);
}

.lang-flag {
  font-size: 22px;
}

.lang-text {
  display: flex;
  flex-direction: column;
}

.lang-title {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
}

.lang-sub {
  font-size: 12px;
  color: rgba(209,213,219,0.8);
}

.language-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
}

.language-actions .primary-btn {
  margin-top: 0;
}

.wordlist-section {
  margin: 20px 0;
}

.wordlist-header {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wordlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.wordlist-card {
  border-radius: 16px;
  border: 1px solid rgba(59,130,246,0.35);
  background: radial-gradient(circle at 25% 20%, rgba(59,130,246,0.18), rgba(15,23,42,0.92));
  padding: 12px 14px;
  text-align: left;
  color: #e5e7eb;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow:
    0 12px 30px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(59,130,246,0.12);
}

.wordlist-card:hover {
  transform: translateY(-1px);
  border-color: rgba(129,140,248,0.9);
  box-shadow:
    0 14px 34px rgba(0,0,0,0.65),
    0 0 22px rgba(59,130,246,0.5);
}

.wordlist-card.active {
  border-color: transparent;
  background: linear-gradient(135deg, #22d3ee, #3b82f6, #8b5cf6);
  color: #0b1120;
  box-shadow:
    0 0 22px rgba(59,130,246,0.85),
    0 0 38px rgba(139,92,246,0.75);
}

.wordlist-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.wordlist-card .wl-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.wordlist-card .wl-sub {
  font-size: 12px;
  color: rgba(209,213,219,0.85);
}

.wordlist-card .wl-desc {
  margin-top: 2px;
  color: rgba(209,213,219,0.75);
}

.wordlist-card .wl-empty {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(252,165,165,0.85);
}

/* ================================
   TAAL BATTLE – STATS BAR
================================== */

.stats-bar {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.98));
  padding: 10px 18px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.stats-bar span b {
  font-weight: 600;
}

.coins-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(234,179,8,0.22), rgba(15,23,42,0.95));
  border: 1px solid rgba(250,204,21,0.6);
  font-size: 12px;
  color: #facc15;
  text-shadow: 0 0 6px rgba(250,204,21,0.9);
}

.coins-pill .coins-value {
  font-weight: 700;
}

/* ================================
   BATTLE MODE (BETA)
================================== */

#screen-battlebeta .main-inner {
  max-width: 1200px;
}

.battlebeta-header {
  margin-bottom: 10px;
  padding: 12px 0 8px;
}

.battlebeta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 14px;
}

.battlebeta-card {
  border-radius: 22px;
  border: 1px solid rgba(59,130,246,0.4);
  background: linear-gradient(145deg, rgba(15,23,42,0.96), rgba(6,11,20,0.97));
  padding: 16px 18px;
  box-shadow:
    0 18px 38px rgba(0,0,0,0.75),
    0 0 32px rgba(59,130,246,0.28),
    inset 0 0 0 1px rgba(59,130,246,0.12);
}

.battlebeta-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #e5e7eb;
  text-transform: uppercase;
}

.battlebeta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.battlebeta-label {
  font-size: 12px;
  color: rgba(148,163,184,0.9);
}

.battlebeta-value {
  font-size: 15px;
  font-weight: 700;
  color: #e5e7eb;
  text-shadow: 0 0 10px rgba(59,130,246,0.35);
}

.battlebeta-hint {
  font-size: 12px;
  color: rgba(191,219,254,0.85);
  margin: 10px 0 0;
}

.battlebeta-online-pill {
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,0.65);
  color: #a7f3d0;
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(22,163,74,0.15);
}

.battlebeta-search {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
}

.battlebeta-search button,
.battlebeta-user button,
.battlebeta-actions .admin-btn {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  color: #e5e7eb;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.battlebeta-search button:hover,
.battlebeta-user button:hover,
.battlebeta-actions .admin-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(129,140,248,0.9);
  box-shadow: 0 10px 24px rgba(15,23,42,0.9);
}

.battlebeta-search button {
  white-space: nowrap;
}

.battlebeta-search input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.08);
}

.battlebeta-search input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.7);
}

.battlebeta-users {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.battlebeta-user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 14px;
  padding: 10px 12px;
  background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.1), rgba(15,23,42,0.92));
  border: 1px solid rgba(59,130,246,0.25);
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.battlebeta-user:hover {
  transform: translateY(-1px);
  border-color: rgba(129,140,248,0.85);
  box-shadow: 0 10px 24px rgba(15,23,42,0.8);
}

.battlebeta-user .name {
  font-weight: 700;
  color: #e5e7eb;
}

.battlebeta-user .stats {
  font-size: 12px;
  color: rgba(191,219,254,0.85);
}

.battlebeta-status {
  min-height: 44px;
  font-size: 13px;
  color: rgba(226,232,240,0.95);
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.1), rgba(15,23,42,0.95));
  border: 1px solid rgba(59,130,246,0.18);
}

.battlebeta-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Battle play area */
#battleBetaPlay {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(59,130,246,0.2);
}
.battlebeta-play-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.battlebeta-question {
  font-size: 15px;
  font-weight: 700;
  color: #e5e7eb;
}
.battlebeta-timer {
  font-size: 13px;
  color: #facc15;
  text-shadow: 0 0 10px rgba(250,204,21,0.7);
}
#battleBetaAnswer {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  margin-bottom: 6px;
}
.battlebeta-play-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 6px;
}
.battlebeta-progress {
  font-size: 12px;
  color: rgba(191,219,254,0.85);
  margin-bottom: 4px;
}
.battlebeta-play-status {
  font-size: 12px;
  color: rgba(191,219,254,0.9);
  min-height: 16px;
}
.battlebeta-result {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 20%, rgba(34,197,94,0.12), rgba(15,23,42,0.96));
  border: 1px solid rgba(59,130,246,0.35);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  color: #e5e7eb;
}
.battlebeta-result-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.result-outcome {
  font-size: 16px;
  font-weight: 700;
  color: #bbf7d0;
}
.result-outcome.lose {
  color: #fecaca;
}
.result-outcome.draw {
  color: #bfdbfe;
}
.result-sub {
  font-size: 12px;
  color: rgba(226,232,240,0.9);
}
.battlebeta-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.result-card {
  border-radius: 12px;
  padding: 10px 12px;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.15), rgba(15,23,42,0.95));
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.15);
}
.result-card.me {
  border-color: rgba(34,197,94,0.4);
  box-shadow: inset 0 0 0 1px rgba(34,197,94,0.25);
}
.result-card.opp {
  border-color: rgba(248,180,0,0.4);
  box-shadow: inset 0 0 0 1px rgba(248,180,0,0.25);
}
.result-name {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}
.result-score {
  font-size: 24px;
  font-weight: 800;
  color: #fde68a;
  text-shadow: 0 0 12px rgba(252,211,77,0.5);
}
.result-meta {
  font-size: 12px;
  color: rgba(226,232,240,0.9);
}
.battlebeta-result .rematch-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.battlebeta-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  margin-top: 6px;
}
.battlebeta-select:focus {
  border-color: rgba(59,130,246,0.8);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.6);
}
.battlebeta-history {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
.battlebeta-history-item {
  border: 1px solid rgba(148,163,184,0.4);
  border-radius: 12px;
  padding: 10px 12px;
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,0.1), rgba(15,23,42,0.95));
}
.battlebeta-history-item .line1 {
  display: flex;
  justify-content: space-between;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
}
.battlebeta-history-item .line2 {
  font-size: 11px;
  color: rgba(191,219,254,0.85);
}
.battlebeta-history-item .line3 {
  font-size: 11px;
  color: rgba(156,163,175,0.85);
}

/* Battle inbox toast */
.battle-inbox-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  padding: 18px 20px;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.26), rgba(15,23,42,0.96));
  border: 1px solid rgba(59,130,246,0.6);
  box-shadow:
    0 22px 40px rgba(0,0,0,0.6),
    0 0 40px rgba(59,130,246,0.4);
  min-width: 320px;
  max-width: 520px;
  text-align: left;
  pointer-events: auto;
}
.battle-inbox-text {
  font-size: 15px;
  color: #e5e7eb;
  margin-bottom: 12px;
}
.battle-inbox-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.coins-pulse {
  animation: coinsPulse 0.4s ease-out;
}

@keyframes coinsPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(250,204,21,0.0);
  }
  40% {
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(250,204,21,0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(250,204,21,0.0);
  }
}

/* ================================
   QUIZ CARD
================================== */

.quiz-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.6);
  background: radial-gradient(circle at top left, rgba(30,64,175,0.4), rgba(15,23,42,0.98));
  padding: 22px 22px 20px;
  box-shadow: 0 18px 40px rgba(15,23,42,1);
}

.quiz-card.confetti::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(239,68,68,0.8), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(52,211,153,0.8), transparent 32%),
    radial-gradient(circle at 50% 80%, rgba(59,130,246,0.8), transparent 30%),
    radial-gradient(circle at 30% 60%, rgba(234,179,8,0.8), transparent 25%);
  background-size: 120% 120%;
  opacity: 0;
  animation: confetti-burst 0.8s ease-out forwards;
}

@keyframes confetti-burst {
  0% { opacity: 0; transform: scale(0.95); }
  20% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}

.quiz-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56,189,248,0.25), transparent 60%);
  top: -120px;
  right: -60px;
  opacity: 0.9;
  pointer-events: none;
}

.quiz-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 10px;
}

.quiz-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stop-game-btn {
  border: 1px solid rgba(248,113,113,0.65);
  color: #fecaca;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15,23,42,0.6);
}
.stop-game-btn:hover {
  background: rgba(248,113,113,0.12);
  border-color: rgba(248,113,113,0.9);
  color: #fca5a5;
}

/* Flashcards */
#screen-flashcards {
  max-width: 1100px;
  margin: 0 auto;
}
.flash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}
.flash-title {
  font-size: 28px;
  font-weight: 700;
}
.flash-sub {
  color: rgba(226,232,240,0.8);
  font-size: 14px;
}
.flash-hint {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(148,163,184,0.3);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(226,232,240,0.9);
}
.flash-stage {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
}
.flash-nav {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.8);
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.15s ease;
}
.flash-nav:hover {
  transform: translateY(-1px);
  border-color: #38bdf8;
  color: #38bdf8;
}
.flash-card {
  height: 360px;
  perspective: 1200px;
  position: relative;
  border-radius: 16px;
  cursor: pointer;
}
.flash-card-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}
.flash-card.flipped .flash-card-inner {
  transform: rotateY(180deg);
}
.flash-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.35);
  background: radial-gradient(120% 120% at 30% 30%, rgba(56,189,248,0.08), rgba(15,23,42,0.92));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.flash-back {
  transform: rotateY(180deg);
  background: radial-gradient(120% 120% at 70% 30%, rgba(168,85,247,0.08), rgba(15,23,42,0.92));
}
.flash-text {
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.flash-footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.flash-reset {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.9));
  color: #e5e7eb;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.flash-reset:hover {
  transform: translateY(-1px);
  border-color: rgba(129,140,248,0.9);
  box-shadow: 0 10px 24px rgba(15,23,42,0.9);
}
.flash-progress {
  color: rgba(226,232,240,0.8);
}
.flash-empty {
  margin-top: 12px;
  color: #fca5a5;
  font-size: 14px;
}

.quiz-wordlist-pill {
  position: relative;
}

.quiz-wordlist-pill[data-title]:hover::after {
  content: attr(data-title);
  position: absolute;
  top: 110%;
  right: 0;
  background: rgba(30,41,59,0.95);
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.4);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.quiz-timer {
  font-size: 18px;
  font-weight: 700;
  color: #fde68a;
  text-shadow:
    0 0 12px rgba(250,204,21,0.9),
    0 0 24px rgba(250,204,21,0.7);
  visibility: hidden;
}

.quiz-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.7);
}

.quiz-language-flag {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: radial-gradient(circle at top, rgba(15,23,42,1), rgba(15,23,42,0.9));
}

.quiz-wordlist-pill {
  border-radius: 999px;
  padding: 4px 12px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.95);
  color: rgba(226,232,240,0.9);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-language-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #bfdbfe;
  opacity: 0.9;
}

.question-word {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 18px 0 4px;
}

.question-extra {
  font-size: 13px;
  text-align: center;
  opacity: 0.85;
  margin-bottom: 18px;
}

.answer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.answer-row input[type="text"],
#answerInput {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.96);
  color: #e5e7eb;
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.answer-row input[type="text"]:focus,
#answerInput:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.7);
}

.mc-box {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(15,23,42,0.75);
}

.mc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #e5e7eb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mc-title {
  font-weight: 700;
}

.mc-timer {
  font-weight: 700;
  color: #fde68a;
}

.mc-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mc-option {
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.mc-option:hover:not(:disabled) {
  border-color: #38bdf8;
  background: rgba(30,41,59,0.95);
  transform: translateY(-1px);
}

.mc-option.correct {
  border-color: rgba(34,197,94,0.65);
  background: rgba(34,197,94,0.15);
}

.mc-option.wrong {
  border-color: rgba(248,113,113,0.65);
  background: rgba(248,113,113,0.12);
}

.mc-option:disabled {
  opacity: 0.7;
  cursor: default;
}

#checkButton {
  border-radius: 999px;
  border: none;
  padding: 11px 20px;
  font-size: 13px;
  cursor: pointer;
  background: linear-gradient(135deg, #22d3ee, #3b82f6, #a855f7);
  color: #f9fafb;
  box-shadow:
    0 0 18px rgba(59,130,246,0.9),
    0 0 32px rgba(129,140,248,0.9);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#checkButton:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

#checkButton:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

#hintButton {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(30,41,59,0.9);
  color: #e5e7eb;
  padding: 10px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}

#hintButton:hover:not(:disabled) {
  border-color: #38bdf8;
  color: #f8fafc;
  box-shadow: 0 0 0 1px rgba(56,189,248,0.4);
}

#hintButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.feedback {
  display: none;
}

.feedback-row {
  display: none;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.feedback-row.show {
  display: grid;
}

.feedback-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.3);
  background: rgba(15,23,42,0.85);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.feedback-avatar img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.feedback-avatar.shake {
  animation: shake 0.25s linear;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.feedback-text {
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  min-height: 22px;
}

.feedback-text.correct {
  color: #bbf7d0;
}

.feedback-text.wrong {
  color: #fecaca;
}

.hint-text {
  margin: 4px 0 8px;
  font-size: 12px;
  color: rgba(226,232,240,0.85);
}

.example-box {
  margin: 6px 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(30,41,59,0.65);
  border: 1px solid rgba(148,163,184,0.25);
}

.example-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(226,232,240,0.9);
  margin: 0 0 2px;
}

.example-text {
  margin: 0;
  font-size: 12px;
  color: rgba(226,232,240,0.85);
}

/* Review blok (goed/fout deze sessie) */
.review-card {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.25);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

.review-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.review-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: rgba(226,232,240,0.85);
  text-transform: uppercase;
}

.review-count {
  font-size: 22px;
  font-weight: 800;
  color: #e5e7eb;
}

.review-action {
  display: flex;
  justify-content: center;
}
/* ================================
   XP / LEVEL BAR
================================== */

.xp-bar {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 16px;
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.95));
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow: 0 8px 18px rgba(15,23,42,0.7);
}

.xp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
  color: #e5e7eb;
}

#levelDisplay {
  font-weight: 700;
  color: #facc15;
  text-shadow: 0 0 12px rgba(250,204,21,0.9);
}

#xpText {
  font-size: 12px;
  opacity: 0.8;
}

.xp-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.7);
}

#xpFill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6);
  box-shadow: 0 0 16px rgba(59,130,246,0.8);
  transition: width 0.25s ease-out;
}

/* ================================
   PLAYER STATS CARD
================================== */

.player-stats-card {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: 0 14px 30px rgba(15,23,42,0.9);
}

.stats-screen-card,
.highscores-screen-card {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 15%, rgba(59,130,246,0.10), rgba(15,23,42,0.95));
  border: 1px solid rgba(59,130,246,0.25);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.75),
    0 0 18px rgba(59,130,246,0.35);
}

.hs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}

.hs-filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.55);
  background: radial-gradient(circle at 30% 20%, rgba(59,130,246,0.15), rgba(15,23,42,0.9));
  color: rgba(191,219,254,0.92);
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.15);
}

.hs-filter-btn.active {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #0b1120;
  border-color: transparent;
  box-shadow:
    0 8px 18px rgba(59,130,246,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.hs-filter-btn:hover:not(.active) {
  border-color: rgba(59,130,246,0.7);
  box-shadow: 0 6px 16px rgba(59,130,246,0.22);
}

#hsList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hs-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hs-row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: radial-gradient(circle at 25% 30%, rgba(59,130,246,0.12), rgba(15,23,42,0.92));
  border: 1px solid rgba(59,130,246,0.35);
  font-size: 13px;
  color: rgba(226,232,240,0.9);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.65),
    inset 0 0 0 1px rgba(59,130,246,0.12);
}

.hs-row.hs-header {
  background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.16), rgba(15,23,42,0.92));
  border: 1px solid rgba(59,130,246,0.45);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hs-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hs-name {
  font-weight: 600;
  color: rgba(191,219,254,0.9);
}

.hs-score {
  font-weight: 700;
  color: #facc15;
  text-shadow: 0 0 8px rgba(250,204,21,0.75);
}

.hs-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: 0 6px 12px rgba(0,0,0,0.55);
}

.hs-badge-icon {
  font-size: 16px;
}

.coins-display-inline {
  font-size: 12px;
  color: rgba(191,219,254,0.9);
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: radial-gradient(circle at 25% 20%, rgba(59,130,246,0.14), rgba(15,23,42,0.9));
  border: 1px solid rgba(59,130,246,0.28);
}

/* ================================
   RESPONSIVE LAYOUT (MOBILE)
================================== */

@media (max-width: 1024px) {
  .lang-grid-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell,
  body > div:first-of-type:not(.app-shell) {
    grid-template-columns: 230px minmax(0, 1fr);
    border-radius: 28px;
    max-width: 1280px;
    min-height: 72vh;
  }

  .sidebar {
    position: relative;
    top: auto;
    width: 100%;
    border-right: 1px solid rgba(15,23,42,0.95);
    border-bottom: none;
    padding: 26px 18px;
    flex-direction: column;
    gap: 18px;
  }

  .sidebar-toggle-btn {
    display: none;
  }

  .sidebar-nav,
  .login-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .content {
    padding: 26px 28px;
  }

  .stats-bar {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .player-stats-card,
  .stats-screen-card,
  .highscores-screen-card,
  .achievements-card,
  .quiz-card {
    margin-top: 18px;
  }

  .avatar-row {
    flex-direction: row;
    align-items: center;
  }

  .avatar-options {
    flex-wrap: nowrap;
  }

  .mode-row {
    flex-direction: column;
  }
}

.player-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.player-stats-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bfdbfe;
  margin: 0;
}

.player-stats-title span {
  color: #facc15;
  text-shadow: 0 0 10px rgba(250,204,21,0.85);
}

.player-stats-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.stats-filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: transparent;
  color: rgba(191,219,254,0.85);
  font-size: 10px;
  padding: 3px 8px;
  cursor: pointer;
  white-space: nowrap;
}

.stats-filter-btn.active {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #0b1120;
  border-color: transparent;
}

.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.player-stat-item {
  border-radius: 14px;
  padding: 8px 10px;
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.95));
  border: 1px solid rgba(31,41,55,0.9);
  box-shadow: 0 6px 14px rgba(15,23,42,0.85);
}

.player-stat-label {
  display: block;
  font-size: 11px;
  color: rgba(148,163,184,0.9);
  margin-bottom: 2px;
}

.player-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
}

/* ================================
   AVATAR SELECTORS
================================== */

.avatar-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 6px;
}

.avatar-label {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  white-space: nowrap;
}

.avatar-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
  max-width: 100%;
  padding: 4px 0;
}

.avatar-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.9));
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  flex: 0 0 auto;
}

.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.avatar-btn:hover {
  transform: translateY(-1px) scale(1.05);
  border-color: rgba(56,189,248,0.9);
  box-shadow: 0 6px 14px rgba(15,23,42,0.9);
}

.avatar-btn.avatar-selected {
  border-color: transparent;
  background: linear-gradient(135deg, #22d3ee, #3b82f6, #8b5cf6);
  color: #0b1120;
  box-shadow:
    0 0 12px rgba(56,189,248,0.9),
    0 0 20px rgba(59,130,246,0.8);
}

.avatar-btn.avatar-locked {
  opacity: 0.35;
  filter: grayscale(100%);
  cursor: default;
  box-shadow: none;
  border-color: rgba(55,65,81,0.9);
}

.avatar-btn.avatar-locked:hover {
  transform: none;
  box-shadow: none;
}

.wordlist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
}

.wordlist-label {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  white-space: nowrap;
}

#wordListSelect {
  min-width: 220px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  padding: 7px 12px;
  font-size: 12px;
  outline: none;
}

#wordListSelect:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.7);
}

/* ================================
   AVATAR IN GAME SCREEN
================================== */
.stats-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-display {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(129,140,248,0.9);
  box-shadow: 0 0 10px rgba(59,130,246,0.8);
}

/* ================================
   AVATAR UNLOCK MESSAGE
================================== */

.unlock-message {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.6);
  color: #22c55e;
  font-size: 14px;
  border-radius: 8px;
  text-align: center;
  animation: unlockFlash 0.6s ease;
}

@keyframes unlockFlash {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================================
   ACHIEVEMENTS / BADGES
================================== */

.achievements-card {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: 0 12px 26px rgba(15,23,42,0.9);
}

.achievements-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.achievements-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bfdbfe;
  margin: 0;
}

.achievements-summary {
  font-size: 12px;
  color: rgba(191,219,254,0.9);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.achievement-card {
  border-radius: 14px;
  padding: 8px 10px;
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(15,23,42,0.94));
  border: 1px solid rgba(31,41,55,0.9);
  font-size: 12px;
  color: rgba(209,213,219,0.9);
  opacity: 0.45;
  position: relative;
  overflow: hidden;
}

.achievement-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.achievement-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: radial-gradient(circle at top, rgba(56,189,248,0.25), rgba(15,23,42,0.9));
  border: 1px solid rgba(56,189,248,0.8);
  box-shadow: 0 0 6px rgba(56,189,248,0.8);
}

.achievement-card.unlocked {
  opacity: 1;
  border-color: rgba(56,189,248,0.9);
  box-shadow: 0 0 12px rgba(56,189,248,0.7);
}

.achievement-card.unlocked::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.achievement-title {
  font-size: 12px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 2px;
}

.achievement-desc {
  font-size: 11px;
  color: rgba(148,163,184,0.95);
}

.achievement-card.locked .achievement-title,
.achievement-card.locked .achievement-desc {
  color: rgba(148,163,184,0.7);
}

/* Toast voor nieuwe badge */
.achievement-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: 260px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.achievement-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.achievement-toast-inner {
  padding: 10px 14px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(34,197,94,0.25), rgba(15,23,42,0.98));
  border: 1px solid rgba(34,197,94,0.7);
  box-shadow:
    0 16px 40px rgba(15,23,42,0.95),
    0 0 18px rgba(34,197,94,0.7);
}

.achievement-toast-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bbf7d0;
  margin-bottom: 4px;
}

.achievement-toast-title {
  font-size: 13px;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 3px;
}

.achievement-toast-desc {
  font-size: 11px;
  color: rgba(209,213,219,0.9);
}
