/* ==========================================================================
   LinguaQuest - Modern Gamified CSS Theme (Genişletilmiş Pedagojik Sürüm)
   ========================================================================== */

:root {
  --font-display: 'Fredoka', cursive, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Temel Renk Paleti */
  --primary: #58cc02;
  --primary-dark: #46a302;
  --secondary: #1cb0f6;
  --secondary-dark: #1899d6;
  --accent: #ff9600;
  --accent-dark: #e08400;
  --danger: #ff4b4b;
  --danger-dark: #ea2b2b;
  --danger-light: #ffdfe0;
  --success: #58cc02;
  --success-light: #d7ffb8;
  --bg-main: #f7f9fa;
  --border-card: #e5e5e5;
  --text-main: #3c3c3c;
  --text-muted: #777777;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --btn-3d-offset: 4px;
}

body.theme-kids {
  --primary: #ff477e;
  --primary-dark: #f02562;
  --secondary: #00d2d3;
  --accent: #ff9f1a;
  --bg-main: #fff8eb;
  font-family: var(--font-display);
}

body.theme-teens {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --bg-main: #f3f4f6;
}

body.theme-adults {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0d9488;
  --accent: #d97706;
  --bg-main: #f8fafc;
}

/* ==========================================================================
   🌙 DARK MODE (Karanlık Tema - Göz Yormayan Derin Gece Modu)
   ========================================================================== */
body.dark-mode {
  --bg-main: #0f172a;
  --card-bg: #1e293b;
  --border-card: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  background-color: #0b0f19;
  color: #f8fafc;
}

body.dark-mode #app {
  background-color: #111827;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
}

body.dark-mode .top-bar,
body.dark-mode .bottom-nav,
body.dark-mode .map-header,
body.dark-mode .celebration-card,
body.dark-mode .profile-card,
body.dark-mode .practice-topic-card,
body.dark-mode .flip-card-front,
body.dark-mode .flip-card-back,
body.dark-mode .visual-option-card,
body.dark-mode .age-card,
body.dark-mode .level-card,
body.dark-mode .word-bubble,
body.dark-mode .ach-item,
body.dark-mode .setting-item {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
  color: #f8fafc !important;
}

body.dark-mode .stat-badge {
  background-color: #111827;
}

body.dark-mode .map-node-title {
  background: rgba(30, 41, 59, 0.92);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode #map-screen {
  background: #0284c7;
}

body.dark-mode .quiz-media-area,
body.dark-mode .example-sentence-box,
body.dark-mode .bubble-speech,
body.dark-mode .profile-summary,
body.dark-mode .reward-box,
body.dark-mode .vocab-card {
  background-color: #111827 !important;
  border-color: #374151 !important;
  color: #f8fafc !important;
}

body.dark-mode .quiz-card,
body.dark-mode #quiz-screen,
body.dark-mode #practice-screen {
  background-color: #111827 !important;
}

body.dark-mode .theme-toggle-btn {
  background-color: #374151;
  color: #fef08a;
  border-color: #4b5563;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-card);
  background: #f3f4f6;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.08);
  border-color: var(--secondary);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  line-height: 1.5;
}

#app {
  width: 100%;
  max-width: 600px;
  height: 100vh;
  height: 100dvh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.05);
  overflow: hidden;
}

#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   Üst Bar (Sleek Slim Bar - İnce, Kompakt ve Kullanıcı Dostu)
   ========================================================================== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  height: 44px;
  min-height: 44px;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.user-stats {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.user-stats::-webkit-scrollbar {
  display: none;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  font-weight: 800;
  font-size: 0.8rem;
  transition: transform 0.15s ease, background 0.15s ease;
  user-select: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-badge:hover {
  transform: translateY(-1px);
}
.stat-badge:active {
  transform: scale(0.94);
}

.streak-badge { color: #f97316; }
.level-badge, .xp-badge { color: #8b5cf6; }
.gems-badge { color: #0284c7; }
.hearts-badge { color: #ef4444; }

.stat-freeze-pill {
  font-size: 0.7rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 1px 4px;
  border-radius: 999px;
  margin-left: 2px;
  font-weight: 700;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.top-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-card);
  background: #f8fafc;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  color: var(--text-main);
}

.top-action-btn:hover {
  transform: scale(1.08);
  border-color: var(--secondary);
}

.top-action-btn:active {
  transform: scale(0.92);
}

.profile-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-card);
  background: #f3f4f6;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-block { width: 100%; }

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 var(--btn-3d-offset) 0 var(--primary-dark);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(var(--btn-3d-offset));
  box-shadow: 0 0 0 var(--primary-dark);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-muted);
  border: 2px solid var(--border-card);
  box-shadow: 0 var(--btn-3d-offset) 0 var(--border-card);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(var(--btn-3d-offset));
  box-shadow: 0 0 0 var(--border-card);
}

.btn-success {
  background-color: #58cc02;
  color: #ffffff;
  box-shadow: 0 var(--btn-3d-offset) 0 #46a302;
}

.btn-success:active:not(:disabled) {
  transform: translateY(var(--btn-3d-offset));
  box-shadow: 0 0 0 #46a302;
}

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

.btn-icon {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-full);
}

.screen { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.screen.hidden, .hidden { display: none !important; }

/* Onboarding */
#onboarding-screen {
  position: relative;
  padding: 24px 20px 100px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
}

.onboarding-card { 
  width: 100%; 
  max-width: 480px; 
  text-align: center;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-area { 
  margin-bottom: 24px;
  transition: all 0.25s ease;
}

/* Kompakt Onboarding Başlığı (Karakter seçiminde butonların ekrana sığması için) */
.onboarding-card:has(#step-avatar:not(.hidden)) .logo-area,
.onboarding-card.compact-header .logo-area {
  margin-bottom: 12px;
}

.onboarding-card:has(#step-avatar:not(.hidden)) .mascot-bounce,
.onboarding-card.compact-header .mascot-bounce {
  font-size: 2.2rem;
  margin-bottom: 2px;
}

.onboarding-card:has(#step-avatar:not(.hidden)) .app-title,
.onboarding-card.compact-header .app-title {
  font-size: 1.4rem;
}

.onboarding-card:has(#step-avatar:not(.hidden)) .app-tagline,
.onboarding-card.compact-header .app-tagline {
  display: none;
}

.mascot-bounce {
  font-size: 4rem;
  display: inline-block;
  animation: floatMascot 2.5s ease-in-out infinite;
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

.app-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.app-tagline { color: var(--text-muted); font-size: 1.05rem; margin-top: 4px; }
.onboard-step { width: 100%; }
.onboard-step h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.step-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; }

.input-group { margin-bottom: 24px; width: 100%; }
.input-group input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.2rem;
  font-weight: 700;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  text-align: center;
  outline: none;
  background: #fafafa;
}

.input-group input:focus {
  border-color: var(--secondary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(28, 176, 246, 0.15);
}

.step-actions { 
  display: flex; 
  gap: 12px; 
  width: 100%;
  margin-top: 16px;
  margin-bottom: 20px;
}
.step-actions .btn { flex: 1; }

.level-options { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; text-align: left; }
.level-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 var(--btn-3d-offset) 0 var(--border-card);
}

.level-card.active {
  border-color: var(--primary);
  background-color: #f7fee7;
  box-shadow: 0 var(--btn-3d-offset) 0 var(--primary-dark);
}

.lvl-badge {
  background: #f1f2f6;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  min-width: 70px;
  text-align: center;
}

.level-card.active .lvl-badge { background: var(--primary); color: #fff; }
.lvl-details h4 { font-size: 1rem; font-weight: 800; margin-bottom: 2px; }
.lvl-details p { font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================================================
   🏝️ TAM EKRAN İNTERAKTİF ADA HARİTASI (FULLSCREEN MAP)
   ========================================================================== */
#map-screen {
  padding: 0;
  margin: 0;
  flex: 1;
  min-height: 0;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0284c7;
}

body.dark-mode #map-screen {
  background: #0f172a !important;
}

/* ==========================================================================
   🏝️ YÜZEN ADA BAŞLIĞI (FLOATING GLASS HEADER - YER KAPLAMAZ)
   ========================================================================== */
.island-floating-header {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  gap: 8px;
}

.island-chip-title {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font-family: var(--font-display);
  max-width: calc(100% - 64px);
  min-width: 0;
  flex-shrink: 1;
}

body.dark-mode .island-chip-title {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.island-chip-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.island-chip-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.island-chip-star-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #b45309;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
  flex-shrink: 0;
}

body.dark-mode .island-chip-star-pill {
  background: linear-gradient(135deg, #78350f, #92400e);
  border-color: #f59e0b;
  color: #fef08a;
}

/* 🗺️ YUVARLAK ADALAR DÜĞMESİ (HER ZAMAN GÖRÜNÜR & TELEFON DOSTU) */
.island-switch-round-btn {
  pointer-events: auto;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 2.5px solid #ffffff;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 0 #075985, 0 6px 16px rgba(2, 132, 199, 0.45);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
  user-select: none;
  flex-shrink: 0;
  position: relative;
  z-index: 35;
}

.island-switch-round-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 0 #075985, 0 10px 20px rgba(2, 132, 199, 0.55);
}

.island-switch-round-btn:active {
  transform: scale(0.95) translateY(2px);
  box-shadow: 0 1px 0 #075985;
}

.island-switch-round-btn .round-map-icon {
  font-size: 1.55rem;
  line-height: 1;
}

.island-switch-round-btn .round-map-label {
  position: absolute;
  bottom: -7px;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

body.dark-mode .island-switch-round-btn {
  background: linear-gradient(135deg, #0284c7, #075985);
  border-color: #38bdf8;
  box-shadow: 0 4px 0 #0c4a6e, 0 6px 16px rgba(0, 0, 0, 0.45);
}

body.dark-mode .island-switch-round-btn .round-map-label {
  background: #0369a1;
  border-color: #38bdf8;
  color: #f0f9ff;
}

/* ==========================================================================
   🎮 İNTERAKTİF ADA VİEWPORT'U (ZOOM & PAN & CANLI 3D OYUN DÜNYASI)
   ========================================================================== */
.island-viewport {
  width: 100%;
  flex: 1;
  min-height: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  /* Sonsuz Okyanus Gradyanı: Adanın turkuaz suyundan derin okyanus mavisine yumuşak geçiş */
  background: radial-gradient(circle at 50% 50%, #38bdf8 0%, #0ea5e9 28%, #0284c7 55%, #0369a1 80%, #075985 100%);
  cursor: grab;
  contain: strict;
}

.island-viewport.is-panning {
  cursor: grabbing;
}

/* Ekran Kenarı Sinematik Vinyet & Derinlik */
.viewport-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(2, 44, 75, 0.35) 100%);
  z-index: 20;
}
body.dark-mode .viewport-vignette {
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
}

/* Sürükleme anında kesintisiz 60/120 FPS için çocuk animasyonları duraklat */
.island-viewport.is-panning .map-node.active-pulsing,
.island-viewport.is-panning .map-node.boss-node,
.island-viewport.is-panning .node-star-badge,
.island-viewport.is-panning .ship-sail-btn,
.island-viewport.is-panning .island-backdrop,
.island-viewport.is-panning .game-cloud,
.island-viewport.is-panning .sea-sparkle,
.island-viewport.is-panning .map-bird,
.island-viewport.is-panning .ocean-caustics-layer {
  animation-play-state: paused !important;
}

body.dark-mode .island-viewport,
body.dark-mode #map-screen {
  background: radial-gradient(circle at 50% 50%, #075985 0%, #0c4a6e 40%, #082f49 75%, #031726 100%);
}

/* ==========================================================================
   🌊 CANLI OKYANUS SU EFEKTLERİ & DALGALAR (LIVING OCEAN SHIMMER)
   ========================================================================== */
.ocean-water-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.ocean-caustics-layer {
  position: absolute;
  inset: -25%;
  width: 150%;
  height: 150%;
  background-image: 
    radial-gradient(circle at 35% 40%, rgba(255, 255, 255, 0.14) 0%, transparent 30%),
    radial-gradient(circle at 65% 60%, rgba(56, 189, 248, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 35%);
  animation: oceanCausticsDrift 16s ease-in-out infinite alternate;
  opacity: 0.8;
  will-change: transform;
}

@keyframes oceanCausticsDrift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-20px, 15px) scale(1.05) rotate(1deg); }
  100% { transform: translate(15px, -20px) scale(0.97) rotate(-1deg); }
}

/* ==========================================================================
   🏝️ ZOOM & PAN İLE BÜYÜTÜLEBİLEN ADA DÜNYASI (800x800)
   ========================================================================== */
.island-world {
  width: 800px;
  height: 800px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -400px;
  margin-top: -400px;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  contain: layout paint;
  z-index: 2;
  --inv-scale: 1;
}

/* 1. Ada Arka Plan Resmi (Kenarları Okyanusa Yumuşakça Eriyen 3D Ada Haritası) */
.island-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Yumuşak Dairesel Geçiş: Resmin köşeleri ve kenarları asla gözükmez, sınırsız okyanusa karışır */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0.9) 72%, rgba(0, 0, 0, 0.35) 86%, transparent 97%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0.9) 72%, rgba(0, 0, 0, 0.35) 86%, transparent 97%);
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: background-image 0.4s ease;
  animation: islandGentleFloat 5.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes islandGentleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* 3. Bölgeler Arası Görev Yolu (Kullanıcı İsteğiyle Gizlendi) */
.island-paths-layer {
  display: none !important;
}

/* 4. Deniz Yüzeyinde Güneş Parıltıları */
.island-sparkles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.sea-sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ffffff 30%, #38bdf8 80%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 10px #ffffff, 0 0 18px #38bdf8;
  animation: sparkleTwinkle 3.4s ease-in-out infinite;
  opacity: 0;
}

.sea-sparkle.s1 { top: 26%; left: 18%; animation-delay: 0.2s; }
.sea-sparkle.s2 { top: 74%; left: 22%; animation-delay: 1.5s; }
.sea-sparkle.s3 { top: 35%; left: 82%; animation-delay: 2.2s; }
.sea-sparkle.s4 { top: 80%; left: 76%; animation-delay: 0.9s; }
.sea-sparkle.s5 { top: 16%; left: 65%; animation-delay: 2.7s; }

@keyframes sparkleTwinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.2);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

/* 5. Ada Üzerinden Uçan Kuşlar Katmanı */
.island-birds-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 12;
}

.map-bird {
  position: absolute;
  width: 24px;
  height: 16px;
  opacity: 0;
  will-change: transform, opacity;
}

.map-bird.bird-1 {
  top: 22%;
  animation: birdCrossScreen 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 1s;
}

.map-bird.bird-2 {
  top: 27%;
  animation: birdCrossScreen 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 2.2s;
}

.map-bird.bird-3 {
  top: 19%;
  animation: birdCrossScreen 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 3.4s;
}

@keyframes birdCrossScreen {
  0% {
    transform: translate(-50px, 60px) scale(0.7);
    opacity: 0;
  }
  6% {
    opacity: 0.65;
  }
  80% {
    opacity: 0.65;
  }
  100% {
    transform: translate(860px, -80px) scale(0.85);
    opacity: 0;
  }
}

/* 6. ATMOSFERİK OYUN BULUTLARI (FLOATING GAME CLOUDS WITH PARALLAX) */
.island-clouds-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
  will-change: transform;
}

.game-cloud {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

.game-cloud svg {
  width: 100%;
  height: auto;
  display: block;
}

.game-cloud.cloud-1 {
  top: 10%;
  left: 0;
  width: 150px;
  animation: cloudDriftSlow 36s linear infinite;
}

.game-cloud.cloud-2 {
  top: 44%;
  left: 0;
  width: 180px;
  animation: cloudDriftMed 28s linear infinite;
  animation-delay: -14s;
}

.game-cloud.cloud-3 {
  top: 72%;
  left: 0;
  width: 120px;
  animation: cloudDriftFast 22s linear infinite;
  animation-delay: -7s;
}

.game-cloud.cloud-4 {
  top: 28%;
  left: 0;
  width: 135px;
  animation: cloudDriftSlow 32s linear infinite;
  animation-delay: -20s;
}

@keyframes cloudDriftSlow {
  0% { transform: translateX(-200px); }
  100% { transform: translateX(890px); }
}

@keyframes cloudDriftMed {
  0% { transform: translateX(-230px); }
  100% { transform: translateX(890px); }
}

@keyframes cloudDriftFast {
  0% { transform: translateX(-170px); }
  100% { transform: translateX(890px); }
}

/* 7. Resmin Üstündeki İnteraktif Katman (Bölge Düğümleri & Karakter) */
.island-nodes-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
}

/* Uzaklaştırıldığında üst üste binen düğüm etiketlerini gizleme kuralı */
.island-nodes-layer.hide-colliding-titles .map-node-title {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(4px);
}

.regions-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ==========================================================================
   🚶 AKTİF BÖLGE ÜZERİNDEKİ OYUNCU AVATARI (Kullanıcı İsteğiyle Kaldırıldı)
   ========================================================================== */
.player-map-avatar {
  display: none !important;
}

/* ==========================================================================
   🔍 YÜZEN ZOOM VE ODAKLANMA KONTROLLERİ (+, 🎯, −)
   ========================================================================== */
.island-zoom-controls {
  position: absolute;
  right: 14px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
  pointer-events: auto;
}

.zoom-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1e293b;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
  user-select: none;
}

.zoom-btn.reset-btn {
  font-size: 1.1rem;
}

.zoom-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
}

.zoom-btn:active {
  transform: scale(0.92);
}

body.dark-mode .zoom-btn {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
body.dark-mode .zoom-btn:hover {
  background: #1e293b;
}

/* ==========================================================================
   📍 BÖLGE DÜĞMELERİ (SABİT EKRAN BOYUTU - scale(var(--inv-scale)))
   ========================================================================== */
.map-node-wrapper {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--inv-scale, 1));
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  min-width: 58px;
  min-height: 58px;
  justify-content: center;
  will-change: transform;
  touch-action: manipulation;
}

.map-node-wrapper:hover:not(.locked) {
  transform: translate(-50%, -50%) scale(calc(var(--inv-scale, 1) * 1.12));
  z-index: 25;
}

.map-node-wrapper:active:not(.locked),
.map-node-wrapper.is-tapped:not(.locked) {
  transform: translate(-50%, -50%) scale(calc(var(--inv-scale, 1) * 0.92));
}

.map-node {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  background: rgba(88, 204, 2, 0.82);
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 2px rgba(255, 255, 255, 0.65);
  color: #fff;
  transition: transform 0.15s ease;
  user-select: none;
}

.map-node.completed {
  background: rgba(251, 191, 36, 0.85);
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.75);
}

.map-node.active-pulsing {
  animation: nodePulse 1.8s infinite;
}

.map-node.locked {
  background: rgba(148, 163, 184, 0.6);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  cursor: not-allowed;
  filter: grayscale(0.85);
}

/* 💬 Mini Diyalog & Hikaye Düğümü (Cyan/Sky Mavi Glass) */
.map-node.dialogue-node:not(.locked) {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.85), rgba(2, 132, 199, 0.85));
  border-color: rgba(224, 242, 254, 0.95);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* 👑 Ada Şampiyonu Boss Düğümü (Altın/Kırmızı Parıltılı Glass) */
.map-node.boss-node:not(.locked) {
  width: 66px;
  height: 66px;
  font-size: 1.95rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.88), rgba(239, 68, 68, 0.88));
  border: 3.5px solid rgba(255, 251, 235, 0.98);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45), inset 0 1px 3px rgba(255, 255, 255, 0.75);
  animation: bossNodePulse 2.2s infinite ease-in-out;
}

@keyframes bossNodePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4), 0 0 16px rgba(245, 158, 11, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.55), 0 0 24px rgba(239, 68, 68, 0.65);
  }
}

.map-node-title {
  margin-top: 5px;
  font-size: 0.8rem; /* En az 12.5px */
  font-weight: 800;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.92);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Haritadaki Bölge Yıldızları (3 Yıldız Rozeti) */
.node-star-badge {
  position: absolute;
  top: -15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 2px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), 0 0 0 1.5px #f59e0b;
  border: 1px solid rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  animation: starBob 2.2s infinite ease-in-out;
  z-index: 25;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes starBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ==========================================================================
   ⛵ ZARİF LİMAN & KÜÇÜK YELKENLİ GEMİ (İSKELE YERLEŞİMİ)
   ========================================================================== */
.dock-pier-anchor {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  z-index: 15;
  transition: all 0.3s ease;
}

.ship-sail-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border: 3.5px solid #ffffff;
  box-shadow: 0 6px 0 #9a3412, 0 10px 22px rgba(0,0,0,0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
  animation: shipBobbing 3s ease-in-out infinite;
}

.ship-sail-btn .ship-icon {
  font-size: 2rem;
  line-height: 1;
}

@keyframes shipBobbing {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

.ship-sail-btn:active:not(.locked) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #9a3412;
}

/* Aktif (Tüm Bölgeler Bittiğinde) Canlı & Parlayan Gemi */
.ship-sail-btn.active {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border: 3.5px solid #ffffff;
  box-shadow: 0 6px 0 #9a3412, 0 0 25px rgba(245, 158, 11, 0.85);
  cursor: pointer;
  animation: shipBobbing 2.5s ease-in-out infinite, shipGlow 1.8s ease-in-out infinite alternate;
}

@keyframes shipGlow {
  from { filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.5)); transform: translateY(0) scale(1); }
  to { filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.95)); transform: translateY(-4px) scale(1.05); }
}

/* Kilitli Durumda Suda Sessizce Bekleyen Gemi */
.ship-sail-btn.locked {
  background: rgba(71, 85, 105, 0.85);
  border-color: #cbd5e1;
  box-shadow: 0 5px 0 #1e293b, 0 8px 15px rgba(0,0,0,0.3);
  cursor: not-allowed;
  animation: none;
  filter: grayscale(0.5);
  opacity: 0.85;
}

/* ⚓ ZARİF TEK İSKELE DURUM ROZETİ (Gemi Altında - Asla Çarpışmaz) */
.ship-status-badge {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  user-select: none;
  transition: all 0.25s ease;
  z-index: 20;
}

.ship-status-badge.unlocked {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 2px solid #ffffff;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
  animation: shipBadgePulse 1.8s infinite ease-in-out;
}

@keyframes shipBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.ship-status-badge.locked-warn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 2px solid #ffffff;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45);
}

.ship-status-badge.locked {
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #cbd5e1;
}

.ship-status-badge.finished {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 2px solid #ffffff;
  color: #ffffff;
}

body.dark-mode .ship-status-badge.locked {
  background: rgba(15, 23, 42, 0.95);
  border-color: #334155;
  color: #94a3b8;
}

/* ==========================================================================
   ♿ ERİŞİLEBİLİRLİK: PREFERS-REDUCED-MOTION (HAREKET AZALTMA)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ocean-caustics-layer,
  .island-backdrop,
  .sea-sparkle,
  .map-bird,
  .game-cloud,
  .map-node.active-pulsing,
  .map-node.boss-node,
  .node-star-badge,
  .ship-sail-btn,
  .ship-status-badge.unlocked {
    animation: none !important;
    transition: none !important;
  }
  .map-node-wrapper {
    transition: none !important;
  }
}

/* Dünya Haritasında Ada Resimleri */
.world-island-thumb {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* ==========================================================================
   🗺️ DÜNYA HARİTASI (ARCHIPELAGO WORLD MAP) MODAL STİLLERİ
   ========================================================================== */
#world-map-modal {
  align-items: flex-end;
  padding: 0;
  transition: opacity 0.22s ease;
}

.world-map-card {
  background: #ffffff;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 10px 22px 28px;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 -10px 45px rgba(0, 0, 0, 0.35);
  max-height: 84vh;
  overflow-y: auto;
  position: relative;
  touch-action: pan-y;
  user-select: none;
  transform: translateY(0);
}

.sheet-drag-handle-zone {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0 12px;
  cursor: grab;
  touch-action: none;
}

.sheet-drag-handle-zone:active {
  cursor: grabbing;
}

.sheet-drag-handle {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background-color: #cbd5e1;
  transition: background-color 0.2s ease, width 0.2s ease;
}

.sheet-drag-handle-zone:hover .sheet-drag-handle {
  background-color: #94a3b8;
  width: 58px;
}

body.dark-mode .sheet-drag-handle {
  background-color: #475569;
}

body.dark-mode .sheet-drag-handle-zone:hover .sheet-drag-handle {
  background-color: #64748b;
}

body.dark-mode .world-map-card {
  background: #1e293b !important;
  color: #f8fafc !important;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.7);
  border-top: 1px solid #334155;
}

.world-map-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-align: left;
}

.world-islands-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.world-island-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 3px solid var(--border-card);
  border-radius: var(--radius-md);
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
}

body.dark-mode .world-island-item {
  background: #111827 !important;
  border-color: #374151 !important;
}

.world-island-item:hover:not(.locked) {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--secondary-dark);
}

.world-island-item.active-current {
  border-color: var(--primary);
  background: #f0fdf4;
  box-shadow: 0 4px 0 var(--primary-dark);
}

body.dark-mode .world-island-item.active-current {
  background: #064e3b !important;
  border-color: #10b981 !important;
}

.world-island-item.locked {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(1);
}

.world-island-icon {
  font-size: 2.6rem;
  min-width: 55px;
  text-align: center;
}

.world-island-details {
  flex: 1;
}

.world-island-details h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.world-island-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.world-island-status {
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.world-island-status.status-completed {
  background: #fef3c7;
  color: #b45309;
}

.world-island-status.status-open {
  background: #dcfce7;
  color: #15803d;
}

.world-island-status.status-locked {
  background: #e2e8f0;
  color: #64748b;
}

/* Gemi Seyahat Kutlama Modalı */
.voyage-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

body.dark-mode .voyage-modal-card {
  background: #1e293b !important;
  color: #f8fafc !important;
}

.sailing-ship-anim {
  font-size: 5rem;
  margin-bottom: 12px;
  animation: sailAcross 3s ease-in-out infinite;
}

@keyframes sailAcross {
  0%, 100% { transform: translateX(-15px) rotate(-3deg); }
  50% { transform: translateX(15px) rotate(3deg); }
}

/* SRS Hatırlatma Bandı (Ebbinghaus - Floating Banner) */
.srs-reminder-banner {
  position: absolute;
  top: 54px;
  left: 12px;
  right: 12px;
  z-index: 35;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid #fde68a;
  border-radius: var(--radius-md);
  margin: 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.srs-info { display: flex; align-items: center; gap: 10px; text-align: left; }
.srs-icon { font-size: 1.8rem; }
.srs-text strong { display: block; font-size: 0.95rem; color: #92400e; }
.srs-text p { font-size: 0.8rem; color: #b45309; }
.srs-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-srs {
  background: #f59e0b;
  color: white;
  border: none;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 3px 0 #d97706;
}

.btn-srs-dismiss {
  background: none;
  border: none;
  color: #b45309;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-srs-dismiss:hover {
  background: rgba(180, 83, 9, 0.15);
  color: #78350f;
}

/* 📲 PWA Uygulama Kurulum Bildirim Bandı (Floating Banner) */
.pwa-install-banner {
  position: absolute;
  top: 54px;
  left: 12px;
  right: 12px;
  z-index: 35;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border: 2px solid #7dd3fc;
  border-radius: var(--radius-md);
  margin: 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
}

.pwa-banner-content { display: flex; align-items: center; gap: 10px; text-align: left; }
.pwa-banner-icon { font-size: 1.8rem; flex-shrink: 0; }
.pwa-banner-text strong { display: block; font-size: 0.92rem; color: #0369a1; font-weight: 800; }
.pwa-banner-text small { display: block; font-size: 0.78rem; color: #0284c7; }

.pwa-banner-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-pwa-action {
  background: #0284c7;
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 3px 0 #0369a1;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-pwa-action:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0369a1;
}
.btn-pwa-dismiss {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  padding: 4px;
}

body.dark-mode .pwa-install-banner {
  background: linear-gradient(135deg, #0c4a6e, #075985) !important;
  border-color: #0284c7 !important;
}
body.dark-mode .pwa-banner-text strong { color: #f0f9ff !important; }
body.dark-mode .pwa-banner-text small { color: #bae6fd !important; }
body.dark-mode .btn-pwa-dismiss { color: #bae6fd !important; }

@keyframes nodePulse {
  0% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 0 0 0 rgba(88, 204, 2, 0.65); }
  70% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 0 0 12px rgba(88, 204, 2, 0); }
  100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 0 0 0 rgba(88, 204, 2, 0); }
}

/* ==========================================================================
   Quiz & İnteraktif Ders Ekranı
   ========================================================================== */
#quiz-screen {
  background: #ffffff;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.quiz-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  overflow: hidden;
  box-sizing: border-box;
}
.quiz-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.quiz-progress-track { flex: 1; height: 14px; background: #e5e7eb; border-radius: var(--radius-full); overflow: hidden; }
.quiz-progress-fill { height: 100%; width: 0%; background: var(--primary); border-radius: var(--radius-full); transition: width 0.3s ease; }
.quiz-hearts { font-weight: 800; font-size: 1.1rem; color: var(--danger); display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.quiz-card {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px;
}
.practice-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
}
.question-instruction { margin-bottom: 10px; width: 100%; }

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--secondary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.badge-accent { background: #fef3c7; color: #b45309; }
.badge-speech { background: #fee2e2; color: #dc2626; }
.badge-puzzle { background: #e0e7ff; color: #4338ca; }
.question-instruction h3 { font-size: 1.35rem; font-weight: 800; }

/* 3D Flip Flashcard */
.flashcard-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; padding: 10px 0 20px; }
.flip-card-scene { width: 280px; height: 330px; perspective: 1000px; margin-bottom: 20px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; }
.flip-card-scene.is-flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: 4px solid var(--border-card);
  box-shadow: 0 10px 0 var(--border-card);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  user-select: none;
}

.flip-card-front { background: radial-gradient(circle at center, #ffffff 60%, #f0fdf4 100%); }
.flip-card-front .card-visual { font-size: 6.5rem; line-height: 1; margin-bottom: 16px; animation: floatMascot 2.5s ease-in-out infinite; }
.listen-badge { display: inline-flex; align-items: center; gap: 6px; background: #f0fdf4; color: var(--primary-dark); border: 2px solid #bbf7d0; padding: 8px 16px; border-radius: var(--radius-full); font-weight: 800; font-size: 0.95rem; }
.tap-to-flip-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 14px; }

.flip-card-back { transform: rotateY(180deg); background: #ffffff; border-color: var(--secondary); box-shadow: 0 10px 0 var(--secondary-dark); justify-content: space-between; }
.back-header { margin-top: 6px; }
.back-word { font-size: 2.2rem; font-weight: 800; color: var(--secondary-dark); letter-spacing: -0.5px; }
.back-meaning { font-size: 1.15rem; font-weight: 700; color: var(--text-muted); }

.example-sentence-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.btn-sentence-audio {
  background: var(--secondary);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sentence-texts { flex: 1; }
.sentence-en { display: block; font-size: 0.95rem; font-weight: 800; color: var(--text-main); line-height: 1.3; }
.sentence-tr { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.back-footer-hint { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }

/* =========================================================================
   🎧 DİNLENME MERKEZİ (DUOLINGO & LINGOKIDS STİLİ SES İSTASYONU)
   ========================================================================= */
.quiz-media-area.listening-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.94), rgba(224, 242, 254, 0.88));
  border: 2px solid #bae6fd;
  border-radius: 20px;
  padding: 16px 20px;
  margin: 6px 0 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  position: relative;
  transition: all 0.25s ease;
}

body.dark-mode .quiz-media-area.listening-hub {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  border-color: #334155 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.audio-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

/* 🔊 Ana Dairesel Hoparlör Butonu (70px) */
.btn-audio-main {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: 3px solid #e0f2fe;
  border-radius: 50px;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 6px 0 #075985, 0 10px 20px rgba(2, 132, 199, 0.35);
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  outline: none;
}

.btn-audio-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #075985, 0 12px 24px rgba(2, 132, 199, 0.45);
  background: linear-gradient(135deg, #0369a1, #0284c7);
}

.btn-audio-main:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #075985, 0 4px 10px rgba(2, 132, 199, 0.25);
}

.audio-main-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-audio-main.playing .audio-main-icon {
  animation: speakerPulseBounce 0.4s infinite alternate ease-in-out;
}

@keyframes speakerPulseBounce {
  0% { transform: scale(1); }
  100% { transform: scale(1.22); }
}

/* Hoparlörün Etrafına Yayılan Dairesel Ses Dalgaları */
.audio-ripple-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50px;
  border: 2px solid rgba(14, 165, 233, 0.7);
  pointer-events: none;
  opacity: 0;
}

.btn-audio-main.playing .ring-1 {
  animation: audioRipplePulse 1.2s infinite ease-out;
}
.btn-audio-main.playing .ring-2 {
  animation: audioRipplePulse 1.2s infinite ease-out 0.4s;
}

@keyframes audioRipplePulse {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.85;
    border-color: rgba(56, 189, 248, 0.85);
  }
  100% {
    width: 155%;
    height: 185%;
    opacity: 0;
    border-color: rgba(14, 165, 233, 0);
  }
}

/* 🐢 Kaplumbağa Yavaş Mod Butonu */
.btn-audio-turtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: 2.5px solid #fef3c7;
  border-radius: 40px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 4px 0 #b45309, 0 6px 14px rgba(245, 158, 11, 0.3);
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  outline: none;
}

.btn-audio-turtle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #b45309, 0 8px 18px rgba(245, 158, 11, 0.4);
}

.btn-audio-turtle:active, .btn-audio-turtle.playing {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #b45309, 0 3px 8px rgba(245, 158, 11, 0.2);
}

.turtle-icon {
  font-size: 1.35rem;
  line-height: 1;
}

/* 🎵 Ses Dalgası ve Kelime Alanı */
.quiz-phrase-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  width: 100%;
}

.audio-wave-bars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
}

.audio-wave-bars .bar {
  width: 4px;
  height: 6px;
  background: #38bdf8;
  border-radius: 3px;
  transition: height 0.15s ease;
}

.audio-wave-bars.active .bar {
  animation: waveBarDance 0.6s infinite ease-in-out alternate;
}
.audio-wave-bars.active .bar-1 { animation-delay: 0.0s; height: 16px; }
.audio-wave-bars.active .bar-2 { animation-delay: 0.15s; height: 22px; }
.audio-wave-bars.active .bar-3 { animation-delay: 0.3s; height: 14px; }
.audio-wave-bars.active .bar-4 { animation-delay: 0.45s; height: 20px; }
.audio-wave-bars.active .bar-5 { animation-delay: 0.2s; height: 12px; }

@keyframes waveBarDance {
  0% { height: 4px; }
  100% { height: 22px; }
}

.quiz-word-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  transition: all 0.25s ease;
}

body.dark-mode .quiz-word-text {
  color: #f8fafc;
}

/* Gizlenmiş Kelime (Sır Modu) */
.quiz-word-text.hidden-word {
  filter: blur(8px);
  opacity: 0.25;
  user-select: none;
  transform: scale(0.96);
}

/* 👁️ İpucu Butonu */
.btn-reveal-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #cbd5e1;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-reveal-hint:hover {
  background: #ffffff;
  color: var(--secondary-dark);
  border-color: var(--secondary);
}

body.dark-mode .btn-reveal-hint {
  background: #334155;
  border-color: #475569;
  color: #cbd5e1;
}

/* Görsel Seçenek Kartları */
.quiz-options-visual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.visual-option-card {
  aspect-ratio: 1 / 1.05;
  background: #ffffff;
  border: 3px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 var(--border-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-align: center;
}

.visual-option-card:hover { border-color: var(--secondary); transform: translateY(-2px); }
.visual-option-card.selected { border-color: var(--secondary); background: #f0f9ff; box-shadow: 0 6px 0 var(--secondary-dark); }
.visual-option-card.correct { border-color: var(--success); background: var(--success-light); box-shadow: 0 6px 0 #46a302; }
.visual-option-card.incorrect { border-color: var(--danger); background: var(--danger-light); box-shadow: 0 6px 0 var(--danger-dark); }
.visual-option-icon {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.visual-option-card:hover .visual-option-icon {
  transform: scale(1.14);
}
.visual-option-label {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.3px;
  word-break: break-word;
}
body.dark-mode .visual-option-label {
  color: #f8fafc;
}

/* 🎤 SPEECH / TELAFUZ MODU STİLLERİ */
.speech-challenge-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}

.speech-target-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 3px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 28px;
}

.speech-target-visual { font-size: 3.6rem; line-height: 1; }
.speech-target-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.speech-target-word { font-size: 2.2rem; font-weight: 800; color: var(--text-main); line-height: 1.1; }
.speech-target-meaning { font-size: 1.05rem; font-weight: 700; color: var(--secondary); line-height: 1.1; }

.btn-mic-record {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  background: #ef4444;
  color: white;
  font-size: 2.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 0 #b91c1c;
  transition: all 0.2s ease;
}

.btn-mic-record.recording {
  animation: recordingPulse 1.2s infinite;
  background: #dc2626;
}

@keyframes recordingPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.mic-status-text {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* 🎤 Animasyonlu Telaffuz Skoru Barı */
.speech-score-container {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

body.dark-mode .speech-score-container {
  background: #1e293b;
  border-color: #334155;
}

.speech-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.speech-score-bar-bg {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

body.dark-mode .speech-score-bar-bg {
  background: #334155;
}

.speech-score-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.7s cubic-bezier(0.34, 1.3, 0.64, 1), background-color 0.4s ease;
  background: linear-gradient(90deg, #10b981, #059669);
}

.speech-score-bar-fill.score-perfect {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.speech-score-bar-fill.score-good {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.speech-score-bar-fill.score-low {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.speech-score-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}

.speech-score-badge.badge-perfect {
  background: #dcfce7;
  color: #166534;
}

.speech-score-badge.badge-good {
  background: #fef3c7;
  color: #b45309;
}

.speech-score-badge.badge-low {
  background: #fee2e2;
  color: #991b1b;
}

/* 🧩 CÜMLE YAPBOZU / WORD SCRAMBLE (LEGO DİZME) */
.sentence-builder-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sentence-target-meaning {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sentence-dropzone {
  min-height: 70px;
  width: 100%;
  border-bottom: 3px solid #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.word-bubble {
  padding: 10px 18px;
  font-size: 1.15rem;
  font-weight: 800;
  background: #ffffff;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 var(--btn-3d-offset) 0 var(--border-card);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.word-bubble:hover { border-color: var(--secondary); background: #f0f9ff; }
.word-bubble.in-slot {
  background: #eef2ff;
  border-color: #6366f1;
  color: #4338ca;
  box-shadow: 0 var(--btn-3d-offset) 0 #4f46e5;
}

.word-bubble.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* 🎭 TBLT MİNİ DİYALOG (ROLEPLAY) */
.roleplay-area {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 6px 0;
}

/* 🎯 Görev / Hedef Rozeti (Cevabın neye göre olduğunu netleştiren kılavuz) */
.roleplay-mission-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.16);
  font-size: 0.95rem;
  color: #78350f;
  animation: missionSlideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.roleplay-mission-badge .mission-badge-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.roleplay-mission-badge .mission-badge-label {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  background: #f59e0b;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 6px;
}

.roleplay-mission-badge strong {
  font-weight: 700;
  color: #92400e;
  flex: 1;
}

/* Karşılıklı Sohbet Akışı (Chat Stream) */
.roleplay-chat-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.dialog-bubble {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

/* 1. NPC Baloncuğu (Solda) */
.dialog-bubble.npc-bubble {
  animation: bubblePopIn 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.character-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
  animation: mascotWiggle 3.2s infinite ease-in-out;
  background: #ffffff;
  border: 2.5px solid #38bdf8;
  overflow: hidden;
}

.character-avatar.user-avatar {
  border-color: #22c55e;
}

.roleplay-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

@keyframes mascotWiggle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}

.bubble-speech {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  border-top-left-radius: 4px;
  padding: 14px 18px;
  text-align: left;
  border: 2.5px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  flex: 1;
}

.bubble-speech::before {
  content: '';
  position: absolute;
  top: 14px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid #e2e8f0;
}

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

.bubble-speaker-name {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--secondary);
  background: #e0f2fe;
  padding: 2px 9px;
  border-radius: var(--radius-full);
}

.btn-bubble-audio {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.btn-bubble-audio:hover {
  background: #e0f2fe;
  border-color: var(--secondary);
  transform: scale(1.12);
}

.bubble-speech strong {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 3px;
}

.bubble-speech-meaning {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

/* 2. Oyuncu Yanıt Baloncuğu (Sağda - Doğru cevap verildiğinde pürüzsüzce belirir) */
.dialog-bubble.user-bubble {
  flex-direction: row-reverse;
  animation: userBubbleSlideIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.dialog-bubble.user-bubble.hidden {
  display: none !important;
}

.bubble-speech.user-speech {
  background: #f0fdf4;
  border-color: #10b981;
  border-top-left-radius: 18px;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.18);
  text-align: right;
}

.bubble-speech.user-speech::before {
  left: auto;
  right: -10px;
  border-right: none;
  border-left: 10px solid #10b981;
}

.bubble-speaker-name.user-name {
  background: #dcfce7;
  color: #15803d;
}

.bubble-speech.user-speech strong {
  color: #166534;
  font-size: 1.15rem;
}

.character-avatar.user-avatar {
  font-size: 2.8rem;
  animation: userAvatarBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes userAvatarBounce {
  0% { transform: scale(0) rotate(-15deg); }
  60% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes bubblePopIn {
  0% { opacity: 0; transform: scale(0.88) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes userBubbleSlideIn {
  0% { opacity: 0; transform: scale(0.88) translateX(25px); }
  100% { opacity: 1; transform: scale(1) translateX(0); }
}

@keyframes missionSlideDown {
  0% { opacity: 0; transform: translateY(-12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes cardSlideUp {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Şıklar - Modern Duolingo Kart Stili */
.roleplay-options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.roleplay-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  background: #ffffff;
  border: 3px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 0 var(--border-card), 0 8px 16px rgba(0,0,0,0.04);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
}

.roleplay-option-card:nth-child(1) { animation: cardSlideUp 0.35s 0.05s ease both; }
.roleplay-option-card:nth-child(2) { animation: cardSlideUp 0.35s 0.12s ease both; }
.roleplay-option-card:nth-child(3) { animation: cardSlideUp 0.35s 0.19s ease both; }

.roleplay-option-card:hover:not(.disabled) {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--secondary-dark), 0 10px 20px rgba(0,0,0,0.08);
}

.roleplay-option-card:active:not(.disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--secondary-dark);
}

.roleplay-option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease;
}

.roleplay-option-card:hover .roleplay-option-letter {
  background: #e0f2fe;
  color: var(--secondary);
  border-color: var(--secondary);
}

.roleplay-option-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  flex: 1;
}

/* Seçildiğinde */
.roleplay-option-card.selected {
  border-color: var(--secondary) !important;
  background: #f0f9ff !important;
  box-shadow: 0 4px 0 var(--secondary-dark) !important;
  transform: translateY(1px);
}

.roleplay-option-card.selected .roleplay-option-letter {
  background: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary-dark);
}

/* Doğru Seçenek */
.roleplay-option-card.correct {
  border-color: var(--success) !important;
  background: #f0fdf4 !important;
  box-shadow: 0 5px 0 var(--primary-dark) !important;
}
.roleplay-option-card.correct .roleplay-option-letter {
  background: var(--success);
  color: #ffffff;
  border-color: var(--primary-dark);
}
.roleplay-option-card.correct .roleplay-option-text {
  color: #166534;
}

/* Yanlış Seçenek */
.roleplay-option-card.incorrect {
  border-color: var(--danger) !important;
  background: #fef2f2 !important;
  box-shadow: 0 5px 0 var(--danger-dark) !important;
  animation: shakeX 0.4s ease;
}
.roleplay-option-card.incorrect .roleplay-option-letter {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger-dark);
}
.roleplay-option-card.incorrect .roleplay-option-text {
  color: #991b1b;
}

/* Dark Mode Desteği */
body.dark-mode .roleplay-mission-badge {
  background: linear-gradient(135deg, #78350f, #92400e) !important;
  border-color: #f59e0b !important;
  color: #fef3c7 !important;
}
body.dark-mode .roleplay-mission-badge strong {
  color: #ffffff !important;
}
body.dark-mode .bubble-speech {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .bubble-speech::before {
  border-right-color: #334155 !important;
}
body.dark-mode .bubble-speech strong {
  color: #f8fafc !important;
}
body.dark-mode .bubble-speech-meaning {
  color: #94a3b8 !important;
}
body.dark-mode .btn-bubble-audio {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}
body.dark-mode .bubble-speech.user-speech {
  background: #064e3b !important;
  border-color: #10b981 !important;
}
body.dark-mode .bubble-speech.user-speech::before {
  border-left-color: #10b981 !important;
}
body.dark-mode .bubble-speech.user-speech strong {
  color: #a7f3d0 !important;
}
body.dark-mode .roleplay-option-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 5px 0 #0f172a !important;
}
body.dark-mode .roleplay-option-text {
  color: #f8fafc !important;
}
body.dark-mode .roleplay-option-letter {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

/* ==========================================================================
   🃏 MINI OYUN 1: HAFIZA KARTI EŞLEŞTİRME (MEMORY MATCH)
   ========================================================================== */
.memory-match-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.memory-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  flex-wrap: wrap;
}

.mem-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.mem-status-chip.shield {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
  transition: all 0.25s ease;
}

.mem-status-chip.shield.warning-low {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
}

.mem-status-chip.shield.danger {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
  animation: pulseCreditDanger 1.2s infinite ease-in-out;
}

@keyframes pulseCreditDanger {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.mini-game-hint {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 2px;
}

.memory-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 400px;
}

.memory-card-tile {
  height: clamp(66px, 10.5vh, 90px);
  perspective: 800px;
  cursor: pointer;
}

.memory-card-tile-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.memory-card-tile.matched .memory-card-tile-inner {
  transform: rotateY(180deg);
  border-color: #10b981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.5) !important;
}

.mem-card-back,
.mem-card-front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.mem-card-back {
  background: linear-gradient(135deg, #6366f1, #4338ca);
  border: 3px solid #818cf8;
  color: #ffffff;
  font-size: 1.8rem;
  font-family: var(--font-display);
  box-shadow: 0 4px 0 #3730a3;
}

.mem-card-front {
  background: #ffffff;
  border: 3px solid #e2e8f0;
  transform: rotateY(180deg);
  padding: 8px;
  text-align: center;
  box-shadow: 0 4px 0 #cbd5e1;
}

.mem-card-front .mem-visual {
  font-size: 2.1rem;
  line-height: 1;
}

.mem-card-front .mem-card-meaning {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  line-height: 1.15;
  margin-top: 3px;
  text-align: center;
}

.mem-card-front .mem-word {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
}

.memory-card-tile.matched {
  cursor: default;
  pointer-events: none;
}

.memory-card-tile.matched .mem-card-front {
  background: #f0fdf4;
  border-color: #10b981;
}

/* ==========================================================================
   🔤 MINI OYUN 2: EKSİK HARF / TAŞ YERLEŞTİRME (WORD TILE)
   ========================================================================== */
.word-tile-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.tile-target-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.tile-visual {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
}

.tile-slots-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.tile-slot {
  width: 48px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tile-slot.revealed {
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #334155;
}

.tile-slot.blank {
  background: #fefce8;
  border: 2.5px dashed #f59e0b;
  color: #d97706;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
  animation: blankPulse 1.4s infinite ease-in-out;
}

@keyframes blankPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.tile-slot.filled {
  background: #ecfdf5;
  border: 2.5px solid #10b981;
  color: #047857;
  box-shadow: 0 3px 0 #059669;
}

.tile-hint-sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tile-keyboard {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.tile-key-btn {
  width: 54px;
  height: 54px;
  background: #ffffff;
  border: 2.5px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 0 var(--border-card);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.tile-key-btn:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  transform: translateY(-2px);
}

.tile-key-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--border-card);
}

/* ==========================================================================
   ⚡ MINI OYUN 3: DİNLE & BALON PATLAT (BUBBLE POP)
   ========================================================================== */
.bubble-pop-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 8px 0;
}

.bubble-speaker-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-card);
}

.bubble-instruction-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.bubbles-arena {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 16px 8px;
  min-height: 200px;
  align-items: center;
}

.bubble-item {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12), inset 0 -4px 8px rgba(0,0,0,0.1);
  border: 3.5px solid #ffffff;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  animation: bubbleFloat 3s infinite ease-in-out alternate;
}

.bubble-item:nth-child(2) { animation-delay: -0.8s; }
.bubble-item:nth-child(3) { animation-delay: -1.6s; }
.bubble-item:nth-child(4) { animation-delay: -2.4s; }

@keyframes bubbleFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(3deg); }
}

.bubble-item:hover {
  transform: scale(1.1) translateY(-6px);
}

.bubble-item .bubble-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.bubble-item .bubble-text {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  margin-top: 3px;
  /* Uzun kalıplar ("Good morning") balonun içinde iki satıra insin */
  max-width: 82px;
  text-align: center;
  line-height: 1.1;
  overflow-wrap: break-word;
}

.bubble-item .bubble-meaning {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  margin-top: 1px;
}

.bubble-item.popping {
  animation: bubbleBurst 0.35s forwards cubic-bezier(0.1, 0.8, 0.2, 1);
}

@keyframes bubbleBurst {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.8; }
  100% { transform: scale(0); opacity: 0; }
}

/* Footer & Geri Bildirim */
.quiz-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 10px;
  border-top: 2px solid var(--border-card);
  background: #ffffff;
  position: relative;
  z-index: 10;
  width: 100%;
}
.feedback-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feedback-message.correct { background: #dcfce7; color: #166534; border: 2px solid #86efac; }
.feedback-message.incorrect { background: #fee2e2; color: #991b1b; border: 2px solid #fca5a5; }
.feedback-mascot-box { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.celebration-mascot-box { display: flex; justify-content: center; margin-bottom: 14px; }
.feedback-text strong { display: block; font-size: 1.05rem; font-weight: 800; }
.feedback-text p { font-size: 0.85rem; margin-top: 2px; line-height: 1.3; }

/* Maskot animasyonları (Captain Capy) */
.lingua-mascot-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.mascot-anim-bounce {
  animation: mascotJoy 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite alternate;
}

@keyframes mascotJoy {
  0% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-8px) scale(0.96, 1.05); }
  100% { transform: translateY(-14px) scale(1.04, 0.94); }
}

.wing-flap-left {
  transform-origin: 22px 66px;
  animation: wingFlapL 0.25s ease-in-out infinite alternate;
}
.wing-flap-right {
  transform-origin: 98px 66px;
  animation: wingFlapR 0.25s ease-in-out infinite alternate;
}
@keyframes wingFlapL {
  from { transform: rotate(15deg); }
  to { transform: rotate(45deg); }
}
@keyframes wingFlapR {
  from { transform: rotate(-15deg); }
  to { transform: rotate(-45deg); }
}

.mascot-anim-gentle {
  animation: mascotGentle 2s ease-in-out infinite alternate;
}
@keyframes mascotGentle {
  from { transform: rotate(-2.5deg); }
  to { transform: rotate(2.5deg); }
}

.mascot-anim-pulse {
  animation: mascotPulse 0.85s ease-in-out infinite alternate;
}
@keyframes mascotPulse {
  from { transform: scale(0.97); }
  to { transform: scale(1.04); }
}

.mascot-sparkle {
  animation: sparkleRotate 1.5s ease-in-out infinite alternate;
}
@keyframes sparkleRotate {
  from { transform: rotate(-8deg) scale(0.9); }
  to { transform: rotate(8deg) scale(1.15); }
}

.mascot-soundwaves text {
  animation: waveFloat 0.75s ease-in-out infinite alternate;
}
@keyframes waveFloat {
  from { transform: translateY(0); opacity: 0.5; }
  to { transform: translateY(-6px); opacity: 1; }
}

/* Modallar */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin-bottom: 16px;
  position: relative;
}

.celebration-card, .profile-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.confetti-cannon { font-size: 3.5rem; margin-bottom: 6px; }

/* 3 Yıldız Değerlendirme Gösterimi */
.celebration-stars-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 2.8rem;
  margin: 8px 0 16px;
}

.celebration-stars-display .star {
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.45));
}

.celebration-stars-display .star.empty {
  filter: grayscale(1);
  opacity: 0.3;
}

.celebration-stars-display .star.pop {
  animation: starPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes starPop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.35); }
  100% { transform: scale(1); opacity: 1; }
}

/* Yanlış Seçenekte Titreme & Pasifleşme (Kullanıcı Doğruyu Kendisi Bulur) */
.visual-option-card.incorrect, .option-btn.incorrect {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  animation: cardShake 0.45s ease-in-out;
}

.visual-option-card.disabled, .option-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

@keyframes cardShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

#lesson-complete-title { font-size: 1.8rem; font-weight: 800; color: var(--text-main); }
.celebration-subtitle { color: var(--text-muted); margin-bottom: 24px; }
.rewards-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.reward-box { background: #f8fafc; border: 2px solid var(--border-card); border-radius: var(--radius-md); padding: 12px 6px; display: flex; flex-direction: column; align-items: center; }
.reward-icon { font-size: 1.6rem; margin-bottom: 4px; }
.reward-box span:nth-child(2) { font-size: 1.1rem; font-weight: 800; color: var(--text-main); }
.reward-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }

.achievement-unlocked-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fef3c7;
  border: 2px solid #fbbf24;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: left;
  margin-bottom: 20px;
}

.ach-icon { font-size: 2rem; }
.ach-text small { display: block; font-size: 0.75rem; font-weight: 700; color: #b45309; text-transform: uppercase; }
.ach-text strong { font-size: 1.05rem; color: #78350f; }

/* Profil & Gelişmiş Kaşif Merkezi (Kareye Yakın, Telefon Dostu Kompakt Kart) */
.profile-card.enhanced {
  position: relative !important;
  max-width: 420px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 28px;
  padding: 20px 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.profile-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px solid var(--border-card);
  border-radius: 18px;
}

.profile-avatar-wrapper {
  width: 62px;
  height: 62px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #6366f1;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
  flex-shrink: 0;
  overflow: hidden;
}

.profile-user-info {
  flex: 1;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-name-row h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-xp-bar-container {
  width: 100%;
}

.profile-xp-track {
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 3px;
}

.profile-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #10b981);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.profile-xp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Hızlı İstatistik Rozetleri */
.profile-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.pstat-item {
  background: #ffffff;
  border: 2px solid var(--border-card);
  border-radius: 14px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.pstat-icon {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.pstat-item strong {
  font-size: 0.85rem;
  font-weight: 850;
  color: #1e293b;
}

.pstat-item small {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   2x2 BÜYÜK KARE / DİKDÖRTGEN SEÇENEKLER (PAİNT ÇİZİMİ HUB TASARIMI)
   ========================================================================== */
.profile-card .modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding-right: 52px !important; /* Sağ üstteki kırmızı çarpı butonuna ferah alan bırakır */
  margin-bottom: 16px;
  position: relative;
}

.profile-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Kırmızı Canlı Kapatma Butonu (✕) - KESİN OLARAK SAĞ ÜST KÖŞEDE */
.profile-card .btn-close-red,
#btn-close-profile.btn-close-red,
.daily-quests-card .btn-close-red,
#btn-close-daily-quests.btn-close-red {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 100 !important;
  background: #fee2e2 !important;
  color: #ef4444 !important;
  border: 2px solid #fca5a5 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 3px 0 #f87171 !important;
  padding: 0 !important;
  line-height: 1;
}

.profile-card .btn-close-red:hover,
#btn-close-profile.btn-close-red:hover,
.daily-quests-card .btn-close-red:hover,
#btn-close-daily-quests.btn-close-red:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 0 #b91c1c !important;
  transform: scale(1.1) rotate(90deg);
}

.profile-card .btn-close-red:active,
#btn-close-profile.btn-close-red:active,
.daily-quests-card .btn-close-red:active,
#btn-close-daily-quests.btn-close-red:active {
  transform: scale(0.95);
  box-shadow: none !important;
}

body.dark-mode .profile-card .btn-close-red,
body.dark-mode #btn-close-profile.btn-close-red,
body.dark-mode .daily-quests-card .btn-close-red,
body.dark-mode #btn-close-daily-quests.btn-close-red {
  background: #7f1d1d !important;
  color: #fca5a5 !important;
  border-color: #991b1b !important;
  box-shadow: 0 3px 0 #450a0a !important;
}

.btn-profile-back {
  background: #eef2ff;
  border: 2px solid #c7d2fe;
  color: #4338ca;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 850;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.12s ease;
  box-shadow: 0 2px 0 #a5b4fc;
}

.btn-profile-back:hover {
  background: #e0e7ff;
  transform: translateY(-1px);
}

.btn-profile-back:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* 2x2 Grid Hub (Kare, Kompakt ve Telefon Dostu Butonlar) */
.profile-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 12px 0;
}

.profile-hub-tile {
  background: #ffffff;
  border: 3px solid var(--border-card);
  border-radius: 20px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--border-card);
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  aspect-ratio: 1 / 1;
  min-height: unset;
}

.profile-hub-tile:hover {
  transform: translateY(-3px);
}

.profile-hub-tile:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--border-card) !important;
}

.profile-hub-tile .hub-tile-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.08));
}

.profile-hub-tile .hub-tile-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 850;
  color: #1e293b;
  margin: 0 0 2px 0;
}

.profile-hub-tile .hub-tile-sub {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  margin: 0;
}

/* 1. Başarımlarım Karesi (Altın Sarısı) */
.profile-hub-tile.tile-achievements {
  border-color: #f59e0b;
  box-shadow: 0 4px 0 #d97706;
  background: linear-gradient(145deg, #ffffff 60%, #fef3c7);
}
.profile-hub-tile.tile-achievements:hover {
  box-shadow: 0 6px 0 #d97706;
}

/* 2. Avatarım Karesi (Büyülü Mor) */
.profile-hub-tile.tile-avatar {
  border-color: #8b5cf6;
  box-shadow: 0 4px 0 #6d28d9;
  background: linear-gradient(145deg, #ffffff 60%, #f5f3ff);
}
.profile-hub-tile.tile-avatar:hover {
  box-shadow: 0 6px 0 #6d28d9;
}

/* 3. Kelime Kasam Karesi (Zümrüt Yeşili) */
.profile-hub-tile.tile-vocabulary {
  border-color: #10b981;
  box-shadow: 0 4px 0 #059669;
  background: linear-gradient(145deg, #ffffff 60%, #ecfdf5);
}
.profile-hub-tile.tile-vocabulary:hover {
  box-shadow: 0 6px 0 #059669;
}

/* 4. İlerlemem Karesi (Okyanus Mavisi) */
.profile-hub-tile.tile-progress {
  border-color: #0284c7;
  box-shadow: 0 4px 0 #0369a1;
  background: linear-gradient(145deg, #ffffff 60%, #e0f2fe);
}
.profile-hub-tile.tile-progress:hover {
  box-shadow: 0 6px 0 #0369a1;
}

/* 5. Arkadaşlarım Karesi (Geniş Pembe/Mor Şerit) */
.profile-hub-tile.tile-friends {
  grid-column: span 2;
  aspect-ratio: unset;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  padding: 12px 16px;
  gap: 12px;
  border-color: #ec4899;
  box-shadow: 0 4px 0 #be185d;
  background: linear-gradient(145deg, #ffffff 60%, #fdf2f8);
}
.profile-hub-tile.tile-friends:hover {
  box-shadow: 0 6px 0 #be185d;
}
.profile-hub-tile.tile-friends .hub-tile-icon {
  font-size: 2.1rem;
  margin-bottom: 0;
}
.profile-hub-tile.tile-friends .hub-tile-title {
  margin: 0;
  font-size: 1.02rem;
}

.enhanced-tabs .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
}

.enhanced-tabs .tab-btn.active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
  box-shadow: 0 2px 0 #a5b4fc;
}

/* 1. Başarımlar Sekmesi Stilleri */
.ach-filters-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.ach-filter-chip {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ach-filter-chip.active {
  background: #6366f1;
  border-color: #4f46e5;
  color: #ffffff;
}

.enhanced-ach-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.ach-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: all 0.15s ease;
}

.ach-item.unlocked {
  border-color: #86efac;
  background: #f0fdf4;
}

.ach-item.locked {
  opacity: 0.65;
  filter: grayscale(0.8);
  background: #f8fafc;
}

.ach-item .ach-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  flex-shrink: 0;
}

.ach-item h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.ach-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 2. Avatar Stüdyosu Stilleri */
.avatar-studio-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.avatar-studio-preview-box {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.studio-avatar-display {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 50%;
  border: 3px solid #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.studio-hint {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  margin: 0;
}

.avatar-studio-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-option-group label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #334155;
}

/* 3. Kelime Kasası Stilleri */
.vocab-vault-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.vocab-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  flex: 1;
}

.vocab-search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.88rem;
  font-family: inherit;
  color: #1e293b;
}

.enhanced-vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
}

.enhanced-vocab-card {
  padding: 12px;
  background: #ffffff;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.enhanced-vocab-card:hover {
  border-color: #6366f1;
  background: #f5f3ff;
  transform: translateY(-2px);
}

.enhanced-vocab-card strong {
  font-size: 1.05rem;
  color: #1e293b;
  display: block;
}

.enhanced-vocab-card span {
  font-size: 0.82rem;
  color: #64748b;
}

.enhanced-vocab-card .btn-vocab-listen {
  align-self: flex-end;
  background: #eef2ff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
}

/* 4. İlerlemem Sekmesi Stilleri */
.progress-tab-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.progress-section-title {
  font-size: 0.95rem;
  font-weight: 850;
  color: #1e293b;
  margin: 0;
}

.islands-progress-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.island-prog-card {
  background: #ffffff;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.island-prog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.island-prog-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.island-prog-stars {
  font-size: 0.85rem;
  font-weight: 800;
  color: #b45309;
}

.island-prog-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.island-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progress-stats-box {
  background: #f8fafc;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pstat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #334155;
}

.pstat-row strong {
  font-weight: 800;
  color: #1e293b;
}
/* ==========================================================================
   Ayarlar & Toggle Switch Stilleri
   ========================================================================== */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f8fafc;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.setting-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

body.dark-mode .setting-item:hover {
  background: #334155;
  border-color: #475569;
}

.setting-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
}

.setting-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Modern iOS / Duolingo Tarzı Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

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

/* Açık (Checked) Durumu */
.toggle-switch input:checked + .slider {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.35);
}

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

/* Basıldığında tatlı esneme efekti */
.toggle-switch:active .slider:before {
  width: 24px;
}

body.dark-mode .slider {
  background-color: #475569;
}

body.dark-mode .toggle-switch input:checked + .slider {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.45);
}

/* ==========================================================================
   ⚙️ BAĞIMSIZ AYARLAR MODALI STİLLERİ
   ========================================================================== */
.settings-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
}

.settings-card .modal-header {
  padding-right: 48px;
  margin-bottom: 20px;
}

.settings-card .btn-close-red {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 100 !important;
}

.setting-select {
  background: #ffffff;
  border: 2px solid var(--border-card);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.setting-select:focus {
  border-color: var(--primary);
}

.settings-danger-zone {
  margin-top: 24px;
  padding: 16px;
  border: 2px dashed #fca5a5;
  background: #fef2f2;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-danger-zone .danger-info strong {
  display: block;
  font-size: 0.95rem;
  color: #b91c1c;
}

.settings-danger-zone .danger-info p {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 2px;
}

/* ==========================================================================
   🌙 KAPSAMLI VE EKSİKSİZ DARK MODE UYUMLULUĞU (TÜM UYGULAMA)
   ========================================================================== */
body.dark-mode {
  --bg-main: #0b0f19;
  --card-bg: #1e293b;
  --border-card: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  background-color: #0b0f19;
  color: #f8fafc;
}

body.dark-mode #app {
  background-color: #0f172a;
}

/* Üst Çubuk & Alt Menü */
body.dark-mode .top-bar {
  background: #1e293b !important;
  border-bottom: 2px solid #334155 !important;
}
body.dark-mode .bottom-nav {
  background: #1e293b !important;
  border-top: 2px solid #334155 !important;
}
body.dark-mode .nav-item {
  color: #94a3b8 !important;
}
body.dark-mode .nav-item.active {
  color: #818cf8 !important;
}
body.dark-mode .stat-badge {
  background-color: #111827 !important;
  color: #f8fafc !important;
}

/* Modallar & Kartlar */
body.dark-mode .modal-overlay {
  background: rgba(0, 0, 0, 0.75);
}
body.dark-mode .profile-card,
body.dark-mode .settings-card,
body.dark-mode .celebration-card,
body.dark-mode .world-map-card,
body.dark-mode .voyage-modal-card,
body.dark-mode .hearts-recovery-card,
body.dark-mode .gold-bank-card {
  background: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
}

/* Profil Özet & İstatistikler */
body.dark-mode .profile-summary-card {
  background: linear-gradient(135deg, #111827, #1e293b) !important;
  border-color: #334155 !important;
}
body.dark-mode .profile-name-row h2 {
  color: #f8fafc !important;
}
body.dark-mode .profile-xp-track {
  background: #334155 !important;
}
body.dark-mode .profile-xp-labels {
  color: #94a3b8 !important;
}
body.dark-mode .profile-quick-stats .pstat-item {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
body.dark-mode .pstat-item strong,
body.dark-mode .profile-quick-stats .pstat-item strong {
  color: #ffffff !important;
}
body.dark-mode .pstat-item small,
body.dark-mode .profile-quick-stats .pstat-item small {
  color: #cbd5e1 !important;
}

/* 2x2 Büyük Profil Hub Seçenekleri */
body.dark-mode .profile-hub-tile {
  background: #111827 !important;
  border-color: #334155 !important;
}
body.dark-mode .profile-hub-tile .hub-tile-title {
  color: #f8fafc !important;
}
body.dark-mode .profile-hub-tile .hub-tile-sub {
  color: #94a3b8 !important;
}
body.dark-mode .profile-hub-tile.tile-achievements {
  border-color: #d97706 !important;
  box-shadow: 0 6px 0 #92400e !important;
  background: linear-gradient(145deg, #1e293b 60%, #451a03) !important;
}
body.dark-mode .profile-hub-tile.tile-avatar {
  border-color: #7c3aed !important;
  box-shadow: 0 6px 0 #5b21b6 !important;
  background: linear-gradient(145deg, #1e293b 60%, #2e1065) !important;
}
body.dark-mode .profile-hub-tile.tile-vocabulary {
  border-color: #059669 !important;
  box-shadow: 0 6px 0 #047857 !important;
  background: linear-gradient(145deg, #1e293b 60%, #064e3b) !important;
}
body.dark-mode .profile-hub-tile.tile-progress {
  border-color: #0284c7 !important;
  box-shadow: 0 4px 0 #0369a1 !important;
  background: linear-gradient(145deg, #1e293b 60%, #0c4a6e) !important;
}
body.dark-mode .profile-hub-tile.tile-friends {
  border-color: #be185d !important;
  box-shadow: 0 4px 0 #831843 !important;
  background: linear-gradient(145deg, #1e293b 60%, #500724) !important;
}

/* Profil Alt Görünümleri */
body.dark-mode .btn-profile-back {
  background: #312e81 !important;
  border-color: #4338ca !important;
  color: #e0e7ff !important;
  box-shadow: 0 2px 0 #1e1b4b !important;
}
body.dark-mode .ach-filter-chip {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}
body.dark-mode .ach-filter-chip.active {
  background: #4f46e5 !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
}
body.dark-mode .ach-item {
  background: #111827 !important;
  border-color: #334155 !important;
}
body.dark-mode .ach-title {
  color: #f8fafc !important;
}
body.dark-mode .ach-desc {
  color: #94a3b8 !important;
}
body.dark-mode .ach-icon-circle {
  background: #1e293b !important;
}

/* Avatar Stüdyosu */
body.dark-mode .studio-avatar-preview {
  background: radial-gradient(circle, #312e81 0%, #111827 80%) !important;
  border-color: #4338ca !important;
}
body.dark-mode .studio-control-group {
  background: #111827 !important;
  border-color: #334155 !important;
}
body.dark-mode .studio-group-title {
  color: #f8fafc !important;
}
body.dark-mode .studio-chip {
  background: #1f2937 !important;
  border-color: #374151 !important;
  color: #cbd5e1 !important;
}
body.dark-mode .studio-chip.active {
  background: #4f46e5 !important;
  border-color: #818cf8 !important;
  color: #ffffff !important;
}

/* Kelime Kasası */
body.dark-mode .vocab-search-box input {
  background: #111827 !important;
  border-color: #374151 !important;
  color: #f8fafc !important;
}
body.dark-mode .vocab-cat-chip {
  background: #111827 !important;
  border-color: #374151 !important;
  color: #94a3b8 !important;
}
body.dark-mode .vocab-cat-chip.active {
  background: #4f46e5 !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
}
body.dark-mode .vocab-card {
  background: #111827 !important;
  border-color: #334155 !important;
}
body.dark-mode .vocab-card strong {
  color: #f8fafc !important;
}
body.dark-mode .vocab-example {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}

/* İlerleme & Fatihler */
body.dark-mode .progress-card-item {
  background: #111827 !important;
  border-color: #334155 !important;
}
body.dark-mode .fatihler-leaderboard {
  background: #111827 !important;
  border-color: #334155 !important;
}
body.dark-mode .leader-item {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* Ayarlar */
body.dark-mode .setting-item {
  background: #111827 !important;
  border-color: #374151 !important;
}
body.dark-mode .setting-info strong {
  color: #f8fafc !important;
}
body.dark-mode .setting-info p {
  color: #94a3b8 !important;
}
body.dark-mode .setting-select {
  background: #1e293b !important;
  border-color: #374151 !important;
  color: #f8fafc !important;
}
body.dark-mode .settings-danger-zone {
  background: #450a0a !important;
  border-color: #991b1b !important;
  color: #fecaca !important;
}
body.dark-mode .settings-danger-zone .danger-info strong {
  color: #fca5a5 !important;
}
body.dark-mode .settings-danger-zone .danger-info p {
  color: #f87171 !important;
}

/* Sınav & Mini Oyunlar */
body.dark-mode #quiz-screen {
  background: #0b0f19 !important;
}
body.dark-mode .quiz-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
body.dark-mode .quiz-progress-track {
  background: #334155 !important;
}
body.dark-mode .intro-card-inner {
  background: #111827 !important;
  border-color: #334155 !important;
}
body.dark-mode .visual-option-card {
  background: #111827 !important;
  border-color: #374151 !important;
  color: #f8fafc !important;
}
body.dark-mode .visual-option-meaning {
  color: #f8fafc !important;
}
body.dark-mode .visual-option-sub {
  color: #94a3b8 !important;
}
body.dark-mode .speech-target-card {
  background: #111827 !important;
  border-color: #374151 !important;
}
body.dark-mode .speech-target-word {
  color: #f8fafc !important;
}
body.dark-mode .speech-target-meaning {
  color: #38bdf8 !important;
}
body.dark-mode .mem-card-meaning {
  color: #94a3b8 !important;
}
body.dark-mode .visual-option-card:hover {
  background: #1e293b !important;
  border-color: #6366f1 !important;
}
body.dark-mode .dialog-bubble {
  background: #111827 !important;
  border-color: #334155 !important;
}
body.dark-mode .bubble-speech {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
body.dark-mode .bubble-speech span {
  color: #94a3b8 !important;
}
body.dark-mode .mem-status-chip {
  background: #111827 !important;
  border-color: #374151 !important;
  color: #f8fafc !important;
}
body.dark-mode .mem-card-back {
  background: linear-gradient(135deg, #312e81, #1e1b4b) !important;
  border-color: #4338ca !important;
}
body.dark-mode .mem-card-front {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
body.dark-mode .mem-card-front .mem-word {
  color: #f8fafc !important;
}
body.dark-mode .tile-slot.revealed {
  background: #111827 !important;
  border-color: #374151 !important;
  color: #f8fafc !important;
}
body.dark-mode .tile-keyboard-btn {
  background: #1e293b !important;
  border-color: #374151 !important;
  color: #f8fafc !important;
}
body.dark-mode .bubble-speaker-header {
  background: #111827 !important;
  border-color: #374151 !important;
  color: #f8fafc !important;
}
body.dark-mode .quiz-footer {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .example-sentence-box {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* Pratik Arenası & Flashcard */
body.dark-mode #practice-screen {
  background: #0b0f19 !important;
}
body.dark-mode .practice-category-tab {
  background: #111827 !important;
  border-color: #374151 !important;
  color: #94a3b8 !important;
}
body.dark-mode .practice-category-tab.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
}
body.dark-mode .practice-topic-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
body.dark-mode .flip-card-front,
body.dark-mode .flip-card-back {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
body.dark-mode .srs-reminder-banner {
  background: linear-gradient(135deg, #312e81, #1e1b4b) !important;
  border-color: #4338ca !important;
  color: #e0e7ff !important;
}

/* Ada Arka Planına Gece Atmosferi (Soft Dark Filter) */
body.dark-mode .island-backdrop {
  filter: brightness(0.72) saturate(0.9);
}

body.dark-mode .game-cloud svg path {
  fill: rgba(148, 163, 184, 0.42);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.5));
}

body.dark-mode .ocean-caustics-layer {
  opacity: 0.4;
}

/* Başarı Kutlama */
body.dark-mode .reward-box {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
body.dark-mode .achievement-unlocked-card {
  background: #78350f !important;
  border-color: #d97706 !important;
  color: #fef3c7 !important;
}
body.dark-mode .ach-text strong {
  color: #fef3c7 !important;
}
body.dark-mode .ach-text small {
  color: #fcd34d !important;
}

/* ==========================================================================
   Pratik Arenası (Konu Seçim Ekranı)
   ========================================================================== */
#practice-screen {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  padding: 20px 20px 110px;
  background: #f8fafc;
}

.practice-hub-header {
  margin-bottom: 24px;
  text-align: left;
}

.practice-hub-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.practice-hub-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.practice-topics-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.practice-topic-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  box-shadow: 0 var(--btn-3d-offset) 0 var(--border-card);
  transition: all 0.15s ease;
  text-align: left;
}

.practice-topic-card:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--secondary-dark);
}

.practice-topic-card:active {
  transform: translateY(var(--btn-3d-offset));
  box-shadow: 0 0 0 var(--secondary-dark);
}

.practice-topic-card.highlight-srs {
  background: linear-gradient(135deg, #fffbeb, #ffffff);
  border-color: #fde68a;
  box-shadow: 0 var(--btn-3d-offset) 0 #f59e0b;
}

.practice-topic-card.highlight-srs:hover {
  border-color: #f59e0b;
}

.topic-icon {
  font-size: 2.4rem;
  min-width: 50px;
  text-align: center;
}

.topic-details {
  flex: 1;
}

.topic-details h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 3px;
}

.topic-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.topic-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #fef3c7;
  color: #b45309;
  text-transform: uppercase;
}

.topic-arrow {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-muted);
}

.practice-topics-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   Alt Menü (Sleek Bottom Navigation - 6 Butonlu Mobil Menü)
   ========================================================================== */
.bottom-nav {
  position: sticky;
  bottom: 0;
  width: 100%;
  height: 56px;
  min-height: 56px;
  flex-shrink: 0;
  display: flex;
  background: #ffffff;
  border-top: 1.5px solid var(--border-card);
  z-index: 40;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  padding: 0 4px;
}

.nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  position: relative;
  transition: all 0.15s ease;
  user-select: none;
}

.nav-item:active {
  transform: scale(0.92);
}

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

.nav-icon {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 1px;
  transition: transform 0.15s ease;
}

.nav-item.active .nav-icon {
  transform: translateY(-1px) scale(1.1);
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.nav-item .quest-notification-dot {
  position: absolute;
  top: 5px;
  right: calc(50% - 15px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 3px 8px;
    height: 42px;
    min-height: 42px;
  }
  .stat-badge {
    padding: 2px 6px;
    font-size: 0.75rem;
    gap: 3px;
  }
  .top-action-btn {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  .bottom-nav {
    height: 52px;
    min-height: 52px;
  }
  .nav-icon {
    font-size: 1.15rem;
  }
  .nav-label {
    font-size: 0.62rem;
  }
}

/* ==========================================================================
/* ==========================================================================
   🦊 AVATAR ANİMASYONLARI (PROFİL & GARDIROP)
   ========================================================================== */

/* 1. Duruş Halinde Tatlı Kafa Sallanması (Idle Bob) */
.animal-crossing-avatar.is-idle .ac-head-group {
  animation: acHeadBob 2.8s infinite ease-in-out;
  transform-origin: 50% 50%;
}

@keyframes acHeadBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(1.2deg); }
}

/* 2. Adada Yürürken Animal Crossing Waddle (Vücut Çalkantısı) */
.animal-crossing-avatar.is-walking {
  animation: acWaddle 0.28s infinite alternate ease-in-out;
  transform-origin: 50% 95%;
}

@keyframes acWaddle {
  0% { transform: rotate(-5deg) translateY(-2px); }
  100% { transform: rotate(5deg) translateY(-2px); }
}

/* 3. Bacakların Adım Adım Atması */
.ac-leg.walking {
  animation: acLegStep 0.28s infinite alternate ease-in-out;
  transform-origin: 50% 80%;
}

.ac-leg-left.walking {
  animation-delay: 0s;
}

.ac-leg-right.walking {
  animation-delay: -0.14s;
}

@keyframes acLegStep {
  0% { transform: translateY(0) scaleY(1); }
  100% { transform: translateY(-4px) scaleY(0.92); }
}

/* 4. Zemin Temas Gölgesinin Adımla Genişleyip Daralması */
.animal-crossing-avatar.is-walking .ac-ground-shadow {
  animation: shadowPulse 0.28s infinite alternate ease-in-out;
  transform-origin: 50% 95%;
}

@keyframes shadowPulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.08); opacity: 1; }
}

/* ==========================================================================
   🦸 3D HERO SELECTOR & SPOTLIGHT (ONBOARDING STEP 2)
   ========================================================================== */
.avatar-creator-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
  width: 100%;
}

.avatar-hero-spotlight {
  width: 100%;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 2px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.08);
  transition: all 0.25s ease;
}

body.dark-mode .avatar-hero-spotlight {
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%) !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.avatar-live-preview {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, #e0f2fe 0%, #bae6fd 100%);
  border: 3.5px solid #ffffff;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.avatar-live-preview:hover {
  transform: scale(1.04);
}

.avatar-live-preview img,
.avatar-live-preview .avatar-3d-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

.avatar-hero-meta {
  flex: 1;
  min-width: 0;
}

.hero-name-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.hero-name-badge-row h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

body.dark-mode .hero-name-badge-row h3 {
  color: #f8fafc !important;
}

.hero-role-badge {
  font-size: 0.74rem;
  font-weight: 800;
  background: var(--primary);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.avatar-hero-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

body.dark-mode .avatar-hero-meta p {
  color: #94a3b8 !important;
}

/* 6 Başlangıç Kahramanı Grid */
.starter-heroes-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .starter-heroes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

.starter-hero-card {
  background: #ffffff;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

body.dark-mode .starter-hero-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

.starter-hero-card:hover {
  transform: translateY(-2px);
  border-color: var(--secondary);
}

.starter-hero-card.active {
  border-color: var(--primary);
  background: #f0fdf4;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 14px rgba(88, 204, 2, 0.25);
}

body.dark-mode .starter-hero-card.active {
  background: #064e3b !important;
  border-color: #10b981 !important;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.35) !important;
}

.starter-hero-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

body.dark-mode .starter-hero-thumb {
  border-color: #334155;
}

.starter-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.starter-hero-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

body.dark-mode .starter-hero-title {
  color: #f8fafc !important;
}

/* 🦸 3D Kahraman Spotlight & Seçici Kartı */
.active-hero-spotlight-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid #93c5fd;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.12);
}

body.dark-mode .active-hero-spotlight-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.active-hero-img-box {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .active-hero-img-box {
  background: #334155;
  border-color: #475569;
}

.active-hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.active-hero-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.active-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.active-hero-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

body.dark-mode .active-hero-header h3 {
  color: #f8fafc;
}

.hero-role-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  background: #bfdbfe;
  color: #1e40af;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

body.dark-mode .hero-role-badge {
  background: #1e3a8a;
  color: #93c5fd;
}

.active-hero-details p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 2px 0 4px;
}

.hero-equipped-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #059669;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-full);
  padding: 2px 8px;
  width: fit-content;
}

body.dark-mode .hero-equipped-pill {
  color: #34d399;
  background: #064e3b;
  border-color: #047857;
}

.hero-selector-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-selector-header h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

body.dark-mode .hero-selector-header h4 {
  color: #f8fafc;
}

.hero-selector-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.hero-shop-cta-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #92400e;
}

body.dark-mode .hero-shop-cta-box {
  background: #451a03;
  border-color: #b45309;
  color: #fef3c7;
}

.hero-shop-cta-box span {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ==========================================================================
   🛍️ ADA PAZARI & GARDIROP (SHOP SCREEN)
   ========================================================================== */
#shop-screen {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  background: #f8fafc;
  padding: 16px 20px 110px;
}

body.dark-mode #shop-screen {
  background: #0f172a;
}

.shop-hub-header {
  margin-bottom: 16px;
}

.shop-title-area h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.shop-title-area p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.shop-balance-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-card);
}

body.dark-mode .shop-balance-bar {
  background: #1e293b;
}

.balance-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.balance-item strong {
  font-weight: 800;
  color: var(--text-main);
}

.dressing-room-card,
.shop-current-hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2.5px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.18);
}

body.dark-mode .dressing-room-card,
body.dark-mode .shop-current-hero-card {
  background: linear-gradient(135deg, #78350f, #451a03);
  border-color: #fbbf24;
}

.dressing-avatar-stage,
.shop-hero-thumb {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid #ffffff;
  flex-shrink: 0;
  overflow: hidden;
}

body.dark-mode .dressing-avatar-stage,
body.dark-mode .shop-hero-thumb {
  background: #334155;
  border-color: #475569;
}

.shop-hero-thumb img,
.dressing-avatar-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dressing-info,
.shop-hero-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dressing-info h3,
.shop-hero-meta h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #78350f;
  margin: 0;
}

body.dark-mode .dressing-info h3,
body.dark-mode .shop-hero-meta h3 {
  color: #fef3c7;
}

.dressing-info p,
.shop-hero-meta p {
  font-size: 0.82rem;
  color: #92400e;
  margin: 0;
}

body.dark-mode .dressing-info p,
body.dark-mode .shop-hero-meta p {
  color: #fde68a;
}

.shop-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.shop-category-tabs::-webkit-scrollbar { display: none; }

.shop-tab {
  padding: 8px 16px;
  background: #ffffff;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

body.dark-mode .shop-tab {
  background: #1e293b;
  border-color: #334155;
}

.shop-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-dark);
  box-shadow: 0 4px 10px rgba(88, 204, 2, 0.35);
}

.shop-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.shop-card {
  background: #ffffff;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
  position: relative;
}

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

.shop-card.equipped {
  border-color: var(--primary);
  background: #f0fdf4;
}

body.dark-mode .shop-card.equipped {
  background: #064e3b;
}

.shop-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
}

.shop-card-icon {
  font-size: 2.4rem;
  margin-bottom: 6px;
}

.shop-card-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.shop-card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.25;
  margin-bottom: 10px;
}

.shop-card-action {
  margin-top: auto;
}

/* ==========================================================================
   💔 CAN BİTTİ RECOVERY & ALTIN BANKASI MODALLARI
   ========================================================================== */
.hearts-recovery-card, .gold-bank-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

body.dark-mode .hearts-recovery-card,
body.dark-mode .gold-bank-card {
  background: #1e293b;
  color: #f8fafc;
}

.broken-heart-anim {
  font-size: 3.5rem;
  margin-bottom: 8px;
  animation: heartShake 1.5s infinite;
}

@keyframes heartShake {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}

.heart-recovery-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
  text-align: left;
}

.recovery-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 2.5px solid var(--border-card);
  border-radius: var(--radius-md);
  position: relative;
  transition: all 0.15s;
}

body.dark-mode .recovery-option-card {
  background: #0f172a;
}

.recovery-option-card.highlight-pro {
  border-color: #8b5cf6;
  background: #f5f3ff;
}

body.dark-mode .recovery-option-card.highlight-pro {
  background: #2e1065;
}

.recovery-option-card .opt-badge {
  position: absolute;
  top: -9px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #f59e0b;
  color: #fff;
}

.recovery-option-card .opt-icon {
  font-size: 2rem;
  min-width: 44px;
}

.recovery-option-card .opt-details h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.recovery-option-card .opt-details p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.bank-tiers-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.bank-tier-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 2.5px solid var(--border-card);
  border-radius: var(--radius-md);
  position: relative;
}

body.dark-mode .bank-tier-card {
  background: #0f172a;
}

.bank-tier-card.highlight-tier {
  border-color: #f59e0b;
  background: #fffbeb;
}

body.dark-mode .bank-tier-card.highlight-tier {
  background: #451a03;
}

.tier-badge {
  position: absolute;
  top: -9px;
  left: 16px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #f59e0b;
  color: #fff;
}

.tier-amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: #d97706;
}

.safe-purchase-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.shop-glow-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45) !important;
  border-color: #ffffff !important;
}

.btn-link-subtle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 8px;
}

/* ==========================================================================
   🖱️ ÖZEL KAYDIRMA ÇUBUĞU (SCROLLBAR) & TUTUP ÇEKEREK KAYDIRMA (DRAG-SCROLL)
   ========================================================================== */
#practice-screen::-webkit-scrollbar,
#shop-screen::-webkit-scrollbar,
#leaderboard-screen::-webkit-scrollbar,
.profile-card.enhanced::-webkit-scrollbar,
.settings-card::-webkit-scrollbar,
.daily-quests-card::-webkit-scrollbar,
.world-map-card::-webkit-scrollbar {
  width: 7px;
}

#practice-screen::-webkit-scrollbar-track,
#shop-screen::-webkit-scrollbar-track,
#leaderboard-screen::-webkit-scrollbar-track,
.profile-card.enhanced::-webkit-scrollbar-track,
.settings-card::-webkit-scrollbar-track,
.daily-quests-card::-webkit-scrollbar-track,
.world-map-card::-webkit-scrollbar-track {
  background: transparent;
}

#practice-screen::-webkit-scrollbar-thumb,
#shop-screen::-webkit-scrollbar-thumb,
#leaderboard-screen::-webkit-scrollbar-thumb,
.profile-card.enhanced::-webkit-scrollbar-thumb,
.settings-card::-webkit-scrollbar-thumb,
.daily-quests-card::-webkit-scrollbar-thumb,
.world-map-card::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 9999px;
  transition: background 0.2s;
}

#practice-screen::-webkit-scrollbar-thumb:hover,
#shop-screen::-webkit-scrollbar-thumb:hover,
#leaderboard-screen::-webkit-scrollbar-thumb:hover,
.profile-card.enhanced::-webkit-scrollbar-thumb:hover,
.settings-card::-webkit-scrollbar-thumb:hover,
.daily-quests-card::-webkit-scrollbar-thumb:hover,
.world-map-card::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.8);
}

/* Tutup Çekme (Grab to Scroll) Durumları */
.drag-scroll-active {
  cursor: default;
}

.drag-scroll-active.is-dragging {
  cursor: grabbing !important;
  user-select: none !important;
}

.drag-scroll-active.is-dragging * {
  user-select: none !important;
}

/* ========================================================
   🧊 ADIM 2: BUZ KALKANI (STREAK FREEZE) & GÜNLÜK GÖREVLER
   ======================================================== */

/* 1. Header Buz Kalkanı Rozeti (Stat Badge Eklentisi) */
.streak-badge {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.streak-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(255, 150, 0, 0.25);
}
.stat-freeze-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(6, 182, 212, 0.14);
  color: #0284c7;
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  margin-left: 2px;
  letter-spacing: 0.2px;
}
body.dark-mode .stat-freeze-pill {
  background: rgba(6, 182, 212, 0.25);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
}

/* 2. Ada Ekranı "🎁 Görevler" Butonu */
.daily-quests-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 0 #b45309, 0 4px 10px rgba(245, 158, 11, 0.35);
  position: relative;
  transition: all 0.15s ease;
  user-select: none;
}
.daily-quests-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #b45309, 0 6px 14px rgba(245, 158, 11, 0.45);
}
.daily-quests-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #b45309;
}
.quest-notification-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: pulseDot 1.4s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.8; }
}

/* 3. 🎁 Günlük Görevler Modalı (Kompakt ve Telefon Dostu) */
.daily-quests-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 22px 18px 20px;
  max-width: 420px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quests-modal-title-group {
  padding-right: 48px;
}
.quests-modal-title-group h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}
.quests-reset-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Görev Kartları Listesi */
.daily-quests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quest-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}
.quest-item-card.completed {
  background: #f0fdf4;
  border-color: #86efac;
}
.quest-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 3px 6px rgba(0,0,0,0.04);
}
.quest-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.quest-body-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.quest-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
}
.quest-reward-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: #d97706;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}
.quest-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.3;
}
.quest-progress-track {
  width: 100%;
  height: 9px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.quest-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.quest-progress-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  align-self: flex-end;
  margin-top: 2px;
}
.quest-btn-claim {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.quest-btn-claim.ready {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 3px 0 #047857;
  animation: pulseDot 2s infinite ease-in-out;
}
.quest-btn-claim.ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #047857;
}
.quest-btn-claim.ready:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #047857;
}
.quest-btn-claim.claimed {
  background: #e2e8f0;
  color: #64748b;
  cursor: default;
}
.quest-btn-claim.in-progress {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: default;
}

/* 4. Sürpriz Büyük Hazine Sandığı Bölümü */
.daily-chest-section {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border: 2px solid #f59e0b;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.2);
}
.chest-visual-box {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.daily-chest-icon {
  font-size: 3.2rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.daily-chest-icon.ready-to-open {
  animation: chestBounce 1.2s infinite ease-in-out;
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.6));
}
@keyframes chestBounce {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  25% { transform: translateY(-8px) scale(1.1) rotate(-5deg); }
  75% { transform: translateY(-4px) scale(1.05) rotate(5deg); }
}
.chest-info-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chest-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chest-title-row h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #92400e;
}
.chest-progress-badge {
  background: #b45309;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 800;
}
.chest-desc {
  font-size: 0.82rem;
  color: #78350f;
  font-weight: 600;
  line-height: 1.3;
}
#btn-claim-daily-chest:not(:disabled) {
  animation: chestGlow 1.8s infinite ease-in-out;
}
@keyframes chestGlow {
  0%, 100% { box-shadow: 0 4px 0 #b45309, 0 0 15px rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 4px 0 #b45309, 0 0 25px rgba(245, 158, 11, 0.9); }
}

/* 5. 🧊 Buz Kalkanı Detay Modalı */
.streak-freeze-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px 24px;
  max-width: 440px;
  width: 92%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
.freeze-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.freeze-dual-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 3.5rem;
  margin-bottom: 4px;
}
.fire-icon-anim {
  animation: chestBounce 2s infinite ease-in-out;
}
.shield-icon-anim {
  animation: iceFloat 2.2s infinite ease-in-out;
}
@keyframes iceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.freeze-hero-visual h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}
.freeze-subtext {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}
.freeze-status-box {
  background: #f0f9ff;
  border: 2px solid #bae6fd;
  border-radius: 18px;
  padding: 16px;
  text-align: left;
}
.freeze-status-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.freeze-status-item .f-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}
.freeze-status-item .f-text strong {
  display: block;
  font-size: 1.05rem;
  color: #0369a1;
  font-weight: 800;
  margin-bottom: 2px;
}
.freeze-status-item .f-text p {
  font-size: 0.84rem;
  color: #0c4a6e;
  font-weight: 600;
  line-height: 1.3;
}
.freeze-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 6. 🛡️ Buz Kalkanı Kurtarma Bildirimi Modalı */
.freeze-saved-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 440px;
  width: 92%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 6px solid #0284c7;
}
.freeze-saved-anim {
  font-size: 3.6rem;
  line-height: 1;
  animation: chestBounce 1.5s infinite ease;
}
.freeze-saved-card h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0369a1;
}
.freeze-saved-card p {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.45;
}
.freeze-saved-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  background: #f0f9ff;
  border-radius: 14px;
  padding: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0284c7;
}

/* 7. Dark Mode Uyumluluğu */
body.dark-mode .daily-quests-card,
body.dark-mode .streak-freeze-card,
body.dark-mode .freeze-saved-card {
  background: #1e293b !important;
  color: #f8fafc !important;
}
body.dark-mode .quest-item-card {
  background: #0f172a !important;
  border-color: #334155 !important;
}
body.dark-mode .quest-item-card.completed {
  background: #064e3b !important;
  border-color: #059669 !important;
}
body.dark-mode .quest-icon-box {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .quest-title {
  color: #f8fafc !important;
}
body.dark-mode .quest-progress-track {
  background: #334155 !important;
}
body.dark-mode .daily-chest-section {
  background: linear-gradient(135deg, #78350f, #92400e) !important;
  border-color: #f59e0b !important;
}
body.dark-mode .chest-title-row h4 {
  color: #fef3c7 !important;
}
body.dark-mode .chest-desc {
  color: #fed7aa !important;
}
body.dark-mode .freeze-status-box {
  background: #0c4a6e !important;
  border-color: #0284c7 !important;
}
body.dark-mode .freeze-status-item .f-text strong {
  color: #bae6fd !important;
}
body.dark-mode .freeze-status-item .f-text p {
  color: #e0f2fe !important;
}
body.dark-mode .freeze-saved-stats {
  background: #0f172a !important;
  color: #38bdf8 !important;
}

/* ========================================================
   🏆 HAFTALIK LİGLER & LİDERLİK TABLOSU (LEADERBOARD)
   ======================================================== */

#leaderboard-screen {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  will-change: scroll-position;
  padding: 16px 16px 120px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.leaderboard-hub-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.leaderboard-league-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border: 2px solid #f59e0b;
  border-radius: 22px;
  padding: 16px 20px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.2);
  transition: all 0.3s ease;
}

.league-shield-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  flex-shrink: 0;
  animation: iceFloat 3s infinite ease-in-out;
}

.league-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.league-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.league-title-row h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #92400e;
}

.league-rank-pill {
  background: #b45309;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

#league-time-remaining {
  font-size: 0.84rem;
  color: #78350f;
  font-weight: 700;
}

.league-rules-bar {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065f46;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

/* Sıralama Listesi */
.leaderboard-content-wrapper {
  background: #ffffff;
  border: 2px solid var(--border-card);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 2px solid transparent;
  transition: transform 0.1s ease;
  contain: content;
}

.leaderboard-row:hover {
  background: #f1f5f9;
}

/* Kullanıcının kendi satırı */
.leaderboard-row.is-user {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
  transform: scale(1.01);
  position: relative;
  z-index: 2;
}

.lb-rank {
  width: 32px;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.lb-rank.gold-rank {
  font-size: 1.5rem;
  color: #f59e0b;
}
.lb-rank.silver-rank {
  font-size: 1.5rem;
  color: #94a3b8;
}
.lb-rank.bronze-rank {
  font-size: 1.5rem;
  color: #cd7f32;
}

.lb-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  overflow: hidden;
}

.lb-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.lb-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-you-badge {
  background: #22c55e;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}

.lb-xp {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--secondary-dark);
  white-space: nowrap;
}

.lb-xp small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-left: 2px;
}

/* Terfi ve Düşme Bölgesi Çizgileri */
.leaderboard-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 4px 0;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

.leaderboard-divider.promo {
  background: #ecfdf5;
  color: #047857;
  border: 1px dashed #10b981;
}

.leaderboard-divider.demote {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px dashed #ef4444;
}

/* 🏆 Terfi Modalı */
.promotion-modal-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 440px;
  width: 92%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promotion-anim {
  font-size: 4rem;
  line-height: 1;
  animation: chestBounce 1.5s infinite ease;
}

.promotion-modal-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #d97706;
}

.promotion-modal-card p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.45;
}

.promotion-reward-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 12px 24px;
  align-self: center;
}

.promotion-reward-box .reward-icon {
  font-size: 2rem;
}

.promotion-reward-box #promotion-reward-gems {
  font-size: 1.4rem;
  font-weight: 800;
  color: #92400e;
}

.promotion-reward-box .reward-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
}

/* Dark Mode Desteği */
body.dark-mode #leaderboard-screen {
  background: #0f172a;
}
body.dark-mode .leaderboard-content-wrapper {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .leaderboard-row {
  background: #0f172a !important;
}
body.dark-mode .leaderboard-row:hover {
  background: #1e293b !important;
}
body.dark-mode .leaderboard-row.is-user {
  background: #064e3b !important;
  border-color: #10b981 !important;
}
body.dark-mode .lb-name {
  color: #f8fafc !important;
}
body.dark-mode .lb-xp {
  color: #38bdf8 !important;
}
body.dark-mode .leaderboard-league-banner {
  background: linear-gradient(135deg, #78350f, #92400e) !important;
  border-color: #f59e0b !important;
}
body.dark-mode .league-title-row h2 {
  color: #fef3c7 !important;
}
body.dark-mode #league-time-remaining {
  color: #fed7aa !important;
}
body.dark-mode .league-rules-bar {
  background: #064e3b !important;
  color: #a7f3d0 !important;
  border-color: #059669 !important;
}
body.dark-mode .promotion-modal-card {
  background: #1e293b !important;
  color: #f8fafc !important;
}
body.dark-mode .promotion-reward-box {
  background: #78350f !important;
  border-color: #f59e0b !important;
}
body.dark-mode .promotion-reward-box #promotion-reward-gems {
  color: #fef3c7 !important;
}

/* ========================================================
   🌙 GİRİŞ (ONBOARDING) & AVATAR CREATOR DARK MODE
   ======================================================== */

.onboarding-theme-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.dark-mode #onboarding-screen {
  background: radial-gradient(circle at top, #1e293b 0%, #0b0f19 100%) !important;
}

body.dark-mode .onboarding-card {
  color: #f8fafc;
}

body.dark-mode .onboard-step h2,
body.dark-mode .onboarding-card h2 {
  color: #f8fafc !important;
}

body.dark-mode .app-tagline,
body.dark-mode .step-desc {
  color: #94a3b8 !important;
}

body.dark-mode .input-group input {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

body.dark-mode .input-group input:focus {
  background: #0f172a !important;
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 4px rgba(28, 176, 246, 0.25) !important;
}

body.dark-mode .avatar-live-preview {
  background: radial-gradient(circle, #1e293b 0%, #0f172a 100%) !important;
  border-color: #334155 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

body.dark-mode .palette-label {
  color: #f8fafc !important;
}

body.dark-mode .creator-chip {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

body.dark-mode .creator-chip:hover {
  background: #334155 !important;
}

body.dark-mode .creator-chip.active {
  background: #0369a1 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
}

body.dark-mode .creator-hint {
  color: #94a3b8 !important;
}

body.dark-mode .level-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode .level-card.active {
  background: #064e3b !important;
  border-color: #10b981 !important;
  box-shadow: 0 var(--btn-3d-offset) 0 #047857 !important;
}

body.dark-mode .level-card .lvl-details h4 {
  color: #f8fafc !important;
}

body.dark-mode .level-card .lvl-details p {
  color: #94a3b8 !important;
}

body.dark-mode .level-card .lvl-badge {
  background: #334155 !important;
  color: #cbd5e1 !important;
}

body.dark-mode .level-card.active .lvl-badge {
  background: #10b981 !important;
  color: #ffffff !important;
}

body.dark-mode .color-dot {
  border-color: #334155 !important;
}
body.dark-mode .color-dot.active {
  outline-color: #10b981 !important;
}

/* ==========================================================================
   🔥 DUOLINGO TARZI KADEMELİ ALEV SİSTEMİ (EVOLVING FIRE STREAK)
   ========================================================================== */

/* Top Bar Alev Kademeleri */
.streak-badge.streak-tier-1 {
  border-color: #f97316 !important;
  color: #ea580c !important;
}
.streak-badge.streak-tier-2 {
  border-color: #f59e0b !important;
  color: #d97706 !important;
  animation: pulseFlameAmber 2s infinite ease-in-out;
}
.streak-badge.streak-tier-3 {
  border-color: #06b6d4 !important;
  color: #0284c7 !important;
  animation: pulseFlameCyan 1.8s infinite ease-in-out;
}
.streak-badge.streak-tier-4 {
  border-color: #a855f7 !important;
  color: #7c3aed !important;
  animation: pulseFlamePurple 1.6s infinite ease-in-out;
}
.streak-badge.streak-tier-5 {
  border-color: #eab308 !important;
  color: #ca8a04 !important;
  animation: pulseFlameGold 1.4s infinite ease-in-out;
}

@keyframes pulseFlameAmber {
  0%, 100% { box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.85); transform: scale(1.02); }
}
@keyframes pulseFlameCyan {
  0%, 100% { box-shadow: 0 0 8px rgba(6, 182, 212, 0.5); }
  50% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.95); transform: scale(1.03); }
}
@keyframes pulseFlamePurple {
  0%, 100% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.55); }
  50% { box-shadow: 0 0 24px rgba(168, 85, 247, 1); transform: scale(1.04); }
}
@keyframes pulseFlameGold {
  0%, 100% { box-shadow: 0 0 12px rgba(234, 179, 8, 0.6); }
  50% { box-shadow: 0 0 28px rgba(234, 179, 8, 1); transform: scale(1.05); }
}

/* Streak Hub Kartı */
.streak-hub-card {
  background: var(--card-bg, #ffffff);
  border-radius: var(--radius-xl, 24px);
  width: 92%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Evolving Flame Hero Showcase */
.streak-flame-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 10px 18px;
  border-radius: var(--radius-lg, 18px);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.08) 0%, rgba(249, 115, 22, 0.02) 100%);
  position: relative;
  overflow: hidden;
}
.flame-aura-container {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.evolving-flame-visual {
  font-size: 4rem;
  line-height: 1;
  transition: all 0.4s ease;
  animation: flameFlicker 1.8s infinite alternate ease-in-out;
  display: inline-block;
}
@keyframes flameFlicker {
  0% { transform: translateY(0) scale(1) rotate(-1deg); }
  50% { transform: translateY(-4px) scale(1.06) rotate(1deg); }
  100% { transform: translateY(-1px) scale(1.02) rotate(0deg); }
}
.evolving-flame-visual.streak-tier-1 {
  filter: drop-shadow(0 0 16px rgba(249, 115, 22, 0.7));
}
.evolving-flame-visual.streak-tier-2 {
  filter: drop-shadow(0 0 22px rgba(245, 158, 11, 0.85));
}
.evolving-flame-visual.streak-tier-3 {
  filter: drop-shadow(0 0 28px rgba(6, 182, 212, 0.95)) hue-rotate(170deg);
}
.evolving-flame-visual.streak-tier-4 {
  filter: drop-shadow(0 0 32px rgba(168, 85, 247, 1)) hue-rotate(240deg);
}
.evolving-flame-visual.streak-tier-5 {
  filter: drop-shadow(0 0 40px rgba(234, 179, 8, 1)) hue-rotate(340deg);
}

.streak-counter-box h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text-primary, #0f172a);
}
.streak-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.streak-tier-badge.streak-tier-1 { background: linear-gradient(135deg, #f97316, #ea580c); }
.streak-tier-badge.streak-tier-2 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.streak-tier-badge.streak-tier-3 { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.streak-tier-badge.streak-tier-4 { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.streak-tier-badge.streak-tier-5 { background: linear-gradient(135deg, #eab308, #ef4444); }

.streak-tier-desc {
  font-size: 0.85rem;
  color: var(--text-secondary, #64748b);
  margin: 0 0 10px;
  max-width: 320px;
}
.streak-progress-row {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.streak-progress-track {
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}
.streak-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  transition: width 0.4s ease;
}
.streak-next-tier-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
}

/* Haftalık 7 Günlük Takip Şeridi */
.streak-week-section {
  background: var(--bg-surface-secondary, #f8fafc);
  border-radius: var(--radius-md, 14px);
  padding: 14px;
  border: 1px solid var(--border-color, #e2e8f0);
}
.streak-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.streak-section-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}
.streak-week-pills {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.streak-day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 4px;
  border-radius: 12px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  transition: all 0.2s ease;
}
.streak-day-pill .s-day-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
}
.streak-day-pill .s-day-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.streak-day-pill.completed {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.08);
}
.streak-day-pill.completed.tier-3 {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.08);
}
.streak-day-pill.completed.tier-4 {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.08);
}
.streak-day-pill.today {
  box-shadow: 0 0 0 2px #0284c7;
}

/* Aylık Takvim Görünümü */
.streak-calendar-section {
  background: var(--bg-surface-secondary, #f8fafc);
  border-radius: var(--radius-md, 14px);
  padding: 14px;
  border: 1px solid var(--border-color, #e2e8f0);
}
.streak-month-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.15);
  color: #ea580c;
}
.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 6px;
}
.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  background: var(--card-bg, #ffffff);
  border: 1px solid transparent;
  position: relative;
}
.calendar-cell.has-streak {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(245, 158, 11, 0.15));
  border-color: #f97316;
  color: #c2410c;
  font-weight: 800;
}
.calendar-cell.has-streak::after {
  content: '🔥';
  font-size: 0.65rem;
  position: absolute;
  bottom: 1px;
}
.calendar-cell.today-ring {
  border: 2px solid #0284c7;
}

/* Buz Kalkanı Kartı */
.streak-shield-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-md, 14px);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.shield-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shield-huge-icon {
  font-size: 1.8rem;
}
.shield-card-left strong {
  font-size: 0.9rem;
  color: var(--text-primary, #0f172a);
  display: block;
}
.shield-card-left p {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

/* Sosyal Seri Banner */
.streak-friends-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-md, 14px);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.streak-friends-banner span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #7c3aed;
}

/* ==========================================================================
   👥 ARKADAŞLAR & SOSYAL SERİ SİSTEMİ (FRIENDS NETWORK)
   ========================================================================== */

.friends-hub-card {
  background: var(--card-bg, #ffffff);
  border-radius: var(--radius-xl, 24px);
  width: 92%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Kaşif Kodu Kartı */
.my-friend-code-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md, 14px);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(2, 132, 199, 0.2);
}
.code-avatar-box {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #e2e8f0;
}
.code-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.code-details {
  flex: 1;
}
.code-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  display: block;
}
.code-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 4px;
}
.code-val {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 1px;
}
.code-hint {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

/* Arkadaş Ekleme Inputu */
.add-friend-section {
  width: 100%;
}
.add-friend-input-row {
  display: flex;
  gap: 8px;
}
.add-friend-input-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #cbd5e1);
  font-size: 0.85rem;
  background: var(--card-bg, #ffffff);
  color: var(--text-primary, #0f172a);
}

/* Arkadaş Kartları Listesi */
.friends-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.friends-list-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}
.friends-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.friend-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md, 14px);
  background: var(--bg-surface-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  transition: transform 0.1s ease;
  contain: content;
}
.friend-left-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.friend-avatar-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #cbd5e1;
  flex-shrink: 0;
}
.friend-avatar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.friend-name-col strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary, #0f172a);
}
.friend-meta-sub {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
}
.friend-right-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.friend-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}
.btn-high-five {
  font-size: 0.75rem !important;
  padding: 4px 10px !important;
}

/* Liderlik Tablosu Sekme Değiştirici */
.leaderboard-tab-switch {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
  max-width: 500px;
  margin: 0 auto;
}
.lb-switch-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-color, #cbd5e1);
  background: var(--card-bg, #ffffff);
  color: var(--text-secondary, #64748b);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lb-switch-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.friends-screen-content {
  padding: 16px;
  max-width: 500px;
  margin: 0 auto;
}
.friends-headline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.friends-headline-row h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
}
.friends-headline-desc {
  font-size: 0.8rem;
  color: var(--text-secondary, #64748b);
  margin: 0 0 14px;
}

/* Onboarding Kahraman Cinsiyet Etiketi */
.starter-hero-card {
  position: relative;
}
.hero-gender-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary, #475569);
  margin-top: 3px;
  display: inline-block;
}

/* Altın Mağazası VIP Kartı */
.vip-tier-card {
  border: 2px solid #f59e0b !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(234, 179, 8, 0.04)) !important;
}
.vip-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
  color: #ffffff !important;
}

/* Dark Mode Uyumları */
body.dark-mode .streak-hub-card,
body.dark-mode .friends-hub-card {
  background: #1e293b !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .streak-week-section,
body.dark-mode .streak-calendar-section,
body.dark-mode .friend-item-card {
  background: #0f172a !important;
  border-color: #334155 !important;
}
body.dark-mode .streak-day-pill,
body.dark-mode .calendar-cell {
  background: #1e293b !important;
}
body.dark-mode .my-friend-code-card {
  background: rgba(2, 132, 199, 0.15) !important;
  border-color: #0284c7 !important;
}
body.dark-mode .add-friend-input-row input {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
body.dark-mode .lb-switch-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}
body.dark-mode .lb-switch-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   v1.0 — Çocuk dostu sürüm eklemeleri
   (bildirim, ortak diyalog, ebeveyn alanı, sesli yönerge, dinleme modu)
   ========================================================================== */

/* Ortak buton sıfırlaması: div yerine button kullanılan kartlar */
button.visual-option-card,
button.memory-card-tile {
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}
button.memory-card-tile { padding: 0; border: 0; background: transparent; }

/* Yönerge satırı + 🔊 */
.instruction-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.instruction-row h3 { margin: 0; }
.btn-instruction-audio {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--border-card);
  transition: transform .12s ease;
}
.btn-instruction-audio:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--border-card); }
body.dark-mode .btn-instruction-audio { background: #1f2937; border-color: #374151; box-shadow: 0 3px 0 #111827; }

/* Gerçek dinleme sorusu: cevap verilene kadar yazılar gizli */
.quiz-options-visual-grid.labels-hidden .visual-option-label { visibility: hidden; }
.quiz-options-visual-grid.labels-hidden .visual-option-card.incorrect .visual-option-label { visibility: visible; }
.quiz-options-visual-grid.labels-hidden .visual-option-icon { font-size: 3.4rem; }

/* Boşluk doldurma: yazılı büyük seçenekler */
.quiz-options-visual-grid.text-mode .visual-option-card { min-height: 84px; justify-content: center; }
.quiz-options-visual-grid.text-mode .visual-option-label { font-size: 1.35rem; font-weight: 800; visibility: visible; }

/* Nötr geri bildirim (ceza yok, devam) */
.feedback-message.neutral { background: #e0f2fe; color: #075985; border: 2px solid #7dd3fc; }
body.dark-mode .feedback-message.neutral { background: #0c4a6e; color: #e0f2fe; border-color: #0369a1; }

.btn-skip-speech {
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: underline;
  min-height: 44px;
  padding: 8px 12px;
}

/* Toast bildirimi */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  max-width: min(92vw, 420px);
  width: max-content;
  padding: 12px 18px;
  border-radius: 16px;
  background: #1e293b;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  transition: opacity .22s ease, transform .22s ease;
}
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Ortak diyalog */
#app-dialog { z-index: 9999; }
.app-dialog-card {
  background: var(--card-bg, #fff);
  color: var(--text-main);
  width: min(92vw, 380px);
  border-radius: 24px;
  padding: 24px 20px 18px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: dialogPop .22s ease-out;
}
body.dark-mode .app-dialog-card { background: #1f2937; }
@keyframes dialogPop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.app-dialog-icon { font-size: 2.8rem; line-height: 1; margin-bottom: 8px; }
.app-dialog-card h3 { font-size: 1.25rem; font-weight: 800; margin: 4px 0 6px; }
.app-dialog-card p { color: var(--text-muted); font-size: .98rem; line-height: 1.45; margin: 0 0 14px; }
.app-dialog-actions { display: flex; flex-direction: column; gap: 10px; }
.app-dialog-gate { margin: 0 0 14px; }
.app-dialog-gate input {
  width: 140px;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  padding: 10px;
  border-radius: 14px;
  border: 2px solid var(--border-card);
  background: transparent;
  color: var(--text-main);
}
.app-dialog-gate input:focus { outline: none; border-color: var(--secondary); }
.shake { animation: shakeX .35s ease; }
@keyframes shakeX { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-8px)} 75%{transform:translateX(8px)} }

/* Ebeveyn alanı */
.settings-parent-zone { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.settings-parent-zone .btn-link-subtle {
  background: none; border: none; color: var(--text-muted); font-size: .85rem;
  text-decoration: underline; cursor: pointer; padding: 10px; min-height: 44px;
}
.parent-info-card { max-height: 86vh; overflow-y: auto; }
.parent-info-body { text-align: left; font-size: .95rem; line-height: 1.55; color: var(--text-main); }
.parent-info-body h4 { margin: 16px 0 6px; font-size: 1rem; font-weight: 800; }
.parent-info-body ul { padding-left: 20px; margin: 0; }
.parent-info-body li { margin: 4px 0; }
.parent-info-body p { margin: 8px 0; }
.parent-info-version { color: var(--text-muted); font-size: .8rem; text-align: center; margin-top: 18px !important; }

/* Pazar: altın bilgi notu */
.balance-hint { font-size: .85rem; color: var(--text-muted); font-weight: 700; }

/* Gizli / yardımcı */
.hidden { display: none !important; }

/* Hareket hassasiyeti olan kullanıcılar */
@media (prefers-reduced-motion: reduce) {
  .app-toast, .app-dialog-card { transition: none; animation: none; }
}

/* Balon oyunu: tekrar dinle düğmesi */
#btn-bubble-replay-audio {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 18px;
  border-radius: 999px; border: 2px solid var(--secondary);
  background: #e0f2fe; color: #075985;
  font-weight: 800; font-size: .95rem; cursor: pointer;
  box-shadow: 0 3px 0 var(--secondary-dark);
}
#btn-bubble-replay-audio:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--secondary-dark); }
body.dark-mode #btn-bubble-replay-audio { background: #0c4a6e; color: #e0f2fe; }

/* Flex pencerelerde içerik ezilmesin (seri penceresi vb.) */
.streak-hub-card > *,
.daily-quests-card > *,
.world-map-card > * { flex-shrink: 0; }

/* Adalar listesi kartı */
.world-island-item { align-items: center; }
.world-island-details { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.world-island-details h4 { margin: 0; font-size: 1.05rem; line-height: 1.25; word-break: normal; overflow-wrap: anywhere; }
.world-island-details p { margin: 0; font-size: .85rem; color: var(--text-muted); line-height: 1.3; }
.world-island-num { font-size: .75rem; font-weight: 800; color: var(--secondary-dark); text-transform: uppercase; letter-spacing: .03em; }
.world-island-details .world-island-status { position: static; margin-top: 6px; }

/* Görev kartları */
.quest-body { flex: 1 1 auto; min-width: 0; }
.quest-body-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.quest-title { white-space: normal; }
body.dark-mode .app-dialog-card .btn-secondary { background: #374151; color: #f8fafc; border-color: #4b5563; }

/* ==========================================================================
   Masaüstü sunumu: uygulama telefon çerçevesinde, arka planda okyanus
   ========================================================================== */
.desktop-aside { display: none; }
@media (min-width: 900px) and (min-height: 640px) {
  body {
    flex-direction: row;
    gap: 56px;
    background: radial-gradient(1200px 700px at 15% 10%, #bae6fd 0%, transparent 60%),
                radial-gradient(900px 600px at 90% 90%, #bbf7d0 0%, transparent 60%),
                linear-gradient(135deg, #e0f2fe 0%, #ecfeff 50%, #f0fdf4 100%);
  }
  body.dark-mode {
    background: radial-gradient(1200px 700px at 15% 10%, #0c4a6e 0%, transparent 60%),
                linear-gradient(135deg, #0b1220 0%, #0f172a 100%);
  }
  #app {
    max-width: 430px;
    height: calc(100dvh - 48px);
    max-height: 920px;
    border-radius: 36px;
    border: 10px solid #0f172a;
    box-shadow: 0 30px 80px rgba(2, 44, 80, 0.28);
    transform: translateZ(0); /* sabit konumlu pencereler çerçevenin içinde kalsın */
  }
}
@media (min-width: 1100px) and (min-height: 640px) {
  .desktop-aside {
    display: block;
    max-width: 380px;
    color: #0f172a;
  }
  body.dark-mode .desktop-aside { color: #e2e8f0; }
  .desktop-aside-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--primary-dark); }
  .desktop-aside h2 { font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1; margin: 14px 0 12px; }
  .desktop-aside p { font-size: 1.05rem; line-height: 1.55; color: inherit; opacity: .8; margin: 0 0 18px; }
  .desktop-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 700; font-size: 1rem; }
  .desktop-aside li { background: rgba(255,255,255,.7); border-radius: 14px; padding: 10px 14px; }
  body.dark-mode .desktop-aside li { background: rgba(30,41,59,.7); }
}

/* Mini dilbilgisi kuralı kartı */
.grammar-tip-card {
  width: 100%;
  max-width: 420px;
  margin: 14px auto 18px;
  background: #fffbeb;
  border: 3px solid #fcd34d;
  border-radius: 24px;
  padding: 20px 18px;
  text-align: left;
  box-shadow: 0 6px 0 #f59e0b;
}
.grammar-tip-card h3 { font-family: var(--font-display); font-size: 1.45rem; color: #b45309; margin: 0 0 10px; line-height: 1.2; }
.grammar-tip-card p { font-size: 1.02rem; line-height: 1.5; color: #44403c; margin: 0 0 14px; }
.grammar-tip-example { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px; }
.grammar-tip-example strong { display: block; font-size: 1.1rem; color: #0f172a; }
.grammar-tip-example span { display: block; color: #64748b; font-size: .92rem; margin-top: 2px; }
.grammar-tip-example .btn-sentence-audio { flex: 0 0 auto; }
body.dark-mode .grammar-tip-card { background: #422006; border-color: #92400e; box-shadow: 0 6px 0 #78350f; }
body.dark-mode .grammar-tip-card h3 { color: #fcd34d; }
body.dark-mode .grammar-tip-card p { color: #fde68a; }
body.dark-mode .grammar-tip-example { background: #1f2937; }
body.dark-mode .grammar-tip-example strong { color: #f8fafc; }

/* Kelime kartı arka yüzü: uzun cümlede taşma olmasın */
.flip-card-back { overflow: hidden; }
.flip-card-back .example-sentence-box { max-width: 100%; }
.flip-card-back .sentence-en { overflow-wrap: anywhere; }

/* ==========================================================================
   v1.1 — Avatar çıkartmaları: kendi renkli daireleri var, ek çerçeve yok
   ========================================================================== */
img[src*="assets/avatars/"] {
  object-fit: contain !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.18));
}
.character-avatar:has(img),
.profile-avatar-wrapper,
.avatar-live-preview,
.active-hero-img-box,
.shop-hero-thumb,
.code-avatar-box,
.starter-hero-thumb,
.shop-card-icon:has(img) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  border-radius: 0 !important;
}

/* ==========================================================================
   v1.1 — Giriş ekranı
   ========================================================================== */
#onboarding-screen {
  background: linear-gradient(180deg, #7dd3fc 0%, #bae6fd 34%, #f0f9ff 62%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 0 20px calc(24px + env(safe-area-inset-bottom, 0px));
}
body.dark-mode #onboarding-screen {
  background: linear-gradient(180deg, #0c4a6e 0%, #082f49 40%, #0f172a 100%);
}
.ob-step { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ob-step.hidden { display: none !important; }

.ob-hero { position: relative; width: 100%; display: flex; justify-content: center; margin-top: 28px; }
.ob-island {
  width: min(78vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(2, 74, 120, 0.28), inset 0 0 0 6px rgba(255,255,255,.6);
  animation: obFloat 5s ease-in-out infinite;
}
.ob-island img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); display: block; }
.ob-mascot { position: absolute; right: calc(50% - min(39vw, 150px) - 6px); bottom: -14px; animation: obBob 2.6s ease-in-out infinite; }
@keyframes obFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes obBob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(3deg); } }

.ob-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: #0369a1;
  margin: 26px 0 2px;
  letter-spacing: -.01em;
}
body.dark-mode .ob-title { color: #7dd3fc; }
.ob-tagline { font-size: 1.05rem; font-weight: 600; color: #0f172a; opacity: .75; margin: 0 0 22px; }
body.dark-mode .ob-tagline { color: #e2e8f0; }

.ob-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.ob-label { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #0f172a; }
body.dark-mode .ob-label { color: #f8fafc; }
#input-username {
  width: 100%;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  padding: 16px;
  border-radius: 18px;
  border: 3px solid #bae6fd;
  background: #fff;
  color: #0f172a;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#input-username:focus { border-color: var(--secondary); box-shadow: 0 0 0 5px rgba(28,176,246,.18); }
body.dark-mode #input-username { background: #1e293b; color: #f8fafc; border-color: #334155; }
.ob-cta { font-size: 1.15rem !important; padding: 16px !important; }

.ob-step-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin: 34px 0 4px; color: #0f172a; }
body.dark-mode .ob-step-title { color: #f8fafc; }
.ob-step-desc { margin: 0 0 18px; font-weight: 600; color: #334155; }
body.dark-mode .ob-step-desc { color: #cbd5e1; }

.ob-heroes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.ob-hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 14px;
  border-radius: 24px;
  border: 3px solid transparent;
  background: rgba(255,255,255,.85);
  box-shadow: 0 6px 0 #cbd5e1;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
body.dark-mode .ob-hero-card { background: #1e293b; box-shadow: 0 6px 0 #0b1220; }
.ob-hero-card:active { transform: translateY(3px); box-shadow: 0 3px 0 #cbd5e1; }
.ob-hero-card.active { border-color: var(--primary); background: #f0fdf4; box-shadow: 0 6px 0 var(--primary-dark); transform: translateY(-2px); }
body.dark-mode .ob-hero-card.active { background: #052e16; }
.ob-hero-img { width: 112px; height: 112px; display: block; }
.ob-hero-img img { width: 100%; height: 100%; }
.ob-hero-card.active .ob-hero-img { animation: obPick .45s ease; }
@keyframes obPick { 0% { transform: scale(1); } 40% { transform: scale(1.12) rotate(-3deg); } 100% { transform: scale(1); } }
.ob-hero-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.ob-hero-check {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 900;
  display: none; align-items: center; justify-content: center;
}
.ob-hero-card.active .ob-hero-check { display: flex; }
.ob-hero-desc { min-height: 2.8em; margin: 16px 4px 10px; font-weight: 600; color: #334155; line-height: 1.4; }
body.dark-mode .ob-hero-desc { color: #cbd5e1; }
.ob-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; width: 100%; margin-top: auto; padding-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .ob-island, .ob-mascot, .ob-hero-card.active .ob-hero-img { animation: none; }
}

/* ==========================================================================
   v1.1 — Harita: kilitli bölgeler ve gemi (koyu yuvarlak ve sis yerine)
   ========================================================================== */
.map-node.locked {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #ffffff;
  box-shadow: 0 4px 0 rgba(15, 23, 42, 0.18), 0 6px 14px rgba(15, 23, 42, 0.18);
  color: #64748b;
  filter: none;
}
.map-node-wrapper.locked .map-node-title {
  background: rgba(255, 255, 255, 0.78);
  color: #64748b;
  font-size: .72rem;
}
.map-node-wrapper.locked { cursor: default; }
.map-node-wrapper.just-unlocked .map-node { animation: nodeUnlock .7s cubic-bezier(.34,1.56,.64,1), nodePulse 1.8s .7s infinite; }
@keyframes nodeUnlock { 0% { transform: scale(.4); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }

.ship-sail-btn.locked {
  background: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 5px 0 #cbd5e1, 0 8px 16px rgba(15, 23, 42, 0.2);
  filter: none;
  opacity: 1;
  animation: shipBobbing 4s ease-in-out infinite;
}
.ship-sail-btn.locked .ship-icon { opacity: .55; }
.ship-status-badge.locked {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: none;
  border: 2px solid #ffffff;
  color: #475569;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
}
body.dark-mode .ship-status-badge.locked { background: rgba(255,255,255,.92); color: #475569; border-color: #fff; }
.question-instruction h3#instruction-text { margin-bottom: 2px; }
.instruction-tr { margin: 0; font-size: .95rem; font-weight: 600; color: var(--text-muted); }

/* Kalıp kartı (chunk) */
.grammar-tip-card.chunk-mode { background: #eff6ff; border-color: #93c5fd; box-shadow: 0 6px 0 #3b82f6; cursor: pointer; }
.grammar-tip-card.chunk-mode h3 { color: #1d4ed8; font-size: 1.6rem; text-align: center; }
.grammar-tip-card.chunk-mode p { text-align: center; font-size: 1.1rem; }
body.dark-mode .grammar-tip-card.chunk-mode { background: #172554; border-color: #1d4ed8; box-shadow: 0 6px 0 #1e3a8a; }
body.dark-mode .grammar-tip-card.chunk-mode h3 { color: #93c5fd; }
.sentence-target-meaning { display: flex; align-items: center; justify-content: center; gap: 10px; }

/* ==========================================================================
   v1.3 — Görevler: düzen, haftalık takvim
   ========================================================================== */
.quest-item-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 10px;
}
.quest-item-card .quest-body { gap: 2px; }
.quest-item-card .quest-title { font-size: 1rem; line-height: 1.2; }
.quest-title-tr { font-size: .8rem; font-weight: 600; color: var(--text-muted); line-height: 1.25; }
.quest-progress-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.quest-progress-row .quest-progress-track { margin-top: 0; flex: 1 1 auto; }
.quest-progress-row .quest-progress-label { margin-top: 0; align-self: center; white-space: nowrap; }
.quest-item-card .quest-reward-tag { align-self: start; }
.quest-item-card .quest-btn-claim { grid-column: 1 / -1; width: 100%; padding: 10px 14px; font-size: .95rem; }
.quest-item-card.claimed { opacity: .8; }

.weekly-strip-section {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  border-radius: 20px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.weekly-strip-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.weekly-strip-head h4 { margin: 0; font-size: 1.02rem; font-weight: 800; color: #1e3a8a; }
.weekly-strip-head small { display: block; font-size: .78rem; font-weight: 600; color: var(--text-muted); line-height: 1.3; }
.weekly-progress-badge {
  background: #2563eb; color: #fff; padding: 2px 9px; border-radius: 12px;
  font-size: .8rem; font-weight: 800; white-space: nowrap;
}
.weekly-days-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.week-day-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff; border: 2px solid #cbd5e1; font-size: 1rem;
}
.week-day.done .week-day-dot { background: #fde68a; border-color: #f59e0b; }
.week-day.today .week-day-dot { border-color: #2563eb; border-width: 3px; }
.week-day.future .week-day-dot { opacity: .55; }
.week-day-label { font-size: .7rem; font-weight: 800; color: #475569; }
.week-day.today .week-day-label { color: #2563eb; }

body.dark-mode .weekly-strip-section { background: #172554; border-color: #1e40af; }
body.dark-mode .weekly-strip-head h4 { color: #bfdbfe; }
body.dark-mode .week-day-dot { background: #0f172a; border-color: #334155; }
body.dark-mode .week-day.done .week-day-dot { background: #78350f; border-color: #f59e0b; }
body.dark-mode .week-day.today .week-day-dot { border-color: #60a5fa; }
body.dark-mode .week-day-label { color: #cbd5e1; }
body.dark-mode .week-day.today .week-day-label { color: #93c5fd; }
.chest-progress-badge { white-space: nowrap; }

/* ==========================================================================
   v1.3 — Kelime albümü (çıkartmalar)
   ========================================================================== */
.vocabulary-grid.sticker-album-mode { display: flex; flex-direction: column; gap: 14px; }
.sticker-page {
  background: #fffbeb; border: 2px solid #fde68a; border-radius: 18px; padding: 12px;
}
.sticker-page.complete { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.sticker-page.locked { background: #f1f5f9; border-color: #e2e8f0; opacity: .7; }
.sticker-page-head { display: flex; align-items: center; gap: 8px; }
.sticker-page-head strong { flex: 1 1 auto; min-width: 0; font-size: .98rem; color: #78350f; }
.sticker-page.locked .sticker-page-head strong { color: #64748b; }
.sticker-page-icon { font-size: 1.3rem; }
.sticker-page-count { font-size: .8rem; font-weight: 800; color: #92400e; background: #fef3c7; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.sticker {
  aspect-ratio: 1 / 1; border-radius: 16px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; padding: 4px; font-family: inherit;
}
.sticker.have {
  background: #ffffff; border: 3px solid #ffffff; cursor: pointer;
  box-shadow: 0 3px 0 #fcd34d, 0 4px 10px rgba(120, 53, 15, .15);
  transform: rotate(-2deg);
}
.sticker.have:nth-child(even) { transform: rotate(2deg); }
.sticker.have:active { transform: scale(.95); }
.sticker.missing { background: rgba(148, 163, 184, .18); border: 2px dashed #cbd5e1; }
.sticker-visual { font-size: 1.7rem; line-height: 1; }
.sticker.missing .sticker-visual { font-size: 1.2rem; font-weight: 800; color: #94a3b8; }
.sticker-word { font-size: .72rem; font-weight: 800; color: #1e293b; text-align: center; line-height: 1.1; overflow-wrap: anywhere; }
.sticker.wiggle { animation: stickerWiggle .45s ease; }
@keyframes stickerWiggle { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(6deg) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .sticker.wiggle { animation: none; } }

body.dark-mode .sticker-page { background: #292524; border-color: #78350f; }
body.dark-mode .sticker-page.locked { background: #1e293b; border-color: #334155; }
body.dark-mode .sticker-page-head strong { color: #fde68a; }
body.dark-mode .sticker-page-count { background: #78350f; color: #fef3c7; }
body.dark-mode .sticker.have { background: #f8fafc; border-color: #f8fafc; }
body.dark-mode .sticker.missing { background: rgba(51, 65, 85, .5); border-color: #475569; }

/* ==========================================================================
   v1.3 — Ebeveyn haftalık raporu
   ========================================================================== */
.parent-report-card { max-height: 88vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.parent-report-body { display: flex; flex-direction: column; gap: 12px; font-size: .92rem; }
.report-intro { margin: 0; color: var(--text-muted); }
.report-section h4 { margin: 0 0 6px; font-size: .95rem; font-weight: 800; color: var(--text-main); }
.report-section p { margin: 4px 0 0; }
.report-muted { color: var(--text-muted); }
.report-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.report-day { display: flex; flex-direction: column; align-items: center; font-size: 1rem; color: #94a3b8; }
.report-day small { font-size: .68rem; font-weight: 700; color: var(--text-muted); }
.report-day.future { opacity: .5; }
.report-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.report-stats > div { background: #f1f5f9; border-radius: 14px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; }
.report-stats strong { font-size: 1.15rem; }
.report-stats small { font-size: .72rem; color: var(--text-muted); font-weight: 700; }
.report-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.report-chip { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px; padding: 3px 10px; font-size: .82rem; }
.report-chip em { color: #b45309; font-style: normal; }
.report-advice { background: #fef9c3; border: 1px solid #fde047; border-radius: 14px; padding: 10px 12px; font-weight: 600; }
body.dark-mode .report-stats > div { background: #0f172a; }
body.dark-mode .report-chip { background: #172554; border-color: #1e40af; color: #e0f2fe; }
body.dark-mode .report-advice { background: #422006; border-color: #a16207; color: #fef9c3; }

@media print {
  body.printing-report > *:not(main),
  body.printing-report main > *:not(#parent-report-modal),
  body.printing-report #btn-close-parent-report,
  body.printing-report #btn-print-parent-report { display: none !important; }
  body.printing-report #parent-report-modal { position: static !important; background: none !important; display: block !important; }
  body.printing-report .parent-report-card { max-height: none; overflow: visible; box-shadow: none; color: #000; background: #fff; }
}

/* v1.5 — LingoBay marka: açılış maskotu ve masaüstü logo */
.ob-mascot-img { display: block; width: 104px; height: 104px; border-radius: 50%; filter: drop-shadow(0 6px 12px rgba(3, 60, 100, .35)); }
.desktop-aside-logo { display: flex; align-items: center; gap: 12px; }
.desktop-aside-logo-img { width: 56px; height: 56px; border-radius: 22%; box-shadow: 0 6px 16px rgba(3, 60, 100, .25); }

/* v1.5 — Maskot Captain Capy (baykuş Pip'in yerine) */
.capy-mascot { position: relative; display: inline-block; flex-shrink: 0; }
.capy-mascot img { width: 100%; height: 100%; display: block; border-radius: 50%; filter: drop-shadow(0 4px 8px rgba(3, 60, 100, .25)); user-select: none; }
.capy-badge { position: absolute; right: -6%; top: -8%; font-size: calc(1em + 2px); line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); animation: sparkleRotate 1.5s ease-in-out infinite alternate; }
.feedback-mascot-box .capy-mascot { width: 48px !important; height: 48px !important; font-size: 14px; }
.celebration-mascot-box .capy-mascot { font-size: 30px; }
.app-dialog-icon .capy-mascot { width: 72px !important; height: 72px !important; font-size: 18px; }
.mascot-anim-float { animation: mascotFloat 2.6s ease-in-out infinite; }
@keyframes mascotFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .capy-mascot, .capy-badge { animation: none !important; }
}

/* v1.5.4 — Giriş ekranı: mağaza simgesiyle aynı logo */
.ob-logo { width: min(56vw, 220px); aspect-ratio: 1; margin: 8px auto 0; border-radius: 22.5%; overflow: hidden;
  box-shadow: 0 14px 30px rgba(3, 60, 100, .35), 0 0 0 4px rgba(255, 255, 255, .08); animation: obLogoFloat 3.2s ease-in-out infinite; }
.ob-logo img { width: 100%; height: 100%; display: block; }
@keyframes obLogoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .ob-logo { animation: none; } }

/* v1.5.5 — Yazı logosu: "Lingo" deniz mavisi, "Bay" mercan turuncusu (Capy'nin fuları) */
.wm-lingo { color: #0284c7; }
.wm-bay { color: #f97316; }
body.dark-mode .wm-lingo { color: #38bdf8; }
body.dark-mode .wm-bay { color: #fb923c; }
.ob-title .wm-lingo, .ob-title .wm-bay { text-shadow: 0 2px 0 rgba(15, 23, 42, .12); }

/* v1.5.7 — Seçenek kartları küçük telefonlarda taşmasın (iPhone SE 320px dahil) */
.quiz-options-visual-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 2.5vw, 12px); }
.visual-option-card { min-width: 0; padding: 8px 3px; }
.visual-option-icon,
.quiz-options-visual-grid.labels-hidden .visual-option-icon { font-size: clamp(2.2rem, 11vw, 3.4rem); }
.visual-option-label { font-size: clamp(.82rem, 3.9vw, 1.18rem); line-height: 1.1; overflow-wrap: anywhere; max-width: 100%; }
.quiz-options-visual-grid.text-mode .visual-option-label { font-size: clamp(.95rem, 4.4vw, 1.35rem); }
/* Soru kutuları içinde bulundukları alandan geniş olamasın */
#practice-section > * { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
/* Kısa ekranlar (iPhone SE vb.): soru ekranını sıkıştır, kartlar kaydırmadan görünsün */
@media (max-height: 680px) {
  .question-instruction { margin-bottom: 6px; }
  .question-instruction h3 { font-size: 1.25rem; }
  .quiz-media-area { padding-top: 8px !important; padding-bottom: 8px !important; margin-bottom: 8px !important; }
  #btn-pronounce, #btn-pronounce-slow { padding-top: 8px !important; padding-bottom: 8px !important; }
  .visual-option-card { aspect-ratio: 1 / 0.92; }
  .visual-option-icon, .quiz-options-visual-grid.labels-hidden .visual-option-icon { font-size: clamp(2rem, 10vw, 2.8rem); margin-bottom: 2px; }
}

/* v1.6 — Resimli görseller: emoji ile aynı boyutta (yazı boyutunu izler) */
.vis-img { width: 1.15em; height: 1.15em; object-fit: contain; display: inline-block; vertical-align: middle; pointer-events: none; }

/* ==========================================================================
   v1.6 — Bölge geçişi (yolculuk) ve kutlama çıkışı
   ========================================================================== */
#celebration-modal.closing { animation: celebOut .26s ease forwards; }
#celebration-modal.closing > * { animation: celebCardOut .26s ease forwards; }
@keyframes celebOut { to { opacity: 0; } }
@keyframes celebCardOut { to { transform: translateY(24px) scale(.94); } }


.journey-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.journey-dots { fill: none; stroke: #ffffff; stroke-width: .9; stroke-linecap: round; stroke-dasharray: .01 3.2; filter: drop-shadow(0 0 1px rgba(3, 60, 100, .6)); }
.journey-reveal { fill: none; stroke: #fff; stroke-width: 5; stroke-dasharray: 100; stroke-dashoffset: 100; }
.journey-path.drawing .journey-reveal { animation: journeyDraw 1.1s cubic-bezier(.25, 1, .5, 1) forwards; }
@keyframes journeyDraw { to { stroke-dashoffset: 0; } }

.node-star-badge.stars-earned { animation: starsEarned .7s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes starsEarned { 0% { transform: scale(0); } 60% { transform: scale(1.45); } 100% { transform: scale(1); } }

.map-node.pre-unlock { transition: none; }
.map-node.lock-shake { animation: lockShake .35s ease-in-out; }
@keyframes lockShake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-9deg); } 80% { transform: rotate(6deg); } }

.next-hint {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  background: #f97316; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; z-index: 5;
  box-shadow: 0 4px 0 #c2410c, 0 6px 14px rgba(0, 0, 0, .25);
  animation: hintBounce 1s ease-in-out infinite;
}
.next-hint::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #f97316; }
@keyframes hintBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }

@media (prefers-reduced-motion: reduce) {
  .next-hint, .node-star-badge.stars-earned, .map-node.lock-shake, #celebration-modal.closing, #celebration-modal.closing > * { animation: none !important; }
  .journey-path .journey-reveal { stroke-dashoffset: 0; }
}
/* Kutlama düğmeleri yan yana; kart kısa ekranlarda da sığsın */
.celebration-actions { display: flex; gap: 10px; width: 100%; }
.celebration-actions .btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.celebration-actions .btn.hidden { display: none; }
.celebration-card { max-height: 94vh; overflow-y: auto; }
@media (max-height: 820px) {
  .celebration-mascot-box { margin-bottom: 6px; }
  .celebration-mascot-box .capy-mascot { width: 92px !important; height: 92px !important; }
  .celebration-stars-display { margin: 4px 0 !important; }
}
.celebration-actions { position: sticky; bottom: -1px; z-index: 2; background: inherit; padding: 10px 0 2px; margin-top: 6px; }
.celebration-card { background-clip: padding-box; }
@media (max-height: 700px) {
  .celebration-stars-display .star { font-size: 2.4rem !important; }
  .reward-box { padding-top: 8px !important; padding-bottom: 8px !important; }
  .achievement-unlocked-card { padding-top: 8px !important; padding-bottom: 8px !important; }
}
.celebration-actions .btn { font-size: clamp(.95rem, 4.2vw, 1.1rem); letter-spacing: 0; }

/* v1.7 — Günlük yeni bölge sınırı: sıradaki bölge yarına kaldı */
.map-node.rest-today { filter: saturate(.55) brightness(.95); box-shadow: 0 0 0 4px rgba(99, 102, 241, .35), 0 4px 10px rgba(0,0,0,.2); }
.next-hint.next-hint-rest { background: #4f46e5; box-shadow: 0 4px 0 #3730a3, 0 6px 14px rgba(0, 0, 0, .25); animation-duration: 1.8s; }
.next-hint.next-hint-rest::after { border-top-color: #4f46e5; }
.daily-limit-setting { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.daily-limit-setting .setting-info { flex: 1 1 auto; min-width: 0; }
.daily-limit-setting select { font: inherit; font-weight: 700; padding: 6px 10px; border-radius: 10px; border: 2px solid var(--border-card); background: #fff; color: #0f172a; max-width: 46%; }
body.dark-mode .daily-limit-setting select { background: #1e293b; color: #f8fafc; border-color: #334155; }

/* v1.7.1 — Adalar listesi: yapım aşamasındaki sürpriz ada */
.world-island-item.coming-soon { border-style: dashed; border-color: #a5b4fc; background: linear-gradient(135deg, #eef2ff, #f5f3ff); cursor: pointer; }
.world-island-item.coming-soon .world-island-num { color: #6366f1; }
.world-island-item.coming-soon h4 { color: #4338ca; letter-spacing: .02em; }
.mystery-thumb { position: relative; width: 70px; height: 70px; border-radius: 14px; overflow: hidden; flex-shrink: 0; border: 2px solid #c7d2fe; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.mystery-thumb svg { width: 100%; height: 100%; display: block; }
.mystery-q { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: #fde68a; text-shadow: 0 0 10px rgba(253, 230, 138, .9), 0 2px 0 #92400e; animation: mysteryGlow 2.2s ease-in-out infinite; }
@keyframes mysteryGlow { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .9; } 50% { transform: translate(-50%, -58%) scale(1.12); opacity: 1; } }
.world-island-status.status-soon { background: #e0e7ff; color: #4338ca; }
.world-island-item.coming-soon.wiggle { animation: soonWiggle .45s ease; }
@keyframes soonWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }
body.dark-mode .world-island-item.coming-soon { background: linear-gradient(135deg, #1e1b4b, #172554); border-color: #6366f1; }
body.dark-mode .world-island-item.coming-soon h4 { color: #c7d2fe; }
body.dark-mode .world-island-status.status-soon { background: #312e81; color: #e0e7ff; }
@media (prefers-reduced-motion: reduce) { .mystery-q, .world-island-item.coming-soon.wiggle { animation: none; } }
/* Resimli görseller emojiden daha detaylı: bulundukları yere göre daha büyük çizilsin */
#card-front-visual .vis-img { width: 1.6em; height: 1.6em; }
.visual-option-icon .vis-img { width: 1.55em; height: 1.55em; }
.mem-visual .vis-img { width: 3.6rem; height: 3.6rem; }
.bubble-icon .vis-img { width: 1.45em; height: 1.45em; }
#speech-target-visual .vis-img, #tile-target-visual .vis-img { width: 1.5em; height: 1.5em; }
.sticker-visual .vis-img { width: 1.45em; height: 1.45em; }
@media (max-width: 360px), (max-height: 680px) {
  .visual-option-icon .vis-img { width: 1.2em; height: 1.2em; }
  .mem-visual .vis-img { width: 3rem; height: 3rem; }
}
.quiz-options-visual-grid .visual-option-card { overflow: hidden; }

/* v1.7.4 — Flashcard: resim ön yüzün tamamını kaplar, düğme ve ipucu resmin üstünde */
.flip-card-front.photo { background-color: #ffffff; background-size: cover; background-position: center; background-repeat: no-repeat; justify-content: flex-end; padding: 16px; overflow: hidden; }
.flip-card-front.photo .card-visual { display: none; }
.flip-card-front.photo .listen-badge { background: rgba(255, 255, 255, .95); box-shadow: 0 4px 12px rgba(15, 23, 42, .25); }
.flip-card-front.photo .tap-to-flip-hint { margin-top: 10px; background: rgba(15, 23, 42, .62); color: #fff; padding: 5px 12px; border-radius: 999px; font-weight: 600; }
body.dark-mode .flip-card-front.photo { background-color: #ffffff; }

/* ==========================================================================
   v1.8 — Seri (streak) penceresi: yeni tasarım
   ========================================================================== */
.streak-hub-card.sk-card { padding: 0 !important; gap: 0 !important; width: min(400px, 92vw); max-height: 90vh; overflow-y: auto; border-radius: 28px; background: #ffffff; display: block; }
.sk-hero { position: relative; padding: 26px 20px 22px; text-align: center; color: #fff; border-radius: 28px 28px 0 0; overflow: hidden; }
.sk-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, var(--sk-glow, rgba(255,255,255,.55)) 0%, transparent 55%); opacity: .55; pointer-events: none; }
.sk-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,.25); color: #fff; font-size: 1rem; font-weight: 800; cursor: pointer; backdrop-filter: blur(4px); }
.sk-close:active { transform: scale(.92); }
.sk-sparkles i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .7; animation: skTwinkle 2.4s ease-in-out infinite; }
.sk-sparkles i:nth-child(1) { left: 14%; top: 22%; }
.sk-sparkles i:nth-child(2) { left: 82%; top: 30%; animation-delay: .6s; }
.sk-sparkles i:nth-child(3) { left: 24%; top: 64%; animation-delay: 1.2s; width: 4px; height: 4px; }
.sk-sparkles i:nth-child(4) { left: 74%; top: 70%; animation-delay: 1.8s; width: 4px; height: 4px; }
.sk-sparkles i:nth-child(5) { left: 50%; top: 12%; animation-delay: .9s; width: 3px; height: 3px; }
@keyframes skTwinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: .9; transform: scale(1.2); } }
.sk-flame { position: relative; font-size: 4.6rem; line-height: 1; transform: scale(var(--sk-scale, 1)); filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); animation: skFlame 1.8s ease-in-out infinite; }
@keyframes skFlame { 0%, 100% { transform: scale(var(--sk-scale, 1)) translateY(0) rotate(-2deg); } 50% { transform: scale(var(--sk-scale, 1)) translateY(-5px) rotate(2deg); } }
.sk-count { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 6px; }
.sk-count-num { font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.sk-count-label { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; text-align: left; line-height: 1.05; }
.sk-count-label small { display: block; font-size: .78rem; font-weight: 600; opacity: .85; }
.sk-tier { position: relative; display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.22); font-weight: 700; font-size: .95rem; backdrop-filter: blur(4px); }

.sk-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.sk-next-row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .9rem; color: #334155; margin-bottom: 6px; }
.sk-next-icon { font-size: 1.2rem; }
.sk-bar { height: 12px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.sk-bar-fill { height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.25, 1, .5, 1); }

.sk-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sk-section-head h4 { margin: 0; font-size: 1rem; font-weight: 800; color: #0f172a; }
.sk-section-head h4 small { font-size: .78rem; font-weight: 600; color: var(--text-muted); margin-left: 4px; }
.sk-chip { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; font-weight: 800; font-size: .8rem; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.sk-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sk-day { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.sk-day-dot { width: min(40px, 10.5vw); aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; background: #f1f5f9; border: 2px solid #e2e8f0; color: #94a3b8; font-weight: 800; }
.sk-day.done .sk-day-dot { background: #fff7ed; border-color: #fb923c; box-shadow: 0 3px 0 #fdba74; }
.sk-day.today .sk-day-dot { border-width: 3px; border-color: #2563eb; }
.sk-day.future .sk-day-dot { opacity: .5; }
.sk-day-label { font-size: .7rem; font-weight: 800; color: #64748b; }
.sk-day.today .sk-day-label { color: #2563eb; }

.sk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sk-stat { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 16px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.sk-stat span { font-size: 1.3rem; }
.sk-stat strong { font-family: var(--font-display); font-size: 1.25rem; color: #0f172a; }
.sk-stat small { font-size: .7rem; font-weight: 700; color: var(--text-muted); line-height: 1.15; }
.sk-stat-ice { background: #eff6ff; border-color: #bfdbfe; }
.sk-freeze-tip { margin: -4px 2px 0; font-size: .78rem; color: var(--text-muted); line-height: 1.35; }

.sk-month { border: 2px solid #e2e8f0; border-radius: 16px; padding: 10px 12px; background: #fff; }
.sk-month summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 800; color: #0f172a; }
.sk-month summary::-webkit-details-marker { display: none; }
.sk-month summary::after { content: "▾"; margin-left: 8px; color: #94a3b8; transition: transform .2s ease; }
.sk-month[open] summary::after { transform: rotate(180deg); }
.sk-month summary .sk-chip { margin-left: auto; }
.sk-month-head, .sk-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.sk-month-head { margin-top: 10px; font-size: .7rem; font-weight: 800; color: #94a3b8; }
.sk-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: .78rem; font-weight: 700; color: #475569; background: #f8fafc; }
.sk-cell.blank { background: transparent; }
.sk-cell.done { background: #fff7ed; box-shadow: inset 0 0 0 2px #fdba74; font-size: .95rem; }
.sk-cell.today { box-shadow: inset 0 0 0 2px #2563eb; }
.sk-cell.future { opacity: .45; }
.sk-desc { margin: 0; text-align: center; font-size: .85rem; color: var(--text-muted); line-height: 1.4; }

body.dark-mode .streak-hub-card.sk-card { background: #1e293b !important; }
body.dark-mode .sk-next-row, body.dark-mode .sk-section-head h4, body.dark-mode .sk-stat strong, body.dark-mode .sk-month summary { color: #f8fafc; }
body.dark-mode .sk-bar { background: #334155; }
body.dark-mode .sk-day-dot, body.dark-mode .sk-cell { background: #0f172a; border-color: #334155; color: #94a3b8; }
body.dark-mode .sk-day.done .sk-day-dot, body.dark-mode .sk-cell.done { background: #431407; border-color: #fb923c; }
body.dark-mode .sk-stat { background: #0f172a; border-color: #334155; }
body.dark-mode .sk-stat-ice { background: #172554; border-color: #1e40af; }
body.dark-mode .sk-month { background: #0f172a; border-color: #334155; }
body.dark-mode .sk-chip { background: #431407; color: #fed7aa; border-color: #9a3412; }
@media (prefers-reduced-motion: reduce) { .sk-flame, .sk-sparkles i { animation: none; } }

/* ==========================================================================
   v1.9.1 — Resimli kelimeler her soruda kutuyu tamamen kaplar
   ========================================================================== */
.vis-photo { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
/* Resimli şık */
.visual-option-card.photo { position: relative; padding: 0 !important; overflow: hidden; background: #ffffff; }
.visual-option-card.photo .visual-option-icon { position: absolute; inset: 0; margin: 0; font-size: inherit; filter: none; transform: none !important; }
.visual-option-card.photo .visual-option-label { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 4px 2px; background: rgba(255, 255, 255, .9); color: #1e293b; }
.visual-option-card.photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: background .15s ease; }
.visual-option-card.photo.correct::after { background: rgba(88, 204, 2, .28); }
.visual-option-card.photo.incorrect::after { background: rgba(255, 75, 75, .28); }
.visual-option-card.photo.disabled { opacity: .55; }
/* Hafıza kartı */
.mem-card-front.photo { padding: 0; overflow: hidden; }
.mem-card-front.photo .mem-visual { position: absolute; inset: 0; font-size: inherit; }
/* Söyle ve Harf Bul hedef resmi */
.speech-target-visual.photo, .tile-visual.photo { display: block; width: min(150px, 40vw); aspect-ratio: 1; border-radius: 22px; overflow: hidden; border: 3px solid #ffffff; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); filter: none; font-size: inherit; margin: 0 auto; }
/* Balon */
.bubble-item.photo { position: relative; overflow: hidden; background: #ffffff !important; }
.bubble-item.photo .bubble-icon { position: absolute; inset: 0; font-size: inherit; }
.bubble-item.photo .bubble-text { position: relative; z-index: 1; margin-top: auto; margin-bottom: 10px; text-shadow: 0 1px 4px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .9); }
.bubble-item.photo .bubble-text:empty { display: none; }
/* Kelime albümü */
.sticker-visual.photo { display: block; width: 2.3em; height: 2.3em; border-radius: 12px; overflow: hidden; margin: 0 auto; }
body.dark-mode .visual-option-card.photo .visual-option-label { background: rgba(15, 23, 42, .88); color: #f8fafc; }

/* ==========================================================================
   v1.9.3 — Seçilen şık koyu temada da belli olsun (koyu tema kuralları seçimi eziyordu)
   ========================================================================== */
body.dark-mode .roleplay-option-card.selected,
body.dark-mode .visual-option-card.selected { background: #0c4a6e !important; border-color: #38bdf8 !important; box-shadow: 0 4px 0 #0369a1, 0 0 0 3px rgba(56, 189, 248, .35) !important; }
body.dark-mode .roleplay-option-card.selected .roleplay-option-letter { background: #38bdf8 !important; border-color: #0284c7 !important; color: #0f172a !important; }
body.dark-mode .roleplay-option-card.correct,
body.dark-mode .visual-option-card.correct { background: #14532d !important; border-color: #4ade80 !important; box-shadow: 0 4px 0 #166534 !important; }
body.dark-mode .roleplay-option-card.correct .roleplay-option-letter { background: #4ade80 !important; border-color: #16a34a !important; color: #052e16 !important; }
body.dark-mode .roleplay-option-card.incorrect,
body.dark-mode .visual-option-card.incorrect { background: #7f1d1d !important; border-color: #f87171 !important; box-shadow: 0 4px 0 #991b1b !important; }
body.dark-mode .roleplay-option-card.incorrect .roleplay-option-letter { background: #f87171 !important; border-color: #dc2626 !important; color: #450a0a !important; }
/* Açık temada da seçim biraz daha belirgin */
.roleplay-option-card.selected { box-shadow: 0 4px 0 var(--secondary-dark), 0 0 0 3px rgba(28, 176, 246, .25) !important; }

/* v1.9.4 — İki emojili görseller (🦶⚽) alt satıra kaymasın */
.visual-option-icon, .mem-visual, .bubble-icon, #card-front-visual, .speech-target-visual, .tile-visual, .sticker-visual { white-space: nowrap; }
.vis-duo { display: inline-block; font-size: .6em; letter-spacing: -.12em; line-height: 1; }

/* v1.9.5 — Tekrar altını açıklaması (ödül kutularının altında) */
.reward-note { margin: 0 8px 10px; padding: 8px 12px; border-radius: 14px; background: #fffbeb; border: 2px solid #fde68a; color: #92400e; font-weight: 700; font-size: .86rem; line-height: 1.35; text-align: center; }
body.dark-mode .reward-note { background: #451a03; border-color: #92400e; color: #fde68a; }

/* v1.9.8 — Yazı görselleri (günler: Pzt, Cum…) kutuya sığsın */
.vis-text { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .55em; line-height: 1; letter-spacing: 0; color: #0369a1; background: #e0f2fe; border: 2px solid #7dd3fc; border-radius: .4em; padding: .2em .35em; max-width: 100%; }
body.dark-mode .vis-text { color: #bae6fd; background: #0c4a6e; border-color: #0369a1; }
