/* ==========================================
   Coğrafyanın Haritası KPSS-YKS - Fully Responsive
   Mobile Landscape-First App
   ========================================== */

:root {
  --bg-primary: #060918;
  --bg-secondary: #0d1228;
  --bg-card: rgba(12, 16, 36, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --text-primary: #f0f2f8;
  --text-secondary: #b8c0d4;
  --text-muted: #5a6580;
  --accent-blue: #4a8ef7;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-yellow: #f5a623;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --accent-gold: #d4a843;
  --accent-amber: #c8923a;
  --gradient-main: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f43f5e 100%);
  --gradient-gold: linear-gradient(135deg, #d4a843 0%, #f5c85c 50%, #c8923a 100%);
  --gradient-premium-bg: linear-gradient(160deg, #060918 0%, #0c1130 40%, #15103a 70%, #0d0f2a 100%);
  --glow-gold: rgba(212, 168, 67, 0.25);
  --glow-blue: rgba(74, 142, 247, 0.15);
  --glow-purple: rgba(139, 92, 246, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 168, 67, 0.25);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* ---- THEMES ---- */
body.theme-ocean {
  --bg-primary: #0a192f; --bg-secondary: #112240; --gradient-main: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
}
body.theme-forest {
  --bg-primary: #071a0e; --bg-secondary: #0d2818; --gradient-main: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
body.theme-sunset {
  --bg-primary: #1a0a0a; --bg-secondary: #2d1515; --gradient-main: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #ec4899 100%);
}
body.theme-midnight {
  --bg-primary: #0c0a1d; --bg-secondary: #1a1640; --gradient-main: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
}

/* ---- LIGHT MODE ---- */
body.display-light {
  --bg-primary: #f0f4f8; --bg-secondary: #e2e8f0; --bg-card: rgba(255,255,255,0.9);
  --bg-glass: rgba(0,0,0,0.04); --text-primary: #1e293b; --text-secondary: #475569;
  --text-muted: #94a3b8; --border-subtle: rgba(0,0,0,0.1);
}
body.display-light .splash-col-left { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.12); }
body.display-light .splash-col-right { background: rgba(255,255,255,0.5); border-color: rgba(0,0,0,0.1); }
body.display-light .splash-screen::before { opacity: 0.3; }
body.display-light .splash-title { -webkit-text-fill-color: #1e293b; background: none; }
body.display-light .splash-subtitle { color: #3b82f6; }
body.display-light .mode-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); color: #334155; }
body.display-light .mode-btn.active { background: rgba(99,102,241,0.1); border-color: #6366f1; color: #312e81; }
body.display-light .cat-btn { background: rgba(0,0,0,0.04); color: #475569; }
body.display-light .cat-btn.active { background: rgba(59,130,246,0.1); color: #1d4ed8; }
body.display-light .cat-group-header { color: #2563eb; }
body.display-light .quiz-top-bar { background: rgba(240,244,248,0.92); }
body.display-light .quiz-bottom-panel { background: rgba(255,255,255,0.92); border-color: rgba(0,0,0,0.12); }
body.display-light .q-text { color: #1e293b; text-shadow: none; }
body.display-light .q-inst { color: #64748b; }
body.display-light .back-btn { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); color: #334155; }
body.display-light .progress-col { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
body.display-light .score-badge { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: #059669; }
body.display-light .choice-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #1e293b; }
body.display-light .feedback-card { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.1); }
body.display-light .feedback-card h3 { color: #1e293b; }
body.display-light .feedback-desc { color: #475569; background: rgba(0,0,0,0.04); }
body.display-light .result-content { background: rgba(255,255,255,0.85); }
body.display-light .result-title { color: #1e293b; text-shadow: none; }
body.display-light .result-subtitle { color: #475569; }
body.display-light .result-stat { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
body.display-light .result-stat-value { color: #1e293b; }
body.display-light .settings-card { background: rgba(255,255,255,0.95); }
body.display-light .settings-title { color: #1e293b; }
body.display-light .setting-label { color: #475569; }
body.display-light .setting-opt { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #475569; }
body.display-light .setting-opt.active { background: rgba(99,102,241,0.1); border-color: #6366f1; color: #312e81; }
body.display-light .category-header { background: rgba(0,0,0,0.04); color: #1e293b; }
body.display-light #map { background: #dce4ec !important; }
body.display-light .hint-box { background: rgba(245,158,11,0.1); color: #92400e; }
body.display-light .cat-badge { background: rgba(59,130,246,0.1); color: #2563eb; border-color: rgba(59,130,246,0.2); }

/* ---- RESETS ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  height: 100%; height: 100dvh;
  overscroll-behavior: none;
}
body {
  height: 100%; height: 100dvh;
  width: 100%; overflow: hidden;
  font-family: var(--font); background: var(--gradient-premium-bg); color: var(--text-primary);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
  font-size: 14px;
}
.hidden { display: none !important; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: rgba(6,9,24,0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(212,168,67,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,168,67,0.35); }

/* ==========================================
   SPLASH SCREEN
   ========================================== */

/* --- Native Splash Overlay --- */
.native-splash {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, #050814 0%, #0a1128 30%, #0f0e2a 60%, #0b0920 100%);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.native-splash.ns-fade-out {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}
.native-splash.ns-hidden { display: none; }

/* Ambient glow spots on splash */
.native-splash::before {
  content: ''; position: absolute; inset: -40%;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(212, 168, 67, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(99, 102, 241, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(74, 142, 247, 0.06) 0%, transparent 60%);
  pointer-events: none;
  animation: ns-ambient-pulse 4s ease-in-out infinite alternate;
}
@keyframes ns-ambient-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.ns-content {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}

/* --- Rotating Compass Ring --- */
.ns-compass-ring {
  position: absolute;
  width: 180px; height: 180px;
  animation: ns-compass-spin 8s linear infinite, ns-compass-appear 1s ease-out forwards;
  opacity: 0;
}
.ns-compass-ring svg { width: 100%; height: 100%; }
@keyframes ns-compass-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes ns-compass-appear {
  0% { opacity: 0; transform: rotate(-30deg) scale(0.6); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}

/* --- App Icon --- */
.ns-icon-wrap {
  width: 100px; height: 100px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(212, 168, 67, 0.3),
    0 0 80px rgba(212, 168, 67, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5);
  animation: ns-icon-zoom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  position: relative; z-index: 3;
  border: 2px solid rgba(212, 168, 67, 0.25);
}
.ns-icon {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes ns-icon-zoom {
  0% { opacity: 0; transform: scale(0.3) rotate(-10deg); }
  60% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* --- Typewriter Title --- */
.ns-title {
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem; font-weight: 900;
  background: linear-gradient(135deg, #e8d5a3, #f5c85c, #d4a843);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: 0.5px;
  min-height: 1.6em;
  position: relative;
  animation: ns-title-appear 0.5s ease-out 0.6s forwards;
  opacity: 0;
}
.ns-title::after {
  content: '|';
  -webkit-text-fill-color: #d4a843;
  animation: ns-cursor-blink 0.6s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
}
.ns-title.ns-typed::after {
  animation: ns-cursor-blink 0.6s step-end 3;
  /* cursor disappears after a few blinks */
}
@keyframes ns-title-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ns-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Subtitle Badge --- */
.ns-subtitle {
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  color: rgba(74, 142, 247, 0.8);
  letter-spacing: 4px; text-transform: uppercase;
  text-shadow: 0 0 20px rgba(74, 142, 247, 0.3);
  animation: ns-subtitle-fade 0.5s ease-out 1.8s forwards;
  opacity: 0;
}
@keyframes ns-subtitle-fade {
  from { opacity: 0; transform: translateY(6px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Loading Shimmer Bar --- */
.ns-loader {
  margin-top: 32px;
  width: 140px; height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  animation: ns-loader-appear 0.4s ease-out 2s forwards;
  opacity: 0;
}
.ns-loader-bar {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #d4a843, #f5c85c, #d4a843, transparent);
  border-radius: 4px;
  animation: ns-loader-move 1.2s ease-in-out infinite;
}
@keyframes ns-loader-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ns-loader-move {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* --- Ambient Particles --- */
.ns-particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1;
}
.ns-particle {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(212, 168, 67, 0.4);
  border-radius: 50%;
  animation: ns-float 6s ease-in-out infinite;
}
.ns-particle.p1 { left: 15%; top: 20%; animation-delay: 0s; animation-duration: 5s; }
.ns-particle.p2 { left: 75%; top: 30%; animation-delay: 1s; animation-duration: 7s; width: 2px; height: 2px; background: rgba(99, 102, 241, 0.3); }
.ns-particle.p3 { left: 40%; top: 70%; animation-delay: 2s; animation-duration: 6s; }
.ns-particle.p4 { left: 85%; top: 65%; animation-delay: 0.5s; animation-duration: 8s; width: 2px; height: 2px; background: rgba(74, 142, 247, 0.3); }
.ns-particle.p5 { left: 25%; top: 80%; animation-delay: 1.5s; animation-duration: 5.5s; width: 4px; height: 4px; background: rgba(212, 168, 67, 0.2); }
@keyframes ns-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(-40px) translateX(15px); opacity: 0.8; }
  90% { opacity: 0.3; }
}

/* Light mode splash */
body.display-light .native-splash {
  background: linear-gradient(155deg, #f5f0e3 0%, #efe8d5 30%, #f0ece4 60%, #f4f1ea 100%);
}
body.display-light .native-splash::before {
  background:
    radial-gradient(ellipse at 30% 25%, rgba(180, 140, 50, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
}
body.display-light .ns-title {
  background: linear-gradient(135deg, #8b6914, #a67c1a, #c49b2e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.display-light .ns-title::after { -webkit-text-fill-color: #8b6914; }
body.display-light .ns-subtitle { color: #4a7dd6; text-shadow: none; }
body.display-light .ns-icon-wrap {
  box-shadow: 0 0 30px rgba(180, 140, 50, 0.15), 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(180, 140, 50, 0.2);
}
body.display-light .ns-particle { background: rgba(180, 140, 50, 0.2); }
body.display-light .ns-particle.p2, body.display-light .ns-particle.p4 { background: rgba(99, 102, 241, 0.15); }
body.display-light .ns-loader { background: rgba(0, 0, 0, 0.05); }
body.display-light .ns-loader-bar { background: linear-gradient(90deg, transparent, #b8860b, #d4a843, #b8860b, transparent); }

/* ==========================================
   MOBILE FIRST HOME SCREEN 
   ========================================== */

/* === Shimmer light sweep — reused on all premium components === */
@keyframes shimmer-sweep {
  0% { transform: translateX(-120%) translateZ(0); }
  35% { transform: translateX(280%) translateZ(0); }
  100% { transform: translateX(280%) translateZ(0); }
}
@keyframes pulse-glow { 0% { opacity: 0.7; } 100% { opacity: 1; } }
@keyframes float-slow { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes float-slower { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(-1.5deg); } }

.home-screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: linear-gradient(155deg, #070b1e 0%, #0e1538 30%, #161240 55%, #1a0f3a 75%, #0f0d2c 100%);
  z-index: 1000;
  padding: env(safe-area-inset-top, 12px) env(safe-area-inset-right, 24px) env(safe-area-inset-bottom, 12px) env(safe-area-inset-left, 24px);
  overflow-y: auto; overflow-x: hidden;
}
/* Ambient color glow spots */
.home-screen::before {
  content: ''; position: fixed; inset: -30%;
  background: radial-gradient(ellipse at 15% 20%, rgba(212, 168, 67, 0.08) 0%, transparent 40%),
              radial-gradient(ellipse at 85% 75%, rgba(99, 102, 241, 0.10) 0%, transparent 45%),
              radial-gradient(ellipse at 50% 50%, rgba(74, 142, 247, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 30% 80%, rgba(236, 72, 153, 0.04) 0%, transparent 35%);
  z-index: 0; pointer-events: none;
  animation: pulse-glow 10s ease-in-out infinite alternate;
}

/* Geographic decoration SVGs */
.geo-decorations {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.geo-deco {
  position: absolute; color: rgba(212, 168, 67, 0.07);
}
.geo-compass {
  width: 180px; height: 180px; top: 5%; right: 8%;
  animation: float-slow 20s ease-in-out infinite;
}
.geo-globe {
  width: 150px; height: 150px; bottom: 10%; left: 5%;
  animation: float-slower 25s ease-in-out infinite;
  color: rgba(99, 102, 241, 0.06);
}
.geo-pin {
  width: 50px; height: 66px; top: 40%; right: 3%;
  animation: float-slow 18s ease-in-out infinite;
  animation-delay: -5s;
  color: rgba(236, 72, 153, 0.06);
}
.geo-pencil {
  width: 70px; height: 70px; bottom: 8%; right: 15%;
  animation: float-slower 22s ease-in-out infinite;
  animation-delay: -3s;
  transform: rotate(-15deg);
}
.geo-ruler {
  width: 130px; height: 33px; top: 65%; left: 10%;
  animation: float-slow 24s ease-in-out infinite;
  animation-delay: -8s;
  transform: rotate(-10deg);
  color: rgba(74, 142, 247, 0.05);
}
body.display-light .geo-deco { color: rgba(120, 90, 20, 0.06); }
body.display-light .geo-globe { color: rgba(99, 102, 241, 0.05); }
body.display-light .geo-pin { color: rgba(200, 60, 120, 0.05); }
body.display-light .geo-ruler { color: rgba(50, 100, 200, 0.04); }

.home-top-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  position: relative; z-index: 1;
  margin-top: 10px; margin-bottom: 20px;
}

/* Auth / Profile */
.home-profile-card {
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(145deg, rgba(20, 25, 55, 0.75), rgba(12, 16, 40, 0.85));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 168, 67, 0.2); border-radius: var(--radius-xl);
  padding: 10px 14px; min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06), 0 0 25px rgba(212, 168, 67, 0.06);
  position: relative; overflow: hidden;
}
/* Shimmer on profile card */
.home-profile-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent 20%, rgba(212,168,67,0.08) 45%, rgba(255,255,255,0.05) 50%, rgba(212,168,67,0.08) 55%, transparent 80%);
  animation: shimmer-sweep 5s ease-in-out infinite; z-index: 0; pointer-events: none;
  will-change: transform;
}
.google-login-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px;
  background: white; border: none; border-radius: var(--radius-full);
  color: #374151; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: transform 0.2s;
}
.google-login-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.google-login-btn:active:not(:disabled) { transform: scale(0.96); }
.user-profile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.user-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7); object-fit: cover; }
.user-info { display: flex; flex-direction: column; justify-content: center; flex: 1; overflow: hidden; }
.user-name { font-size: 0.9rem; font-weight: 800; color: white; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.user-badges-row { display: flex; align-items: center; gap: 6px; }
.user-premium-badge { font-size: 0.65rem; color: #fde68a; background: linear-gradient(135deg, rgba(212,168,67,0.25), rgba(200,146,58,0.2)); border: 1px solid rgba(212,168,67,0.5); padding: 2px 6px; border-radius: 4px; font-weight: 800; text-shadow: 0 0 8px rgba(212,168,67,0.4); }
.user-streak-badge { font-size: 0.65rem; color: #f97316; font-weight: 700; text-shadow: 0 0 6px rgba(249,115,22,0.3); }

/* Branding */
.home-brand-col {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; text-align: center; margin-top: -5px; pointer-events: none;
}
.splash-icon { font-size: 2.2rem; filter: drop-shadow(0 4px 12px rgba(212,168,67,0.3)) drop-shadow(0 0 20px rgba(212,168,67,0.15)); margin-bottom: 2px; }
.splash-title { font-size: 1.3rem; font-weight: 900; background: linear-gradient(135deg, #e8d5a3, #f5c85c, #d4a843, #c8923a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; filter: drop-shadow(0 2px 4px rgba(212,168,67,0.2)); }
.splash-subtitle { font-size: 0.65rem; font-weight: 700; color: rgba(74, 142, 247, 0.8); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; text-shadow: 0 0 12px rgba(74,142,247,0.25); }

/* Action Buttons (Right) */
.home-actions-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.home-action-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(145deg, rgba(25,32,70,0.8), rgba(16,20,50,0.85));
  border: 1px solid rgba(212,168,67,0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 8px 12px; border-radius: var(--radius-full);
  color: #e8dcc8; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
/* Shimmer on action buttons */
.home-action-btn::after {
  content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent 20%, rgba(212,168,67,0.1) 45%, rgba(255,255,255,0.06) 50%, rgba(212,168,67,0.1) 55%, transparent 80%);
  animation: shimmer-sweep 6s ease-in-out infinite; z-index: 0; pointer-events: none;
  will-change: transform;
}
.home-action-btn:active { transform: scale(0.95); border-color: rgba(212,168,67,0.35); box-shadow: 0 2px 15px rgba(212,168,67,0.15); }
.ha-icon { font-size: 1rem; filter: drop-shadow(0 0 4px rgba(212,168,67,0.25)); position: relative; z-index: 1; }
.ha-text { position: relative; z-index: 1; }
.logout-btn-home { padding: 8px; background: linear-gradient(145deg, rgba(60,20,25,0.6), rgba(40,12,18,0.7)); border-color: rgba(239,68,68,0.3); }
.logout-btn-home .ha-icon { filter: drop-shadow(0 0 4px rgba(239,68,68,0.3)); }
.logout-btn-home:active { background: linear-gradient(145deg, rgba(80,25,30,0.7), rgba(50,15,20,0.8)); }

/* Main Content */
.home-main-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; flex: 1; justify-content: flex-start;
  max-width: 1000px; margin: 0 auto; width: 100%; padding-bottom: 20px;
}
.home-section-title {
  font-size: 1.05rem; font-weight: 800;
  background: linear-gradient(135deg, #c8a24e, #e8c574, #d4a843);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 14px; margin-left: 10px; text-transform: uppercase; letter-spacing: 1.5px;
  filter: drop-shadow(0 0 10px rgba(212,168,67,0.15));
}

/* Modes Grid */
.home-modes-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  margin-bottom: 24px;
}
.mode-card {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  background: linear-gradient(150deg, rgba(22, 28, 62, 0.9), rgba(14, 18, 45, 0.95));
  border: 1px solid rgba(212, 168, 67, 0.15); border-radius: var(--radius-xl);
  padding: 16px; min-height: 120px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 0 rgba(212,168,67,0);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
/* Top ambient glow */
.mode-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(212,168,67,0.06) 0%, transparent 100%);
  pointer-events: none; transition: opacity 0.3s; z-index: 0;
}
/* Shimmer light sweep on every card */
.mode-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent 20%, rgba(245,200,92,0.12) 45%, rgba(255,255,255,0.08) 50%, rgba(245,200,92,0.12) 55%, transparent 80%);
  animation: shimmer-sweep 4.5s ease-in-out infinite;
  z-index: 0; pointer-events: none;
  will-change: transform;
}
.mode-card:nth-child(2)::after { animation-delay: 0.5s; }
.mode-card:nth-child(3)::after { animation-delay: 1s; }
.mode-card:nth-child(4)::after { animation-delay: 1.5s; }
.mode-card:hover {
  border-color: rgba(212,168,67,0.35);
  box-shadow: 0 10px 35px rgba(0,0,0,0.5), 0 0 30px rgba(212,168,67,0.1);
}
.mode-card:active { transform: scale(0.96); }
.mode-icon-bg {
  font-size: 1.8rem;
  background: linear-gradient(145deg, rgba(212,168,67,0.12), rgba(99,102,241,0.06));
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; margin-bottom: 12px;
  box-shadow: inset 0 1px 3px rgba(212,168,67,0.15), 0 0 10px rgba(212,168,67,0.06);
  border: 1px solid rgba(212,168,67,0.12);
  position: relative; z-index: 1;
}
.mode-card-title { font-size: 0.95rem; font-weight: 800; color: #f0e6d0; display: flex; align-items: center; margin-bottom: 4px; position: relative; z-index: 1; }
.mode-card-desc { font-size: 0.7rem; font-weight: 500; color: rgba(184,192,212,0.75); line-height: 1.3; position: relative; z-index: 1; }
.lock-icon { font-size: 0.8rem; color: #e8b84a; margin-left: 4px; opacity: 0.9; filter: drop-shadow(0 0 6px rgba(212,168,67,0.4)); }
.text-lock { margin-left: 4px; }

/* ===== PER-CARD COLOR THEMES ===== */
/* Haritada Bul - Teal */
.mode-card[data-mode="find_on_map"] {
  background: linear-gradient(150deg, rgba(10,45,40,0.85), rgba(8,28,35,0.92));
  border-color: rgba(20,184,166,0.22);
}
.mode-card[data-mode="find_on_map"]::before { background: linear-gradient(180deg, rgba(20,184,166,0.08) 0%, transparent 100%); }
.mode-card[data-mode="find_on_map"]::after { background: linear-gradient(100deg, transparent 20%, rgba(20,184,166,0.14) 45%, rgba(255,255,255,0.08) 50%, rgba(20,184,166,0.14) 55%, transparent 80%); }
.mode-card[data-mode="find_on_map"] .mode-icon-bg { background: linear-gradient(145deg, rgba(20,184,166,0.15), rgba(6,182,212,0.08)); border-color: rgba(20,184,166,0.18); box-shadow: inset 0 1px 3px rgba(20,184,166,0.15), 0 0 10px rgba(20,184,166,0.08); }
.mode-card[data-mode="find_on_map"]:hover { border-color: rgba(20,184,166,0.4); box-shadow: 0 10px 35px rgba(0,0,0,0.5), 0 0 25px rgba(20,184,166,0.12); }
.mode-card[data-mode="find_on_map"] .mode-card-title { color: #b2f0e6; }

/* Isim Tahmin Et - Purple */
.mode-card[data-mode="guess_name"] {
  background: linear-gradient(150deg, rgba(35,18,60,0.88), rgba(22,12,45,0.93));
  border-color: rgba(167,139,250,0.22);
}
.mode-card[data-mode="guess_name"]::before { background: linear-gradient(180deg, rgba(139,92,246,0.08) 0%, transparent 100%); }
.mode-card[data-mode="guess_name"]::after { background: linear-gradient(100deg, transparent 20%, rgba(167,139,250,0.14) 45%, rgba(255,255,255,0.08) 50%, rgba(167,139,250,0.14) 55%, transparent 80%); }
.mode-card[data-mode="guess_name"] .mode-icon-bg { background: linear-gradient(145deg, rgba(139,92,246,0.15), rgba(167,139,250,0.08)); border-color: rgba(139,92,246,0.18); box-shadow: inset 0 1px 3px rgba(139,92,246,0.15), 0 0 10px rgba(139,92,246,0.08); }
.mode-card[data-mode="guess_name"]:hover { border-color: rgba(167,139,250,0.4); box-shadow: 0 10px 35px rgba(0,0,0,0.5), 0 0 25px rgba(139,92,246,0.12); }
.mode-card[data-mode="guess_name"] .mode-card-title { color: #ddd6fe; }
.mode-card[data-mode="guess_name"] .lock-icon { color: #c4b5fd; filter: drop-shadow(0 0 6px rgba(139,92,246,0.4)); }

/* Hizli Tur - Orange */
.mode-card[data-mode="speed_round"] {
  background: linear-gradient(150deg, rgba(50,28,10,0.88), rgba(35,18,8,0.93));
  border-color: rgba(251,146,60,0.22);
}
.mode-card[data-mode="speed_round"]::before { background: linear-gradient(180deg, rgba(249,115,22,0.08) 0%, transparent 100%); }
.mode-card[data-mode="speed_round"]::after { background: linear-gradient(100deg, transparent 20%, rgba(251,146,60,0.14) 45%, rgba(255,255,255,0.08) 50%, rgba(251,146,60,0.14) 55%, transparent 80%); }
.mode-card[data-mode="speed_round"] .mode-icon-bg { background: linear-gradient(145deg, rgba(249,115,22,0.15), rgba(245,158,11,0.08)); border-color: rgba(249,115,22,0.18); box-shadow: inset 0 1px 3px rgba(249,115,22,0.15), 0 0 10px rgba(249,115,22,0.08); }
.mode-card[data-mode="speed_round"]:hover { border-color: rgba(251,146,60,0.4); box-shadow: 0 10px 35px rgba(0,0,0,0.5), 0 0 25px rgba(249,115,22,0.12); }
.mode-card[data-mode="speed_round"] .mode-card-title { color: #fed7aa; }
.mode-card[data-mode="speed_round"] .lock-icon { color: #fb923c; filter: drop-shadow(0 0 6px rgba(249,115,22,0.4)); }

/* Gunun Sinavi - Blue/Indigo */
.mode-card[data-mode="daily_quiz"] {
  background: linear-gradient(150deg, rgba(15,22,55,0.88), rgba(10,15,48,0.93));
  border-color: rgba(99,102,241,0.22);
}
.mode-card[data-mode="daily_quiz"]::before { background: linear-gradient(180deg, rgba(99,102,241,0.08) 0%, transparent 100%); }
.mode-card[data-mode="daily_quiz"]::after { background: linear-gradient(100deg, transparent 20%, rgba(129,140,248,0.14) 45%, rgba(255,255,255,0.08) 50%, rgba(129,140,248,0.14) 55%, transparent 80%); }
.mode-card[data-mode="daily_quiz"] .mode-icon-bg { background: linear-gradient(145deg, rgba(99,102,241,0.15), rgba(129,140,248,0.08)); border-color: rgba(99,102,241,0.18); box-shadow: inset 0 1px 3px rgba(99,102,241,0.15), 0 0 10px rgba(99,102,241,0.08); }
.mode-card[data-mode="daily_quiz"]:hover { border-color: rgba(129,140,248,0.4); box-shadow: 0 10px 35px rgba(0,0,0,0.5), 0 0 25px rgba(99,102,241,0.12); }
.mode-card[data-mode="daily_quiz"] .mode-card-title { color: #c7d2fe; }
.mode-card[data-mode="daily_quiz"] .lock-icon { color: #818cf8; filter: drop-shadow(0 0 6px rgba(99,102,241,0.4)); }

/* Light mode per-card */
body.display-light .mode-card[data-mode="find_on_map"] { background: linear-gradient(150deg, rgba(240,253,250,0.92), rgba(204,251,241,0.85)); border-color: rgba(20,184,166,0.2); }
body.display-light .mode-card[data-mode="find_on_map"] .mode-icon-bg { background: linear-gradient(145deg, rgba(20,184,166,0.1), rgba(6,182,212,0.05)); border-color: rgba(20,184,166,0.15); }
body.display-light .mode-card[data-mode="find_on_map"] .mode-card-title { color: #134e4a; }

body.display-light .mode-card[data-mode="guess_name"] { background: linear-gradient(150deg, rgba(245,243,255,0.92), rgba(237,233,254,0.85)); border-color: rgba(139,92,246,0.2); }
body.display-light .mode-card[data-mode="guess_name"] .mode-icon-bg { background: linear-gradient(145deg, rgba(139,92,246,0.1), rgba(167,139,250,0.05)); border-color: rgba(139,92,246,0.15); }
body.display-light .mode-card[data-mode="guess_name"] .mode-card-title { color: #3b0764; }
body.display-light .mode-card[data-mode="guess_name"] .lock-icon { color: #7c3aed; }

body.display-light .mode-card[data-mode="speed_round"] { background: linear-gradient(150deg, rgba(255,247,237,0.92), rgba(254,235,210,0.85)); border-color: rgba(249,115,22,0.2); }
body.display-light .mode-card[data-mode="speed_round"] .mode-icon-bg { background: linear-gradient(145deg, rgba(249,115,22,0.1), rgba(245,158,11,0.05)); border-color: rgba(249,115,22,0.15); }
body.display-light .mode-card[data-mode="speed_round"] .mode-card-title { color: #7c2d12; }
body.display-light .mode-card[data-mode="speed_round"] .lock-icon { color: #ea580c; }

body.display-light .mode-card[data-mode="daily_quiz"] { background: linear-gradient(150deg, rgba(238,242,255,0.92), rgba(224,231,255,0.85)); border-color: rgba(99,102,241,0.2); }
body.display-light .mode-card[data-mode="daily_quiz"] .mode-icon-bg { background: linear-gradient(145deg, rgba(99,102,241,0.1), rgba(129,140,248,0.05)); border-color: rgba(99,102,241,0.15); }
body.display-light .mode-card[data-mode="daily_quiz"] .mode-card-title { color: #312e81; }
body.display-light .mode-card[data-mode="daily_quiz"] .lock-icon { color: #6366f1; }

/* Daily quiz taken state */
.mode-card.daily-taken {
  opacity: 0.6; pointer-events: auto; cursor: pointer;
  position: relative; overflow: hidden;
  border-color: rgba(16,185,129,0.3);
  background: linear-gradient(145deg, rgba(16,185,129,0.08), rgba(15,23,42,0.95));
}
.mode-card.daily-taken .mode-card-desc { color: #10b981; font-weight: 700; }
.mode-card.daily-taken .mode-icon-bg { opacity: 0.5; }
.mode-card.daily-taken::after {
  content: '✅'; position: absolute; top: 8px; right: 8px;
  font-size: 0.85rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); animation: none;
}
body.display-light .mode-card.daily-taken {
  background: linear-gradient(145deg, rgba(16,185,129,0.08), rgba(255,255,255,0.95));
  border-color: rgba(16,185,129,0.3);
}

/* Dilsiz Harita - Cyan/Teal gradient */
.mode-card[data-mode="geo_shape"] {
  background: linear-gradient(150deg, rgba(8,40,50,0.88), rgba(5,28,40,0.93));
  border-color: rgba(6,182,212,0.22);
}
.mode-card[data-mode="geo_shape"]::before { background: linear-gradient(180deg, rgba(6,182,212,0.08) 0%, transparent 100%); }
.mode-card[data-mode="geo_shape"]::after { background: linear-gradient(100deg, transparent 20%, rgba(34,211,238,0.14) 45%, rgba(255,255,255,0.08) 50%, rgba(34,211,238,0.14) 55%, transparent 80%); animation-delay: 2s; }
.mode-card[data-mode="geo_shape"] .mode-icon-bg { background: linear-gradient(145deg, rgba(6,182,212,0.15), rgba(34,211,238,0.08)); border-color: rgba(6,182,212,0.18); box-shadow: inset 0 1px 3px rgba(6,182,212,0.15), 0 0 10px rgba(6,182,212,0.08); }
.mode-card[data-mode="geo_shape"]:hover { border-color: rgba(34,211,238,0.4); box-shadow: 0 10px 35px rgba(0,0,0,0.5), 0 0 25px rgba(6,182,212,0.12); }
.mode-card[data-mode="geo_shape"] .mode-card-title { color: #a5f3fc; }
.mode-card[data-mode="geo_shape"] .lock-icon { color: #22d3ee; filter: drop-shadow(0 0 6px rgba(6,182,212,0.4)); }
body.display-light .mode-card[data-mode="geo_shape"] { background: linear-gradient(150deg, rgba(236,254,255,0.92), rgba(207,250,254,0.85)); border-color: rgba(6,182,212,0.2); }
body.display-light .mode-card[data-mode="geo_shape"] .mode-icon-bg { background: linear-gradient(145deg, rgba(6,182,212,0.1), rgba(34,211,238,0.05)); border-color: rgba(6,182,212,0.15); }
body.display-light .mode-card[data-mode="geo_shape"] .mode-card-title { color: #164e63; }
body.display-light .mode-card[data-mode="geo_shape"] .lock-icon { color: #0891b2; }

/* ===== GEO SHAPE MODE - Volcano Markers ===== */
.geo-volcano-marker {
  background: transparent !important;
  border: none !important;
}
.volcano-triangle {
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 28px solid #FFA726;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: all 0.2s;
  cursor: pointer;
}
.volcano-triangle:hover {
  border-bottom-color: #FFB74D;
  filter: drop-shadow(0 2px 8px rgba(255,167,38,0.5));
  transform: scale(1.2);
}
.geo-volcano-marker.geo-correct .volcano-triangle { border-bottom-color: #10b981 !important; }
.geo-volcano-marker.geo-wrong .volcano-triangle { border-bottom-color: #ef4444 !important; }

/* ===== GEO SHAPE MODE - Lake Circle Markers ===== */
.geo-lake-marker {
  background: transparent !important;
  border: none !important;
}
.lake-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid #29B6F6;
  opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: all 0.2s;
  cursor: pointer;
}
.lake-circle:hover {
  opacity: 1;
  transform: scale(1.3);
  filter: drop-shadow(0 2px 8px rgba(41,182,246,0.6));
}
.geo-lake-marker.geo-correct .lake-circle { background: #10b981 !important; border-color: #10b981 !important; }
.geo-lake-marker.geo-wrong .lake-circle { background: #ef4444 !important; border-color: #ef4444 !important; }

/* Extras Grid */
.home-extra-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.extra-card {
  display: flex; align-items: center; gap: 14px; position: relative;
  background: linear-gradient(150deg, rgba(22,28,62,0.85), rgba(14,18,45,0.92));
  border: 1px solid rgba(212,168,67,0.15);
  border-radius: var(--radius-lg); padding: 12px 18px; cursor: pointer; transition: all 0.3s ease;
  text-align: left; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}
/* Shimmer on extra cards */
.extra-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent 20%, rgba(245,200,92,0.1) 45%, rgba(255,255,255,0.06) 50%, rgba(245,200,92,0.1) 55%, transparent 80%);
  animation: shimmer-sweep 5.5s ease-in-out infinite; z-index: 0; pointer-events: none;
  will-change: transform; border-radius: inherit;
}
.extra-card:nth-child(2)::after { animation-delay: 0.8s; }
.extra-card:nth-child(3)::after { animation-delay: 1.6s; }
.extra-card:active { transform: scale(0.97); }
.extra-icon {
  font-size: 1.4rem; position: relative; z-index: 1;
  background: linear-gradient(145deg, rgba(212,168,67,0.12), rgba(99,102,241,0.08));
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1px solid rgba(212,168,67,0.12); box-shadow: 0 0 8px rgba(212,168,67,0.08);
}
.extra-texts { display: flex; flex-direction: column; position: relative; z-index: 1; }
.extra-title { font-size: 0.85rem; font-weight: 700; color: #f0e6d0; }
.extra-desc { font-size: 0.65rem; color: rgba(140,150,178,0.85); margin-top: 2px; }
.extra-badge { position: absolute; top: -6px; right: -6px; z-index: 2; background: linear-gradient(135deg, #ef4444, #f97316); color: white; font-size: 0.65rem; font-weight: 900; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(239,68,68,0.4), 0 0 10px rgba(239,68,68,0.2); border: 1px solid rgba(255,255,255,0.2); }

/* ===== EXTRA CARD COLOR THEMES ===== */
/* Yanlislarim - Rose/Pink */
.extra-card:nth-child(1) {
  background: linear-gradient(150deg, rgba(50,15,30,0.82), rgba(30,10,22,0.9));
  border-color: rgba(244,114,182,0.2);
}
.extra-card:nth-child(1)::after { background: linear-gradient(100deg, transparent 20%, rgba(244,114,182,0.12) 45%, rgba(255,255,255,0.06) 50%, rgba(244,114,182,0.12) 55%, transparent 80%); }
.extra-card:nth-child(1) .extra-icon { background: linear-gradient(145deg, rgba(244,114,182,0.14), rgba(236,72,153,0.06)); border-color: rgba(244,114,182,0.18); box-shadow: 0 0 8px rgba(244,114,182,0.08); }
.extra-card:nth-child(1) .extra-title { color: #fce7f3; }
.extra-card:nth-child(1):active { border-color: rgba(244,114,182,0.35); box-shadow: 0 4px 25px rgba(0,0,0,0.4), 0 0 20px rgba(244,114,182,0.1); }

/* Zayif Noktalar - Emerald */
.extra-card:nth-child(2) {
  background: linear-gradient(150deg, rgba(10,42,30,0.82), rgba(8,28,20,0.9));
  border-color: rgba(52,211,153,0.2);
}
.extra-card:nth-child(2)::after { background: linear-gradient(100deg, transparent 20%, rgba(52,211,153,0.12) 45%, rgba(255,255,255,0.06) 50%, rgba(52,211,153,0.12) 55%, transparent 80%); }
.extra-card:nth-child(2) .extra-icon { background: linear-gradient(145deg, rgba(16,185,129,0.14), rgba(52,211,153,0.06)); border-color: rgba(52,211,153,0.18); box-shadow: 0 0 8px rgba(52,211,153,0.08); }
.extra-card:nth-child(2) .extra-title { color: #d1fae5; }
.extra-card:nth-child(2):active { border-color: rgba(52,211,153,0.35); box-shadow: 0 4px 25px rgba(0,0,0,0.4), 0 0 20px rgba(52,211,153,0.1); }

/* Istatistikler - Sky Blue */
.extra-card:nth-child(3) {
  background: linear-gradient(150deg, rgba(10,30,52,0.82), rgba(8,20,42,0.9));
  border-color: rgba(56,189,248,0.2);
}
.extra-card:nth-child(3)::after { background: linear-gradient(100deg, transparent 20%, rgba(56,189,248,0.12) 45%, rgba(255,255,255,0.06) 50%, rgba(56,189,248,0.12) 55%, transparent 80%); }
.extra-card:nth-child(3) .extra-icon { background: linear-gradient(145deg, rgba(14,165,233,0.14), rgba(56,189,248,0.06)); border-color: rgba(56,189,248,0.18); box-shadow: 0 0 8px rgba(56,189,248,0.08); }
.extra-card:nth-child(3) .extra-title { color: #e0f2fe; }
.extra-card:nth-child(3):active { border-color: rgba(56,189,248,0.35); box-shadow: 0 4px 25px rgba(0,0,0,0.4), 0 0 20px rgba(56,189,248,0.1); }

/* Light mode extra cards */
body.display-light .extra-card:nth-child(1) { background: linear-gradient(150deg, rgba(253,242,248,0.9), rgba(252,231,243,0.82)); border-color: rgba(236,72,153,0.15); }
body.display-light .extra-card:nth-child(1) .extra-icon { background: linear-gradient(145deg, rgba(236,72,153,0.08), rgba(244,114,182,0.04)); border-color: rgba(236,72,153,0.12); }
body.display-light .extra-card:nth-child(1) .extra-title { color: #831843; }
body.display-light .extra-card:nth-child(2) { background: linear-gradient(150deg, rgba(236,253,245,0.9), rgba(209,250,229,0.82)); border-color: rgba(16,185,129,0.15); }
body.display-light .extra-card:nth-child(2) .extra-icon { background: linear-gradient(145deg, rgba(16,185,129,0.08), rgba(52,211,153,0.04)); border-color: rgba(16,185,129,0.12); }
body.display-light .extra-card:nth-child(2) .extra-title { color: #064e3b; }
body.display-light .extra-card:nth-child(3) { background: linear-gradient(150deg, rgba(240,249,255,0.9), rgba(224,242,254,0.82)); border-color: rgba(14,165,233,0.15); }
body.display-light .extra-card:nth-child(3) .extra-icon { background: linear-gradient(145deg, rgba(14,165,233,0.08), rgba(56,189,248,0.04)); border-color: rgba(14,165,233,0.12); }
body.display-light .extra-card:nth-child(3) .extra-title { color: #0c4a6e; }

/* ==========================================
   CATEGORY SELECTION SCREEN
   ========================================== */
.category-screen {
  position: fixed; inset: 0; background: var(--gradient-premium-bg); z-index: 2000;
  display: flex; flex-direction: column;
}
.cat-screen-header {
  display: flex; align-items: center; gap: 16px; padding: env(safe-area-inset-top, 16px) env(safe-area-inset-right, 24px) 16px env(safe-area-inset-left, 24px);
  background: linear-gradient(180deg, rgba(12,16,36,0.97), rgba(10,14,32,0.95)); border-bottom: 1px solid rgba(212,168,67,0.1);
  box-shadow: 0 4px 25px rgba(0,0,0,0.5), 0 0 15px rgba(212,168,67,0.03); z-index: 10;
}
.cat-back-btn {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: white;
  display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.2s;
  flex-shrink: 0;
}
.cat-back-btn:active { transform: scale(0.9); background: rgba(255,255,255,0.15); }
.cat-header-titles { display: flex; flex-direction: column; }
.cat-header-mode { font-size: 0.7rem; font-weight: 800; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 1px; }
.cat-header-title { font-size: 1.2rem; font-weight: 800; color: white; margin-top: 2px; }

.cat-screen-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 10px env(safe-area-inset-right, 24px) 20px env(safe-area-inset-left, 24px);
}
.cat-group-header {
  font-size: 0.85rem; font-weight: 800; color: #94a3b8;
  margin-top: 16px; margin-bottom: 12px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08); text-transform: uppercase; letter-spacing: 1px;
}
.cat-group-header:first-child { margin-top: 4px; }

.cat-group-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.cat-btn {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: rgba(30,41,59,0.5); border: 2px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg); color: var(--text-secondary); cursor: pointer;
  transition: all 0.2s; text-align: left; position: relative; overflow: hidden;
}
.cat-btn.active {
  background: rgba(59,130,246,0.15); border-color: var(--accent-blue); color: white;
}
.cat-btn .cat-icon { font-size: 1.4rem; flex-shrink: 0; }
.cat-btn .cat-name { flex: 1; font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-btn .cat-count {
  font-size: 0.65rem; font-weight: 800; background: rgba(0,0,0,0.4);
  padding: 4px 8px; border-radius: var(--radius-full); color: #cbd5e1; flex-shrink: 0;
}
.cat-btn.active .cat-count { background: rgba(59,130,246,0.3); color: #bfdbfe; }
.cat-btn.locked { opacity: 0.6; filter: grayscale(1); }
.cat-btn.locked::after { content: '🔒'; position: absolute; right: 10px; top: 10px; font-size: 0.8rem; }

.cat-screen-footer {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 12px env(safe-area-inset-right, 24px) env(safe-area-inset-bottom, 12px) env(safe-area-inset-left, 24px);
  background: linear-gradient(180deg, rgba(10,14,32,0.97), rgba(8,12,28,0.98)); border-top: 1px solid rgba(212,168,67,0.1); z-index: 10;
}
.cat-footer-info {
  font-size: 0.85rem; font-weight: 600; color: #94a3b8; flex: 1;
}
.premium-start-btn {
  display: flex; align-items: center; gap: 10px; padding: 14px 28px;
  background: var(--gradient-main); border: none; border-radius: var(--radius-full);
  color: white; font-size: 1.05rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 24px rgba(236,72,153,0.4); transition: transform 0.2s; white-space: nowrap;
}
.premium-start-btn:active:not(:disabled) { transform: scale(0.95); }
.premium-start-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; background: #64748b; }
.cat-count-badge { background: rgba(0,0,0,0.3); padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; }

/* Light mode overrides for new UI */
body.display-light .home-screen { background: linear-gradient(155deg, #f4f1ea 0%, #eee8db 30%, #f0ece4 55%, #ede6da 75%, #f2eee6 100%); }
body.display-light .home-screen::before { background: radial-gradient(ellipse at 20% 20%, rgba(180,140,50,0.06) 0%, transparent 40%), radial-gradient(ellipse at 80% 80%, rgba(99,102,241,0.05) 0%, transparent 45%); }
body.display-light .home-profile-card { background: rgba(255,255,255,0.85); border-color: rgba(180,140,50,0.15); box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
body.display-light .home-profile-card::after { background: linear-gradient(100deg, transparent 20%, rgba(180,140,50,0.06) 45%, rgba(255,255,255,0.4) 50%, rgba(180,140,50,0.06) 55%, transparent 80%); }
body.display-light .user-name { color: #1e293b; }
body.display-light .user-premium-badge { color: #92400e; background: linear-gradient(135deg, rgba(245,200,92,0.2), rgba(212,168,67,0.15)); border-color: rgba(212,168,67,0.4); text-shadow: none; }
body.display-light .splash-title { background: linear-gradient(135deg, #8b6914, #a67c1a, #c49b2e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
body.display-light .splash-subtitle { color: #4a7dd6; text-shadow: none; }
body.display-light .splash-icon { filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15)); }
body.display-light .home-action-btn { background: rgba(255,255,255,0.8); border-color: rgba(180,140,50,0.18); color: #4a3d1e; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
body.display-light .home-action-btn::after { background: linear-gradient(100deg, transparent 20%, rgba(180,140,50,0.06) 45%, rgba(255,255,255,0.3) 50%, rgba(180,140,50,0.06) 55%, transparent 80%); }
body.display-light .ha-icon { filter: drop-shadow(0 0 2px rgba(180,140,50,0.2)); }
body.display-light .home-section-title { background: linear-gradient(135deg, #7a5b12, #a0791c, #8b6914); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: none; }
body.display-light .mode-card { background: rgba(255,255,255,0.88); border-color: rgba(180,140,50,0.15); box-shadow: 0 6px 20px rgba(0,0,0,0.08), 0 0 0 0 rgba(180,140,50,0); }
body.display-light .mode-card::before { background: linear-gradient(180deg, rgba(180,140,50,0.04) 0%, transparent 100%); }
body.display-light .mode-card::after { background: linear-gradient(100deg, transparent 20%, rgba(180,140,50,0.06) 45%, rgba(255,255,255,0.3) 50%, rgba(180,140,50,0.06) 55%, transparent 80%); }
body.display-light .mode-card:hover { border-color: rgba(180,140,50,0.3); box-shadow: 0 8px 25px rgba(0,0,0,0.1), 0 0 20px rgba(180,140,50,0.06); }
body.display-light .mode-icon-bg { background: linear-gradient(145deg, rgba(180,140,50,0.08), rgba(99,102,241,0.04)); border-color: rgba(180,140,50,0.1); box-shadow: inset 0 1px 2px rgba(180,140,50,0.1); }
body.display-light .mode-card-title { color: #2d2416; }
body.display-light .mode-card-desc { color: #6b6352; }
body.display-light .lock-icon { color: #b8860b; filter: drop-shadow(0 0 3px rgba(180,140,50,0.3)); }
body.display-light .extra-card { background: rgba(255,255,255,0.85); border-color: rgba(180,140,50,0.15); box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
body.display-light .extra-card::after { background: linear-gradient(100deg, transparent 20%, rgba(180,140,50,0.05) 45%, rgba(255,255,255,0.3) 50%, rgba(180,140,50,0.05) 55%, transparent 80%); }
body.display-light .extra-icon { background: linear-gradient(145deg, rgba(180,140,50,0.08), rgba(99,102,241,0.04)); border-color: rgba(180,140,50,0.1); }
body.display-light .extra-title { color: #2d2416; }
body.display-light .extra-desc { color: #6b6352; }
body.display-light .cat-screen-header { background: linear-gradient(180deg, rgba(244,241,234,0.97), rgba(238,232,219,0.95)); border-color: rgba(180,140,50,0.1); }
body.display-light .cat-header-title { color: #1e293b; }
body.display-light .cat-back-btn { background: rgba(255,255,255,0.8); border-color: rgba(180,140,50,0.15); color: #1e293b; }
body.display-light .cat-btn { background: rgba(255,255,255,0.8); border-color: rgba(180,140,50,0.1); color: #475569; }
body.display-light .cat-group-header { color: #8b6914; }
body.display-light .cat-screen-footer { background: linear-gradient(180deg, rgba(244,241,234,0.97), rgba(238,232,219,0.98)); border-color: rgba(180,140,50,0.1); }
body.display-light .category-screen { background: linear-gradient(155deg, #f4f1ea 0%, #eee8db 40%, #f0ece4 70%, #f2eee6 100%); }

/* ==========================================
   SETTINGS OVERLAY
   ========================================== */
.settings-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.settings-card {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 20px;
  width: 90%; max-width: 420px; max-height: 85vh; overflow-y: auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}
.settings-title {
  font-size: 1.3rem; font-weight: 900; color: white;
  margin-bottom: 16px; text-align: center;
}

.setting-group {
  margin-bottom: 14px;
}
.setting-label {
  font-size: 0.72rem; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.setting-options { display: flex; flex-wrap: wrap; gap: 6px; }
.setting-opt {
  padding: 7px 12px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.setting-opt.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(236,72,153,0.2));
  border-color: #818cf8; color: white;
}
.theme-dot {
  width: 30px; height: 30px;
  border-radius: 50%; border: 2px solid transparent; cursor: pointer;
  transition: all 0.2s; position: relative;
}
.theme-dot.active { border-color: white; box-shadow: 0 0 12px rgba(255,255,255,0.3); transform: scale(1.15); }
.theme-dot[data-theme="default"] { background: linear-gradient(135deg, #6366f1, #ec4899); }
.theme-dot[data-theme="ocean"] { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.theme-dot[data-theme="forest"] { background: linear-gradient(135deg, #10b981, #059669); }
.theme-dot[data-theme="sunset"] { background: linear-gradient(135deg, #f97316, #ef4444); }
.theme-dot[data-theme="midnight"] { background: linear-gradient(135deg, #8b5cf6, #3b82f6); }

.settings-close-btn {
  width: 100%; margin-top: 10px;
  padding: 11px;
  background: var(--gradient-main); border: none; border-radius: var(--radius-full);
  color: white; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(236,72,153,0.3); transition: all 0.2s;
}
.settings-close-btn:active { transform: scale(0.96); }

/* ==========================================
   QUIZ SCREEN — Flex layout, no overlap
   ========================================== */
.quiz-screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* Top Bar — modern floating glassmorphism */
.quiz-top-bar {
  flex-shrink: 0;
  height: 38px;
  background: rgba(10, 14, 26, 0.65);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  padding: 3px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.back-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: white; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  flex-shrink: 0;
}
.back-btn svg { width: 20px; height: 20px; }
.back-btn:active { transform: scale(0.92); }

.progress-col {
  flex: 1; max-width: 320px;
  background: rgba(17,24,39,0.7);
  padding: 5px 14px;
  border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.08);
}
.progress-text {
  font-size: 0.65rem; font-weight: 700; color: #cbd5e1;
  margin-bottom: 3px; text-transform: uppercase; text-align: center;
}
.progress-bar { height: 4px; background: rgba(0,0,0,0.5); border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient-main); border-radius: 6px; width: 0%; transition: width 0.4s; }

.score-badge {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(16,185,129,0.2) 0%, rgba(5,150,105,0.4) 100%);
  border: 1px solid rgba(16,185,129,0.3);
  font-size: 0.78rem; font-weight: 800; color: #34d399;
  flex-shrink: 0;
}
.score-icon { font-size: 0.9rem; }

/* Timer Badge */
.timer-badge {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(239,68,68,0.2) 0%, rgba(249,115,22,0.3) 100%);
  border: 1px solid rgba(239,68,68,0.4);
  font-size: 0.9rem; font-weight: 900; color: #f87171;
  animation: timer-pulse 1s infinite;
  flex-shrink: 0;
}
.timer-badge.urgent { color: #ef4444; border-color: rgba(239,68,68,0.7); animation: timer-pulse 0.5s infinite; }
@keyframes timer-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }
.timer-icon { font-size: 0.85rem; }

/* Floating Question Banner — overlays top of map */
.floating-question {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(10, 14, 30, 0.95), rgba(20, 28, 55, 0.9));
  border-bottom: 1px solid rgba(212, 168, 67, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 700;
  width: 100%;
  flex-shrink: 0;
  animation: floatingQ-enter 0.3s ease-out;
}
.floating-q-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.2px;
  line-height: 1.25;
  text-align: center;
}
@keyframes floatingQ-enter {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Floating Category Badge */
.floating-cat-badge {
  position: absolute;
  bottom: 4px;
  right: 12px;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.85;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
/* Light mode */
body.display-light .floating-question {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 244, 248, 0.9));
  border-color: rgba(180, 140, 50, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
body.display-light .floating-q-text {
  color: #1e293b;
  text-shadow: none;
}
body.display-light .floating-cat-badge {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: #64748b;
}

/* Map Container — fills remaining space */
#map {
  flex: 1;
  min-height: 0; /* crucial for flex children */
  background: #0c1425 !important;
  z-index: 1;
}

/* Bottom Panel — HIDDEN, replaced by floating buttons */
.quiz-bottom-panel {
  display: none !important;
}

.badge-item-desc {
  font-size: 0.58rem;
  color: #94a3b8;
  line-height: 1.3;
}
.badge-item-date {
  font-size: 0.5rem;
  color: #fbbf24;
  margin-top: 6px;
  font-weight: 600;
}

body.display-light .badge-item { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
body.display-light .badge-item.unlocked { background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(251,191,36,0.05)); border-color: rgba(245,158,11,0.3); }
body.display-light .badge-item.unlocked .badge-item-title { color: #92400e; }
body.display-light .badge-item-title { color: #1e293b; }
body.display-light .badge-item-desc { color: #64748b; }

.badge-item.unlocked { cursor: pointer; }
.badge-item.selected {
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245,158,11,0.5);
  transform: translateY(-2px);
}
.badge-item.selected::after {
  content: '📌 Vitrinde';
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.5rem;
  background: rgba(245,158,11,0.9);
  color: #fff;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: bold;
}

/* ==========================================
   Badge Toast Notification
   ========================================== */
.badge-toast-container {
  position: fixed;
  /* Floating Action Buttons — bottom of screen */
}
.quiz-floating-actions {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 850;
  pointer-events: none;
}
.quiz-floating-actions > * {
  pointer-events: auto;
}
.quiz-float-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  background: rgba(10, 14, 30, 0.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: #cbd5e1;
  font-size: 0.72rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.quiz-float-btn:active {
  transform: scale(0.93);
  background: rgba(20, 28, 55, 0.85);
}
.quiz-float-btn svg {
  width: 13px; height: 13px;
}
.quiz-float-btn.report-float {
  border-color: rgba(245, 158, 11, 0.2);
}
.quiz-float-btn.report-float:active {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.quiz-float-btn.hint-float {
  border-color: rgba(99, 102, 241, 0.2);
}
.quiz-float-btn.hint-float:active {
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}
.quiz-float-btn.hint-float.used {
  color: var(--accent-yellow);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.12);
}
/* Floating hint box */
.floating-hint-box {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 860;
  max-width: 340px;
  width: 90%;
  font-size: 0.72rem; font-weight: 500; color: #fbbf24;
  background: rgba(10, 14, 30, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 3px solid #f59e0b;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  animation: floatingQ-enter 0.25s ease-out;
}
/* Light mode floating buttons */
body.display-light .quiz-float-btn {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
body.display-light .floating-hint-box {
  background: rgba(255, 255, 255, 0.9);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.2);
}

/* ====================================
   NAME MODE FLOATING CHOICES PANEL
   (İsim Tahmin Et)
   ==================================== */
.name-choices-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 10px 16px 14px;
  background: linear-gradient(180deg, rgba(8, 12, 28, 0.0) 0%, rgba(8, 12, 28, 0.75) 15%, rgba(8, 12, 28, 0.92) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  animation: nameChoices-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.name-choices-panel > * {
  pointer-events: auto;
}
@keyframes nameChoices-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.name-choices-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: stretch;
  max-width: 720px;
  margin: 0 auto;
}

.name-choice-btn {
  flex: 1;
  min-width: 0;
  position: relative;
  padding: 12px 10px;
  background: linear-gradient(145deg, rgba(25, 32, 70, 0.85), rgba(16, 20, 50, 0.92));
  border: 1.5px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  color: #e8e0f8;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  letter-spacing: 0.2px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* Shimmer sweep on choice buttons */
.name-choice-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent 20%, rgba(167, 139, 250, 0.12) 45%, rgba(255, 255, 255, 0.07) 50%, rgba(167, 139, 250, 0.12) 55%, transparent 80%);
  animation: shimmer-sweep 5s ease-in-out infinite;
  z-index: 0; pointer-events: none;
  will-change: transform;
}
.name-choice-btn:nth-child(2)::after { animation-delay: 0.4s; }
.name-choice-btn:nth-child(3)::after { animation-delay: 0.8s; }
.name-choice-btn:nth-child(4)::after { animation-delay: 1.2s; }

.name-choice-btn span {
  position: relative;
  z-index: 1;
}

/* Hover */
.name-choice-btn:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background: linear-gradient(145deg, rgba(35, 40, 80, 0.92), rgba(22, 28, 58, 0.95));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(139, 92, 246, 0.12);
  transform: translateY(-2px);
}
/* Active press */
.name-choice-btn:active:not(.nc-disabled) {
  transform: scale(0.96) translateY(0);
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Disabled after answering */
.name-choice-btn.nc-disabled {
  pointer-events: none;
  opacity: 0.45;
  transform: scale(0.97);
  filter: grayscale(0.3);
}

/* Correct choice */
.name-choice-btn.nc-correct {
  background: linear-gradient(145deg, rgba(5, 100, 70, 0.9), rgba(16, 185, 129, 0.85)) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1.03) !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35),
              0 6px 20px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  animation: nc-correct-pulse 0.6s ease-out;
}
.name-choice-btn.nc-correct::after { animation: none; opacity: 0; }

@keyframes nc-correct-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50%  { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.35), 0 6px 20px rgba(0, 0, 0, 0.3); }
}

/* Wrong choice */
.name-choice-btn.nc-wrong {
  background: linear-gradient(145deg, rgba(130, 20, 20, 0.9), rgba(239, 68, 68, 0.8)) !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3),
              0 4px 16px rgba(0, 0, 0, 0.3) !important;
  animation: nc-wrong-shake 0.45s ease-out;
}
.name-choice-btn.nc-wrong::after { animation: none; opacity: 0; }

@keyframes nc-wrong-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(5px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
  75% { transform: translateX(-1px); }
}

/* Feedback text */
.name-choice-feedback {
  max-width: 720px;
  margin: 8px auto 0;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.4;
  animation: nameChoices-enter 0.3s ease-out;
}
.name-choice-feedback.ncf-correct {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.name-choice-feedback.ncf-wrong {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ---- Light Mode ---- */
body.display-light .name-choices-panel {
  background: linear-gradient(180deg, rgba(240, 244, 248, 0.0) 0%, rgba(240, 244, 248, 0.8) 15%, rgba(240, 244, 248, 0.95) 100%);
}
body.display-light .name-choice-btn {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 243, 255, 0.88));
  border-color: rgba(139, 92, 246, 0.2);
  color: #3b0764;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
body.display-light .name-choice-btn::after {
  background: linear-gradient(100deg, transparent 20%, rgba(139, 92, 246, 0.06) 45%, rgba(255, 255, 255, 0.15) 50%, rgba(139, 92, 246, 0.06) 55%, transparent 80%);
}
body.display-light .name-choice-btn:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 233, 254, 0.92));
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 0 15px rgba(139, 92, 246, 0.08);
}
body.display-light .name-choice-feedback.ncf-correct {
  color: #065f46;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}
body.display-light .name-choice-feedback.ncf-wrong {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.q-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.q-header-actions { display: flex; align-items: center; gap: 6px; }
.cat-badge {
  font-size: 0.6rem; font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.5px;
  background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3);
}
.hint-btn {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-secondary);
  font-size: 0.68rem; font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s;
}
.hint-btn svg { width: 14px; height: 14px; }
.hint-btn:active { background: rgba(255,255,255,0.15); transform: scale(0.95); }
.hint-btn.used { color: var(--accent-yellow); border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.1); }

.hint-box {
  font-size: 0.7rem; font-weight: 500; color: #fbbf24;
  background: rgba(245, 158, 11, 0.15); border-left: 3px solid #f59e0b;
  padding: 6px 10px;
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  margin-bottom: 4px; line-height: 1.4;
}

.q-content-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.q-text-col { flex: 1; min-width: 0; }
.q-text {
  font-size: 0.95rem; font-weight: 800; line-height: 1.3; color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  /* Hidden in bottom panel — now shown via floating banner above map */
  display: none;
}
.q-inst { font-size: 0.65rem; color: #94a3b8; margin-top: 2px; font-weight: 500; }

.streak-indicator {
  font-size: 0.72rem; font-weight: 800; color: #f97316;
  background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(239,68,68,0.25));
  padding: 5px 10px;
  border-radius: var(--radius-sm); border: 1px solid rgba(249,115,22,0.4);
  animation: pulse-orange 2s infinite; white-space: nowrap;
  flex-shrink: 0;
}
@keyframes pulse-orange { 0%,100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.4); } 50% { box-shadow: 0 0 0 8px rgba(249,115,22,0); } }

/* Choices */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 6px; }
.choice-btn {
  padding: 8px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm);
  color: #f8fafc; font-size: 0.78rem; font-weight: 600;
  text-align: center; cursor: pointer; transition: all 0.2s;
}
.choice-btn:active:not(.disabled) { background: rgba(255,255,255,0.1); }
.choice-btn.disabled { pointer-events: none; opacity: 0.6; }
.choice-btn.correct-choice {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: #34d399; color: white; opacity: 1; z-index: 2;
}
.choice-btn.wrong-choice {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  border-color: #f87171; color: white; opacity: 1; z-index: 2;
}
.choice-feedback {
  margin-top: 4px; padding: 5px 8px;
  border-radius: var(--radius-sm); font-weight: 700;
  font-size: 0.68rem; text-align: center;
}

/* Feedback Overlay */
.feedback-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.feedback-card {
  background: linear-gradient(180deg, rgba(30,41,59,0.95), rgba(15,23,42,0.95));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.7);
  border-radius: var(--radius-xl);
  padding: 22px; text-align: center;
  width: min(85vw, 340px); max-width: 340px;
}
.feedback-icon { font-size: 2.8rem; margin-bottom: 8px; }
.feedback-card h3 { font-size: 1.3rem; font-weight: 800; color: white; margin-bottom: 6px; }
.feedback-desc {
  font-size: 0.75rem; font-weight: 500; color: #cbd5e1; line-height: 1.5;
  margin-bottom: 16px; background: rgba(0,0,0,0.2);
  padding: 8px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.05);
}
.next-btn {
  width: 100%; padding: 10px;
  background: var(--gradient-main); border: none; border-radius: var(--radius-md);
  color: white; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  display: flex; justify-content: center; align-items: center; gap: 6px;
  transition: transform 0.2s;
}
.next-btn:active { transform: scale(0.96); }

/* Leaflet */
.leaflet-control-zoom { border: none !important; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important; }
.leaflet-control-zoom a { background: var(--bg-secondary) !important; color: var(--text-primary) !important; border-color: var(--border-subtle) !important; width: 32px !important; height: 32px !important; line-height: 32px !important; font-size: 16px !important; }
.leaflet-control-attribution { display: none !important; }
.province-popup .leaflet-popup-content-wrapper { background: var(--bg-secondary); border: 1px solid var(--border-subtle); color: white; border-radius: var(--radius-md); }
.province-popup .leaflet-popup-tip { background: var(--bg-secondary); border: 1px solid var(--border-subtle); }
.popup-name { font-weight: 700; font-size: 0.8rem; margin-bottom: 4px; }
.popup-desc { font-size: 0.68rem; color: var(--text-muted); line-height: 1.3; }
/* Wrong province label (shown on incorrectly clicked province) */
.wrong-province-label {
  background: rgba(220, 38, 38, 0.92) !important;
  border: 1.5px solid #fca5a5 !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45), 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.wrong-province-label::before {
  display: none !important;
}

/* Loading */
.loading-overlay { position: fixed; inset: 0; background: rgba(10, 14, 26, 0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 5000; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border-subtle); border-top-color: var(--accent-blue); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 12px; }
.loading-text { font-size: 0.8rem; color: var(--text-muted); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Results */
.result-screen { position: fixed; inset: 0; background: var(--bg-primary); display: flex; align-items: center; justify-content: center; z-index: 3000; overflow-y: auto; }
.result-screen::before {
  content: ''; position: absolute; inset: -50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
  z-index: 0; pointer-events: none; animation: pulse-glow 4s infinite alternate;
}
.result-content {
  position: relative; z-index: 1; text-align: center;
  max-width: 420px; width: 90%;
  background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(24px);
  padding: 24px; border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.result-icon { font-size: 3.5rem; line-height: 1; margin-bottom: 10px; animation: bounce 2s infinite ease-in-out; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.result-title { font-size: 1.6rem; font-weight: 900; color: white; margin-bottom: 6px; }
.result-subtitle { font-size: 0.8rem; color: #cbd5e1; font-weight: 500; margin-bottom: 16px; line-height: 1.4; }
.result-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.result-stat { background: rgba(0,0,0,0.3); padding: 10px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.05); }
.result-stat-value { font-size: 1.4rem; font-weight: 900; color: white; }
.result-stat-label { font-size: 0.6rem; color: #94a3b8; text-transform: uppercase; font-weight: 700; margin-top: 4px; }
#finalScore { color: #f59e0b; }
.streak-text span { color: #f97316; }
.correct-text span { color: #10b981; }
.wrong-text span { color: #ef4444; }
.result-actions { display: flex; flex-direction: column; gap: 8px; }
.result-actions button {
  width: 100%; padding: 12px; border: none; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 800; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: var(--gradient-main); color: white; box-shadow: 0 6px 20px rgba(236,72,153,0.3); }
.btn-primary:active { transform: scale(0.96); }
.btn-secondary { background: rgba(255,255,255,0.05); color: #cbd5e1; border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:active { background: rgba(255,255,255,0.1); }

/* Badge & Weak Category boxes in Results */
.badge-box {
  margin-bottom: 14px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.1));
  border: 1px solid rgba(245,158,11,0.3); border-radius: var(--radius-md);
}
.badge-box-title {
  font-size: 0.72rem; font-weight: 800; color: #f59e0b;
  margin-bottom: 6px; text-transform: uppercase;
}
.badge-list { display: flex; flex-wrap: wrap; gap: 5px; }
.badge-item {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: rgba(245,158,11,0.1); border-radius: var(--radius-sm);
  font-size: 0.68rem; font-weight: 700; color: #fbbf24;
}
.badge-emoji { font-size: 1.1rem; }

.weak-category-box {
  margin-bottom: 14px;
  padding: 10px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25); border-radius: var(--radius-md);
}
.weak-cat-title {
  font-size: 0.72rem; font-weight: 800; color: #ef4444;
  margin-bottom: 6px;
}
.weak-cat-item {
  font-size: 0.68rem; color: #fca5a5; font-weight: 600;
  padding: 2px 0;
}
.weak-cat-item span { color: #ef4444; font-weight: 800; }

/* Locked Categories */
.cat-btn.locked {
  opacity: 0.5; position: relative; cursor: pointer;
  background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.06);
}
.cat-btn.locked .cat-name { color: var(--text-muted); }
.cat-btn.locked::after {
  content: '🔒'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 0.7rem; opacity: 0.7;
}
.cat-btn.locked.active { background: rgba(255,255,255,0.02); border-color: transparent; color: var(--text-muted); }

/* Purchase Overlay */
.purchase-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}
.purchase-card {
  position: relative;
  background: linear-gradient(180deg, rgba(30,41,59,0.97), rgba(15,23,42,0.97));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.15);
  border-top: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-xl);
  padding: 28px; text-align: center;
  width: min(90vw, 380px); max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 40px rgba(139,92,246,0.15);
  animation: modal-in 0.3s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.purchase-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.purchase-close:active { background: rgba(255,255,255,0.2); transform: scale(0.9); }

.purchase-icon { font-size: 3rem; margin-bottom: 10px; }
.purchase-title {
  font-size: 1.4rem; font-weight: 900; color: white;
  margin-bottom: 8px;
}
.purchase-desc {
  font-size: 0.75rem; color: #94a3b8;
  line-height: 1.5; margin-bottom: 16px;
}
.purchase-features {
  text-align: left; margin-bottom: 18px;
  background: rgba(0,0,0,0.2); padding: 10px 14px;
  border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.05);
}
.purchase-feature {
  font-size: 0.7rem; font-weight: 600; color: #cbd5e1;
  padding: 3px 0;
}
.purchase-buy-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1, #3b82f6);
  border: none; border-radius: var(--radius-full);
  color: white; font-size: 1.05rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
  transition: all 0.2s;
}
.purchase-buy-btn:active { transform: scale(0.96); }
.purchase-hint {
  font-size: 0.6rem; color: #64748b;
  margin-top: 10px; line-height: 1.4;
}

/* Gift Code */
.gift-code-row {
  display: flex; gap: 6px; align-items: center;
}
.gift-code-input {
  flex: 1; padding: 9px 12px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 0.8rem; font-weight: 600;
  font-family: var(--font); letter-spacing: 2px; text-transform: uppercase;
  outline: none; transition: border-color 0.2s;
}
.gift-code-input:focus { border-color: #818cf8; }
.gift-code-input::placeholder { color: var(--text-muted); letter-spacing: 0; text-transform: none; }

.gift-code-btn {
  width: 40px; height: 40px;
  background: var(--gradient-main); border: none; border-radius: var(--radius-sm);
  color: white; font-size: 1.1rem; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.gift-code-btn:active { transform: scale(0.92); }

.gift-code-msg {
  margin-top: 6px;
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.gift-code-msg.success { color: #10b981; background: rgba(16,185,129,0.1); }
.gift-code-msg.error { color: #ef4444; background: rgba(239,68,68,0.1); }

/* Light mode overrides for purchase/lock */
body.display-light .purchase-card { background: rgba(255,255,255,0.97); }
body.display-light .purchase-title { color: #1e293b; }
body.display-light .purchase-desc { color: #475569; }
body.display-light .purchase-features { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
body.display-light .purchase-feature { color: #334155; }
body.display-light .gift-code-input { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); color: #1e293b; }

/* ==========================================
   Pulsing Marker for Name Guess Mode
   ========================================== */
.pulse-marker {
  width: 20px; height: 20px;
  position: relative;
}
.pulse-marker-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #8b5cf6;
  border: 2px solid #fff;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 8px rgba(139,92,246,0.6);
}
.pulse-marker-ring {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(139,92,246,0.6);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 1.5s ease-out infinite;
}
@keyframes pulse-ring {
  0% { width: 14px; height: 14px; opacity: 1; }
  100% { width: 50px; height: 50px; opacity: 0; }
}

/* ==========================================
   Splash Extra Buttons (Yanlışlarım & Karıştırdıklarım)
   ========================================== */
.splash-extra-buttons {
  display: flex; gap: 6px; width: 100%; margin-top: 6px;
}
.splash-extra-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 10px;
  background: linear-gradient(145deg, rgba(18,24,55,0.6), rgba(10,14,38,0.7));
  border: 1px solid rgba(212,168,67,0.08);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.72rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.02);
}
.splash-extra-btn:active { transform: scale(0.96); border-color: rgba(212,168,67,0.2); box-shadow: 0 2px 12px rgba(0,0,0,0.25), 0 0 10px rgba(212,168,67,0.05); }
.splash-extra-btn .extra-btn-icon { font-size: 1rem; }
.splash-extra-btn .extra-btn-text { font-size: 0.68rem; font-weight: 700; }
.splash-extra-btn .extra-btn-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-radius: var(--radius-full);
  font-size: 0.55rem; font-weight: 900; color: white;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(239,68,68,0.4);
  animation: badge-pulse 2s infinite;
}
@keyframes badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
/* ==========================================
   Shared Modal Styles
   ========================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  animation: modal-in 0.3s ease-out;
}
.modal-card {
  position: relative;
  background: linear-gradient(180deg, rgba(30,41,59,0.97), rgba(15,23,42,0.97));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.15);
  border-top: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-xl);
  padding: 24px; text-align: center;
  width: min(90vw, 400px); max-height: 85vh; overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 40px rgba(139,92,246,0.1);
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.modal-close:active { background: rgba(255,255,255,0.2); transform: scale(0.9); }
.modal-header-icon { font-size: 2.5rem; margin-bottom: 8px; }
.modal-title { font-size: 1.2rem; font-weight: 900; color: white; margin-bottom: 4px; }
.modal-desc { font-size: 0.7rem; color: #94a3b8; margin-bottom: 14px; line-height: 1.4; }

/* ==========================================
   Yanlışlarım Modal
   ========================================== */
.mistakes-menu { display: flex; flex-direction: column; gap: 6px; }
.mistakes-menu-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer; transition: all 0.2s;
  text-align: left;
}
.mistakes-menu-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}
.mistakes-menu-btn:active { transform: scale(0.98); }
.mmb-icon { font-size: 1.3rem; flex-shrink: 0; }
.mmb-text { flex: 1; display: flex; flex-direction: column; }
.mmb-label { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); }
.mmb-desc { font-size: 0.6rem; color: #94a3b8; margin-top: 2px; }
.mmb-count {
  min-width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(249,115,22,0.2));
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 900; color: #f87171;
  padding: 0 6px; flex-shrink: 0;
}

.mistakes-empty {
  padding: 20px 10px; text-align: center;
}
.mistakes-empty-icon { font-size: 2.5rem; margin-bottom: 10px; }
.mistakes-empty p {
  font-size: 0.75rem; color: #94a3b8; line-height: 1.6;
}

/* ==========================================
   Karıştırdıklarım Modal
   ========================================== */
.confused-list { text-align: left; max-height: 50vh; overflow-y: auto; }
.confused-group {
  margin-bottom: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.confused-group-title {
  font-size: 0.72rem; font-weight: 800;
  padding: 8px 12px;
  background: rgba(139,92,246,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #a78bfa;
}
.confused-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.confused-item:last-child { border-bottom: none; }
.confused-item-name { font-size: 0.72rem; font-weight: 600; color: var(--text-primary); }
.confused-item-stat {
  font-size: 0.62rem; font-weight: 700; color: #f87171;
  background: rgba(239,68,68,0.1);
  padding: 3px 8px; border-radius: var(--radius-full);
}

/* ==========================================
   Motivasyon Popup
   ========================================== */
.motivation-popup {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: modal-in 0.4s ease-out;
}
.motivation-card {
  position: relative;
  width: min(88vw, 360px); max-height: 80vh; overflow-y: auto;
  background: linear-gradient(180deg, rgba(30,41,59,0.97) 0%, rgba(15,23,42,0.97) 100%);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 1px rgba(139,92,246,0.3), 0 20px 50px rgba(0,0,0,0.7), 0 0 60px rgba(99,102,241,0.15);
  padding: 22px;
  animation: motivation-slide 0.5s ease-out;
}
@keyframes motivation-slide {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.motivation-close {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted); font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.motivation-close:active { background: rgba(255,255,255,0.2); transform: scale(0.9); }

.moti-header {
  font-size: 1.1rem; font-weight: 900; color: white;
  text-align: center; margin-bottom: 14px;
  background: linear-gradient(135deg, #a5b4fc 0%, #f472b6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.moti-line {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; margin-bottom: 6px;
  border-radius: var(--radius-md);
  font-size: 0.78rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.4;
  animation: moti-fade 0.5s ease-out both;
}
.moti-line:nth-child(2) { animation-delay: 0.1s; }
.moti-line:nth-child(3) { animation-delay: 0.2s; }
.moti-line:nth-child(4) { animation-delay: 0.3s; }
.moti-line:nth-child(5) { animation-delay: 0.4s; }
.moti-line:nth-child(6) { animation-delay: 0.5s; }
@keyframes moti-fade {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.moti-line.fire {
  background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(239,68,68,0.12));
  border: 1px solid rgba(249,115,22,0.25);
}
.moti-line.brain {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(99,102,241,0.2);
}
.moti-line.target {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(52,211,153,0.1));
  border: 1px solid rgba(16,185,129,0.2);
}
.moti-line.warn {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
}
.moti-line.star {
  background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(245,158,11,0.08));
  border: 1px solid rgba(251,191,36,0.2);
}
.moti-line strong { font-weight: 900; }

/* ==========================================
   İstatistiklerim Modal
   ========================================== */
.stats-modal-card {
  width: min(92vw, 440px);
  max-height: 88vh;
  padding: 20px;
}
.stats-section {
  margin-bottom: 14px;
  text-align: left;
}
.stats-section-title {
  font-size: 0.78rem; font-weight: 800; color: #a5b4fc;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.stats-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  transition: transform 0.2s;
}
.stats-card:hover { transform: scale(1.03); }
.stats-card-value {
  font-size: 1.4rem; font-weight: 900; color: var(--text-primary);
  line-height: 1;
}
.stats-card-label {
  font-size: 0.58rem; font-weight: 600; color: #94a3b8;
  margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* Color variants */
.stats-card-green .stats-card-value { color: #34d399; }
.stats-card-green { border-color: rgba(52,211,153,0.2); background: rgba(16,185,129,0.06); }
.stats-card-red .stats-card-value { color: #f87171; }
.stats-card-red { border-color: rgba(248,113,113,0.2); background: rgba(239,68,68,0.06); }
.stats-card-blue .stats-card-value { color: #60a5fa; }
.stats-card-blue { border-color: rgba(96,165,250,0.2); background: rgba(59,130,246,0.06); }
.stats-card-fire .stats-card-value { color: #fb923c; }
.stats-card-fire { border-color: rgba(251,146,60,0.2); background: rgba(249,115,22,0.06); }
.stats-card-orange .stats-card-value { color: #fbbf24; }
.stats-card-orange { border-color: rgba(251,191,36,0.2); background: rgba(245,158,11,0.06); }
.stats-card-purple .stats-card-value { color: #a78bfa; }
.stats-card-purple { border-color: rgba(167,139,250,0.2); background: rgba(139,92,246,0.06); }

/* Category performance */
.stats-category-list { text-align: left; }
.stats-cat-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stats-cat-row:last-child { border-bottom: none; }
.stats-cat-info {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.stats-cat-name { font-size: 0.72rem; font-weight: 700; color: var(--text-primary); }
.stats-cat-detail { font-size: 0.6rem; font-weight: 600; color: #94a3b8; }
.stats-cat-bar-bg {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden;
}
.stats-cat-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 0.6s ease-out;
  min-width: 2px;
}
.stats-category-empty {
  text-align: center; padding: 12px;
}
.stats-category-empty p { font-size: 0.7rem; color: #94a3b8; }

/* Strengths / Weaknesses */
.stats-sw-row {
  display: flex; gap: 8px;
}
.stats-sw-col { flex: 1; }
.stats-sw-title {
  font-size: 0.68rem; font-weight: 800;
  margin-bottom: 6px; color: #94a3b8;
}
.stats-sw-item {
  font-size: 0.65rem; font-weight: 600;
  padding: 6px 8px; margin-bottom: 4px;
  border-radius: var(--radius-md);
  display: flex; justify-content: space-between; align-items: center;
}
.stats-sw-item span { font-weight: 900; }
.stats-sw-item.good {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.15);
  color: #34d399;
}
.stats-sw-item.weak {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.15);
  color: #f87171;
}

/* Light mode overrides for new modals */
body.display-light .modal-card { background: rgba(255,255,255,0.97); }
body.display-light .modal-title { color: #1e293b; }
body.display-light .modal-desc { color: #475569; }
body.display-light .mistakes-menu-btn { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); color: #1e293b; }
body.display-light .mmb-label { color: #1e293b; }
body.display-light .mmb-desc { color: #64748b; }
body.display-light .motivation-card { background: rgba(255,255,255,0.97); box-shadow: 0 0 0 1px rgba(99,102,241,0.2), 0 20px 50px rgba(0,0,0,0.2); }
body.display-light .moti-header { -webkit-text-fill-color: #1e293b; background: none; }
body.display-light .moti-line { color: #1e293b; }
body.display-light .confused-group-title { color: #6d28d9; }
body.display-light .confused-item-name { color: #1e293b; }
body.display-light .splash-extra-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #475569; }
body.display-light .stats-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
body.display-light .stats-card-value { color: #1e293b; }
body.display-light .stats-card-label { color: #64748b; }
body.display-light .stats-section-title { color: #6366f1; border-color: rgba(0,0,0,0.06); }
body.display-light .stats-cat-name { color: #1e293b; }
body.display-light .stats-cat-detail { color: #64748b; }
body.display-light .stats-cat-bar-bg { background: rgba(0,0,0,0.06); }
body.display-light .stats-sw-title { color: #64748b; }

/* ==========================================
   Feedback Modal (Formspree)
   ========================================== */
.feedback-form {
  display: flex; flex-direction: column; gap: 12px; margin-top: 10px; text-align: left;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.75rem; font-weight: 600; color: #94a3b8; margin-left: 2px; }
.form-input, .form-textarea {
  width: 100%; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md); color: var(--text-primary); padding: 10px 12px;
  font-family: inherit; font-size: 0.85rem; outline: none; transition: all 0.2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent-blue); background: rgba(0,0,0,0.3); }
.form-input[readonly] { background: rgba(0,0,0,0.1); color: #cbd5e1; cursor: default; }
.form-textarea { resize: vertical; min-height: 80px; max-height: 150px; }
.form-submit-btn {
  margin-top: 5px; padding: 12px; border-radius: var(--radius-md); border: none;
  background: var(--gradient-main); color: white; font-weight: 800; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 15px rgba(236,72,153,0.3);
}
.form-submit-btn:active { transform: scale(0.96); }
.form-submit-btn:disabled { opacity: 0.6; cursor: wait; filter: saturate(0.5); }

.feedback-success {
  margin-top: 15px; padding: 16px; background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3); border-radius: var(--radius-md);
  text-align: center; animation: modal-in 0.4s ease-out;
}
.feedback-success .success-icon { font-size: 2.2rem; margin-bottom: 8px; }
.feedback-success h4 { color: #10b981; font-size: 1.1rem; margin-bottom: 5px; }
.feedback-success p { font-size: 0.8rem; color: #cbd5e1; line-height: 1.4; }

/* ==========================================
   Setting Hint (Username description)
   ========================================== */
.setting-hint {
  font-size: 0.62rem; font-weight: 500; color: #94a3b8;
  margin-top: 6px; line-height: 1.5;
  padding: 6px 8px;
  background: rgba(99,102,241,0.06);
  border-radius: var(--radius-sm);
  border-left: 2px solid rgba(99,102,241,0.3);
}

/* ==========================================
   Leaderboard Modal & Tabs
   ========================================== */
.leaderboard-modal-card {
  width: min(94vw, 480px);
  max-height: 88vh;
  padding: 20px;
}

/* Tab Bar */
.lb-tabs {
  display: flex; gap: 4px;
  margin-bottom: 14px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-md);
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.06);
}
.lb-tab {
  flex: 1; padding: 9px 12px;
  background: transparent; border: none; border-radius: var(--radius-sm);
  color: #94a3b8; font-size: 0.72rem; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
  text-align: center;
}
.lb-tab.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(236,72,153,0.2));
  color: white;
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.lb-tab:active { transform: scale(0.97); }

/* Content */
.lb-content { min-height: 100px; }

/* List */
.lb-list {
  max-height: 45vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}

/* Each row */
.lb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  animation: lb-row-in 0.35s ease-out both;
}
.lb-row:nth-child(1) { animation-delay: 0s; }
.lb-row:nth-child(2) { animation-delay: 0.03s; }
.lb-row:nth-child(3) { animation-delay: 0.06s; }
.lb-row:nth-child(4) { animation-delay: 0.09s; }
.lb-row:nth-child(5) { animation-delay: 0.12s; }
.lb-row:nth-child(n+6) { animation-delay: 0.15s; }
@keyframes lb-row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Highlighted (current user) */
.lb-row.lb-me {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1));
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 12px rgba(99,102,241,0.15);
}

/* Rank */
.lb-rank {
  font-size: 0.82rem; font-weight: 900; color: #94a3b8;
  min-width: 26px; text-align: center; flex-shrink: 0;
}
.lb-row:nth-child(1) .lb-rank { color: #fbbf24; font-size: 1.1rem; }
.lb-row:nth-child(2) .lb-rank { color: #d1d5db; font-size: 1rem; }
.lb-row:nth-child(3) .lb-rank { color: #cd7f32; font-size: 1rem; }

/* Medal icons for top 3 */
.lb-medal { font-size: 1.2rem; }

/* Name */
.lb-name {
  flex: 0 1 auto; min-width: 0; font-size: 0.78rem; font-weight: 700; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-me .lb-name { color: #a5b4fc; }

/* Score / Percent */
.lb-score-col {
  display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0;
  margin-left: auto;
}
.lb-score {
  font-size: 0.78rem; font-weight: 900; color: #34d399;
}
.lb-percent {
  font-size: 0.58rem; font-weight: 700; color: #94a3b8;
  margin-top: 1px;
}
.lb-total-info {
  font-size: 0.55rem; color: #64748b; margin-top: 1px;
}

/* Empty State */
.lb-empty {
  text-align: center; padding: 30px 10px;
}
.lb-empty-icon { font-size: 2.5rem; margin-bottom: 8px; }
.lb-empty p { font-size: 0.75rem; color: #94a3b8; line-height: 1.5; }

/* Filter Note */
.lb-filter-note {
  font-size: 0.6rem; font-weight: 600; color: #f59e0b;
  text-align: center;
  margin-top: 10px; padding: 8px 12px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-md);
  line-height: 1.5;
}

/* Loading indicator */
.lb-loading {
  text-align: center;
  padding: 30px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  animation: lb-loading-pulse 1.5s ease-in-out infinite;
}
@keyframes lb-loading-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Light mode leaderboard */
body.display-light .lb-tabs { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
body.display-light .lb-tab { color: #64748b; }
body.display-light .lb-tab.active { background: rgba(99,102,241,0.1); color: #312e81; }
body.display-light .lb-row { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
body.display-light .lb-row.lb-me { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2); }
body.display-light .lb-name { color: #1e293b; }
body.display-light .lb-me .lb-name { color: #4338ca; }
body.display-light .lb-rank { color: #64748b; }
body.display-light .lb-filter-note { background: rgba(245,158,11,0.06); }
body.display-light .setting-hint { background: rgba(99,102,241,0.04); color: #475569; }

/* ==========================================
   Small landscape screens (phones)
   ========================================== */
@media (max-height: 420px) {
  .splash-screen { padding: 6px; gap: 8px; }
  .splash-col-left {
    flex: 0 0 280px;
    padding: 8px 10px;
    justify-content: space-between;
  }
  .splash-icon { display: none; }
  .splash-title { font-size: 1.1rem; }
  .splash-subtitle { font-size: 0.6rem; margin-top: 1px; }
  .splash-desc { display: none; }
  
  .mode-select { margin-top: 4px; }
  .mode-select h3 { font-size: 0.55rem; margin-bottom: 3px; }
  .mode-buttons { gap: 3px; }
  .mode-btn { padding: 4px 8px; gap: 8px; }
  .mode-icon { font-size: 1rem; }
  .mode-label { font-size: 0.68rem; }
  .mode-desc { display: none; }
  
  .start-btn { margin-top: 6px; padding: 7px; font-size: 0.85rem; }
  
  .splash-extra-buttons { margin-top: 4px; gap: 4px; flex-wrap: wrap; }
  .splash-extra-btn { padding: 6px 4px; font-size: 0.6rem; flex-direction: column; gap: 2px; flex: 1 1 22%; min-width: 0; }
  .splash-extra-btn .extra-btn-icon { font-size: 0.85rem; }
  .splash-extra-btn .extra-btn-text { font-size: 0.55rem; }
  .splash-extra-btn .extra-btn-badge { min-width: 14px; height: 14px; font-size: 0.45rem; top: -3px; right: -3px; }
  
  .splash-bottom-row { margin-top: 4px; gap: 4px; }
  .bottom-btns-col { gap: 3px; }
  .settings-btn { padding: 5px; font-size: 0.65rem; }
  .stats-preview { padding-top: 0; padding-left: 6px; }
  .stat-item { padding: 2px 6px; flex-direction: row; justify-content: space-between; gap: 8px; }
  .stat-value { font-size: 0.95rem; }
  .stat-label { font-size: 0.55rem; margin-top: 0; }

  .category-header { padding: 6px 10px; font-size: 0.72rem; }
  .category-scroll-area { padding: 6px; }
  .cat-group-row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .cat-btn { padding: 6px 8px; font-size: 0.75rem; gap: 6px; }
  .cat-btn .cat-icon { font-size: 1rem; }
  .cat-group-header { font-size: 0.75rem; margin: 6px 0 4px 4px; }

  .quiz-top-bar { height: 36px; padding: 2px 8px; }
  .back-btn { width: 28px; height: 28px; }
  .back-btn svg { width: 16px; height: 16px; }
  .progress-col { padding: 3px 10px; }
  .progress-text { font-size: 0.55rem; margin-bottom: 2px; }
  .progress-bar { height: 3px; }
  .score-badge { padding: 3px 8px; font-size: 0.65rem; }
  .score-icon { font-size: 0.75rem; }

  .quiz-bottom-panel { padding: 5px 10px; }
  .q-header { margin-bottom: 2px; }
  .cat-badge { font-size: 0.52rem; padding: 2px 6px; }
  .hint-btn { font-size: 0.58rem; padding: 3px 7px; }
  .hint-btn svg { width: 12px; height: 12px; }
  .q-text { font-size: 0.8rem; }
  .q-inst { font-size: 0.55rem; }
  .hint-box { font-size: 0.6rem; padding: 4px 8px; margin-bottom: 2px; }
  .choices { gap: 3px; margin-top: 4px; }
  .choice-btn { padding: 5px; font-size: 0.65rem; }
  .choice-feedback { font-size: 0.58rem; padding: 3px 6px; margin-top: 2px; }

  .streak-indicator { font-size: 0.6rem; padding: 3px 7px; }

  /* Modals on small screens */
  .modal-card { padding: 16px; width: 92vw; }
  .modal-header-icon { font-size: 1.8rem; margin-bottom: 4px; }
  .modal-title { font-size: 1rem; }
  .modal-desc { font-size: 0.6rem; margin-bottom: 10px; }
  .mistakes-menu-btn { padding: 7px 10px; gap: 8px; }
  .mmb-icon { font-size: 1rem; }
  .mmb-label { font-size: 0.68rem; }
  .mmb-desc { font-size: 0.52rem; }
  .mmb-count { min-width: 24px; height: 24px; font-size: 0.65rem; }

  .motivation-card { padding: 16px; width: 90vw; }
  .moti-header { font-size: 0.95rem; margin-bottom: 10px; }
  .moti-line { padding: 7px 10px; font-size: 0.68rem; margin-bottom: 4px; }

  /* Stats modal responsive */
  .stats-modal-card { width: 94vw; max-height: 85vh; padding: 14px; }
  .stats-section { margin-bottom: 10px; }
  .stats-section-title { font-size: 0.68rem; margin-bottom: 5px; }
  .stats-card { padding: 7px 5px; }
  .stats-card-value { font-size: 1.1rem; }
  .stats-card-label { font-size: 0.48rem; }
  .stats-cat-name { font-size: 0.62rem; }
  .stats-cat-detail { font-size: 0.52rem; }
  .stats-cat-bar-bg { height: 4px; }
  .stats-sw-item { font-size: 0.58rem; padding: 4px 6px; }
  .stats-sw-title { font-size: 0.58rem; }

  /* Leaderboard responsive */
  .leaderboard-modal-card { width: 94vw; max-height: 85vh; padding: 14px; }
  .lb-tabs { margin-bottom: 10px; }
  .lb-tab { padding: 7px 8px; font-size: 0.62rem; }
  .lb-row { padding: 6px 8px; gap: 6px; }
  .lb-rank { font-size: 0.72rem; min-width: 20px; }
  .lb-row:nth-child(1) .lb-rank { font-size: 0.9rem; }
  .lb-row:nth-child(2) .lb-rank, .lb-row:nth-child(3) .lb-rank { font-size: 0.85rem; }
  .lb-name { font-size: 0.68rem; }
  .lb-score { font-size: 0.68rem; }
  .lb-percent { font-size: 0.52rem; }
  .lb-filter-note { font-size: 0.52rem; padding: 6px 8px; margin-top: 6px; }
  .setting-hint { font-size: 0.55rem; padding: 4px 6px; }
}

/* ==========================================
   GOOGLE TRIAL PROMO BANNER
   ========================================== */
.google-trial-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(212,168,67,0.1) 0%, rgba(200,146,58,0.06) 30%, rgba(212,168,67,0.08) 60%, rgba(245,200,92,0.1) 100%);
  border: 1px solid rgba(212,168,67,0.35);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: gtb-glow 3s ease-in-out infinite alternate;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
/* Shimmer sweep — luxury light reflection */
.google-trial-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -100%;
  width: 60%; height: 200%;
  background: linear-gradient(100deg, transparent 20%, rgba(245,200,92,0.15) 45%, rgba(255,255,255,0.1) 50%, rgba(245,200,92,0.15) 55%, transparent 80%);
  animation: gtb-shimmer 3.5s ease-in-out infinite;
  z-index: 0;
}
/* Secondary glass reflection */
.google-trial-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  pointer-events: none; z-index: 0;
}
@keyframes gtb-shimmer {
  0% { left: -100%; }
  40% { left: 160%; }
  100% { left: 160%; }
}
@keyframes gtb-glow {
  0% { box-shadow: 0 4px 25px rgba(212,168,67,0.1), 0 0 20px rgba(212,168,67,0.05), inset 0 0 30px rgba(212,168,67,0.02); }
  100% { box-shadow: 0 4px 35px rgba(212,168,67,0.2), 0 0 50px rgba(212,168,67,0.08), inset 0 0 40px rgba(212,168,67,0.03); }
}
.gtb-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: trial-bounce 2s ease-in-out infinite;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(212,168,67,0.35));
}
.gtb-content {
  flex: 1;
  min-width: 0;
  z-index: 1;
}
.gtb-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fde68a;
  line-height: 1.4;
  margin-bottom: 3px;
  text-shadow: 0 0 10px rgba(212,168,67,0.2);
}
.gtb-title strong {
  color: #f5c85c;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(245,200,92,0.3);
}
.gtb-desc {
  font-size: 0.65rem;
  color: rgba(212,168,67,0.75);
  font-weight: 500;
}
.gtb-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f5c85c, #d4a843);
  border: none;
  border-radius: var(--radius-full);
  color: #1a1400;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(212,168,67,0.35), 0 0 12px rgba(212,168,67,0.15);
}
.gtb-btn:active { transform: scale(0.95); box-shadow: 0 2px 10px rgba(212,168,67,0.4); }

/* Light mode */
body.display-light .google-trial-banner {
  background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(245,158,11,0.06));
  border-color: rgba(245,158,11,0.3);
}
body.display-light .gtb-title { color: #92400e; }
body.display-light .gtb-title strong { color: #78350f; }
body.display-light .gtb-desc { color: #a16207; }

/* Small landscape screens */
@media (max-height: 420px) {
  .google-trial-banner { padding: 8px 12px; gap: 10px; margin-bottom: 12px; }
  .gtb-icon { font-size: 1.4rem; }
  .gtb-title { font-size: 0.7rem; }
  .gtb-desc { font-size: 0.55rem; }
  .gtb-btn { padding: 6px 10px; font-size: 0.68rem; }
}

/* Force landscape via Screen Orientation API on load (handled in JS) */

/* ==========================================
   OFFLINE BADGE
   ========================================== */
.offline-badge {
  position: fixed; top: 0; left: 0; right: 0;
  background: #ef4444; color: white;
  text-align: center; font-size: 0.75rem; font-weight: 700;
  padding: 6px; z-index: 9999;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
  animation: slide-down 0.3s ease-out;
}
@keyframes slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ==========================================
   TRIAL TIMER BADGE
   ========================================== */
.trial-timer-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(212,168,67,0.18), rgba(200,146,58,0.12));
  border: 1px solid rgba(212,168,67,0.4);
  border-radius: var(--radius-full);
  animation: trial-pulse 2.5s ease-in-out infinite;
  cursor: default;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.trial-gift-icon {
  font-size: 1.1rem;
  animation: trial-bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(212,168,67,0.4));
}

.trial-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #d4a843;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(212,168,67,0.2);
}

.trial-countdown {
  font-size: 0.82rem;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  color: #f5c85c;
  text-shadow: 0 0 10px rgba(212,168,67,0.5), 0 0 20px rgba(212,168,67,0.2);
}

@keyframes trial-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(212,168,67,0.15), inset 0 0 15px rgba(212,168,67,0.03); }
  50% { box-shadow: 0 0 25px rgba(212,168,67,0.3), 0 0 50px rgba(212,168,67,0.08), inset 0 0 20px rgba(212,168,67,0.05); }
}

@keyframes trial-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* ==========================================
   TRIAL EXPIRED POPUP
   ========================================== */
.trial-expired-card {
  width: min(94vw, 420px);
  max-height: 90vh;
  padding: 28px 24px;
  text-align: center;
  overflow-y: auto;
}

.trial-expired-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  animation: trial-shake 0.6s ease-in-out;
}

@keyframes trial-shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(8deg); }
}

.trial-expired-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trial-expired-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.trial-expired-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  text-align: left;
}

.trial-feature-item {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 7px 12px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: var(--radius-md);
  line-height: 1.4;
}

.trial-expired-close {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.trial-expired-close:hover,
.trial-expired-close:active {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
}

/* Light mode adjustments */
body.display-light .trial-timer-badge {
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.1));
  border-color: rgba(245,158,11,0.35);
}
body.display-light .trial-label { color: #b45309; }
body.display-light .trial-countdown { color: #92400e; text-shadow: none; }
body.display-light .trial-expired-title { -webkit-text-fill-color: #92400e; }
body.display-light .trial-expired-close { border-color: rgba(0,0,0,0.1); color: #64748b; }

/* Small landscape screens */
@media (max-height: 420px) {
  .trial-timer-badge { padding: 5px 10px; margin-top: 5px; gap: 5px; }
  .trial-gift-icon { font-size: 0.9rem; }
  .trial-label { font-size: 0.6rem; }
  .trial-countdown { font-size: 0.72rem; }
  .trial-expired-card { padding: 18px 16px; }
  .trial-expired-icon { font-size: 2.5rem; margin-bottom: 6px; }
  .trial-expired-title { font-size: 1rem; }
  .trial-expired-desc { font-size: 0.68rem; margin-bottom: 10px; }
  .trial-feature-item { font-size: 0.62rem; padding: 5px 8px; }
  .trial-expired-close { padding: 7px; font-size: 0.62rem; }
}

/* ==========================================
   PREMIUM SUCCESS MODAL
   ========================================== */
.premium-success-card {
  width: min(94vw, 440px);
  max-height: 90vh;
  padding: 28px 22px;
  text-align: center;
  overflow-y: auto;
  position: relative;
}

/* Confetti particles */
.ps-confetti-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ps-confetti {
  position: absolute;
  font-size: 1.4rem;
  animation: ps-confetti-fall 3s ease-in-out infinite;
  opacity: 0;
}
.ps-confetti.c1 { top: -10%; left: 10%; animation-delay: 0s; }
.ps-confetti.c2 { top: -10%; left: 30%; animation-delay: 0.4s; }
.ps-confetti.c3 { top: -10%; left: 55%; animation-delay: 0.8s; }
.ps-confetti.c4 { top: -10%; left: 75%; animation-delay: 1.2s; }
.ps-confetti.c5 { top: -10%; left: 90%; animation-delay: 1.6s; }
@keyframes ps-confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

.ps-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  animation: ps-diamond-pulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 16px rgba(139,92,246,0.5));
}
@keyframes ps-diamond-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.ps-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #a78bfa, #f472b6, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ps-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.ps-section {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  text-align: left;
}

.ps-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ps-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ps-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 8px;
  background: linear-gradient(145deg, rgba(139,92,246,0.08), rgba(99,102,241,0.05));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.2s;
}
.ps-feature-card:hover { transform: translateY(-2px); }

.ps-feat-icon {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.ps-feat-name {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
}

.ps-feat-desc {
  font-size: 0.58rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.ps-cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ps-cat-tag {
  padding: 5px 10px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 700;
  color: #6ee7b7;
  white-space: nowrap;
}

.ps-total-badge {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius-md);
  padding: 8px;
}
.ps-total-badge strong {
  font-weight: 900;
  font-size: 0.85rem;
  color: #10b981;
}

.ps-close-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 14px;
  margin-top: 4px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1, #3b82f6);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
  transition: all 0.2s;
}
.ps-close-btn:active { transform: scale(0.96); }

/* Light mode */
body.display-light .ps-title { -webkit-text-fill-color: #1e293b; background: none; }
body.display-light .ps-section-title { color: #6366f1; }
body.display-light .ps-feature-card { background: rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.2); }
body.display-light .ps-feat-name { color: #1e293b; }
body.display-light .ps-cat-tag { color: #059669; background: rgba(16,185,129,0.06); }
body.display-light .ps-total-badge { color: #047857; }

/* ==========================================
   DAILY QUIZ ALREADY TAKEN MODAL
   ========================================== */
.daily-taken-card {
  width: min(94vw, 420px);
  max-height: 90vh;
  padding: 28px 22px;
  text-align: center;
  overflow-y: auto;
}

.dt-icon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

.dt-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 12px rgba(59,130,246,0.3));
}

.dt-check {
  position: absolute;
  bottom: -2px;
  right: -8px;
  font-size: 1.4rem;
  background: rgba(15,23,42,0.9);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(16,185,129,0.5);
  animation: dt-check-pop 0.5s ease-out;
}
@keyframes dt-check-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.dt-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.dt-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.dt-info-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.dt-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  text-align: left;
}

.dt-info-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.dt-info-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.dt-info-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
}

.dt-info-value {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.dt-tip {
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(251,191,36,0.05));
  border: 1px solid rgba(245,158,11,0.25);
  border-left: 3px solid #f59e0b;
  border-radius: 4px var(--radius-md) var(--radius-md) 4px;
  font-size: 0.68rem;
  color: #fde68a;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 16px;
}
.dt-tip strong { color: #fbbf24; }

.dt-actions {
  display: flex;
  gap: 8px;
}

.dt-lb-btn {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.1));
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: var(--radius-md);
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}
.dt-lb-btn:active { transform: scale(0.96); background: rgba(245,158,11,0.25); }

.dt-close-btn {
  flex: 1;
  padding: 12px;
  background: var(--gradient-main);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(236,72,153,0.3);
  transition: all 0.2s;
}
.dt-close-btn:active { transform: scale(0.96); }

/* Light mode */
body.display-light .dt-info-card { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); }
body.display-light .dt-info-label { color: #1e293b; }
body.display-light .dt-info-value { color: #64748b; }
body.display-light .dt-tip { color: #92400e; background: rgba(245,158,11,0.06); }
body.display-light .dt-tip strong { color: #78350f; }
body.display-light .dt-check { background: rgba(255,255,255,0.95); }
body.display-light .dt-lb-btn { color: #b45309; background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.3); }

/* Small landscape screens */
@media (max-height: 420px) {
  .premium-success-card { padding: 16px 14px; }
  .ps-icon { font-size: 2.5rem; }
  .ps-title { font-size: 1.1rem; }
  .ps-subtitle { font-size: 0.68rem; margin-bottom: 12px; }
  .ps-section-title { font-size: 0.62rem; }
  .ps-features-grid { gap: 5px; }
  .ps-feature-card { padding: 8px 5px; }
  .ps-feat-icon { font-size: 1rem; }
  .ps-feat-name { font-size: 0.62rem; }
  .ps-feat-desc { font-size: 0.5rem; }
  .ps-cat-tag { font-size: 0.55rem; padding: 3px 7px; }
  .ps-total-badge { font-size: 0.62rem; padding: 5px; }
  .ps-close-btn { padding: 10px; font-size: 0.85rem; }

  .daily-taken-card { padding: 16px 14px; }
  .dt-icon { font-size: 2.2rem; }
  .dt-title { font-size: 1rem; }
  .dt-subtitle { font-size: 0.65rem; margin-bottom: 10px; }
  .dt-info-card { padding: 8px 10px; }
  .dt-info-icon { font-size: 1rem; }
  .dt-info-label { font-size: 0.62rem; }
  .dt-info-value { font-size: 0.55rem; }
  .dt-tip { font-size: 0.58rem; padding: 7px 10px; }
  .dt-lb-btn, .dt-close-btn { padding: 9px; font-size: 0.72rem; }
}

/* ===== PERFORMANCE: Reduce animations on low-power devices ===== */
@media (prefers-reduced-motion: reduce) {
  .mode-card::after, .extra-card::after, .home-action-btn::after,
  .home-profile-card::after, .google-trial-banner::before,
  .geo-deco, .home-screen::before { animation: none !important; }
}
/* Reduce backdrop-filter on small screens for performance */
@media (max-height: 500px) {
  .mode-card, .extra-card, .home-action-btn, .home-profile-card {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}

/* =========================================
   Onboarding Modal Styles
   ========================================= */
.onboarding-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(56, 189, 248, 0.1);
    border-radius: 24px;
    padding: 0;
    width: min(95vw, 450px);
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.onboarding-header {
    padding: 20px 20px 15px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.15), transparent 70%);
    flex-shrink: 0;
}

.ob-icon-top {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.4));
    animation: float 3s ease-in-out infinite;
}

.ob-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.ob-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
}

.onboarding-content {
    padding: 0 20px 15px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Custom scrollbar for onboarding content */
.onboarding-content::-webkit-scrollbar {
    width: 4px;
}
.onboarding-content::-webkit-scrollbar-track {
    background: transparent;
}
.onboarding-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.ob-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.ob-feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.ob-feat-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.ob-feat-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ob-feat-title {
    font-weight: 700;
    color: #e2e8f0;
    font-size: 1rem;
}

.ob-feat-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.35;
}

.ob-premium-item {
    background: linear-gradient(135deg, rgba(202, 138, 4, 0.1), rgba(234, 179, 8, 0.05));
    border-color: rgba(234, 179, 8, 0.2);
}

.ob-premium-item .ob-feat-icon {
    background: rgba(234, 179, 8, 0.2);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

.ob-premium-item .ob-feat-title {
    color: #fef08a;
}

.ob-start-btn {
    margin: 10px 20px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ob-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(56, 189, 248, 0.5);
}

.ob-start-btn:active {
    transform: translateY(1px);
}

/* ==========================================
   FCM IN-APP NOTIFICATION TOAST
   ========================================== */
.fcm-toast {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  min-width: 300px;
  max-width: 90vw;
  background: linear-gradient(145deg, rgba(20, 28, 55, 0.95), rgba(12, 18, 40, 0.98));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 168, 67, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
  cursor: pointer;
}
.fcm-toast.show {
  top: calc(env(safe-area-inset-top, 12px) + 12px);
  opacity: 1;
}
.fcm-toast-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  animation: fcm-bell 0.6s ease 0.4s;
}
@keyframes fcm-bell {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-5deg); }
}
.fcm-toast-content {
  flex: 1;
  min-width: 0;
}
.fcm-toast-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #f0e6d0;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcm-toast-body {
  font-size: 0.75rem;
  font-weight: 500;
  color: #b8c0d4;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fcm-toast-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.2s;
}
.fcm-toast-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}
/* Light mode toast */
body.display-light .fcm-toast {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(180, 140, 50, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(180, 140, 50, 0.05);
}
body.display-light .fcm-toast-title { color: #1e293b; }
body.display-light .fcm-toast-body { color: #475569; }
body.display-light .fcm-toast-close { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.08); color: #64748b; }

/* ==========================================
   Şehir Künyeleri Modal
   ========================================== */
.sehir-kunye-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  animation: sk-overlay-in 0.3s ease-out;
}
@keyframes sk-overlay-in { from { opacity: 0; } to { opacity: 1; } }

.sehir-kunye-card {
  position: relative;
  width: min(92vw, 420px); max-height: 85vh; overflow-y: auto;
  background: linear-gradient(180deg, rgba(30,41,59,0.97) 0%, rgba(15,23,42,0.97) 100%);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 50px rgba(99,102,241,0.1);
  animation: sk-card-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes sk-card-in {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.sk-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: #94a3b8; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.sk-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.sk-close:active { transform: scale(0.9); }

/* Header */
.sk-header {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sk-plaka {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 14px;
  font-size: 1.3rem; font-weight: 900; color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
  letter-spacing: -0.5px;
}
.sk-titles { flex: 1; min-width: 0; }
.sk-city-name {
  font-size: 1.25rem; font-weight: 900; color: #f1f5f9;
  margin: 0; line-height: 1.2;
}
.sk-region {
  font-size: 0.7rem; font-weight: 600; color: #818cf8;
  display: inline-block; margin-top: 3px;
  padding: 2px 8px; border-radius: 20px;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.2);
}

/* Items */
.sk-items {
  padding: 14px 20px 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.sk-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  transition: all 0.2s;
  animation: sk-item-in 0.35s ease-out both;
}
.sk-item:nth-child(1) { animation-delay: 0.05s; }
.sk-item:nth-child(2) { animation-delay: 0.1s; }
.sk-item:nth-child(3) { animation-delay: 0.15s; }
.sk-item:nth-child(4) { animation-delay: 0.2s; }
.sk-item:nth-child(5) { animation-delay: 0.25s; }
.sk-item:nth-child(6) { animation-delay: 0.3s; }
.sk-item:nth-child(7) { animation-delay: 0.35s; }
@keyframes sk-item-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.sk-item:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }

.sk-item-icon {
  font-size: 1.2rem; flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.08);
  border-radius: 8px;
}
.sk-item-content { flex: 1; min-width: 0; }
.sk-item-label {
  font-size: 0.62rem; font-weight: 700; color: #818cf8;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.sk-item-value {
  font-size: 0.78rem; font-weight: 600; color: #e2e8f0;
  line-height: 1.4;
}

/* Footer */
.sk-footer {
  text-align: center;
  padding: 10px 20px 16px;
  font-size: 0.6rem; font-weight: 700; color: #64748b;
  letter-spacing: 0.5px; text-transform: uppercase;
}

/* Kunye mode card styling */
.mode-card-kunye {
  border-color: rgba(99,102,241,0.2) !important;
  background: linear-gradient(145deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05)) !important;
}

/* Kunye mode — quiz screen overrides: hide quiz-specific elements */
.quiz-screen.kunye-mode .quiz-bottom-panel,
.quiz-screen.kunye-mode .floating-question,
.quiz-screen.kunye-mode .quiz-floating-actions,
.quiz-screen.kunye-mode .name-choices-panel,
.quiz-screen.kunye-mode .floating-hint-box {
  display: none !important;
}
.quiz-screen.kunye-mode .progress-col,
.quiz-screen.kunye-mode .score-badge,
.quiz-screen.kunye-mode .timer-badge {
  display: none !important;
}

/* Kunye mode banner */
.kunye-banner {
  position: absolute; top: 52px; left: 50%; transform: translateX(-50%);
  z-index: 800;
  padding: 6px 18px;
  background: linear-gradient(135deg, rgba(99,102,241,0.85), rgba(139,92,246,0.85));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
  pointer-events: none;
  white-space: nowrap;
}

/* ---- Light Mode Overrides ---- */
body.display-light .sehir-kunye-overlay { background: rgba(0,0,0,0.35); }
body.display-light .sehir-kunye-card {
  background: rgba(255,255,255,0.97);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}
body.display-light .sk-close { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); color: #64748b; }
body.display-light .sk-city-name { color: #1e293b; }
body.display-light .sk-region { color: #6366f1; background: rgba(99,102,241,0.08); }
body.display-light .sk-header { border-color: rgba(0,0,0,0.06); }
body.display-light .sk-item { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
body.display-light .sk-item:hover { background: rgba(0,0,0,0.04); }
body.display-light .sk-item-label { color: #6366f1; }
body.display-light .sk-item-value { color: #334155; }
body.display-light .sk-footer { color: #94a3b8; }
body.display-light .sk-item-icon { background: rgba(99,102,241,0.06); }

/* ==========================================
   Clickable Profile
   ========================================== */
.clickable-profile {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px;
}
.clickable-profile:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
}
body.display-light .clickable-profile:hover {
  background: rgba(0,0,0,0.03);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ==========================================
   Achievements Modal
   ========================================== */
.achievements-modal-card {
  width: min(92vw, 500px);
  max-height: 85vh;
  padding: 24px;
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 5px;
}
.badge-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.badge-item.unlocked {
  background: linear-gradient(135deg, rgba(212,168,67,0.1), rgba(245,200,92,0.05));
  border-color: rgba(212,168,67,0.4);
  box-shadow: 0 4px 15px rgba(212,168,67,0.1);
}
.badge-item.locked {
  opacity: 0.5;
  filter: grayscale(100%);
}
.badge-item-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.badge-item.unlocked .badge-item-icon {
  filter: drop-shadow(0 0 10px rgba(245,200,92,0.5));
}
.badge-item-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.badge-item.unlocked .badge-item-title {
  color: #fde68a;
}
.badge-item-desc {
  font-size: 0.58rem;
  color: #94a3b8;
  line-height: 1.3;
}
.badge-item-date {
  font-size: 0.5rem;
  color: #fbbf24;
  margin-top: 6px;
  font-weight: 600;
}

body.display-light .badge-item { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
body.display-light .badge-item.unlocked { background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(251,191,36,0.05)); border-color: rgba(245,158,11,0.3); }
body.display-light .badge-item.unlocked .badge-item-title { color: #92400e; }
body.display-light .badge-item-title { color: #1e293b; }
body.display-light .badge-item-desc { color: #64748b; }

.badge-item.unlocked { cursor: pointer; }
.badge-item.selected {
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245,158,11,0.5);
  transform: translateY(-2px);
}
.badge-item.selected::after {
  content: '📌 Vitrinde';
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.5rem;
  background: rgba(245,158,11,0.9);
  color: #fff;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: bold;
}

/* ==========================================
   Badge Toast Notification
   ========================================== */
.badge-toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
}
.badge-toast {
  border: 1px solid rgba(245,200,92,0.5);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px rgba(245,200,92,0.2);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toast-in-out 5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.badge-toast-icon {
  font-size: 2rem;
  animation: badge-bounce 1s ease infinite alternate;
}
.badge-toast-content {
  display: flex;
  flex-direction: column;
}
.badge-toast-title {
  font-size: 0.75rem;
  font-weight: 900;
  color: #fde68a;
  margin-bottom: 2px;
}
.badge-toast-desc {
  font-size: 0.65rem;
  color: #cbd5e1;
}
body.display-light .badge-toast {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-color: rgba(245,158,11,0.4);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1), 0 0 20px rgba(245,158,11,0.15);
}
body.display-light .badge-toast-title { color: #92400e; }
body.display-light .badge-toast-desc { color: #475569; }

/* Warning Toast Variant */
.badge-toast-warning {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px rgba(239, 68, 68, 0.2);
}
.badge-toast-warning .badge-toast-title {
  color: #fca5a5;
}
.badge-toast-warning .badge-toast-icon {
  animation: warning-shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
body.display-light .badge-toast-warning {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1), 0 0 20px rgba(239, 68, 68, 0.15);
}
body.display-light .badge-toast-warning .badge-toast-title {
  color: #b91c1c;
}

@keyframes warning-shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

@keyframes toast-in-out {
  0% { transform: translateY(-100px) scale(0.8); opacity: 0; }
  10% { transform: translateY(0) scale(1.05); opacity: 1; }
  15% { transform: translateY(0) scale(1); opacity: 1; }
  85% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-100px) scale(0.8); opacity: 0; }
}
@keyframes badge-bounce {
  from { transform: translateY(0) scale(1); filter: drop-shadow(0 0 5px rgba(245,200,92,0.4)); }
  to { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 0 15px rgba(245,200,92,0.8)); }
}

/* ==========================================
   Leaderboard Badges
   ========================================== */
.lb-badges {
  display: flex;
  gap: 3px;
  align-items: center;
}
.lb-badge {
  font-size: 0.85rem;
  cursor: help;
  position: relative;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
  transition: transform 0.2s;
}
.lb-badge:hover {
  transform: scale(1.2);
}
.lb-badge[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
  border: 1px solid rgba(255,255,255,0.1);
}
.lb-badge:hover::after {
  opacity: 1;
}
.lb-row:first-child .lb-badge[data-tooltip]::after,
.lb-row:nth-child(2) .lb-badge[data-tooltip]::after {
  bottom: auto;
  top: 100%;
  transform: translateX(-50%) translateY(5px);
}

/* ==========================================
   Dilsiz Harita (Blank Map) Mode - Geo Markers
   ========================================== */

/* ---- Lake Markers (circle) ---- */
.geo-lake-marker {
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lake-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  opacity: 0.85;
  border: 3px solid;
  box-shadow: 0 0 10px rgba(41, 182, 246, 0.5), inset 0 0 6px rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  cursor: pointer;
}
.lake-circle:hover {
  transform: scale(1.3);
  opacity: 1;
  box-shadow: 0 0 18px rgba(41, 182, 246, 0.7), inset 0 0 8px rgba(255, 255, 255, 0.2);
}

/* ---- Volcano Markers (triangle) ---- */
.geo-volcano-marker {
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.volcano-triangle {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid #FFA726;
  filter: drop-shadow(0 0 8px rgba(255, 167, 38, 0.6));
  transition: all 0.25s ease;
  cursor: pointer;
}
.volcano-triangle:hover {
  transform: scale(1.25);
  filter: drop-shadow(0 0 14px rgba(255, 167, 38, 0.8));
}

/* ---- Correct / Wrong feedback for point markers ---- */
.geo-correct .lake-circle {
  background: #10b981 !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.7), 0 0 40px rgba(16, 185, 129, 0.3);
  animation: geo-pulse-correct 0.6s ease-out;
}
.geo-correct .volcano-triangle {
  border-bottom-color: #10b981 !important;
  filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.8));
  animation: geo-pulse-correct 0.6s ease-out;
}
.geo-wrong .lake-circle {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.7), 0 0 40px rgba(239, 68, 68, 0.3);
  animation: geo-shake 0.5s ease-out;
}
.geo-wrong .volcano-triangle {
  border-bottom-color: #ef4444 !important;
  filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.8));
  animation: geo-shake 0.5s ease-out;
}
@keyframes geo-pulse-correct {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1.15); }
}
@keyframes geo-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* ---- Pulse Marker (used in Name mode) ---- */
.pulse-marker {
  background: transparent !important;
  border: none !important;
}
.pulse-marker-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: #8b5cf6;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
  z-index: 2;
}
.pulse-marker-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.25);
  border: 2px solid rgba(139, 92, 246, 0.5);
  animation: pulse-ring 1.5s ease-out infinite;
  z-index: 1;
}
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

body.premium-active .lock-icon { display: none !important; }
