/* ========================================
   INITIALS - Spanish Learning App for Kids
   CSS Stylesheet
   ======================================== */

/* ========================================
   1. RESET & BASE STYLES
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: #f8fafc;
  color: #1f2937;
  min-height: 100vh;
  line-height: 1.5;
}

/* ========================================
   2. ANIMATIONS
   ======================================== */

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

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

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

/* ========================================
   3. LOGIN SCREEN
   ======================================== */

.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a0533, #0d1b3e, #0a2a1f, #2a0a2e, #1a0533);
  background-size: 400% 400%;
  animation: loginBgShift 12s ease infinite;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

@keyframes loginBgShift {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 0%; }
  75% { background-position: 0% 100%; }
}

/* Login color orbs */
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

.login-floating {
  position: absolute;
  font-size: 40px;
  opacity: 0.5;
  animation: floatAround 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.login-float-1 { top: 10%; left: 8%; animation-delay: 0s; animation-duration: 5s; }
.login-float-2 { top: 15%; right: 12%; animation-delay: 1s; animation-duration: 7s; }
.login-float-3 { bottom: 20%; left: 15%; animation-delay: 0.5s; animation-duration: 6s; }
.login-float-4 { bottom: 12%; right: 8%; animation-delay: 2s; animation-duration: 5.5s; }
.login-float-5 { top: 50%; left: 5%; animation-delay: 1.5s; animation-duration: 8s; }
.login-float-6 { top: 40%; right: 5%; animation-delay: 0.8s; animation-duration: 6.5s; }

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

.login-container {
  background: rgba(15, 10, 30, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 48px 36px 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(251,191,36,0.05);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}

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

.login-logo-area {
  margin-bottom: 24px;
}

.login-logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316, #f472b6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(251,191,36,0.3);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(251,191,36,0.3); }
  50% { box-shadow: 0 8px 36px rgba(251,191,36,0.5), 0 0 20px rgba(244,114,182,0.2); }
}

.logo {
  text-align: center;
  margin-bottom: 24px;
}

.logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 52px;
  background: linear-gradient(135deg, #ff6b9d, #fbbf24, #4ade80, #4dc9f6, #c44dff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowText 4s ease infinite;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}

.subtitle {
  color: #94a3b8;
  font-size: 16px;
  text-align: center;
  margin-bottom: 8px;
}

.login-prompt {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.role-cards-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  min-height: 200px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 24px 20px;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.1);
  font-family: 'Nunito', sans-serif;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.role-card:hover::before {
  opacity: 1;
}

.role-card:hover {
  transform: translateY(-8px) scale(1.03);
}

.role-card:active {
  transform: translateY(-2px) scale(0.98);
}

.teacher-card {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
  border-color: rgba(196,132,252,0.3);
}
.teacher-card:hover {
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.4), 0 0 30px rgba(196,132,252,0.15);
  border-color: rgba(196,132,252,0.5);
}

.role-card.student-card {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
  border-color: rgba(52,211,153,0.3);
}
.role-card.student-card:hover {
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.4), 0 0 30px rgba(52,211,153,0.15);
  border-color: rgba(52,211,153,0.5);
}

.role-icon {
  font-size: 56px;
  margin-bottom: 12px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.3));
}

.role-title {
  font-family: 'Fredoka One', cursive;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.role-subtitle {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
  font-weight: 600;
}

/* ── Teacher Login Form ── */
.teacher-login-form {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-field { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.login-field label {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.login-field input {
  padding: 12px 14px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255,255,255,0.06);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.login-field input:focus { border-color: #c084fc; background: rgba(255,255,255,0.1); }
.login-field input::placeholder { color: #64748b; font-weight: 400; }
.login-error {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  color: #f87171;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.login-submit-btn {
  padding: 14px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}
.login-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,58,237,0.5); }
.login-submit-btn:active { transform: translateY(0); }
.login-back-link {
  background: none;
  border: none;
  color: #94a3b8;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  padding: 8px;
  transition: color 0.15s;
}
.login-back-link:hover { color: #c084fc; }

/* ========================================
   4. STUDENT CODE ENTRY
   ======================================== */

.student-code-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1b3e, #1a0533, #0a2a1f);
  background-size: 400% 400%;
  animation: loginBgShift 12s ease infinite;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.student-code-entry::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,0.3), transparent);
  border-radius: 50%;
  top: -80px; right: -60px;
  filter: blur(60px);
  animation: orbFloat 9s ease-in-out infinite;
}

.student-code-entry::after {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(251,191,36,0.25), transparent);
  border-radius: 50%;
  bottom: -60px; left: -40px;
  filter: blur(60px);
  animation: orbFloat 7s ease-in-out infinite reverse;
}

.code-container {
  background: rgba(15, 10, 30, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px 32px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  animation: slideIn 0.6s ease-out;
  color: #e2e8f0;
  position: relative;
  z-index: 1;
}

.code-container h2 {
  color: #e2e8f0;
  font-family: 'Fredoka One', cursive;
}

.code-input {
  padding: 16px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  width: 200px;
  margin: 0 auto;
  border: 3px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.06);
  color: #fbbf24;
}

.code-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ========================================
   5. STUDENT SELECTOR
   ======================================== */

.student-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  padding: 20px;
}

.selector-container {
  max-width: 600px;
  width: 100%;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  animation: slideIn 0.6s ease-out;
}

.student-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.student-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.student-avatar {
  font-size: 64px;
  margin-bottom: 12px;
  display: block;
}

.student-name {
  font-weight: 700;
  font-size: 18px;
  color: #1f2937;
}

/* ========================================
   6. TOP NAVIGATION BAR
   ======================================== */

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: linear-gradient(135deg, #f8fafc, #f0f4ff, #faf5ff);
  border-bottom: 2px solid rgba(124,58,237,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(124,58,237,0.06);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-counter {
  background-color: #fef3c7;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  color: #d97706;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.streak {
  background-color: #fce7f3;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  color: #db2777;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.student-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.teacher-label {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(124,58,237,0.25);
  letter-spacing: 0.3px;
}

.class-code {
  background-color: #e0e7ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  color: #4f46e5;
  font-size: 13px;
}

.btn-logout,
.btn-back {
  background: linear-gradient(135deg, #f1f5f9, #ede9fe);
  border: 1px solid rgba(124,58,237,0.08);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  color: #1f2937;
}

.btn-logout:hover,
.btn-back:hover {
  background-color: #e2e8f0;
}

/* ========================================
   7. STUDENT DASHBOARD
   ======================================== */

.student-dashboard {
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
}

.dashboard-content h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 28px;
  color: #1f2937;
}

.subtemas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.subtema-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 3px solid transparent;
  position: relative;
}

.subtema-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: #4f46e5;
}

.subtema-icon {
  font-size: 48px;
  margin-bottom: 8px;
  display: block;
}

.subtema-title {
  font-weight: 700;
  font-size: 16px;
  color: #1f2937;
  margin-top: 8px;
}

.week-badge {
  background-color: #fef3c7;
  color: #d97706;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
  margin-top: 8px;
}

.completion-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 24px;
}

/* ========================================
   8. TEACHER DASHBOARD
   ======================================== */

.teacher-dashboard {
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(180deg, #faf8ff 0%, #f0f4ff 40%, #f8fafc 100%);
  min-height: calc(100vh - 60px);
}

.teacher-dashboard h2 {
  font-family: 'Fredoka One', cursive;
  color: #4f46e5;
  font-size: 22px;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.teacher-dashboard h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #f472b6, #fbbf24);
  border-radius: 2px;
}

.modulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.modulo-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0,0,0,0.03);
  border: 1px solid rgba(124,58,237,0.06);
}

.modulo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(124,58,237,0.12), 0 6px 12px rgba(0,0,0,0.08);
  border-color: rgba(124,58,237,0.12);
}

.modulo-locked {
  opacity: 0.55;
  cursor: default !important;
  filter: grayscale(0.3);
}

.modulo-locked:hover {
  transform: none !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

.modulo-header {
  padding: 30px 20px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  position: relative;
  overflow: hidden;
}

.modulo-header::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.modulo-icon {
  font-size: 48px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.modulo-title {
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.modulo-content {
  padding: 18px;
}

.modulo-description {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.modulo-info {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
  color: #a78bfa;
  font-weight: 600;
}

.modulo-lock {
  text-align: center;
  padding: 8px;
  background: linear-gradient(135deg, #f1f5f9, #ede9fe);
  color: #9ca3af;
  font-weight: 600;
}

/* ========================================
   9. TEACHER MODULE VIEW
   ======================================== */

.teacher-modulo-view {
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.subtema-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.subtema-tabs::-webkit-scrollbar {
  height: 6px;
}

.subtema-tabs::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.subtema-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.subtema-tab {
  padding: 10px 20px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background-color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  color: #1f2937;
}

.subtema-tab:hover {
  border-color: #4f46e5;
  color: #4f46e5;
}

.subtema-tab.active {
  background-color: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

.subtema-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-section {
  border-left: 4px solid #4f46e5;
}

/* ========================================
   10. ACTIVITY VIEW & STUDENT SUBTEMA
   ======================================== */

.student-subtema-view {
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.subtema-header {
  text-align: center;
  margin-bottom: 24px;
}

.subtema-header h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 32px;
  color: #1f2937;
  margin-bottom: 8px;
}

.subtema-header p {
  color: #6b7280;
  font-size: 16px;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.activity-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 3px solid transparent;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: #4f46e5;
}

.activity-icon {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
}

.activity-label {
  font-weight: 700;
  font-size: 14px;
  color: #1f2937;
  margin-top: 6px;
}

/* Rich activity cards with gradient backgrounds */
.activity-card-rich {
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  color: #ffffff;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.activity-card-rich:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.activity-card-rich:active {
  transform: translateY(-2px) scale(0.98);
}

.activity-icon-rich {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.activity-label-rich {
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  margin-top: 4px;
}

.activity-count {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.completion-badge {
  font-size: 13px;
  font-weight: 700;
  color: #fef3c7;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* External links */
.external-links-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.external-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.external-link-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.ext-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.ext-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ext-name {
  font-weight: 700;
  font-size: 15px;
  color: #1f2937;
}

.ext-platform {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ext-arrow {
  font-size: 20px;
  color: #9ca3af;
  font-weight: 700;
}

.certificate-btn {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1f2937;
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  margin-top: 10px;
}

.certificate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Student Certificate Celebration Screen */
.certificate-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #ffd452 100%);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  gap: 24px;
}

.certificate-celebration {
  text-align: center;
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cert-confetti-text {
  font-size: 48px;
  animation: bounce 1s ease infinite;
}

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

.cert-title {
  font-family: 'Fredoka One', cursive;
  font-size: 56px;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
  margin: 10px 0 5px;
}

.cert-subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  font-weight: 700;
}

.certificate-card {
  background: white;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 600px;
  width: 100%;
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s both;
}

.cert-border {
  border: 3px solid #7c3aed;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cert-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #06d6a0, #fbbf24);
  opacity: 0.15;
}

.cert-header {
  position: relative;
  z-index: 1;
}

.cert-trophy {
  font-size: 50px;
}

.cert-heading {
  font-family: 'Fredoka One', cursive;
  font-size: 36px;
  color: #e91e8b;
  margin: 5px 0;
}

.cert-present {
  color: #6b7280;
  font-size: 16px;
  margin: 5px 0 15px;
}

.cert-student-name {
  font-family: 'Fredoka One', cursive;
  font-size: 36px;
  color: #7c3aed;
  margin: 10px 0;
}

.cert-body {
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
  margin: 8px 20px;
}

.cert-footer {
  margin-top: 20px;
}

.cert-stars {
  font-size: 28px;
  letter-spacing: 6px;
}

.cert-program {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 5px;
}

.cert-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s both;
}

.btn-certificate {
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
  color: #1f2937 !important;
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
}

.btn-certificate:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

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

.game-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 3px solid transparent;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: #e91e63;
}

.game-icon {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
}

.game-label {
  font-weight: 700;
  font-size: 14px;
  color: #1f2937;
  margin-top: 6px;
}

.activity-view {
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.activity-header .progress {
  background: none;
  height: auto;
  overflow: visible;
  width: auto;
  font-size: 16px;
  font-weight: 700;
  color: #4f46e5;
  border-radius: 0;
}

.activity-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ========================================
   11. FLASHCARD
   ======================================== */

.flashcard-container {
  max-width: 400px;
  margin: 40px auto;
  perspective: 1000px;
}

.flashcard {
  width: 100%;
  min-height: 250px;
  position: relative;
  cursor: pointer;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  padding: 24px;
  text-align: center;
}

.flashcard-front {
  background: #ffffff;
  color: #1f2937;
  border: 3px solid #e5e7eb;
  flex-direction: column;
  gap: 8px;
}

.flashcard-english-hint {
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.flashcard-back {
  background: #4f46e5;
  color: #ffffff;
  transform: rotateY(180deg);
}

/* ========================================
   12. QUIZ
   ======================================== */

.quiz-container {
  max-width: 500px;
  margin: 40px auto;
}

.quiz-question {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #1f2937;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  background: #ffffff;
  border: 3px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: left;
  color: #1f2937;
}

.quiz-option:hover {
  border-color: #4f46e5;
  background-color: #f0f0ff;
}

.quiz-option.correct {
  border-color: #10b981;
  background-color: #ecfdf5;
}

.quiz-option.wrong {
  border-color: #ef4444;
  background-color: #fef2f2;
}

/* ========================================
   13. MATCHING
   ======================================== */

.matching-container {
  display: flex;
  gap: 20px;
  max-width: 600px;
  margin: 40px auto;
}

.matching-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.matching-word {
  padding: 14px;
  background: #ffffff;
  border: 3px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #1f2937;
}

.matching-word:hover {
  border-color: #4f46e5;
}

.matching-word.selected {
  border-color: #4f46e5;
  background-color: #eef2ff;
}

.matching-word.matched {
  border-color: #10b981;
  background-color: #ecfdf5;
  opacity: 0.6;
}

/* Interactive Matching Game */
.matching-game {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 650px;
  margin: 20px auto;
  padding: 0 16px;
}

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

.match-card {
  padding: 14px 16px;
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  transition: all 0.2s ease;
  color: #1e293b;
  user-select: none;
}

.match-card:hover:not(.match-done) {
  border-color: #818cf8;
  background: #f5f3ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99,102,241,0.15);
}

.match-card.match-selected {
  border-color: #6366f1;
  background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.3);
  transform: scale(1.03);
}

.match-card.match-correct {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
  cursor: default;
  opacity: 0.7;
  transform: scale(0.97);
}

.match-card.match-wrong {
  border-color: #ef4444;
  background: #fef2f2;
  animation: matchShake 0.4s ease;
}

@keyframes matchShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media (max-width: 600px) {
  .matching-game {
    gap: 10px;
  }
  .match-card {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ========================================
   14. SENTENCE BUILDER
   ======================================== */

.sentence-builder {
  max-width: 500px;
  margin: 40px auto;
}

.words-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.word-chip {
  padding: 10px 18px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #1f2937;
}

.word-chip:hover {
  border-color: #4f46e5;
  transform: translateY(-2px);
}

.word-chip.selected {
  background-color: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

.built-sentence {
  min-height: 60px;
  background: #f8fafc;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #1f2937;
}

/* ========================================
   15. FILL IN THE BLANK
   ======================================== */

.fill-blank {
  max-width: 500px;
  margin: 40px auto;
}

.fill-input {
  width: 100%;
  padding: 14px;
  border: 3px solid #e5e7eb;
  border-radius: 12px;
  font-size: 18px;
  text-align: center;
  margin: 16px 0;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
  color: #1f2937;
}

.fill-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.fillin-input {
  border: 2px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  text-align: center;
  background: white;
  transition: border-color 0.2s;
}
.fillin-input:focus {
  outline: none;
  border-color: #e91e63;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15);
}

/* ========================================
   16. BAMBOOZLE GAME
   ======================================== */

.bamboozle-container {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
}

.bamboozle-question {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
}

.bamboozle-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bamboozle-btn {
  padding: 20px;
  border: none;
  border-radius: 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Nunito', sans-serif;
}

.bamboozle-btn:hover {
  transform: scale(1.05);
}

.bamboozle-btn:nth-child(1) {
  background-color: #e74c3c;
}

.bamboozle-btn:nth-child(2) {
  background-color: #3498db;
}

.bamboozle-btn:nth-child(3) {
  background-color: #2ecc71;
}

.bamboozle-btn:nth-child(4) {
  background-color: #f39c12;
}

/* ========================================
   17. MEMORY GAME
   ======================================== */

.memory-container {
  max-width: 500px;
  margin: 40px auto;
}

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

.memory-card {
  aspect-ratio: 1;
  perspective: 800px;
  cursor: pointer;
}

.memory-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

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

.memory-card-front,
.memory-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.memory-card-front {
  background-color: #4f46e5;
  font-size: 28px;
}

.memory-card-back {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  transform: rotateY(180deg);
  font-size: 16px;
  font-weight: 700;
  padding: 8px;
  text-align: center;
  color: #1f2937;
}

.memory-card.matched {
  opacity: 0.6;
  pointer-events: none;
  transform: scale(0.95);
  transition: all 0.3s ease;
}

.memory-card.matched .memory-card-back {
  background: #d1fae5;
  border-color: #34d399;
}

.memory-score {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin-left: auto;
}

/* ========================================
   18. BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: #4f46e5;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #3730a3;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #1f2937;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-success {
  background-color: #10b981;
  color: #ffffff;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 8px;
}

/* ========================================
   19. PROGRESS BAR
   ======================================== */

.progress {
  background-color: #e5e7eb;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  width: 100%;
}

.progress > div {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* ========================================
   20. TOAST & NOTIFICATIONS
   ======================================== */

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.info {
  border-left: 4px solid #3b82f6;
}

/* ========================================
   21. CONFETTI & EFFECTS
   ======================================== */

#confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  animation: fall 3s ease-in forwards;
}

/* ========================================
   22. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .role-cards-container {
    flex-direction: column;
    align-items: center;
  }

  .role-card {
    width: 100%;
    max-width: 200px;
  }

  .students-grid {
    grid-template-columns: 1fr;
  }

  .subtemas-grid {
    grid-template-columns: 1fr;
  }

  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .matching-container {
    flex-direction: column;
  }

  .memory-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bamboozle-buttons {
    grid-template-columns: 1fr;
  }

  .top-nav {
    padding: 12px 16px;
  }

  .nav-center {
    display: none;
  }

  .modulos-grid {
    grid-template-columns: 1fr;
  }

  .subtema-tabs {
    padding-bottom: 12px;
  }

  .login-container {
    padding: 32px 24px;
  }

  .code-container {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 24px 16px;
  }

  .code-container {
    padding: 24px 16px;
  }

  .logo-text {
    font-size: 36px;
  }

  .role-card {
    width: 100%;
    max-width: 160px;
    min-height: 160px;
  }

  .role-icon {
    font-size: 36px;
  }

  .role-title {
    font-size: 16px;
  }

  .student-dashboard {
    padding: 16px;
  }

  .teacher-dashboard {
    padding: 16px;
  }

  .student-subtema-view {
    padding: 16px;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

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

  .subtema-header h1 {
    font-size: 24px;
  }

  .quiz-container {
    max-width: 100%;
    margin: 20px auto;
  }

  .flashcard-container {
    max-width: 100%;
    margin: 20px auto;
  }

  .bamboozle-container {
    max-width: 100%;
    margin: 20px auto;
  }

  .top-nav {
    padding: 12px 12px;
  }

  .nav-left,
  .nav-right {
    gap: 8px;
  }

  .coin-counter,
  .streak {
    font-size: 12px;
    padding: 4px 10px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .btn-small {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ========================================
   23. UTILITY CLASSES
   ======================================== */

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mt-8 {
  margin-top: 32px;
}

.mb-8 {
  margin-bottom: 32px;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-4 {
  gap: 16px;
}

.rounded-lg {
  border-radius: 8px;
}

.rounded-xl {
  border-radius: 12px;
}

.shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shadow-md {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shadow-lg {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ========================================
   24. STUDENT PROGRESS BARS
   ======================================== */

.module-progress {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  color: white;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

.progress-bar-outer {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  height: 16px;
  overflow: hidden;
}

.progress-bar-inner {
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #eab308);
  height: 100%;
  border-radius: 12px;
  transition: width 0.5s ease;
  min-width: 0;
}

.progress-hint {
  margin: 8px 0 0;
  font-size: 14px;
  opacity: 0.9;
  text-align: center;
}

.btn-get-cert {
  display: block;
  margin: 14px auto 0;
  padding: 12px 28px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e1b4b;
  font-weight: 800;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  animation: pulse 2s infinite;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-get-cert:hover {
  transform: scale(1.05);
}

.subtema-progress-bar {
  width: 80%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 4px;
  margin: 8px auto 0;
  overflow: hidden;
}

.subtema-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.subtema-complete-badge {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
}

/* ========================================
   25. STUDENT RESOURCE CARDS
   ======================================== */

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

.student-resource-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.resource-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.resource-name {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
}

.resource-platform {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* ========================================
   26. STUDENT MODULE CARDS
   ======================================== */

.student-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.student-module-card {
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.student-module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.student-module-locked {
  cursor: not-allowed;
  opacity: 0.7;
}

.student-module-locked:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.student-module-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.student-module-title {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  margin-bottom: 6px;
}

.student-module-desc {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.4;
}

/* ========================================
   27. CERTIFICATE CLOSE BUTTON
   ======================================== */

.cert-close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 24px;
  color: #374151;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.cert-close-btn:hover {
  transform: scale(1.1);
  background: white;
}

/* ========================================
   28. TEACHER STUDENT TRACKER
   ======================================== */

.teacher-top-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.teacher-action-btn {
  padding: 14px 24px;
  border-radius: 16px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-students-btn {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.teacher-students-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* Student List */
.teacher-students-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.teacher-student-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-student-card:hover {
  border-color: #8b5cf6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.15);
}

.ts-avatar {
  font-size: 40px;
  line-height: 1;
}

.ts-info {
  flex: 1;
  min-width: 100px;
}

.ts-name {
  font-size: 18px;
  font-weight: 800;
  color: #1f2937;
}

.ts-passcode {
  font-size: 13px;
  color: #9ca3af;
  font-family: monospace;
  margin-top: 2px;
}

.ts-stats {
  width: 100%;
}

.ts-coins {
  font-size: 14px;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 6px;
}

.ts-progress-bar {
  width: 100%;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.ts-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.ts-progress-text {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  text-align: right;
}

/* Student Detail View */
.student-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sd-avatar {
  font-size: 56px;
  line-height: 1;
}

.sd-info {
  flex: 1;
}

.sd-name {
  font-size: 24px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.sd-meta {
  font-size: 14px;
  color: #6b7280;
}

/* Module Unlock Controls */
.module-unlock-controls {
  background: #f0f9ff;
  border: 2px solid #bae6fd;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.module-unlock-controls h3 {
  font-size: 18px;
  color: #0c4a6e;
}

.unlock-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.unlock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: white;
  border: 1px solid #e5e7eb;
  font-size: 13px;
}

.unlock-row-open {
  border-color: #86efac;
  background: #f0fdf4;
}

.unlock-row-locked {
  border-color: #fecaca;
  background: #fef2f2;
}

.unlock-num {
  font-weight: 800;
  color: white;
  background: #6366f1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.unlock-row-locked .unlock-num {
  background: #9ca3af;
}

.unlock-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.unlock-name {
  font-weight: 700;
  color: #1f2937;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlock-progress {
  font-weight: 700;
  color: #6b7280;
  font-size: 12px;
  flex-shrink: 0;
}

.unlock-status {
  font-size: 11px;
  color: #6b7280;
  min-width: 100px;
  text-align: right;
  flex-shrink: 0;
}

.unlock-btn {
  padding: 4px 12px;
  border-radius: 8px;
  border: 2px solid;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.unlock-btn-unlock {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

.unlock-btn-unlock:hover {
  background: #bbf7d0;
}

.unlock-btn-locked {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.unlock-btn-locked:hover {
  background: #fecaca;
}

.unlock-auto {
  font-size: 11px;
  color: #059669;
  font-weight: 700;
}

/* Subtema toggles in teacher student detail */
.subtema-toggles {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f0f9ff;
  border-radius: 10px;
  border: 1px solid #bae6fd;
}
.subtema-toggles-label {
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 8px;
}
.st-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: background 0.2s;
}
.st-row-open {
  background: #ecfdf5;
}
.st-row-locked {
  background: #fef2f2;
  opacity: 0.7;
}
.st-toggle-icon {
  font-size: 16px;
}
.st-toggle-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.st-toggle-btn {
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.1s;
}
.st-toggle-btn:hover {
  transform: scale(1.1);
}
.st-toggle-unlock {
  background: #dcfce7;
}
.st-toggle-lock {
  background: #fee2e2;
}
.st-toggle-auto {
  font-size: 11px;
  color: #059669;
  font-weight: 700;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 4px;
}

.student-detail-modules {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-module {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 10px;
}

.detail-subtema {
  margin-left: 8px;
  padding: 12px 0;
  border-top: 1px solid #f3f4f6;
}

.detail-subtema-header {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

.detail-activities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-status {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
  white-space: nowrap;
}

.activity-status.done {
  background: #ecfdf5;
  color: #059669;
}

.activity-status.pending {
  background: #f3f4f6;
  color: #9ca3af;
}

/* Add Student Form */
.add-student-form {
  background: white;
  border-radius: 16px;
  padding: 28px;
  max-width: 500px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.add-student-form h3 {
  font-size: 15px;
  font-weight: 800;
  color: #374151;
  margin: 0 0 10px 0;
}

.avatar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.avatar-option {
  font-size: 32px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  border: 3px solid transparent;
  background: #f9fafb;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.avatar-option:hover {
  border-color: #c4b5fd;
  transform: scale(1.1);
}

.avatar-option.selected {
  border-color: #8b5cf6;
  background: #f5f3ff;
  transform: scale(1.15);
}

.add-student-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 2px dashed #d1d5db;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.add-student-btn:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
}

/* ========================================
   29. INTERACTIVE LESSON ENGINE
   ======================================== */

.lesson-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  overflow: hidden;
}

.lesson-header {
  background: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 50;
}

.lesson-exit-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.lesson-exit-btn:hover {
  background: #e5e7eb;
}

.lesson-title {
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.lesson-dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  padding-top: 4px;
}

.lesson-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lesson-dot.active {
  background: #7c3aed;
  transform: scale(1.4);
}

.lesson-dot.visited {
  background: #c4b5fd;
}

.lesson-content {
  flex: 1;
  padding: 20px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lesson-nav {
  background: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.lesson-nav-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  background: #7c3aed;
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.lesson-nav-btn:hover {
  background: #6d28d9;
}

.lesson-nav-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.lesson-clear-btn {
  padding: 6px 16px;
  border-radius: 8px;
  border: 2px solid #d1d5db;
  background: white;
  color: #6b7280;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.lesson-clear-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}

.lesson-progress {
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
}

/* Static slide */
.static-slide {
  max-width: 700px;
  width: 100%;
}

.lesson-table {
  border-collapse: collapse;
  min-width: 280px;
}

.lesson-table th,
.lesson-table td {
  padding: 10px 24px;
  text-align: center;
  border: 1px solid #e5e7eb;
  font-size: 16px;
}

.lesson-table td {
  font-size: 18px;
  font-weight: 600;
}

/* Vocab grid for static slides */
.vocab-slide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  max-width: 700px;
  width: 100%;
}

.vs-item {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.vs-emoji {
  display: block;
  font-size: 48px;
  margin-bottom: 6px;
}

.vs-word {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #374151;
  line-height: 1.3;
}

.vs-word small {
  font-weight: 500;
  color: #9ca3af;
  font-style: italic;
}

/* Slide instruction */
.slide-instruction {
  font-size: 18px;
  color: #374151;
  text-align: center;
  margin-bottom: 18px;
  font-weight: 600;
}

/* Drop zones area */
.drop-zones-area {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  width: 100%;
  max-width: 700px;
  margin-bottom: 20px;
}

.drop-column {
  flex: 1;
  min-width: 240px;
}

.drop-col-header {
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
}

.drop-zone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.zone-label {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
}

.drop-zone {
  min-width: 120px;
  min-height: 42px;
  background: white;
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.drop-zone:hover {
  border-color: #7c3aed;
  background: #faf5ff;
}

.drop-zone.filled {
  border: 2px solid #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.drop-zone.correct {
  border: 2px solid #10b981;
  background: #d1fae5;
  color: #065f46;
  font-weight: 700;
}

.drop-zone.inline {
  display: inline-flex;
  min-width: 80px;
  flex: 0 0 auto;
}

/* Draggables tray */
.draggables-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 700px;
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
}

.draggable-word {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
  color: #1f2937;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.draggable-word:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.draggable-word.selected {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px #7c3aed, 0 4px 12px rgba(124, 58, 237, 0.3);
  animation: pulse-glow 1s ease-in-out infinite;
}

.draggable-word.used {
  opacity: 0.25;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.draggable-word.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.draggable-word.touch-clone {
  opacity: 0.9 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.drop-zone.drag-hover {
  border-color: #7c3aed !important;
  background: #f5f3ff !important;
  transform: scale(1.03);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 3px #7c3aed, 0 4px 12px rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 0 0 5px #7c3aed, 0 4px 16px rgba(124, 58, 237, 0.5); }
}

/* Text inputs */
.text-inputs-area {
  max-width: 600px;
  width: 100%;
}

.text-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.lesson-text-input {
  flex: 1;
  min-width: 150px;
  padding: 10px 14px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  background: white;
  transition: border-color 0.2s ease;
}

.lesson-text-input:focus {
  outline: none;
  border-color: #7c3aed;
}

.lesson-text-input.inline {
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 200px;
}

/* Mixed rows */
.mixed-area {
  max-width: 700px;
  width: 100%;
}

.mixed-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.row-emoji {
  font-size: 24px;
  margin-left: auto;
}

/* Lesson links bar inside interactive lesson */
.lesson-links-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.lesson-links-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}
.lesson-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.lesson-link-chip:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* Lesson button in module view */
.lesson-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lesson-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.lesson-btn-icon {
  font-size: 28px;
}

.lesson-btn-text {
  text-align: left;
}

.lesson-btn-title {
  display: block;
  font-size: 16px;
}

.lesson-btn-sub {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  font-weight: 500;
  margin-top: 2px;
}

/* ========================================
   ACTIVIDADES DE BIENVENIDA
   ======================================== */

/* Dashboard button */
.bienvenida-banner {
  background: linear-gradient(135deg, #f59e0b, #f97316, #ef4444);
  background-size: 200% 200%;
  animation: bannerShimmer 4s ease infinite;
  border-radius: 20px;
  padding: 22px 28px;
  margin-bottom: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(245,158,11,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.bienvenida-banner::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
@keyframes bannerShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.bienvenida-banner:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(245,158,11,0.35); }
.bienvenida-banner-icon { font-size: 36px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.bienvenida-banner h3 { font-family: 'Fredoka One', cursive; font-size: 20px; margin-bottom: 2px; text-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.bienvenida-banner p { font-size: 13px; opacity: 0.9; }

/* Menu: 3 activity cards */
.bienvenida-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.bienvenida-card {
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.bienvenida-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.bienvenida-card-icon { font-size: 48px; margin-bottom: 12px; }
.bienvenida-card h3 { font-family: 'Fredoka One', cursive; font-size: 22px; margin-bottom: 6px; }
.bienvenida-card p { font-size: 13px; opacity: 0.85; }

/* ── Calendario ─────────────────────── */
.calendario-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}
@media (max-width: 768px) { .calendario-container { grid-template-columns: 1fr; } }

.cal-left { display: flex; flex-direction: column; gap: 16px; }
.cal-right { display: flex; flex-direction: column; gap: 12px; }

.cal-card {
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.cal-month-label { font-family: 'Fredoka One', cursive; font-size: 24px; color: white; }
.cal-year { font-family: 'Fredoka One', cursive; font-size: 18px; color: rgba(255,255,255,0.85); float: right; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 12px;
}
.cal-header { font-weight: 800; font-size: 13px; text-align: center; color: rgba(255,255,255,0.9); padding: 4px 0; }
.cal-day {
  text-align: center;
  padding: 6px 2px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  border-radius: 8px;
}
.cal-today {
  background: white;
  color: #1f2937;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.cal-empty { opacity: 0; }

.cal-dates-box {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  line-height: 2.2;
}
.cal-dates-box span { color: #3b82f6; }
.cal-date-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.cal-date-line strong { white-space: nowrap; }
.cal-input { border: none; border-bottom: 2px solid #d1d5db; background: transparent; font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 700; color: #3b82f6; text-align: center; outline: none; transition: border-color 0.2s; }
.cal-input:focus { border-bottom-color: #3b82f6; }
.cal-input::placeholder { color: #9ca3af; font-weight: 400; font-size: 12px; }
.cal-input-dia { width: 100px; }
.cal-input-num { width: 40px; }
.cal-input-mes { width: 100px; }
.cal-input-anio { width: 60px; }

/* Right panels */
.panel-card {
  border-radius: 14px;
  padding: 14px 16px;
  color: white;
}
.panel-card h4 { font-family: 'Fredoka One', cursive; font-size: 15px; margin-bottom: 10px; text-align: center; }
.panel-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.panel-option {
  background: rgba(255,255,255,0.2);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  transition: all 0.15s;
  min-width: 70px;
}
.panel-option:hover { background: rgba(255,255,255,0.35); }
.panel-option.selected { background: white; color: #1f2937; border-color: white; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.panel-option-emoji { font-size: 28px; display: block; margin-bottom: 4px; }

/* ── La Música ──────────────────────── */
/* ── Musica video + playlist ── */
.musica-video-area {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 16px;
}
@media (max-width: 800px) { .musica-video-area { grid-template-columns: 1fr; } }
.musica-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  cursor: pointer;
}
.musica-thumb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  object-fit: cover;
}
.musica-play-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.musica-video-wrap:hover .musica-play-overlay { background: rgba(0,0,0,0.1); }
.musica-play-btn {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  padding-left: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.15s;
}
.musica-video-wrap:hover .musica-play-btn { transform: scale(1.1); }
.musica-now-playing {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  font-size: 14px;
  font-weight: 700;
}
.musica-playlist {
  background: white;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.musica-playlist h4 { font-family: 'Fredoka One', cursive; font-size: 14px; color: #1f2937; margin-bottom: 2px; }
.playlist-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  font-family: 'Nunito', sans-serif;
}
.playlist-btn:hover { border-color: #3b82f6; background: #eff6ff; }
.playlist-btn-active { border-color: #3b82f6; background: #eff6ff; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.playlist-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.playlist-btn-active .playlist-num { background: #3b82f6; color: white; }
.playlist-info { display: flex; flex-direction: column; line-height: 1.3; }
.playlist-info strong { font-size: 13px; color: #1f2937; }
.playlist-info small { font-size: 11px; color: #6b7280; }

/* ── Musica two-column layout ── */
.musica-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  align-items: start;
}
@media (max-width: 900px) { .musica-layout { grid-template-columns: 1fr; } }

.musica-chips-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) { .musica-chips-col { grid-template-columns: 1fr; } }

.vocab-section {
  border-radius: 14px;
  padding: 14px;
  color: white;
}
.vocab-section h4 { font-family: 'Fredoka One', cursive; font-size: 13px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; }
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.35);
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 0 6px;
  flex-shrink: 0;
}
.vocab-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vocab-chip {
  background: rgba(255,255,255,0.25);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.15s;
}
.vocab-chip:hover { background: rgba(255,255,255,0.45); }
.vocab-chip.selected { background: white; color: #1f2937; border-color: white; }

/* ── Sentence template (right column) ── */
.musica-template-col { position: sticky; top: 20px; }
.musica-template {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border: 2px solid #e5e7eb;
}
.musica-template h4 { font-family: 'Fredoka One', cursive; font-size: 14px; color: #1f2937; margin-bottom: 14px; }
.musica-sentence { display: flex; flex-direction: column; gap: 6px; }
.sentence-line {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  line-height: 1.8;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.sentence-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3b82f6;
  color: white;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.sentence-slot {
  display: inline-block;
  min-width: 80px;
  border-bottom: 2px dashed #d1d5db;
  color: #9ca3af;
  font-style: italic;
  text-align: center;
  padding: 0 4px;
  transition: all 0.2s;
}
.sentence-slot-wide { min-width: 140px; }
.sentence-slot.filled {
  font-style: normal;
  font-weight: 800;
  border-bottom-style: solid;
}
.musica-result { margin-top: 16px; }
.btn-clear-sentence {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.1s;
  background: #f3f4f6;
  color: #6b7280;
}
.btn-clear-sentence:hover { background: #e5e7eb; }
.btn-clear-sentence:active { transform: scale(0.96); }

/* ── Fin de Semana ──────────────────── */
.fds-board {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}
@media (max-width: 900px) { .fds-board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fds-board { grid-template-columns: 1fr; } }

.fds-section {
  border-radius: 14px;
  padding: 14px;
  color: white;
}
.fds-section h4 { font-family: 'Fredoka One', cursive; font-size: 13px; margin-bottom: 8px; }
.fds-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fds-chip {
  background: rgba(255,255,255,0.25);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.15s;
}
.fds-chip:hover { background: rgba(255,255,255,0.45); }
.fds-chip.selected { background: white; color: #1f2937; border-color: white; }

.fds-emoji-btn {
  font-size: 32px;
  background: rgba(255,255,255,0.2);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.fds-emoji-btn:hover { background: rgba(255,255,255,0.4); }
.fds-emoji-btn.selected { background: white; border-color: white; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

.fds-writing {
  grid-column: 1 / -1;
  background: white;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.fds-writing h4 { font-family: 'Fredoka One', cursive; font-size: 15px; color: #1f2937; margin-bottom: 8px; }
.fds-textarea {
  width: 100%;
  min-height: 100px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  resize: vertical;
}
.fds-textarea:focus { border-color: #f97316; outline: none; }

/* Bienvenida view header */
.bienvenida-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.bienvenida-header h2 { font-family: 'Fredoka One', cursive; font-size: 26px; color: #1f2937; }

/* ========================================
   FULLSCREEN SLIDESHOW MODE
   ======================================== */
.lesson-fs-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  margin-left: auto;
}
.lesson-fs-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.lesson-container.slideshow-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}
.slideshow-mode .lesson-header {
  padding: 8px 20px;
  background: #1e293b;
  color: white;
  gap: 16px;
}
.slideshow-mode .lesson-title {
  color: white;
  font-size: 20px;
}
.slideshow-mode .lesson-exit-btn {
  background: rgba(255,255,255,0.15);
  color: white;
}
.slideshow-mode .lesson-exit-btn:hover {
  background: rgba(255,255,255,0.25);
}
.slideshow-mode .lesson-fs-btn {
  background: rgba(255,255,255,0.15);
}
.slideshow-mode .lesson-fs-btn:hover {
  background: rgba(255,255,255,0.25);
}
.slideshow-mode .lesson-dot {
  background: rgba(255,255,255,0.3);
}
.slideshow-mode .lesson-dot.active {
  background: #fbbf24;
}
.slideshow-mode .lesson-dot.visited {
  background: rgba(255,255,255,0.5);
}
.slideshow-mode .lesson-content {
  flex: 1;
  padding: 24px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.15em;
}
.slideshow-mode .static-slide {
  max-width: 960px;
  width: 100%;
  font-size: 1.25em;
}
.slideshow-mode .static-slide p { font-size: 1.3em; line-height: 1.7; }
.slideshow-mode .static-slide h1, .slideshow-mode .static-slide h2 { font-size: 1.8em; }
.slideshow-mode .drag-instruction { font-size: 1.4em; }
.slideshow-mode .drag-zone-row { font-size: 1.4em; padding: 14px 20px; }
.slideshow-mode .draggable-chip, .slideshow-mode .draggable-word { font-size: 1.35em; padding: 14px 24px; }
.slideshow-mode .text-input-field { font-size: 1.4em; padding: 14px 20px; }
.slideshow-mode .mixed-slide-item { font-size: 1.3em; }
.slideshow-mode .mixed-slide-item p { font-size: 1.2em; }
.slideshow-mode .vocab-chip, .slideshow-mode .word-chip { font-size: 1.2em; padding: 10px 20px; }
.slideshow-mode img { max-height: 70vh; }
.slideshow-mode .lesson-nav {
  padding: 12px 24px;
  background: #1e293b;
  border-top: none;
}
.slideshow-mode .lesson-nav-btn {
  color: white;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  padding: 10px 24px;
  font-size: 15px;
}
.slideshow-mode .lesson-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.2); }
.slideshow-mode .lesson-nav-btn:disabled { opacity: 0.3; color: rgba(255,255,255,0.4); }
.slideshow-mode .lesson-progress { color: white; font-size: 15px; }
.slideshow-mode .lesson-links-bar {
  background: #1e293b;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 8px 24px;
}
.slideshow-mode .lesson-links-label { color: rgba(255,255,255,0.7); }

/* ========================================
   BADGE COLLECTION
   ======================================== */
.badge-collection {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 20px;
  padding: 20px;
  border: 3px solid #f59e0b;
}
.badge-collection h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: #78350f;
  text-align: center;
  margin-bottom: 16px;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.badge-item {
  text-align: center;
  padding: 12px 6px;
  border-radius: 16px;
  transition: all 0.3s;
  position: relative;
}
.badge-earned {
  background: white;
  border: 2px solid #fbbf24;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}
.badge-earned:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}
.badge-locked {
  background: rgba(255,255,255,0.4);
  border: 2px dashed #d1d5db;
  opacity: 0.6;
}
.badge-icon {
  font-size: 36px;
  margin-bottom: 4px;
}
.badge-glow {
  animation: badgeGlow 2s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(251,191,36,0.4)); }
  50% { filter: drop-shadow(0 0 12px rgba(251,191,36,0.8)); }
}
.badge-check {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 14px;
}
.badge-label {
  font-size: 11px;
  font-weight: 800;
  color: #374151;
  line-height: 1.2;
}
.badge-date {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 2px;
}

/* ============================================================================
   MODULE QUIZ (KAHOOT STYLE)
   ============================================================================ */

.quiz-view {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  font-family: 'Nunito', sans-serif;
}

/* Intro Screen */
.quiz-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}

.quiz-intro-icon {
  font-size: 80px;
  margin-bottom: 16px;
  animation: quizBounce 1s ease infinite;
}

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

.quiz-intro-title {
  font-size: 32px;
  font-weight: 900;
  color: white;
  margin: 0 0 8px;
}

.quiz-intro-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 24px;
}

.quiz-intro-rules {
  margin-bottom: 30px;
}

.quiz-rule {
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 0;
}

.quiz-start-btn {
  background: #fbbf24;
  color: #1e3a5f;
  border: none;
  border-radius: 16px;
  padding: 16px 48px;
  font-size: 22px;
  font-weight: 900;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.quiz-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.quiz-back-btn {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.2s;
}

.quiz-back-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* Quiz Header */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 8px;
  color: white;
}

.quiz-counter {
  font-size: 16px;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
}

.quiz-timer-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: white;
  transition: all 0.3s;
}

.quiz-timer-circle.timer-urgent {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239,68,68,0.2);
  animation: timerPulse 0.5s ease infinite;
}

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

.quiz-score-display {
  font-size: 16px;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  color: white;
}

.quiz-exit-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.quiz-exit-btn:hover {
  background: rgba(255,0,0,0.5);
}

.quiz-points-pop {
  color: #fbbf24;
  font-weight: 900;
  animation: pointsPop 0.5s ease;
}

@keyframes pointsPop {
  0% { opacity: 0; transform: translateY(10px); }
  50% { transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Progress Dots */
.quiz-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 4px 20px 8px;
  flex-wrap: wrap;
}

.quiz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.quiz-dot.active {
  background: white;
  transform: scale(1.3);
}

.quiz-dot.correct {
  background: #10b981;
}

.quiz-dot.wrong {
  background: #ef4444;
}

/* Question Card */
.quiz-card {
  background: white;
  border-radius: 16px;
  padding: 24px 20px;
  margin: 0 16px 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.quiz-emoji {
  font-size: 48px;
  margin-bottom: 12px;
}

.quiz-question-text {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
}

/* Options Grid */
.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 20px;
  flex: 1;
  align-content: start;
}

.quiz-options-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.kahoot-option {
  border: none;
  border-radius: 12px;
  padding: 16px 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s, opacity 0.3s;
  min-height: 60px;
  text-align: left;
}

.kahoot-option:hover {
  transform: scale(1.03);
}

.kahoot-option:active {
  transform: scale(0.97);
}

.kahoot-option-shape {
  font-size: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

.kahoot-option-text {
  flex: 1;
}

.kahoot-option-correct {
  box-shadow: 0 0 0 4px #10b981, 0 0 20px rgba(16,185,129,0.5);
  transform: scale(1.05);
}

.kahoot-option-wrong {
  opacity: 0.5;
  box-shadow: 0 0 0 4px #ef4444;
}

/* Fill-in */
.quiz-fillin-wrap {
  padding: 0 16px 20px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: center;
}

.quiz-fillin-input {
  width: 100%;
  max-width: 400px;
  padding: 16px 20px;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  border: 3px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  color: white;
  text-align: center;
  outline: none;
}

.quiz-fillin-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.quiz-fillin-input:focus {
  border-color: white;
  background: rgba(255,255,255,0.25);
}

.quiz-fillin-submit {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
}

.quiz-fillin-feedback {
  font-size: 20px;
  font-weight: 700;
  padding: 16px;
  border-radius: 12px;
  color: white;
}

.quiz-fillin-feedback.correct {
  background: rgba(16,185,129,0.3);
}

.quiz-fillin-feedback.wrong {
  background: rgba(239,68,68,0.3);
}

/* Results Screen */
.quiz-results {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  overflow-y: auto;
}

.quiz-results-header {
  text-align: center;
  margin-bottom: 20px;
}

.quiz-results-icon {
  font-size: 64px;
  margin-bottom: 8px;
}

.quiz-results-title {
  font-size: 28px;
  font-weight: 900;
  color: white;
  margin: 0;
}

.quiz-score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 4px solid white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

.quiz-score-percent {
  font-size: 42px;
  font-weight: 900;
  color: white;
}

.quiz-score-detail {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.quiz-stars-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.quiz-star {
  font-size: 32px;
  opacity: 0.3;
  filter: grayscale(1);
}

.quiz-star.earned {
  opacity: 1;
  filter: none;
  animation: starPop 0.3s ease;
}

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

.quiz-stats {
  display: flex;
  gap: 24px;
  margin: 16px 0;
}

.quiz-stat {
  text-align: center;
}

.quiz-stat-num {
  font-size: 22px;
  font-weight: 900;
  color: white;
}

.quiz-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* Error Review */
.quiz-errors-section {
  width: 100%;
  max-width: 500px;
  margin: 16px 0;
}

.quiz-errors-title {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.quiz-error-card {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.quiz-error-q {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-bottom: 4px;
}

.quiz-error-a {
  color: #10b981;
  font-size: 14px;
  font-weight: 700;
}

/* Results Actions */
.quiz-results-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
  max-width: 300px;
}

.quiz-retry-btn {
  background: #fbbf24;
  color: #1e3a5f;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
}

/* Module Quiz Button */
.btn-module-quiz {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e3a5f;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: transform 0.2s;
  animation: quizPulse 2s ease infinite;
}

@keyframes quizPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(251,191,36,0); }
}

.btn-module-quiz:hover {
  transform: scale(1.02);
}

.btn-module-quiz.completed {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  animation: none;
}

.quiz-locked-hint {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  margin-top: 8px;
}

/* ============================================================================
   PRONUNCIATION ACTIVITIES
   ============================================================================ */

.pron-view {
  min-height: 100vh;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  display: flex;
  flex-direction: column;
  font-family: 'Nunito', sans-serif;
}

.pron-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.pron-back-btn {
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
}

.pron-counter {
  color: white;
  font-size: 16px;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
}

.pron-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 0 20px 12px;
  flex-wrap: wrap;
}

.pron-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.pron-dot.active { background: white; transform: scale(1.4); }
.pron-dot.correct { background: #10b981; }
.pron-dot.wrong { background: #ef4444; }

.pron-card {
  background: white;
  border-radius: 20px;
  padding: 32px 24px;
  margin: 0 16px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.pron-emoji {
  font-size: 72px;
  margin-bottom: 12px;
}

.pron-spanish {
  font-size: 36px;
  font-weight: 900;
  color: #1f2937;
  margin-bottom: 6px;
}

.pron-gender {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.pron-gender-f {
  background: linear-gradient(135deg, #fce7f3, #fdf2f8);
  color: #db2777;
  border: 1px solid rgba(219,39,119,0.15);
}
.pron-gender-m {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #2563eb;
  border: 1px solid rgba(37,99,235,0.15);
}

.pron-english {
  font-size: 16px;
  color: #9ca3af;
  margin-bottom: 24px;
}

.pron-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.pron-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: transform 0.15s;
}

.pron-btn:hover { transform: scale(1.05); }
.pron-btn:active { transform: scale(0.97); }

.pron-listen-btn {
  background: #3b82f6;
  color: white;
}

.pron-slow-btn {
  background: #f59e0b;
  color: white;
}

.pron-record-btn {
  background: #10b981;
  color: white;
}

.pron-record-btn.recording {
  background: #ef4444;
  animation: pronPulse 0.6s ease infinite;
}

@keyframes pronPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(239,68,68,0); }
}

.pron-feedback {
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pron-fb-great { background: #d1fae5; color: #065f46; }
.pron-fb-ok { background: #fef3c7; color: #92400e; }
.pron-fb-retry { background: #fee2e2; color: #991b1b; }

.pron-nav {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
}

.pron-nav-btn {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
}

.pron-nav-btn.pron-next {
  background: rgba(255,255,255,0.25);
}

.pron-nav-btn.pron-finish {
  background: #10b981;
  border-color: #10b981;
}

/* Pronunciation Results */
.pron-results {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}

.pron-results-icon { font-size: 64px; margin-bottom: 12px; }

.pron-results-title {
  font-size: 28px;
  font-weight: 900;
  color: white;
  margin: 0 0 16px;
}

.pron-results-score {
  font-size: 20px;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
}

.pron-results-percent {
  font-size: 56px;
  font-weight: 900;
  color: white;
  margin: 8px 0;
}

.pron-results-msg {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}

.pron-results-actions {
  display: flex;
  gap: 12px;
}

/* ========================================
   COCO MASCOT — Cartoon Cat
   ======================================== */

.coco-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
}

.coco-enter {
  animation: cocoSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.coco-exit {
  animation: cocoSlideOut 0.4s ease-in forwards;
}

@keyframes cocoSlideIn {
  from { transform: translateY(120px) scale(0.5); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes cocoSlideOut {
  from { transform: translateY(0) scale(1); opacity: 1; }
  to { transform: translateY(80px) scale(0.7); opacity: 0; }
}

.coco-bubble {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: 20px;
  padding: 14px 20px;
  box-shadow: 0 12px 40px rgba(245,158,11,0.25), 0 4px 12px rgba(0,0,0,0.08);
  border: 3px solid #fbbf24;
  max-width: 340px;
  position: relative;
}

.coco-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 28px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fbbf24;
}

.coco-avatar {
  flex-shrink: 0;
  animation: cocoBounce 1.2s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(245,158,11,0.3));
}

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

.coco-name {
  font-weight: 800;
  font-size: 11px;
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.coco-text {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
}

.coco-big {
  display: inline-block;
  animation: cocoBounce 1.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(245,158,11,0.3));
}

.cert-coco-celebrate {
  margin-top: 16px;
  animation: cocoJump 0.8s ease-in-out infinite;
}

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

/* ========================================
   NAV AVATAR
   ======================================== */

.nav-avatar {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 4px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  background: #f3f4f6;
}

.nav-avatar svg {
  display: block;
}

/* ========================================
   DASHBOARD QUICK ACTIONS
   ======================================== */

.dashboard-quick-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action-btn {
  flex: 1;
  padding: 16px 18px;
  border: none;
  border-radius: 16px;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.quick-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.quick-action-btn:hover::before {
  left: 100%;
}

.quick-action-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.quick-action-btn:active {
  transform: translateY(0) scale(0.98);
}

.qa-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
}

.qa-label {
  font-size: 14px;
}

.map-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.shop-btn {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

/* ========================================
   MISSION SYSTEM
   ======================================== */

.btn-mission {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.btn-mission.unlocked {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1f2937;
  animation: missionPulse 2s ease-in-out infinite;
}

.btn-mission.completed {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-mission:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

@keyframes missionPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
}

.mission-locked-hint {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  padding: 10px;
  margin-top: 8px;
}

/* Mission View */
.mission-view {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

.mission-header {
  text-align: center;
  margin-bottom: 24px;
}

.mission-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.mission-title {
  color: white;
  font-size: 24px;
  font-weight: 800;
}

.mission-dialogue {
  width: 100%;
  max-width: 500px;
  flex: 1;
}

.mission-npc {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.mission-npc-name {
  font-weight: 800;
  color: #4f46e5;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mission-npc-bubble {
  font-size: 16px;
  color: #1f2937;
  line-height: 1.5;
}

.mission-player-prompt {
  color: #fbbf24;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.mission-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mission-choice {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.mission-choice:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fbbf24;
  transform: translateX(4px);
}

.mission-choice-correct {
  background: rgba(16, 185, 129, 0.3) !important;
  border-color: #10b981 !important;
}

.mission-choice-wrong {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: #ef4444 !important;
}

.mission-continue-btn {
  margin-top: 20px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1f2937;
  border: none;
  border-radius: 12px;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mission-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

/* Mission Complete */
.mission-complete-view {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.mission-complete-header {
  margin-bottom: 20px;
}

.mission-complete-icon {
  font-size: 64px;
  margin-bottom: 12px;
}

.mission-complete-header h1 {
  color: #fbbf24;
  font-size: 32px;
  margin: 0;
}

.mission-complete-header p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
}

.mission-stars-row {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}

.mission-star {
  font-size: 40px;
  opacity: 0.3;
  filter: grayscale(1);
  transition: all 0.3s ease;
}

.mission-star.earned {
  opacity: 1;
  filter: none;
  animation: starPop 0.5s ease;
}

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

.mission-score-display {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.mission-reward {
  background: rgba(251, 191, 36, 0.2);
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 12px 24px;
  margin-bottom: 20px;
}

.mission-reward-coins {
  color: #fbbf24;
  font-size: 20px;
  font-weight: 800;
}

.mission-complete-coco {
  margin-bottom: 24px;
}

.mission-complete-coco p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

.mission-actions {
  display: flex;
  gap: 12px;
}

/* ========================================
   AVATAR SYSTEM — Cartoon Style
   ======================================== */

.avatar-shop-header {
  text-align: center;
  margin-bottom: 24px;
}

.shop-header-coco {
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 6px rgba(245,158,11,0.3));
}

.avatar-shop-header h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.avatar-shop-header p {
  color: #6b7280;
  font-size: 14px;
}

.avatar-preview-area {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.avatar-preview-card {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fbbf24;
  box-shadow: 0 8px 24px rgba(245,158,11,0.2), inset 0 0 20px rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.avatar-preview-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(245,158,11,0.3);
}

.avatar-preview-card svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Avatar Customizer */
.avatar-customizer {
  background: #f9fafb;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
}

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

.customizer-row:last-child {
  margin-bottom: 0;
}

.customizer-label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  min-width: 50px;
}

.color-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.color-dot:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.color-dot.active {
  border-color: #1f2937;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px white, 0 0 0 4px #1f2937;
}

.style-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.style-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid #e5e7eb;
  background: white;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #374151;
}

.style-btn:hover {
  border-color: #a78bfa;
  background: #ede9fe;
}

.style-btn.active {
  background: #7c3aed;
  color: white;
  border-color: #7c3aed;
}

/* Shop Section */
.shop-section-title {
  font-size: 16px;
  font-weight: 800;
  margin: 20px 0 12px;
  color: #374151;
}

.shop-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.shop-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border-radius: 14px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: 2px solid transparent;
}

.shop-item-emoji {
  font-size: 32px;
  margin-bottom: 6px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-item-name {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}

.shop-item-status {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.shop-item-cost {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.shop-item-equipped {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16,185,129,0.2);
}

.shop-item-equipped .shop-item-status {
  color: #059669;
}

.shop-item-owned {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  border-color: #a78bfa;
}

.shop-item-owned:hover {
  background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(167,139,250,0.3);
}

.shop-item-owned .shop-item-status {
  color: #7c3aed;
}

.shop-item-buy {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #fbbf24;
}

.shop-item-buy:hover {
  background: linear-gradient(135deg, #fde68a, #fcd34d);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(251,191,36,0.3);
}

.shop-item-buy .shop-item-cost {
  color: #b45309;
}

.shop-item-locked {
  background: #f3f4f6;
  border-color: #e5e7eb;
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-item-locked .shop-item-cost {
  color: #9ca3af;
}

.shop-item-badge {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  color: #059669;
}

.shop-item-owned .shop-item-badge {
  color: #7c3aed;
}

/* Avatar Shop Tabs */
.avatar-shop-layout {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
}

.avatar-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: #f3f4f6;
  border-radius: 16px;
  padding: 4px;
}

.avatar-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  transition: all 0.2s ease;
  color: #6b7280;
}

.avatar-tab span {
  font-size: 10px;
  font-weight: 700;
}

.avatar-tab:hover {
  background: rgba(255,255,255,0.6);
}

.avatar-tab-active {
  background: white;
  color: #7c3aed;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.avatar-tab-active span {
  color: #7c3aed;
}

.avatar-tab-content {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  min-height: 200px;
}

.avatar-preview-card {
  width: 160px;
  height: 160px;
}

.style-btn-buy {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #92400e;
}

.style-btn-buy:hover {
  background: #fde68a;
}

.style-btn-buy small {
  font-size: 10px;
  opacity: 0.8;
}

.style-btn-locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   WORLD MAP — Illustrated Journey
   ======================================== */

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

.map-header-coco {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(245,158,11,0.3));
}

.map-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: #1f2937;
}

.map-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.world-map-container {
  position: relative;
  width: 100%;
  min-height: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 0 60px rgba(0,0,0,0.1);
  border: 3px solid #0D47A1;
}

.map-terrain-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(180deg,
      #FF9A56 0%,
      #FFB84D 3%,
      #87CEEB 8%,
      #5BB8F5 20%,
      #2196F3 35%,
      #1E88E5 48%,
      #1976D2 58%,
      #1565C0 72%,
      #0D47A1 88%,
      #0A3780 100%
    );
}

.map-terrain-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 200px 55px at 8% 92%, rgba(0,150,136,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 150px 45px at 50% 87%, rgba(0,150,136,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 170px 50px at 82% 90%, rgba(0,150,136,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 240px 60px at 50% 55%, rgba(30,136,229,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 130px 35px at 22% 48%, rgba(100,181,246,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 110px 30px at 72% 38%, rgba(66,165,245,0.1) 0%, transparent 70%);
  animation: oceanShimmer 6s ease-in-out infinite;
}

@keyframes oceanShimmer {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.map-land-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  preserve-aspect-ratio: none;
}

.map-terrain-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55px;
  background: linear-gradient(180deg, transparent, rgba(5,40,100,0.45));
}

/* ===== MARIO STYLE CLOUDS ===== */
.map-cloud {
  position: absolute;
  z-index: 1;
  width: 80px;
  height: 36px;
  background: white;
  border-radius: 36px;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.map-cloud::before,
.map-cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}

.map-cloud::before {
  width: 38px;
  height: 38px;
  top: -18px;
  left: 12px;
}

.map-cloud::after {
  width: 28px;
  height: 28px;
  top: -12px;
  right: 12px;
}

.map-cloud-1 {
  top: 6%;
  left: 5%;
  animation: cloudDrift1 18s ease-in-out infinite;
}

.map-cloud-2 {
  top: 12%;
  right: 8%;
  left: auto;
  width: 60px;
  height: 28px;
  opacity: 0.7;
  animation: cloudDrift2 22s ease-in-out infinite;
}

.map-cloud-2::before {
  width: 30px;
  height: 30px;
  top: -14px;
  left: 8px;
}

.map-cloud-2::after {
  width: 22px;
  height: 22px;
  top: -8px;
  right: 8px;
}

.map-cloud-3 {
  top: 4%;
  left: 45%;
  width: 70px;
  height: 30px;
  opacity: 0.6;
  animation: cloudDrift3 25s ease-in-out infinite;
}

.map-cloud-3::before {
  width: 32px;
  height: 32px;
  top: -16px;
  left: 10px;
}

.map-cloud-3::after {
  width: 24px;
  height: 24px;
  top: -10px;
  right: 10px;
}

@keyframes cloudDrift1 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(30px); }
}

@keyframes cloudDrift2 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-25px); }
}

@keyframes cloudDrift3 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

/* ===== MARIO STYLE OCEAN WAVES ===== */
.map-wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  z-index: 0;
  overflow: hidden;
}

.map-wave::before {
  content: '';
  position: absolute;
  left: -100%;
  right: -100%;
  height: 100%;
  background: repeat-x;
  background-size: 120px 24px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M0 12 Q15 4 30 12 Q45 20 60 12 Q75 4 90 12 Q105 20 120 12' fill='none' stroke='rgba(255,255,255,0.15)' stroke-width='2'/%3E%3C/svg%3E");
}

.map-wave-1 {
  bottom: 18%;
  animation: waveFlow1 4s linear infinite;
}

.map-wave-1::before {
  animation: waveScroll 8s linear infinite;
}

.map-wave-2 {
  bottom: 8%;
  opacity: 0.7;
}

.map-wave-2::before {
  animation: waveScroll 6s linear infinite reverse;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M0 12 Q15 4 30 12 Q45 20 60 12 Q75 4 90 12 Q105 20 120 12' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1.5'/%3E%3C/svg%3E");
}

@keyframes waveScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(120px); }
}

@keyframes waveFlow1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.map-paths {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.map-path {
  stroke-width: 0.8;
  fill: none;
  stroke-linecap: round;
}

.map-path-done {
  stroke: #fbbf24;
  stroke-width: 1;
  filter: drop-shadow(0 0 3px rgba(251,191,36,0.5));
}

.map-path-pending {
  stroke: rgba(255,255,255,0.5);
  stroke-dasharray: 2 2;
}

.map-locations {
  position: relative;
  width: 100%;
  height: 480px;
  z-index: 2;
}

.map-location {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}

.map-location:hover {
  transform: translate(-50%, -50%) scale(1.12);
  z-index: 5;
}

.map-loc-scene {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  margin-bottom: 4px;
  transition: filter 0.3s ease;
}

.map-loc-completed .map-loc-scene {
  filter: drop-shadow(0 4px 12px rgba(251,191,36,0.4));
}

.map-location:hover .map-loc-scene {
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.2));
}

.map-loc-name {
  font-size: 10px;
  font-weight: 800;
  color: #1f2937;
  background: rgba(255,255,255,0.9);
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  display: inline-block;
}

.map-loc-completed .map-loc-name {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}

/* locked styles consolidated at bottom of file */

.map-loc-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  padding: 4px;
}

.map-loc-check {
  font-size: 16px;
  position: absolute;
  top: -6px;
  right: -8px;
  background: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.map-loc-star {
  font-size: 14px;
  position: absolute;
  top: -6px;
  left: -8px;
  background: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  animation: starSpin 3s linear infinite;
}

@keyframes starSpin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
}

.map-loc-progress {
  margin-top: 4px;
  width: 60px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 4px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.map-loc-progress .map-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.map-loc-progress span {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 7px;
  font-weight: 800;
  color: #1f2937;
}

.map-coco-traveler {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  animation: cocoTravel 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(245,158,11,0.4));
}

@keyframes cocoTravel {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 6px)); }
}

/* ========================================
   FEEDBACK ANIMATIONS
   ======================================== */

/* Shake animation for incorrect answers */
.anim-shake {
  animation: feedbackShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

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

/* Correct glow */
.anim-correct-glow {
  animation: correctGlow 0.6s ease;
  box-shadow: 0 0 0 3px #10B981, 0 0 20px rgba(16, 185, 129, 0.4) !important;
  border-color: #10B981 !important;
}

@keyframes correctGlow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.2), 0 0 30px rgba(16, 185, 129, 0.3); }
  100% { box-shadow: 0 0 0 3px #10B981, 0 0 20px rgba(16, 185, 129, 0.4); }
}

/* Sparkle particles */
.sparkle-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #FBBF24;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  animation: sparkleOut 0.6s ease-out forwards;
}

.sparkle-particle:nth-child(odd) {
  background: #F472B6;
  width: 5px;
  height: 5px;
}

.sparkle-particle:nth-child(3n) {
  background: #60A5FA;
  width: 4px;
  height: 4px;
  border-radius: 1px;
}

@keyframes sparkleOut {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx, 30px), var(--dy, -30px)) scale(0);
    opacity: 0;
  }
}

/* Checkmark overlay */
.anim-checkmark-overlay {
  position: fixed;
  z-index: 10001;
  pointer-events: none;
  animation: checkmarkPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes checkmarkPop {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  50% { transform: scale(1.3) rotate(5deg); opacity: 1; }
  70% { transform: scale(1) rotate(0deg); opacity: 1; }
  100% { transform: scale(0.8) rotate(0deg); opacity: 0; }
}

/* ========================================
   COIN REWARD ANIMATION
   ======================================== */

.coin-reward-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
  animation: coinOverlayIn 0.3s ease;
}

.coin-reward-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: coinZoomIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.coin-reward-icon {
  font-size: 72px;
  filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.5));
  animation: coinSpin 0.6s ease;
}

.coin-reward-amount {
  font-family: 'Fredoka One', 'Nunito', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: #F59E0B;
  text-shadow: 0 2px 8px rgba(245, 158, 11, 0.4), 0 0 0 #92400E;
  -webkit-text-stroke: 1px #92400E;
  margin-top: -4px;
}

@keyframes coinZoomIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes coinSpin {
  0% { transform: rotateY(0deg) scale(0.5); }
  50% { transform: rotateY(180deg) scale(1.1); }
  100% { transform: rotateY(360deg) scale(1); }
}

.coin-reward-exit {
  animation: coinOverlayOut 0.4s ease forwards;
}

@keyframes coinOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes coinOverlayOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.5); }
}

/* Flying coins */
.coin-fly {
  position: fixed;
  font-size: 28px;
  pointer-events: none;
  z-index: 10002;
  animation: coinFlyToCounter 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes coinFlyToCounter {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--target-x, -200px), var(--target-y, -300px)) scale(0.3);
    opacity: 0.5;
  }
}

/* ========================================
   COCO POSE ANIMATIONS
   ======================================== */

.coco-bounce {
  animation: cocoBounce 0.5s ease infinite;
}

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

.coco-clap {
  animation: cocoClap 0.4s ease infinite;
}

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

.coco-jump {
  animation: cocoJump 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes cocoJump {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-4px); }
}

.coco-coins {
  animation: cocoCoins 1.5s ease infinite;
}

@keyframes cocoCoins {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}

.coco-wave {
  animation: cocoWave 0.8s ease infinite;
}

@keyframes cocoWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}

/* Match cards shake override */
.match-card.anim-shake {
  animation: feedbackShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Memory card shake override */
.memory-card.anim-shake .memory-card-inner {
  animation: feedbackShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ========================================
   WORLD MAP DASHBOARD (PRIMARY VIEW)
   ======================================== */

.world-dashboard-header {
  text-align: center;
  padding: 16px 0 8px;
}

.world-title {
  font-family: 'Fredoka One', cursive;
  font-size: 28px;
  color: #1f2937;
  margin: 0;
}

.world-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 4px 0 0;
  font-weight: 600;
}

.world-map-main {
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.map-loc-level {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: white;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
  z-index: 6;
  border: 2px solid white;
}

.map-loc-completed .map-loc-level {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.map-loc-locked .map-loc-level {
  background: linear-gradient(135deg, #9CA3AF, #6B7280);
  box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

.map-loc-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.dashboard-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.dashboard-bottom-actions .quick-action-btn {
  min-width: 140px;
}

/* Certificate next world unlocked banner */
.cert-next-world {
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  color: #059669;
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  padding: 12px 24px;
  border-radius: 12px;
  margin-top: 16px;
  display: inline-block;
  animation: nextWorldPulse 1.5s ease infinite;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

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

/* Shop header avatar (replacing Coco) */
.shop-header-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.shop-header-avatar svg {
  width: 64px;
  height: 64px;
}

/* ========================================
   NAVIGATION BACK BUTTON (in nav bar)
   ======================================== */

.btn-back-nav {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all 0.2s ease;
}

.btn-back-nav:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #4f46e5;
}

.btn-logout-session {
  font-size: 12px;
  opacity: 0.7;
}

.btn-logout-session:hover {
  opacity: 1;
}

/* ========================================
   CELEBRATION SEQUENCE (Video-game style)
   ======================================== */

.celebration-sequence {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, #1a1a3e 0%, #0d0d2b 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  overflow: hidden;
}

.celebration-sequence::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(2px 2px at 10% 20%, white 50%, transparent 100%),
    radial-gradient(2px 2px at 30% 60%, white 50%, transparent 100%),
    radial-gradient(1px 1px at 50% 15%, white 50%, transparent 100%),
    radial-gradient(2px 2px at 70% 40%, white 50%, transparent 100%),
    radial-gradient(1px 1px at 85% 70%, white 50%, transparent 100%),
    radial-gradient(1px 1px at 20% 80%, white 50%, transparent 100%),
    radial-gradient(2px 2px at 60% 85%, white 50%, transparent 100%),
    radial-gradient(1px 1px at 90% 20%, white 50%, transparent 100%);
  opacity: 0.3;
  animation: starsTwinkle 3s ease-in-out infinite;
}

@keyframes starsTwinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.celebration-world-zoom {
  text-align: center;
  animation: worldZoomIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes worldZoomIn {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.celebration-scene {
  filter: drop-shadow(0 8px 32px rgba(251, 191, 36, 0.4));
  margin-bottom: 12px;
}

.celebration-world-name {
  font-family: 'Fredoka One', cursive;
  font-size: 24px;
  color: #FBBF24;
  text-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
  margin-top: 8px;
}

.celebration-mission-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  animation: missionTextZoom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  z-index: 10;
}

@keyframes missionTextZoom {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.celebration-title-zoom {
  font-family: 'Fredoka One', cursive;
  font-size: 52px;
  color: white;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 60px rgba(251, 191, 36, 0.3);
  letter-spacing: 2px;
  line-height: 1.1;
  animation: titlePulse 1.5s ease infinite;
}

@keyframes titlePulse {
  0%, 100% { text-shadow: 0 0 20px rgba(251, 191, 36, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5); }
  50% { text-shadow: 0 0 40px rgba(251, 191, 36, 1), 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 80px rgba(251, 191, 36, 0.5); }
}

.celebration-world-label {
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  color: #A78BFA;
  margin-top: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.celebration-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 13, 43, 0.95) 20%, #0d0d2b 100%);
  padding: 32px 20px 24px;
  text-align: center;
  animation: detailsSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes detailsSlideUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.celebration-coco-area {
  margin-bottom: 12px;
}

.celebration-student-name {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: white;
  margin-bottom: 8px;
}

.celebration-module-done {
  margin-bottom: 12px;
}

.celebration-trophy {
  font-size: 48px;
  margin-bottom: 4px;
}

.celebration-module-done p {
  color: #D1D5DB;
  font-size: 16px;
  margin: 4px 0;
}

.celebration-module-done strong {
  color: #FBBF24;
}

.celebration-stars {
  font-size: 28px;
  letter-spacing: 6px;
  margin: 8px 0;
}

.celebration-next-world {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 10px 20px;
  margin: 12px auto;
  display: inline-block;
  animation: unlockPulse 1.5s ease infinite;
}

@keyframes unlockPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.celebration-unlock-icon {
  font-size: 28px;
  margin-bottom: 2px;
}

.celebration-next-world p {
  color: #34D399;
  font-weight: 700;
  font-size: 14px;
  margin: 0;
}

.celebration-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}

.celebration-actions .btn {
  min-width: 220px;
}

/* ========================================
   ENHANCED WORLD MAP LOCATIONS
   ======================================== */

.map-loc-island {
  position: relative;
  display: inline-block;
}

/* Progress ring around world */
.map-loc-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  pointer-events: none;
  z-index: 4;
}

.map-loc-percent {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(251, 191, 36, 0.95);
  color: #92400E;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 6px;
  z-index: 5;
}

/* Lock overlay for locked worlds */
.map-loc-lock-overlay {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  z-index: 5;
  border: 2px dashed rgba(255,255,255,0.25);
}

.map-lock-icon {
  font-size: 32px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
  animation: lockBob 2s ease-in-out infinite;
}

.map-lock-text {
  font-family: 'Fredoka One', cursive;
  font-size: 8px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 1.5px;
  margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

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

/* Certificate badge on completed worlds */
.map-loc-cert-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 6;
  animation: certBadgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-badge-inner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.5), 0 0 0 2px white;
  animation: certGlow 2s ease infinite;
}

.map-loc-cert-partial .cert-badge-inner {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5), 0 0 0 2px white;
}

@keyframes certBadgePop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes certGlow {
  0%, 100% { box-shadow: 0 2px 8px rgba(251, 191, 36, 0.5), 0 0 0 2px white; }
  50% { box-shadow: 0 2px 12px rgba(251, 191, 36, 0.8), 0 0 0 2px white, 0 0 20px rgba(251, 191, 36, 0.3); }
}

/* locked styles consolidated at bottom of file */

/* Unlocked world - slight bounce to invite clicking */
.map-loc-unlocked .map-loc-island {
  animation: islandFloat 3s ease-in-out infinite;
}

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

/* Completed world - golden glow */
.map-loc-completed .map-loc-island {
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.4));
}

.map-loc-completed .map-loc-name {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  border: 1.5px solid #FBBF24;
  font-weight: 900;
}

/* Enhanced path styles */
.map-path-done {
  stroke: #FBBF24;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.6));
}

.map-path-active {
  stroke: rgba(251, 191, 36, 0.5);
  stroke-width: 0.8;
  stroke-dasharray: 3 2;
  animation: pathPulse 2s ease infinite;
}

@keyframes pathPulse {
  0%, 100% { stroke-opacity: 0.5; }
  50% { stroke-opacity: 0.9; }
}

.map-path-locked {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 0.5;
  stroke-dasharray: 1.5 2.5;
}

/* ========================================
   MARIO BROS STYLE - DASHBOARD FULLSCREEN MAP
   ======================================== */

.dashboard-map-fullscreen {
  padding: 8px 12px !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-map-fullscreen .world-map-container {
  flex: 1;
  min-height: 520px;
}

.dashboard-map-fullscreen .map-locations {
  height: 520px;
}

/* ===== NAV BAR - AVATAR BUTTON ===== */
.btn-avatar-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: white;
  border: 2px solid #A78BFA;
  padding: 5px 14px 5px 6px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

.btn-avatar-nav:hover {
  background: linear-gradient(135deg, #6D28D9, #5B21B6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124,58,237,0.4);
}

.btn-avatar-nav svg {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
}

/* ===== MAP HUD OVERLAY ===== */
.map-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.map-hud-worlds {
  background: rgba(0,0,0,0.55);
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 13px;
  font-family: 'Fredoka One', cursive;
  border: 2px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ===== MARIO STYLE MAP LOCATION NAMES ===== */
.map-loc-name {
  font-size: 9px;
  font-weight: 800;
  color: white;
  background: rgba(0,0,0,0.55);
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(3px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.map-loc-completed .map-loc-name {
  background: linear-gradient(135deg, rgba(251,191,36,0.9), rgba(245,158,11,0.9));
  color: #451A03;
  border: 1.5px solid #FBBF24;
  text-shadow: none;
}

/* locked name styles consolidated at bottom */

/* Island platform now built into SVG, no CSS pseudo-element needed */

/* Scene container shadow on water */
.map-loc-scene {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
  margin-bottom: 4px;
  transition: filter 0.3s ease;
}

.map-loc-completed .map-loc-scene {
  filter: drop-shadow(0 4px 16px rgba(251,191,36,0.5)) drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

.map-location:hover .map-loc-scene {
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}

/* ===== MARIO STYLE PATHS (BRIDGES) ===== */
.map-path-done {
  stroke: #FBBF24;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(251,191,36,0.7));
  stroke-linecap: round;
}

.map-path-active {
  stroke: rgba(255,255,255,0.4);
  stroke-width: 1;
  stroke-dasharray: 4 3;
  animation: pathPulse 2s ease infinite;
  stroke-linecap: round;
}

.map-path-locked {
  stroke: rgba(255,255,255,0.1);
  stroke-width: 0.6;
  stroke-dasharray: 2 4;
  stroke-linecap: round;
}

/* ===== MARIO STYLE WORLD MAP MAIN ===== */
.world-map-main {
  min-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 0 80px rgba(0,0,0,0.15);
  border: 3px solid #0D47A1;
}

/* Level number badge - Mario style */
.map-loc-level {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239,68,68,0.5), inset 0 -2px 0 rgba(0,0,0,0.2);
  z-index: 6;
  border: 2.5px solid white;
  font-family: 'Fredoka One', cursive;
}

.map-loc-completed .map-loc-level {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  box-shadow: 0 2px 8px rgba(251,191,36,0.5), inset 0 -2px 0 rgba(0,0,0,0.2);
  color: #451A03;
}

.map-loc-locked .map-loc-level {
  background: linear-gradient(135deg, #6B7280, #4B5563);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ===== LOCKED STYLE — greyscale "apagado", lock floating above ===== */
.map-loc-locked {
  opacity: 1 !important;
  cursor: not-allowed;
  filter: none !important;
}

.map-loc-locked .map-loc-island {
  opacity: 1 !important;
}

.map-loc-locked .map-loc-scene {
  filter: grayscale(1) brightness(0.65) !important;
  opacity: 1 !important;
}

.map-loc-locked .map-loc-name {
  background: rgba(50,50,50,0.75) !important;
  color: rgba(255,255,255,0.6) !important;
  border-color: rgba(255,255,255,0.15) !important;
}

.map-loc-locked .map-loc-level {
  background: linear-gradient(135deg, #6B7280, #4B5563) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.map-loc-locked:hover {
  transform: translate(-50%, -50%) scale(1) !important;
}

/* Floating lock emoji above island */
.map-loc-floating-lock {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  z-index: 10;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5));
  animation: lockFloat 2.5s ease-in-out infinite;
}
@keyframes lockFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

/* Unlocked - floating island animation */
.map-loc-unlocked .map-loc-island {
  animation: islandBob 3s ease-in-out infinite;
}

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

/* Completed - golden glow */
.map-loc-completed .map-loc-island {
  filter: drop-shadow(0 0 16px rgba(251,191,36,0.5));
}

/* Coco traveler on map */
.map-coco-traveler {
  position: absolute;
  z-index: 8;
  transform: translate(-50%, -50%);
  animation: cocoFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

@keyframes cocoFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 8px)); }
}

/* ===== DECORATIVE MAP ELEMENTS ===== */
.map-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  font-size: 16px;
  opacity: 0.6;
}

.map-deco-fish1 {
  bottom: 22%;
  left: 25%;
  animation: fishSwim1 12s ease-in-out infinite;
  font-size: 18px;
}

.map-deco-fish2 {
  bottom: 12%;
  right: 20%;
  animation: fishSwim2 15s ease-in-out infinite;
  font-size: 14px;
  opacity: 0.5;
}

.map-deco-star1 {
  top: 3%;
  right: 5%;
  font-size: 12px;
  opacity: 0.4;
  animation: twinkle 3s ease-in-out infinite;
}

.map-deco-shell {
  bottom: 5%;
  left: 40%;
  font-size: 14px;
  opacity: 0.35;
  animation: shellBob 4s ease-in-out infinite;
}

.map-deco-boat {
  top: 55%;
  left: 42%;
  font-size: 14px;
  opacity: 0.35;
  animation: boatDrift 20s ease-in-out infinite;
}

@keyframes fishSwim1 {
  0%, 100% { transform: translateX(0) scaleX(1); }
  45% { transform: translateX(60px) scaleX(1); }
  50% { transform: translateX(60px) scaleX(-1); }
  95% { transform: translateX(0) scaleX(-1); }
}

@keyframes fishSwim2 {
  0%, 100% { transform: translateX(0) scaleX(-1); }
  45% { transform: translateX(-50px) scaleX(-1); }
  50% { transform: translateX(-50px) scaleX(1); }
  95% { transform: translateX(0) scaleX(1); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.3); }
}

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

@keyframes boatDrift {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(15px) rotate(2deg); }
  50% { transform: translateX(30px) rotate(0deg); }
  75% { transform: translateX(15px) rotate(-2deg); }
}

/* ===== 4TH CLOUD ===== */
.map-cloud-4 {
  top: 8%;
  left: 70%;
  width: 55px;
  height: 24px;
  opacity: 0.5;
  animation: cloudDrift1 20s ease-in-out infinite reverse;
}

.map-cloud-4::before {
  width: 26px;
  height: 26px;
  top: -12px;
  left: 8px;
}

.map-cloud-4::after {
  width: 20px;
  height: 20px;
  top: -8px;
  right: 6px;
}

/* ===== NAV RIGHT SECTION ===== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-logout-session {
  font-size: 14px;
  opacity: 0.6;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-logout-session:hover {
  opacity: 1;
  background: rgba(239,68,68,0.1);
}

/* ===== MODULE UNLOCK ANIMATION ===== */
.unlock-anim-container {
  position: absolute;
  pointer-events: none;
  z-index: 100;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
}
.anim-lock {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%) scale(1);
}
.anim-lock-shackle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 36px;
  border: 8px solid #94a3b8;
  border-bottom: none;
  border-radius: 25px 25px 0 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: right bottom;
}
.anim-lock-shackle.breaking {
  transform: translateX(-50%) rotate(-50deg) translateY(-12px);
  border-color: #fbbf24;
}
.anim-lock-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 58px;
  background: linear-gradient(135deg, #94a3b8, #64748b);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
}
.anim-lock-body.breaking {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 30px rgba(251,191,36,0.6);
}
.anim-lock-keyhole {
  width: 14px;
  height: 22px;
  position: relative;
}
.anim-lock-keyhole::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #1e293b;
  border-radius: 50%;
}
.anim-lock-keyhole::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 12px;
  background: #1e293b;
  border-radius: 0 0 3px 3px;
}

@keyframes unlockShake {
  0%, 100% { transform: translate(-50%, -50%) rotate(0); }
  10% { transform: translate(calc(-50% - 6px), -50%) rotate(-4deg); }
  20% { transform: translate(calc(-50% + 6px), -50%) rotate(4deg); }
  30% { transform: translate(calc(-50% - 5px), -50%) rotate(-3deg); }
  40% { transform: translate(calc(-50% + 5px), -50%) rotate(3deg); }
  50% { transform: translate(calc(-50% - 3px), -50%) rotate(-2deg); }
  60% { transform: translate(calc(-50% + 3px), -50%) rotate(2deg); }
  70% { transform: translate(calc(-50% - 2px), -50%) rotate(0); }
}
.anim-lock.shaking {
  animation: unlockShake 0.5s ease-in-out;
}
@keyframes unlockExplode {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}
.anim-lock.exploding {
  animation: unlockExplode 0.35s ease-in forwards;
}

.unlock-spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.unlock-glow-ring {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  border-radius: 50%;
  border: 3px solid #fbbf24;
  opacity: 0;
  pointer-events: none;
}
@keyframes unlockGlowExpand {
  0% { transform: scale(0.5); opacity: 1; border-width: 3px; }
  100% { transform: scale(5); opacity: 0; border-width: 0.5px; }
}
.unlock-star-burst {
  position: absolute;
  font-size: 22px;
  opacity: 0;
  pointer-events: none;
}
@keyframes unlockStarPop {
  0% { transform: scale(0) rotate(0); opacity: 0; }
  50% { transform: scale(1.4) rotate(180deg); opacity: 1; }
  100% { transform: scale(0.6) rotate(360deg); opacity: 0; }
}
.unlock-confetti {
  position: fixed;
  pointer-events: none;
  z-index: 200;
}
.unlock-flash {
  position: fixed;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 150;
}
@keyframes unlockFlash {
  0% { opacity: 0; }
  15% { opacity: 0.6; }
  100% { opacity: 0; }
}
@keyframes unlockIslandPulse {
  0% { filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) brightness(1); }
  50% { filter: drop-shadow(0 0 20px rgba(251,191,36,0.8)) brightness(1.3); }
  100% { filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) brightness(1); }
}
.map-loc-scene.pulse-glow svg {
  animation: unlockIslandPulse 0.8s ease-in-out 3;
}
.unlock-name-reveal {
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%) scale(0);
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 150;
}
.unlock-name-reveal.visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.unlock-name-text {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 14px;
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(245,158,11,0.5);
  display: inline-block;
}
.unlock-name-sub {
  display: block;
  font-size: 10px;
  color: #fde68a;
  margin-top: 2px;
}

/* ========================================
   COCO WELCOME OVERLAY
   ======================================== */
.coco-welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.coco-welcome-overlay.active {
  opacity: 1;
}
.coco-welcome-box {
  background: white;
  border-radius: 24px;
  padding: 40px 36px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.7) translateY(40px);
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.coco-welcome-overlay.active .coco-welcome-box {
  transform: scale(1) translateY(0);
}
.coco-welcome-avatar {
  margin-bottom: 16px;
}
.coco-welcome-bubble h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 28px;
  color: #f59e0b;
  margin: 0 0 12px;
}
.coco-welcome-bubble p {
  font-size: 16px;
  color: #374151;
  line-height: 1.6;
  margin: 0 0 12px;
}
.coco-welcome-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 40px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.coco-welcome-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(245,158,11,0.5);
}

/* ========================================
   UPGRADED COIN EFFECTS
   ======================================== */
.coin-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
}
.coin-lose .coin-reward-big {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  box-shadow: 0 0 30px rgba(239,68,68,0.5) !important;
}
.coin-fly-lose {
  animation: coinFlyDown 0.8s ease-in forwards !important;
}
@keyframes coinFlyDown {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.3) translateY(120px); }
}
.coin-counter-pulse {
  animation: counterPulse 0.4s ease-out;
}
@keyframes counterPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ========================================
   CORRECT / INCORRECT FEEDBACK EFFECTS
   ======================================== */
.correct-star-pop {
  position: absolute;
  font-size: 24px;
  pointer-events: none;
  z-index: 1000;
}
.anim-xmark-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
}
.screen-flash-green {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(34,197,94,0.3), transparent 70%);
  pointer-events: none;
  z-index: 9998;
  animation: flashFade 0.6s ease-out forwards;
}
.screen-flash-red {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(239,68,68,0.25), transparent 70%);
  pointer-events: none;
  z-index: 9998;
  animation: flashFade 0.5s ease-out forwards;
}
@keyframes flashFade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ========================================
   MEMORY GAME - BIGGER CARDS
   ======================================== */
.memory-grid {
  gap: 14px !important;
}
.memory-card-front {
  font-size: 38px !important;
}
.memory-card-back {
  font-size: 22px !important;
  padding: 10px !important;
  line-height: 1.3 !important;
}
.memory-card-back .memory-emoji {
  font-size: 36px !important;
  display: block;
  margin-bottom: 4px;
}

/* ========================================
   AVATAR BUILDER (Full-Body System v2)
   ======================================== */

.avatar-builder-layout {
  display: flex;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 10px;
  min-height: calc(100vh - 80px);
}
.avatar-builder-left {
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 12px 10px;
  background: rgba(0,0,0,0.25);
  border-radius: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,215,0,0.3) rgba(0,0,0,0.2);
}
.avatar-builder-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 10px;
}
.avatar-builder-right {
  width: 260px;
  overflow-y: auto;
  padding: 12px 10px;
  background: rgba(0,0,0,0.25);
  border-radius: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,215,0,0.3) rgba(0,0,0,0.2);
}
.avatar-builder-left::-webkit-scrollbar,
.avatar-builder-right::-webkit-scrollbar { width: 6px; }
.avatar-builder-left::-webkit-scrollbar-thumb,
.avatar-builder-right::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.3); border-radius: 6px; }

.avatar-cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.avatar-cat-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
.avatar-cat-btn.active { background: rgba(251,191,36,0.15); border-color: #fbbf24; color: #fbbf24; box-shadow: 0 0 10px rgba(251,191,36,0.2); }
.avatar-cat-emoji { font-size: 18px; flex-shrink: 0; }

.avatar-stage-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 350px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px;
  border: 2px solid rgba(251,191,36,0.15);
  box-shadow: inset 0 0 20px rgba(251,191,36,0.05);
}
.avatar-builder-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}
.avatar-builder-preview svg {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.avatar-section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 14px;
  color: #fde68a;
  margin: 12px 0 8px;
}
.avatar-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.avatar-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.avatar-option-card:hover { background: rgba(255,255,255,0.15); transform: scale(1.05); }
.avatar-option-card.selected { border-color: #fbbf24; background: rgba(251,191,36,0.15); }
.avatar-option-card.locked { opacity: 0.5; cursor: default; }
.avatar-option-card.locked:hover { transform: none; }
.avatar-option-icon { font-size: 26px; display: block; }
.avatar-option-name { font-size: 11px; font-weight: 700; color: white; line-height: 1.2; }
.avatar-option-price { font-size: 10px; color: #fbbf24; font-weight: 800; }
.avatar-option-owned {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px;
  background: #10b981; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: white; font-weight: bold;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.avatar-option-owned::after { content: '\2713'; }
.avatar-option-lock {
  position: absolute; top: 3px; right: 3px; font-size: 12px;
}

.avatar-color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.avatar-color-swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.avatar-color-swatch:hover { transform: scale(1.15); }
.avatar-color-swatch.selected { border-color: white; box-shadow: 0 0 12px rgba(255,255,255,0.5); }

.avatar-randomize-btn {
  width: 100%;
  padding: 10px;
  margin-top: auto;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}
.avatar-randomize-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(236,72,153,0.4); }

@media (max-width: 768px) {
  .avatar-builder-layout { flex-direction: column; min-height: auto; }
  .avatar-builder-left {
    width: 100%; flex-direction: row; overflow-x: auto; overflow-y: hidden;
    padding: 10px; gap: 6px;
  }
  .avatar-cat-btn { flex-shrink: 0; width: auto; min-width: 120px; }
  .avatar-builder-center { min-height: 280px; order: -1; }
  .avatar-builder-right { width: 100%; }
  .avatar-options-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Coco popup animations */
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* ========================================
   STUDENT HOMEPAGE — COLORFUL EDITION
   ======================================== */

.student-homepage {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a0533, #0d1b3e, #0a2a1f, #1a0533);
  background-size: 400% 400%;
  animation: homepageBgShift 12s ease infinite;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

@keyframes homepageBgShift {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 0%; }
  75% { background-position: 0% 100%; }
}

/* Floating color orbs */
.homepage-bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.homepage-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}

.homepage-orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #ff6b9d, #c44dff);
  top: -80px; left: -60px;
  animation-duration: 10s;
}
.homepage-orb-2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #4dc9f6, #3b82f6);
  top: 30%; right: -40px;
  animation-duration: 8s;
  animation-delay: -3s;
}
.homepage-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #fbbf24, #f97316);
  bottom: 10%; left: 15%;
  animation-duration: 9s;
  animation-delay: -5s;
}
.homepage-orb-4 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, #4ade80, #10b981);
  top: 50%; left: 50%;
  animation-duration: 11s;
  animation-delay: -2s;
}
.homepage-orb-5 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, #f472b6, #ec4899);
  bottom: -50px; right: 20%;
  animation-duration: 7s;
  animation-delay: -4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 15px) scale(0.9); }
}

/* Floating decorative emojis */
.homepage-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  animation: decoFloat 4s ease-in-out infinite;
}

@keyframes decoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

.homepage-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 40px;
  gap: 22px;
  position: relative;
  z-index: 2;
}

/* Title section */
.homepage-title-section {
  text-align: center;
  animation: fadeInUp 0.5s ease;
}

.homepage-title {
  font-family: 'Fredoka One', cursive;
  font-size: 44px;
  background: linear-gradient(135deg, #ff6b9d, #fbbf24, #4ade80, #4dc9f6, #c44dff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowText 4s ease infinite;
  margin: 0;
  filter: drop-shadow(0 4px 12px rgba(251,191,36,0.3));
}

@keyframes rainbowText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.homepage-subtitle {
  color: #e2e8f0;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  margin: 4px 0 0;
  opacity: 0.85;
}

/* Coco greeting section */
.homepage-coco-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.homepage-coco-avatar {
  filter: drop-shadow(0 6px 20px rgba(251,191,36,0.4));
  animation: cocoFloat 3s ease-in-out infinite;
}

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

.homepage-coco-bubble {
  background: linear-gradient(145deg, rgba(30,20,60,0.92), rgba(20,30,60,0.92));
  border-radius: 20px;
  padding: 16px 24px;
  outline: 2px solid rgba(251,191,36,0.3);
  outline-offset: -1px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 20px rgba(251,191,36,0.08);
  max-width: 360px;
  text-align: center;
  position: relative;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.homepage-coco-bubble::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(251,191,36,0.3);
}

.homepage-coco-bubble::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(30,20,60,0.92);
}

.homepage-coco-text {
  color: #f1e8ff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  line-height: 1.4;
}

/* Menu cards */
.homepage-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 800px;
  width: 100%;
}

.home-card {
  border-radius: 24px;
  padding: 28px 24px;
  width: 220px;
  text-align: center;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.home-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
}

.home-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.home-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.home-card:hover::after {
  opacity: 1;
}

.home-card:active {
  transform: translateY(-3px) scale(1.01);
}

/* Card: Mundo INITIALS — green/teal */
.home-card-mundo {
  background: linear-gradient(145deg, #0a2e1a, #0d3b2a, #0a2516);
  border-color: rgba(74,222,128,0.15);
}
.home-card-mundo::before { background: linear-gradient(90deg, #4ade80, #22d3ee, #10b981); }
.home-card-mundo::after { background: radial-gradient(circle at 50% 0%, rgba(74,222,128,0.12), transparent 70%); }
.home-card-mundo:hover { box-shadow: 0 16px 40px rgba(74,222,128,0.2), 0 0 30px rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.35); }

/* Card: Mi Avatar — pink/purple */
.home-card-avatar {
  background: linear-gradient(145deg, #2a0a2e, #3b0d3b, #250a35);
  border-color: rgba(244,114,182,0.15);
}
.home-card-avatar::before { background: linear-gradient(90deg, #f472b6, #c084fc, #e879f9); }
.home-card-avatar::after { background: radial-gradient(circle at 50% 0%, rgba(244,114,182,0.12), transparent 70%); }
.home-card-avatar:hover { box-shadow: 0 16px 40px rgba(244,114,182,0.2), 0 0 30px rgba(196,132,252,0.1); border-color: rgba(244,114,182,0.35); }

/* Card: Mis Logros — gold/orange */
.home-card-logros {
  background: linear-gradient(145deg, #2e1a0a, #3b2a0d, #352510);
  border-color: rgba(251,191,36,0.15);
}
.home-card-logros::before { background: linear-gradient(90deg, #fbbf24, #f97316, #fbbf24); }
.home-card-logros::after { background: radial-gradient(circle at 50% 0%, rgba(251,191,36,0.12), transparent 70%); }
.home-card-logros:hover { box-shadow: 0 16px 40px rgba(251,191,36,0.2), 0 0 30px rgba(249,115,22,0.1); border-color: rgba(251,191,36,0.35); }

.home-card-icon {
  font-size: 52px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.home-card-title {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 6px;
}

.home-card-desc {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 14px;
  line-height: 1.3;
}

.home-card-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-card-progress span {
  color: #4ade80;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  min-width: 35px;
}

.home-card-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.home-card-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22d3ee);
  border-radius: 4px;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(74,222,128,0.4);
}

.home-card-badge {
  font-size: 15px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  border-radius: 12px;
  padding: 6px 14px;
  display: inline-block;
}

.home-card-avatar .home-card-badge {
  color: #fbbf24;
  background: rgba(251,191,36,0.12);
}

.home-card-logros .home-card-badge {
  color: #f97316;
  background: rgba(249,115,22,0.12);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-card:nth-child(1) { animation: fadeInUp 0.5s ease 0.15s both; }
.home-card:nth-child(2) { animation: fadeInUp 0.5s ease 0.3s both; }
.home-card:nth-child(3) { animation: fadeInUp 0.5s ease 0.45s both; }

/* ========================================
   LOGROS (ACHIEVEMENTS) VIEW
   ======================================== */

.logros-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logro-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 16px;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,0.06);
  transition: all 0.2s ease;
}

.logro-card.logro-completed {
  border-color: rgba(251,191,36,0.25);
  box-shadow: 0 0 12px rgba(251,191,36,0.1);
}

.logro-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.logro-name {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 6px;
}

.logro-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logro-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.logro-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.logro-pct {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  min-width: 32px;
  text-align: right;
}

.logro-badge {
  font-size: 28px;
  flex-shrink: 0;
}

/* ========================================
   WORLD MAP — Pin-based map styles
   ======================================== */

/* Gradient stripe */
.wm-grad-stripe { height: 4px; flex-shrink: 0; background: linear-gradient(90deg, #f59e0b, #f97316, #ef4444, #f97316, #f59e0b); }

/* Profile row */
.wm-profile-row { display: flex; align-items: center; gap: 12px; padding: 2px 20px; flex-shrink: 0; }
.wm-avatar-sm { width: 40px; height: 40px; border-radius: 50%; background: #fdba74; display: flex; align-items: center; justify-content: center; font-size: 20px; border: 2px solid white; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.wm-prof-info { flex: 1; }
.wm-prof-label { font-size: 9px; font-weight: 900; color: #a78bfa; letter-spacing: 2px; text-transform: uppercase; }
.wm-prof-name { font-family: 'Fredoka One', cursive; font-size: 17px; color: #1e3a5f; line-height: 1.1; }
.wm-prof-stats { display: flex; gap: 8px; }
.wm-stat { border: 2px solid #e2e8f0; border-radius: 16px; padding: 3px 12px; font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 4px; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.wm-st-star { color: #b45309; border-color: #fde68a; background: #fffbeb; }

/* Title + progress */
.wm-title-area { text-align: center; padding: 0 16px 0; flex-shrink: 0; }
.wm-title { font-family: 'Fredoka One', cursive; font-size: 16px; color: #1e3a5f; margin: 0; }
.wm-subtitle { color: #64748b; font-size: 10px; margin-top: 0; }
.wm-prog-track { max-width: 520px; margin: 3px auto 0; background: white; border: 2px solid #fed7aa; border-radius: 12px; height: 14px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.05); }
.wm-prog-fill { height: 100%; border-radius: 12px; background: linear-gradient(90deg, #f59e0b, #f97316, #ef4444); transition: width .5s; box-shadow: 0 1px 4px rgba(249,115,22,.4); }
.wm-prog-text { text-align: center; font-size: 11px; color: #6b7280; font-weight: 800; margin-top: 3px; }

/* Map card */
.wm-map-wrap { flex: 1; display: flex; align-items: flex-start; justify-content: center; min-height: 0; padding: 4px 12px 0; }
.wm-map-card { width: 100%; max-width: 760px; max-height: 100%; aspect-ratio: 1.55 / 1; border-radius: 18px; overflow: hidden; position: relative; border: 4px solid #60a5fa; box-shadow: 0 4px 24px rgba(96,165,250,.3), 0 2px 12px rgba(0,0,0,.1); }
.wm-map-inner { position: relative; width: 100%; height: 100%; }
.wm-map-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Flight paths */
.wm-flight-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* Pins */
.wm-pin { position: absolute; transform: translate(-50%, -50%); cursor: pointer; z-index: 10; transition: transform .12s; }
.wm-pin:hover { transform: translate(-50%, -50%) scale(1.12); }
.wm-pin-m { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; color: white; box-shadow: 0 2px 10px rgba(0,0,0,.3); position: relative; border: 2.5px solid rgba(255,255,255,.6); }
.wm-pin-lbl { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px; background: rgba(30,58,95,.82); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.wm-pin-lbl span { font-size: 9px; font-weight: 800; color: white; }

/* Pin states */
.wm-pin-locked .wm-pin-m { background: linear-gradient(135deg, #94a3b8, #cbd5e1); border-color: rgba(255,255,255,.3); }
.wm-pin-active .wm-pin-m { background: linear-gradient(135deg, #10b981, #34d399); animation: wmPp 2s infinite; border-color: rgba(255,255,255,.8); }
.wm-pin-active .wm-pin-m::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #10b981; animation: wmRp 2s infinite; }
.wm-pin-completed .wm-pin-m { background: linear-gradient(135deg, #10b981, #059669); border-color: rgba(255,255,255,.8); }
.wm-pin-preview .wm-pin-m { background: linear-gradient(135deg, #f59e0b, #fbbf24); animation: wmPp 2s infinite; border-color: rgba(255,255,255,.8); }
.wm-pin-preview .wm-pin-m::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #f59e0b; animation: wmRp 2.5s infinite; }
.wm-pin-final .wm-pin-m { background: linear-gradient(135deg, #ec4899, #f472b6); border-color: rgba(255,255,255,.8); }
.wm-pin-final.wm-pin-locked .wm-pin-m { background: linear-gradient(135deg, #94a3b8, #cbd5e1); border-color: rgba(255,255,255,.3); }
@keyframes wmPp { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes wmRp { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* Coco on map */
.wm-coco-on-map { position: absolute; z-index: 20; pointer-events: none; display: flex; align-items: flex-start; gap: 4px; }
.wm-coco-col { display: flex; flex-direction: column; align-items: center; }
.wm-coco-tag { background: #1e3a5f; color: white; font-size: 7px; font-weight: 900; padding: 1px 6px; border-radius: 4px; letter-spacing: 1px; margin-top: -2px; }
.wm-coco-bubble { background: white; border: 2px solid #fde68a; border-radius: 12px; padding: 6px 10px; font-size: 10px; font-weight: 600; color: #1e3a5f; max-width: 200px; line-height: 1.3; box-shadow: 0 2px 10px rgba(0,0,0,.1); position: relative; margin-left: 2px; }
.wm-coco-bubble::before { content: ''; position: absolute; left: -8px; top: 12px; border: 5px solid transparent; border-right-color: white; }

/* Legend */
.wm-map-legend { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,.9); backdrop-filter: blur(4px); border-radius: 10px; padding: 8px 10px; z-index: 15; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
.wm-map-legend h4 { font-size: 9px; font-weight: 900; color: #1e3a5f; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 5px; }
.wm-lg-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; cursor: pointer; font-size: 10px; font-weight: 700; color: #475569; }
.wm-lg-row:hover { color: #1e3a5f; }
.wm-lg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.wm-lg-code { color: #94a3b8; font-size: 9px; font-weight: 800; min-width: 18px; }

/* Bottom bar */
.wm-bottom-bar-wrap { position: relative; display: flex; justify-content: center; padding: 8px 16px 12px; z-index: 30; flex-shrink: 0; }
.wm-bottom-bar { background: linear-gradient(135deg, #fce4ec, #f8bbd0, #e1bee7); padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; border-radius: 14px; max-width: 700px; width: 100%; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.wm-bb-left { }
.wm-bb-label { font-size: 9px; font-weight: 900; color: #7c3aed; letter-spacing: 1.5px; text-transform: uppercase; }
.wm-bb-title { font-family: 'Fredoka One', cursive; font-size: 14px; color: #1e3a5f; margin-top: 1px; }
.wm-bb-sub { font-size: 10px; color: #6b7280; margin-top: 1px; }
.wm-btn-desp { background: white; color: #f97316; border: 2px solid #fdba74; padding: 8px 22px; border-radius: 14px; font-family: 'Fredoka One', cursive; font-size: 13px; cursor: pointer; box-shadow: 0 3px 14px rgba(249,115,22,.15); transition: transform .12s, box-shadow .12s; letter-spacing: .5px; }
.wm-btn-desp:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(249,115,22,.25); }
.wm-btn-wait { background: #e2e8f0 !important; color: #94a3b8 !important; border-color: #cbd5e1 !important; cursor: not-allowed !important; box-shadow: none !important; }
.wm-btn-wait:hover { transform: none !important; box-shadow: none !important; }

/* Destination modal */
.wm-modal-ov { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 500; display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.wm-modal-ov.wm-show { display: flex; animation: wmFi .2s; }
@keyframes wmFi { from { opacity: 0; } to { opacity: 1; } }
.wm-dc { background: white; border-radius: 20px; width: 360px; max-width: 90vw; max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,.3); animation: wmCu .3s cubic-bezier(.34,1.56,.64,1); position: relative; }
@keyframes wmCu { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.wm-dc-hero { width: 100%; height: 180px; object-fit: cover; }
.wm-dc-body { padding: 16px 20px 20px; text-align: center; }
.wm-dc-city { font-family: 'Fredoka One', cursive; font-size: 24px; color: #1e3a5f; }
.wm-dc-country { font-size: 14px; color: #64748b; font-weight: 700; margin: 3px 0; }
.wm-dc-fact { font-size: 12px; color: #94a3b8; font-style: italic; margin-bottom: 14px; }
.wm-btn-ver { background: linear-gradient(135deg, #f59e0b, #f97316); color: white; border: none; padding: 12px 0; border-radius: 12px; font-family: 'Fredoka One', cursive; font-size: 16px; cursor: pointer; width: 100%; box-shadow: 0 3px 12px rgba(249,115,22,.3); }
.wm-btn-x { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.3); border: none; color: white; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; }

/* Mission reveal */
.wm-mr { display: none; padding: 16px 20px 20px; text-align: center; }
.wm-mr.wm-mr-show { display: block; animation: wmRu .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes wmRu { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.wm-mr-emoji { font-size: 48px; display: block; margin-bottom: 8px; }
.wm-mr-title { font-family: 'Fredoka One', cursive; font-size: 18px; color: #f59e0b; margin-bottom: 4px; }
.wm-mr-sub { font-size: 12px; color: #64748b; line-height: 1.4; margin-bottom: 12px; }
.wm-mr-prog { background: #e2e8f0; border-radius: 8px; height: 8px; margin-bottom: 12px; overflow: hidden; }
.wm-mr-prog-fill { height: 100%; background: linear-gradient(90deg, #10b981, #34d399); border-radius: 8px; }
.wm-btn-emp { background: linear-gradient(135deg, #10b981, #059669); color: white; border: none; padding: 12px 0; border-radius: 12px; font-family: 'Fredoka One', cursive; font-size: 16px; cursor: pointer; width: 100%; box-shadow: 0 3px 12px rgba(16,185,129,.3); }
.wm-btn-emp-wait { background: linear-gradient(135deg, #94a3b8, #cbd5e1) !important; color: #475569 !important; cursor: not-allowed !important; box-shadow: none !important; }
.wm-wait-note { font-size: 11px; color: #94a3b8; margin-top: 6px; font-weight: 700; }

/* Coco travel */
.wm-coco-travel { position: absolute; z-index: 25; pointer-events: none; transition: none; }

/* Confetti */
.wm-conf { position: fixed; width: 8px; height: 8px; z-index: 700; pointer-events: none; animation: wmCd 1.8s forwards; }
@keyframes wmCd { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }

/* Make dashboard relative for bottom bar absolute positioning */
.student-dashboard { position: relative; min-height: 100vh; display: flex; flex-direction: column; }

/* Responsive */
@media (max-width: 640px) {
  .wm-map-legend { display: none; }
  .wm-coco-bubble { display: none; }
  .wm-pin-m { width: 30px; height: 30px; font-size: 11px; }
  .wm-pin-lbl span { font-size: 8px; }
}

/* ========================================
   WELCOME / LANDING SCREEN (INITIO)
   ======================================== */

.welcome-screen {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
  isolation: isolate;
}

.welcome-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/fondo-welcome.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.18) contrast(1.12) brightness(1.02);
  z-index: -2;
}

.welcome-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom, rgba(255, 200, 240, 0.18), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

/* Floating decorations */
.welcome-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.welcome-deco {
  position: absolute;
  display: inline-block;
  filter: drop-shadow(0 2px 6px rgba(124, 58, 237, 0.15));
  animation: welcomeFloat 7s ease-in-out infinite;
  user-select: none;
}
.welcome-deco-star {
  font-size: 22px;
  opacity: 0.55;
  color: #c084fc;
}
.welcome-deco-pin {
  font-size: 26px;
  opacity: 0.45;
}
.welcome-deco.d1 { top: 12%; left: 14%; animation-delay: 0s; }
.welcome-deco.d2 { top: 22%; right: 18%; animation-delay: 1.2s; font-size: 16px; }
.welcome-deco.d3 { bottom: 28%; left: 8%;  animation-delay: 2.1s; font-size: 18px; }
.welcome-deco.d4 { bottom: 14%; right: 10%; animation-delay: 1.6s; font-size: 20px; }
.welcome-deco.d5 { top: 55%;  left: 4%;   animation-delay: 0.8s; font-size: 14px; }
.welcome-deco.d6 { top: 28%;  left: 6%;   animation-delay: 0.4s; }
.welcome-deco.d7 { top: 18%;  right: 8%;  animation-delay: 2.4s; }
.welcome-deco.d8 { bottom: 22%; right: 22%; animation-delay: 1.8s; font-size: 22px; }

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

/* Top bar */
.welcome-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  padding: 22px 28px 0;
}

.welcome-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.12), 0 1px 2px rgba(0,0,0,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #4c1d95;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.welcome-lang-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.18);
}
.welcome-lang-globe { font-size: 16px; line-height: 1; }

/* Stage / content column */
.welcome-stage {
  position: relative;
  z-index: 4;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo */
.welcome-logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 12px;
  margin-bottom: 14px;
  animation: welcomePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.welcome-logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(54px, 8vw, 80px);
  letter-spacing: 0.18em;
  color: #111827;
  line-height: 1;
  -webkit-text-fill-color: #111827; /* override any inherited gradient */
  background: none;
}
.welcome-logo-dot {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  border-radius: 50%;
  background: #7c3aed;
  font-size: clamp(54px, 8vw, 80px);
  margin-bottom: 0.08em;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

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

/* Headline */
.welcome-headline {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  color: #1f2937;
  margin: 0 0 22px;
  max-width: 520px;
  line-height: 1.35;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.welcome-headline-spark {
  display: inline-block;
  margin-left: 4px;
  animation: welcomeSparkle 2.6s ease-in-out infinite;
}

@keyframes welcomeSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%      { transform: scale(1.15) rotate(15deg); opacity: 0.85; }
}

/* Coco + speech bubble */
.welcome-coco-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 26px;
  width: 100%;
  max-width: 520px;
}

.welcome-coco {
  width: clamp(160px, 22vw, 210px);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(124, 58, 237, 0.22));
  animation: welcomeCoco 4.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  transform-origin: center bottom;
}

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

.welcome-bubble {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  padding: 14px 18px;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.14), 0 1px 2px rgba(0,0,0,0.05);
  font-family: 'Nunito', sans-serif;
  text-align: left;
  max-width: 220px;
  border: 1px solid rgba(255,255,255,0.8);
}
.welcome-bubble-line1 {
  font-weight: 800;
  font-size: 15px;
  color: #111827;
  margin-bottom: 2px;
}
.welcome-bubble-emoji { font-size: 14px; }
.welcome-bubble-line2 {
  font-weight: 600;
  font-size: 13px;
  color: #6b7280;
}
.welcome-bubble-tail {
  position: absolute;
  left: -8px;
  top: 28px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  transform: rotate(45deg);
  border-left: 1px solid rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.8);
  border-radius: 3px;
  box-shadow: -3px 3px 6px rgba(124, 58, 237, 0.06);
}

/* Role cards */
.welcome-cards {
  display: flex;
  gap: 18px;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin-bottom: 22px;
}

.welcome-card {
  position: relative;
  flex: 1;
  min-height: 156px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.3s ease;
}
.welcome-card:focus-visible {
  outline: 3px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
}

.welcome-card--student {
  background: linear-gradient(150deg, #34d399 0%, #10b981 55%, #059669 100%);
  box-shadow: 0 18px 32px rgba(16, 185, 129, 0.32),
              0 0 0 1px rgba(255,255,255,0.18) inset;
}
.welcome-card--student:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 26px 44px rgba(16, 185, 129, 0.42),
              0 0 30px rgba(52, 211, 153, 0.3),
              0 0 0 1px rgba(255,255,255,0.22) inset;
}

.welcome-card--teacher {
  background: linear-gradient(150deg, #a78bfa 0%, #8b5cf6 55%, #7c3aed 100%);
  box-shadow: 0 18px 32px rgba(124, 58, 237, 0.32),
              0 0 0 1px rgba(255,255,255,0.18) inset;
}
.welcome-card--teacher:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 26px 44px rgba(124, 58, 237, 0.42),
              0 0 30px rgba(167, 139, 250, 0.3),
              0 0 0 1px rgba(255,255,255,0.22) inset;
}

.welcome-card-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.welcome-card-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.18);
}
.welcome-card-sub {
  font-weight: 600;
  font-size: 13px;
  opacity: 0.92;
}
.welcome-card-arrow {
  position: absolute;
  bottom: 14px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
  transition: transform 0.25s ease, background 0.25s ease;
}
.welcome-card:hover .welcome-card-arrow {
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(3px);
}

.welcome-card-deco {
  position: absolute;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.welcome-card-deco-1 { top: 12px; left: 14px; }
.welcome-card-deco-2 { bottom: 16px; left: 18px; font-size: 12px; opacity: 0.6; }

/* Footer pill */
.welcome-footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #4c1d95;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.welcome-footer-heart { font-size: 14px; line-height: 1; }

/* Responsive */
@media (max-width: 640px) {
  .welcome-stage { padding: 16px 16px 32px; }
  .welcome-coco-area { flex-direction: column; gap: 6px; }
  .welcome-bubble { max-width: 260px; }
  .welcome-bubble-tail {
    left: 50%;
    top: -8px;
    transform: translateX(-50%) rotate(225deg);
  }
  .welcome-cards { flex-direction: column; gap: 14px; }
  .welcome-card { min-height: 130px; }
  .welcome-headline { font-size: 17px; padding: 0 12px; }
  .welcome-topbar { padding: 16px 18px 0; }
}

/* ========================================
   END OF STYLESHEET
   ======================================== */
