/* ==========================================================================
   KlavyeUstam - Bileşenler, Modallar, Kartlar ve Kontroller
   ========================================================================== */

/* ==========================================================================
   1. Üst Menü & Header
   ========================================================================== */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  gap: 1rem;
  box-sizing: border-box;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 16px var(--accent-glow);
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
}

.logo-badge {
  font-size: 0.62rem;
  color: var(--accent-secondary);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Navigasyon Sekmeleri */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.nav-tab-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Navigasyon Sekmeleri Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  display: inline-block;
  opacity: 0.85;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 250px;
  max-width: min(310px, 92vw);
  background: var(--bg-card, #13141f);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  padding: 0.45rem;
  z-index: 99999 !important;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  animation: navDropdownFade 0.16s ease-out;
}

/* Hem hover hem de .open sınıfı ile anında açılır */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex !important;
}

@keyframes navDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
  user-select: none;
}

.nav-dropdown-item:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.nav-dropdown-item.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--accent-primary);
}

.dropdown-item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dropdown-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.dropdown-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-dropdown-item.active .dropdown-item-title {
  color: var(--accent-primary);
}

.dropdown-item-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* Streak & XP Widget */
.streak-pill-widget {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #f59e0b;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.streak-pill-widget:hover {
  background: rgba(245, 158, 11, 0.2);
  transform: translateY(-1px);
}

.streak-flame {
  font-size: 1rem;
  animation: flamePulse 1.2s infinite alternate ease-in-out;
}

@keyframes flamePulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px #f59e0b); }
  100% { transform: scale(1.2); filter: drop-shadow(0 0 8px #f59e0b); }
}

.xp-tag {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--accent-secondary);
}

/* Google Giriş Butonu */
.google-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.google-login-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.google-icon-svg {
  width: 18px;
  height: 18px;
}

/* Kullanıcı Profil Widgetı */
.user-profile-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.75rem 0.35rem 0.45rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.user-profile-widget:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}

.user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  background: var(--bg-secondary);
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.user-display-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-sync-badge {
  font-size: 0.68rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

.cloud-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.dropdown-chevron {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Profil Dropdown Menüsü */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 99999;
}

.user-dropdown-menu.active {
  display: flex;
  animation: fadeInDown 0.18s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  padding: 0.4rem 0.5rem;
}

.dropdown-user-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.dropdown-user-email {
  font-size: 0.75rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.dropdown-course-badge {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--accent-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.25rem 0;
}

.dropdown-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.dropdown-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.action-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.action-icon-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.action-icon-btn.active {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* ==========================================================================
   2. Hızlı Test Kontrol Çubuğu (Mode Selector Bar)
   ========================================================================== */

.typing-controls-wrapper {
  max-width: 960px;
  margin: 1rem auto 1.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.mode-pills-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.mode-btn:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.mode-btn.active {
  background: var(--surface-hover);
  color: var(--accent-primary);
  font-weight: 700;
}

.mode-btn .mode-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: currentColor;
  vertical-align: middle;
}

.mode-btn .mode-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mode-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
  margin: 0 0.4rem;
}

.sub-options-container {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.sub-option-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.sub-option-btn:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.sub-option-btn.active {
  color: var(--accent-primary);
  font-weight: 700;
}

/* ==========================================================================
   3. Canlı İstatistik Göstergeleri (Live Floating Metrics)
   ========================================================================== */

.live-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto 0.75rem auto;
  padding: 0 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.metric-item {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.metric-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.progress-track {
  width: 100%;
  max-width: 960px;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  margin: 0 auto 1.5rem auto;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.25s linear;
}

/* ==========================================================================
   4. Yazma Alanı (The Core Typing Canvas)
   ========================================================================== */

.typing-area-box {
  position: relative;
  max-width: 960px;
  min-height: 160px;
  max-height: 160px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  color: var(--text-primary);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  cursor: text;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.typing-area-box.focused {
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px var(--accent-glow);
}

/* Gizli Giriş Yakalayıcı (Invisible Input Trap) */
.hidden-typing-input {
  /* position:absolute ile .typing-area-box merkezinde tutulur; asla sayfayı tepeye kaydırmaz */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  z-index: -1;
}

.words-wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  line-height: 2.2rem;
  user-select: none;
  transition: transform 0.15s ease-out;
  color: var(--text-primary);
}

.word {
  position: relative;
  display: inline-flex;
  transition: opacity 0.15s ease;
}

/* Koyu modda ve tüm temalarda untyped harfler son derece belirgin ve net */
.char {
  color: var(--char-untyped, var(--text-muted, #cbd5e1));
  position: relative;
  transition: color 0.05s ease, opacity 0.05s ease;
  font-weight: 600;
  opacity: 0.88;
}

/* Şu an yazılmakta olan kelimedeki harfler ekstra parlak ve odaklı */
.current-word .char {
  color: var(--char-current-untyped, var(--text-primary, #ffffff));
  opacity: 1;
  font-weight: 700;
}

/* Doğru yazılan harfler kristal netlikte parlar, asla siyah olmaz */
.char.correct,
.current-word .char.correct {
  color: var(--correct-color, #ffffff) !important;
  font-weight: 800;
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

/* Yanlış yazılan harfler canlı uyarıcı renkte */
.char.incorrect,
.current-word .char.incorrect {
  color: var(--incorrect-color, #ff3366) !important;
  font-weight: 800;
  opacity: 1;
  text-decoration: underline wavy var(--incorrect-color, #ff3366);
  text-shadow: 0 0 8px rgba(255, 51, 102, 0.45);
}

.char.extra,
.current-word .char.extra {
  color: var(--extra-color, #ef4444) !important;
  opacity: 1;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.char.missed {
  border-bottom: 2px dashed var(--missed-color, #fca5a5);
}

.word.has-error {
  border-bottom: 2px solid var(--incorrect-color, #ef4444);
}

/* Aydınlık temalarda yazı gölgesi olmadan keskin lacivert/antrasit yazı */
body.theme-light .char.correct,
body.theme-paper .char.correct,
body.theme-ocean .char.correct,
body.theme-pastel .char.correct {
  text-shadow: none !important;
}

body.theme-light .char.incorrect,
body.theme-paper .char.incorrect,
body.theme-ocean .char.incorrect,
body.theme-pastel .char.incorrect,
body.theme-light .char.extra,
body.theme-paper .char.extra,
body.theme-ocean .char.extra,
body.theme-pastel .char.extra {
  text-shadow: none !important;
}

/* Kayan Dinamik İmleç */
#typingCaret {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  border-radius: 2px;
}

/* Odak Kaybı Uyarı Bandı */
.focus-lost-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.typing-area-box:not(.focused) .focus-lost-overlay {
  opacity: 1;
  pointer-events: auto;
}

.focus-msg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--bg-card);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   5. Sonuç Modalı ve Karne Ekranı (Results Modal)
   ========================================================================== */

.results-modal-wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.results-modal-wrapper.active {
  opacity: 1;
  pointer-events: auto;
}

.results-modal-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

.results-modal-dialog {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 740px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  z-index: 2;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.results-modal-wrapper.active .results-modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.new-record-banner {
  background: linear-gradient(90deg, #f59e0b, #ec4899);
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  letter-spacing: 1px;
}

/* Zabıt Katipliği Özel Kartı */
.zabit-result-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.zabit-result-card.zabit-pass {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
}

.zabit-result-card.zabit-fail {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
}

.zabit-badge {
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

.zabit-pass .zabit-badge { background: #10b981; color: #ffffff; }
.zabit-fail .zabit-badge { background: #ef4444; color: #ffffff; }

.zabit-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.zabit-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Ana İstatistikler Izgarası */
.results-main-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-big-block {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-big-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-big-val.highlight {
  color: var(--accent-primary);
  text-shadow: 0 0 16px var(--accent-glow);
}

/* Canvas Grafik Kutusu */
.chart-container {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.5rem;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.chart-title {
  font-weight: 700;
  color: var(--text-primary);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.legend-line {
  display: inline-block;
  width: 14px;
  height: 3px;
  vertical-align: middle;
  margin-right: 3px;
}

.legend-line.net-wpm { background: #a855f7; }
.legend-line.raw-wpm { background: rgba(255, 255, 255, 0.4); }
.legend-dot.error-dot { background: #ef4444; width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 3px; }

#wpmChartCanvas {
  width: 100%;
  height: 180px;
}

/* Detay Izgarası */
.results-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.detail-name { color: var(--text-secondary); }
.detail-val { font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); }

.txt-green { color: #10b981; }
.txt-red { color: #ef4444; }
.txt-yellow { color: #f59e0b; }
.txt-purple { color: #a855f7; }
.txt-muted { color: var(--text-muted); }

.results-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ==========================================================================
   6. Butonlar & UI Öğeleri
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   7. 10 Parmak Akademi Ekranı (Lessons View)
   ========================================================================== */

.academy-view-container {
  max-width: 1080px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.lessons-header-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.hero-badge {
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.academy-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.academy-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 600px;
}

.level-section {
  margin-bottom: 2.5rem;
}

.level-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--accent-primary);
}

.lessons-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.lesson-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.lesson-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.lesson-card.completed {
  border-color: rgba(16, 185, 129, 0.35);
}

.lesson-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

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

.star-icon.filled { color: #f59e0b; }
.star-icon.empty { color: rgba(255, 255, 255, 0.15); }

.lesson-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.lesson-keys-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.key-pill {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.lesson-footer {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.6rem;
}

.lesson-start-btn {
  color: var(--accent-primary);
  font-weight: 700;
}

/* Aktif Ders Bilgi Bildirimi (Banner) */
.lesson-banner-box {
  display: none;
  max-width: 960px;
  margin: 0 auto 1rem auto;
}

.lesson-banner-box.active {
  display: block;
}

.active-lesson-info {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.25));
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.close-lesson-btn {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-lesson-btn:hover {
  background: var(--incorrect-color);
  border-color: var(--incorrect-color);
}

.error-key-badge {
  background: #ef4444;
  color: #ffffff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ==========================================================================
   8. İstatistik ve Profil Paneli (Stats Dashboard)
   ========================================================================== */

.stats-view-container {
  max-width: 1080px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.dashboard-header p {
  color: var(--text-secondary);
}

.stats-overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-summary-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sum-icon {
  font-size: 2rem;
}

.sum-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.1;
}

.sum-val small { font-size: 0.9rem; color: var(--accent-primary); }
.sum-title { font-size: 0.8rem; color: var(--text-secondary); }

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

/* Başarılar Izgarası */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-fast);
}

.achievement-card.unlocked {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
}

.achievement-card.locked {
  opacity: 0.45;
  filter: grayscale(1);
}

.ach-badge {
  font-size: 2.2rem;
}

.ach-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.ach-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Geçmiş Tablosu */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.history-table th, .history-table td {
  padding: 0.9rem 1.25rem;
}

.history-table th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.history-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.history-table tr:last-child {
  border-bottom: none;
}

.badge-mode {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.empty-table-msg {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem !important;
}

/* ==========================================================================
   9. Ayarlar Ekranı (Settings View)
   ========================================================================== */

.settings-view-container {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.settings-group {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.settings-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.settings-group-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.setting-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.setting-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Tema Kartları Izgarası */
.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.theme-card {
  background: var(--bg-secondary);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.theme-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.theme-card.selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-glow);
}

.theme-preview-swatches {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
}

.swatch-part {
  flex: 1;
}

.theme-card-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* İmleç Stili Butonları */
.caret-styles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.caret-style-btn {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.caret-style-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.caret-style-btn.selected {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Form Elemanları (Select, Slider, Switch) */
.custom-select {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
}

.custom-range {
  accent-color: var(--accent-primary);
  cursor: pointer;
}

/* Switch Toggle - Yüksek Kontrastlı & Belirgin Açık/Kapalı Göstergesi */
.switch-label,
.theme-switch-label {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
}

.switch-label input,
.theme-switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-slider,
.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  border: 2px solid rgba(255, 255, 255, 0.22);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.switch-slider:before,
.theme-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

input:checked + .switch-slider,
input:checked + .theme-slider {
  background-color: #10b981 !important;
  border-color: #059669 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.55), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

input:checked + .switch-slider:before,
input:checked + .theme-slider:before {
  transform: translateX(24px);
  background-color: #ffffff;
}

/* Aydınlık temalarda switch kontrastı */
body.theme-light .switch-slider,
body.theme-paper .switch-slider,
body.theme-ocean .switch-slider,
body.theme-pastel .switch-slider {
  background-color: #cbd5e1;
  border-color: #94a3b8;
}

/* ==========================================================================
   10. Özel Metin Modalı (Custom Text Modal)
   ========================================================================== */

.custom-text-modal-dialog {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.custom-textarea {
  width: 100%;
  height: 180px;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  resize: vertical;
  margin: 1rem 0 1.5rem 0;
}

/* ==========================================================================
   11. Başarım Bildirim Toastları
   ========================================================================== */

.achievement-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-secondary);
  border: 1px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(245, 158, 11, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  z-index: 999999;
}

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

.toast-icon { font-size: 2.2rem; }
.toast-title { font-size: 0.75rem; color: #f59e0b; font-weight: 800; text-transform: uppercase; }
.toast-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); }

/* Görünüm Geçişleri */
.view-section {
  display: none;
}

.view-section.active-view {
  display: block;
}

/* ==========================================================================
   12. Global Liderlik Tablosu & Şampiyonlar Podyumu
   ========================================================================== */

.leaderboard-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.leaderboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.leaderboard-filter-group {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-pill {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-pill.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Podyum Sahnesi (1-2-3 Sıralaması) */
.podium-stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-top: 1.5rem;
}

.podium-card {
  flex: 1;
  max-width: 260px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem 0 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.podium-card:hover {
  transform: translateY(-6px);
}

.gold-podium {
  border-color: rgba(234, 179, 8, 0.5);
  box-shadow: 0 10px 30px rgba(234, 179, 8, 0.15);
  order: 2;
  transform: scale(1.05);
}

.silver-podium {
  border-color: rgba(148, 163, 184, 0.4);
  order: 1;
}

.bronze-podium {
  border-color: rgba(217, 119, 6, 0.4);
  order: 3;
}

.podium-crown {
  font-size: 0.85rem;
  font-weight: 800;
  color: #eab308;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.podium-avatar {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.podium-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

.podium-wpm {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.wpm-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.podium-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.podium-rank-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.podium-pedestal {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.podium-pedestal.p1 { height: 75px; background: linear-gradient(180deg, rgba(234, 179, 8, 0.25), transparent); color: #eab308; }
.podium-pedestal.p2 { height: 55px; background: linear-gradient(180deg, rgba(148, 163, 184, 0.2), transparent); color: #94a3b8; }
.podium-pedestal.p3 { height: 40px; background: linear-gradient(180deg, rgba(217, 119, 6, 0.2), transparent); color: #d97706; }

/* Liderlik Tablosu */
.leaderboard-table-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th {
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.leaderboard-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.highlight-user-row {
  background: rgba(139, 92, 246, 0.12) !important;
  border-left: 3px solid var(--accent-primary);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rank-badge.top-rank { color: #ffffff; }
.rank-badge.rank-1 { background: #eab308; }
.rank-badge.rank-2 { background: #94a3b8; }
.rank-badge.rank-3 { background: #d97706; }

.badge-pill {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
}

.layout-pill {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ==========================================================================
   13. Sesli Dikte / Kör Modu & Görsel Dalga (Audio Wave)
   ========================================================================== */

.dictation-wave-box {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin-left: 0.75rem;
}

.wave-bar {
  width: 3px;
  height: 100%;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: wavePulse 1s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 70%; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 100%; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; height: 50%; }

@keyframes wavePulse {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.blind-dictation-mode .word .char:not(.correct):not(.incorrect) {
  opacity: 0.15;
  filter: blur(4px);
}

.blind-mode-active .word .char {
  color: transparent !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}
