/* ==========================================================================
   NeuroKids (Estilo Mattel / Fisher-Price) - Componentes, Botones y Juegos 3D
   ========================================================================== */

/* Tarjetas Base estilo Juguete Moldeado */
.card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-card);
  border: 3px solid #ffffff;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Tarjeta Mascota NeuroBot 🤖 con Marco Amarillo Sol */
.neurobot-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%);
  border: 3px solid var(--toy-yellow);
  box-shadow: 0 6px 0 var(--toy-yellow-bevel), 0 10px 20px rgba(202, 138, 4, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.neurobot-avatar-box {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--toy-blue-bright) 0%, var(--toy-blue) 100%);
  display: grid;
  place-items: center;
  font-size: 34px;
  flex-shrink: 0;
  border: 3px solid #ffffff;
  box-shadow: 0 5px 0 var(--toy-blue-bevel), 0 8px 14px rgba(2, 132, 199, 0.3);
  animation: botWiggle 3.2s ease-in-out infinite;
  cursor: pointer;
}

@keyframes botWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-6deg) scale(1.06); }
  75% { transform: rotate(6deg) scale(1.06); }
}

.neurobot-speech {
  flex: 1;
  background: #ffffff;
  border-radius: 18px;
  padding: 10px 13px;
  border: 2px solid #fde047;
  box-shadow: 0 3px 0 #eab308;
  position: relative;
}

.neurobot-speech::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px 9px 7px 0;
  border-style: solid;
  border-color: transparent #ffffff transparent transparent;
}

.neurobot-title {
  font-size: 11px;
  font-weight: 900;
  color: var(--toy-orange-bevel);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.neurobot-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

/* Banner Hero Bilateral (Azul Cielo -> Índigo -> Rosa Alegre) */
.hero-banner {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 52%, #ec4899 100%);
  color: white;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 0 #4338ca, 0 16px 26px -4px rgba(99, 102, 241, 0.42);
  padding: 18px 16px;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 5px 13px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.hero-banner h2 {
  font-size: 21px;
  line-height: 1.22;
  margin-bottom: 6px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(185, 28, 28, 0.35);
}

.hero-banner p {
  font-size: 13.5px;
  opacity: 0.96;
  line-height: 1.4;
  margin-bottom: 16px;
  font-weight: 700;
}

/* Botón Principal Gigante estilo Juguete Amarillo Brillante */
.btn-primary {
  width: 100%;
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  color: #713f12;
  border: 3px solid #ffffff;
  border-radius: 20px;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  box-shadow: 0 6px 0 var(--toy-yellow-bevel), 0 10px 18px rgba(180, 83, 9, 0.28);
  transition: all 0.1s ease;
}

.btn-primary::before,
.btn-solid::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 16px;
  right: 16px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.btn-primary:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--toy-yellow-bevel), 0 3px 6px rgba(180, 83, 9, 0.2);
}

/* Botón Sólido Azul Juguete */
.btn-solid {
  width: 100%;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: white;
  border: 3px solid #ffffff;
  border-radius: 20px;
  padding: 15px 18px;
  font-size: 15.5px;
  font-weight: 900;
  cursor: pointer;
  position: relative;
  text-shadow: 0 1px 2px rgba(3, 105, 161, 0.5);
  box-shadow: 0 6px 0 var(--toy-blue-bevel), 0 10px 18px rgba(2, 132, 199, 0.35);
  transition: all 0.1s ease;
}

.btn-solid:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--toy-blue-bevel);
}

.btn-secondary {
  width: 100%;
  background: #ffffff;
  color: var(--text);
  border: 3px solid #cbd5e1;
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #94a3b8;
  transition: all 0.1s ease;
}

.btn-secondary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #94a3b8;
}

.btn-danger-outline {
  width: 100%;
  background: var(--toy-red-soft);
  color: var(--toy-red-bevel);
  border: 3px solid #f87171;
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--toy-red-bevel);
  transition: all 0.1s ease;
}

.btn-danger-outline:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--toy-red-bevel);
}

/* Banner de Instalación PWA */
.pwa-install-banner {
  background: #ffffff;
  border: 3px dashed var(--toy-green);
  border-radius: 20px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.15);
}

.pwa-install-banner.hidden {
  display: none !important;
}

.pwa-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--toy-green-bevel);
}

.pwa-banner-text span.ico {
  font-size: 22px;
}

.btn-pwa-install {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  color: white;
  border: 2px solid #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--toy-green-bevel);
  white-space: nowrap;
}

.btn-pwa-install:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--toy-green-bevel);
}

.btn-pwa-close {
  background: none;
  border: none;
  color: var(--toy-green-bevel);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Selector de Edad con Colores Primarios Fisher-Price */
.age-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.age-btn {
  border: 3px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 18px;
  padding: 12px 4px;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 4px 0 #94a3b8;
  transition: all 0.12s ease;
}

.age-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #94a3b8;
}

.age-btn[data-age="3-5"].active {
  border-color: #ffffff;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  color: #ffffff;
  box-shadow: 0 5px 0 var(--toy-green-bevel);
  transform: translateY(-2px);
}

.age-btn[data-age="6-8"].active {
  border-color: #ffffff;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 5px 0 var(--toy-blue-bevel);
  transform: translateY(-2px);
}

.age-btn[data-age="9-12"].active {
  border-color: #ffffff;
  background: linear-gradient(180deg, #a78bfa 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 5px 0 var(--toy-purple-bevel);
  transform: translateY(-2px);
}

/* Mapa Cerebral Interactivo */
.brain-box {
  text-align: center;
  background: #ffffff;
  border: 3px solid var(--toy-blue-bright);
  box-shadow: 0 6px 0 var(--toy-blue-bevel), var(--shadow-sm);
}

.brain-svg {
  width: 210px;
  height: 155px;
  margin: 8px auto;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(2, 132, 199, 0.22));
}

.hemi-zone {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s;
}

.hemi-zone:hover, .hemi-zone:active {
  transform: scale(1.05);
  filter: brightness(1.12);
}

.hemi-info {
  background: var(--toy-blue-soft);
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  margin-top: 10px;
  text-align: left;
  border: 2px solid #7dd3fc;
  font-weight: 700;
}

/* Tarjetas de Minijuegos estilo Bloques de Juguete */
.game-card {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  border: 3px solid #bae6fd;
  box-shadow: 0 6px 0 #38bdf8, 0 10px 18px rgba(2, 132, 199, 0.12);
  transition: all 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-card:nth-of-type(1) { border-color: #c4b5fd; box-shadow: 0 6px 0 #8b5cf6, 0 10px 18px rgba(139, 92, 246, 0.14); }
.game-card:nth-of-type(2) { border-color: #f9a8d4; box-shadow: 0 6px 0 #ec4899, 0 10px 18px rgba(236, 72, 153, 0.14); }
.game-card:nth-of-type(3) { border-color: #7dd3fc; box-shadow: 0 6px 0 #0284c7, 0 10px 18px rgba(2, 132, 199, 0.14); }
.game-card:nth-of-type(4) { border-color: #fde047; box-shadow: 0 6px 0 #eab308, 0 10px 18px rgba(234, 179, 8, 0.16); }

.game-card:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #94a3b8;
}

.game-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 32px;
  flex-shrink: 0;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.game-meta {
  flex: 1;
}

.game-tag {
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 5px;
}

.tag-both { background: var(--both-soft); color: var(--both-dark); }
.tag-left { background: var(--left-soft); color: var(--left-dark); }
.tag-right { background: var(--right-soft); color: var(--right-dark); }

.game-meta h3 {
  font-size: 16.5px;
  font-weight: 900;
  margin-bottom: 2px;
  color: var(--text);
}

.game-meta p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 700;
}

/* Barras de Energía Cerebral */
.stat-row {
  margin-bottom: 16px;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 7px;
}

.progress-track {
  height: 20px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid #cbd5e1;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 8px;
  right: 8px;
  height: 5px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.55);
}

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

.badge-item {
  background: #f8fafc;
  border-radius: 20px;
  padding: 14px 6px;
  text-align: center;
  opacity: 0.42;
  filter: grayscale(1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 3px dashed #cbd5e1;
}

.badge-item.unlocked {
  opacity: 1;
  filter: none;
  background: linear-gradient(180deg, #fef9c3 0%, #fde047 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 6px 0 var(--toy-yellow-bevel), 0 8px 16px rgba(202, 138, 4, 0.28);
  transform: translateY(-2px);
}

.badge-item .emoji { font-size: 34px; display: block; margin-bottom: 5px; }
.badge-item .name { font-size: 12px; font-weight: 900; color: #713f12; }

/* Modales */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-sheet {
  background: #ffffff;
  width: 100%;
  max-height: 90dvh;
  border-radius: 30px 30px 0 0;
  border-top: 5px solid var(--toy-yellow);
  padding: 20px 18px calc(24px + var(--safe-bottom));
  overflow-y: auto;
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.28);
  animation: sheetPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sheetPop {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

.modal-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--toy-blue-bevel);
}

.modal-close-btn {
  background: var(--toy-red-soft);
  border: 2px solid #fca5a5;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--toy-red-bevel);
  cursor: pointer;
  box-shadow: 0 3px 0 #f87171;
}

.modal-close-btn:active {
  transform: translateY(2px);
}

.profiles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 20px;
  background: #f8fafc;
  border: 3px solid #cbd5e1;
  box-shadow: 0 4px 0 #94a3b8;
  cursor: pointer;
  transition: all 0.12s;
}

.profile-card-item:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #94a3b8;
}

.profile-card-item.selected {
  border-color: var(--toy-blue-bright);
  background: var(--toy-blue-soft);
  box-shadow: 0 4px 0 var(--toy-blue-bevel);
}

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

.profile-item-avatar {
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: white;
  border: 2px solid var(--toy-yellow);
  display: grid;
  place-items: center;
}

.profile-item-meta h4 { font-size: 15px; font-weight: 900; }
.profile-item-meta span { font-size: 12px; color: var(--muted); font-weight: 800; }

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.avatar-opt {
  font-size: 28px;
  padding: 10px 4px;
  border-radius: 18px;
  border: 3px solid #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 0 #94a3b8;
  transition: all 0.12s;
}

.avatar-opt.active {
  border-color: var(--toy-yellow);
  background: var(--toy-yellow-soft);
  box-shadow: 0 4px 0 var(--toy-yellow-bevel);
  transform: scale(1.06);
}

/* PIN Pad Parental */
.pin-display {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
}

.pin-dot {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 3px solid var(--toy-blue);
  background: transparent;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pin-dot.filled {
  background: var(--toy-blue);
  transform: scale(1.25);
}

.pin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 290px;
  margin: 0 auto 12px;
}

.pin-key {
  height: 58px;
  border-radius: 18px;
  border: 3px solid #bae6fd;
  background: #f0f9ff;
  color: var(--toy-blue-bevel);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 0 #38bdf8;
  transition: all 0.1s;
}

.pin-key:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #38bdf8;
}

.pin-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

/* Pantalla Completa de Juego */
.game-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-sky);
  z-index: 50;
  display: none;
  flex-direction: column;
  padding: calc(14px + var(--safe-top)) 16px calc(18px + var(--safe-bottom));
  animation: gamePopIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-overlay.active {
  display: flex;
}

@keyframes gamePopIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.btn-exit {
  background: #ffffff;
  border: 3px solid #fca5a5;
  padding: 8px 14px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--toy-red-bevel);
  box-shadow: 0 4px 0 #f87171;
}

.btn-exit:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #f87171;
}

.level-pill {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  color: #713f12;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 900;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 0 var(--toy-yellow-bevel);
}

.timer-bar {
  width: 100%;
  height: 16px;
  background: #ffffff;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid #38bdf8;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #facc15, #ef4444);
  width: 100%;
  transition: width 0.1s linear;
}

.game-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 18px;
  width: 100%;
}

.game-prompt {
  font-size: 16px;
  color: var(--text);
  font-weight: 900;
  line-height: 1.35;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 20px;
  border: 3px solid var(--toy-yellow);
  box-shadow: 0 5px 0 var(--toy-yellow-bevel);
}

.stroop-word {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 22px 34px;
  background: #ffffff;
  border-radius: 26px;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 0 #38bdf8, 0 14px 24px rgba(2, 132, 199, 0.2);
  animation: wordBounce 1.5s ease-in-out infinite alternate;
}

@keyframes wordBounce {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
}

.opt-btn {
  padding: 20px 12px;
  border-radius: 22px;
  border: 3px solid #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 0 #94a3b8, 0 10px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.1s;
}

.opt-btn:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 #94a3b8;
}

/* Simetría Espejo */
.sym-container {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  gap: 7px;
  padding: 12px;
  background: #ffffff;
  border-radius: 22px;
  border: 3px solid #7dd3fc;
  box-shadow: 0 6px 0 #0284c7;
}

.cell {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1);
}

.cell:active { transform: scale(0.9); }

.cell.filled {
  background: linear-gradient(145deg, #f472b6, #ec4899);
  box-shadow: 0 4px 0 var(--right-bevel), 0 4px 10px rgba(236, 72, 153, 0.35);
  transform: scale(1.03);
}

/* Secuencia Lógica */
.sequence-box {
  font-size: 32px;
  font-weight: 900;
  background: #ffffff;
  padding: 22px 28px;
  border-radius: 24px;
  border: 4px solid var(--toy-blue-bright);
  box-shadow: 0 7px 0 var(--toy-blue-bevel);
  letter-spacing: 2px;
}

/* Coordinación Dual */
.dual-target-banner {
  background: linear-gradient(180deg, #fef9c3 0%, #fde047 100%);
  padding: 14px 22px;
  border-radius: 20px;
  font-weight: 900;
  color: #713f12;
  font-size: 17px;
  border: 3px solid #ffffff;
  box-shadow: 0 5px 0 var(--toy-yellow-bevel);
}

.dual-pads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.pad-col {
  background: #ffffff;
  padding: 14px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 3px solid #bae6fd;
  box-shadow: 0 6px 0 #38bdf8;
}

.pad-header {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.pad-btn {
  padding: 18px 10px;
  border-radius: 18px;
  border: 3px solid #e2e8f0;
  background: #f8fafc;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 #94a3b8;
  transition: all 0.1s;
}

.pad-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #94a3b8;
}

.pad-btn.selected {
  border-color: #ffffff;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  color: #ffffff;
  box-shadow: 0 5px 0 var(--toy-green-bevel);
  transform: translateY(2px);
}

#confettiCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

/* ==========================================================================
   Mecánicas Virales: Cofre Sorpresa, Álbum de Stickers y Diploma WhatsApp
   ========================================================================== */

/* Mascota NeuroBot SVG con parpadeo y antena brillante */
.neurobot-svg {
  width: 52px;
  height: 52px;
  display: block;
}

.bot-eye {
  transform-origin: center;
  animation: botBlink 4s infinite;
}

@keyframes botBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}

.bot-antenna-bulb {
  animation: antennaGlow 1.4s ease-in-out infinite alternate;
}

@keyframes antennaGlow {
  0% { fill: #facc15; opacity: 0.85; }
  100% { fill: #fef08a; opacity: 1; }
}

/* Tarjeta de Cofre Sorpresa en Inicio */
.chest-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 3px solid var(--toy-green);
  box-shadow: 0 6px 0 var(--toy-green-bevel), 0 10px 18px rgba(34, 197, 94, 0.16);
}

.chest-card.chest-ready {
  background: linear-gradient(135deg, #fef9c3 0%, #fde047 100%);
  border-color: #ffffff;
  box-shadow: 0 7px 0 var(--toy-yellow-bevel), 0 12px 24px rgba(234, 179, 8, 0.35);
  animation: chestPulse 1.6s ease-in-out infinite;
}

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

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

.chest-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 100%);
  border: 3px solid #ffffff;
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 4px 0 #b45309;
}

.chest-ready .chest-icon-box {
  animation: botWiggle 0.9s ease-in-out infinite;
}

.btn-chest-open {
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 3px solid #ffffff;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  color: #ffffff;
  box-shadow: 0 5px 0 var(--toy-green-bevel);
  transition: all 0.1s ease;
}

.btn-chest-open:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--toy-green-bevel);
}

.btn-chest-open:disabled {
  background: #e2e8f0;
  color: #64748b;
  border-color: #cbd5e1;
  box-shadow: 0 3px 0 #94a3b8;
  cursor: default;
}

/* Álbum de Stickers Coleccionables */
.stickers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.sticker-slot {
  background: #f1f5f9;
  border: 3px dashed #cbd5e1;
  border-radius: 20px;
  padding: 12px 6px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sticker-slot.unlocked {
  border: 3px solid #ffffff;
  box-shadow: 0 5px 0 rgba(15, 23, 42, 0.14), 0 6px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.sticker-emoji {
  font-size: 32px;
  display: block;
  margin-bottom: 4px;
}

.sticker-name {
  font-size: 11px;
  font-weight: 900;
  color: var(--text);
  display: block;
}

/* Modal de Celebración de Cofre */
.chest-reward-burst {
  width: 110px;
  height: 110px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef08a 0%, #facc15 65%, #f97316 100%);
  border: 5px solid #ffffff;
  box-shadow: 0 8px 0 var(--toy-yellow-bevel), 0 0 30px rgba(250, 204, 21, 0.6);
  display: grid;
  place-items: center;
  animation: rewardPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chest-reward-emoji {
  font-size: 56px;
}

@keyframes rewardPop {
  0% { transform: scale(0.2) rotate(-25deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Tarjeta de Diploma Viral y Compartir en WhatsApp */
.viral-diploma-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 3px solid var(--toy-yellow);
  box-shadow: 0 6px 0 var(--toy-yellow-bevel), 0 10px 20px rgba(202, 138, 4, 0.18);
  text-align: center;
}

.viral-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.btn-whatsapp {
  width: 100%;
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 18px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 #15803d;
  transition: all 0.1s ease;
}

.btn-whatsapp:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #15803d;
}

.btn-challenge {
  width: 100%;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 18px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 #9a3412;
  transition: all 0.1s ease;
}

.btn-challenge:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #9a3412;
}

/* ==========================================================================
   Voz de NeuroBot, Racha Diaria y Pasarela de Pagos PRO
   ========================================================================== */

.voice-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 2px solid var(--toy-blue-bright);
  background: #ffffff;
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--toy-blue-bevel);
  transition: all 0.1s ease;
}

.voice-toggle-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--toy-blue-bevel);
}

.voice-toggle-btn.muted {
  border-color: #cbd5e1;
  box-shadow: 0 3px 0 #94a3b8;
  opacity: 0.7;
}

.pro-header-badge {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  color: #713f12;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 900;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 0 var(--toy-yellow-bevel);
  align-items: center;
  gap: 3px;
}

.daily-streak-banner {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  border: 3px solid #fb923c;
  color: #9a3412;
  border-radius: 18px;
  padding: 10px 14px;
  margin-bottom: 14px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 900;
  box-shadow: 0 4px 0 #ea580c;
}

.pro-promo-card {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #ec4899 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 7px 0 #4338ca, 0 14px 24px rgba(79, 70, 229, 0.35);
}

.pdf-pack-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 3px solid var(--toy-blue-bright);
  box-shadow: 0 6px 0 var(--toy-blue-bevel);
}

.btn-wompi {
  width: 100%;
  background: linear-gradient(180deg, #a855f7 0%, #7e22ce 100%);
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 18px;
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 #581c87;
  transition: all 0.1s ease;
}

.btn-wompi:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #581c87;
}

.btn-mp {
  width: 100%;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 18px;
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 #0369a1;
  transition: all 0.1s ease;
}

.btn-mp:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #0369a1;
}

.btn-stripe {
  width: 100%;
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 18px;
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 #0f172a;
  transition: all 0.1s ease;
}

.btn-stripe:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #0f172a;
}

/* ==========================================================================
   MentiPlay + Dracky: Mascota 3D Evolutiva, 3 Rutas y Botones de Comandos LED
   ========================================================================== */

.dracky-hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  border: 3px solid #38bdf8;
  box-shadow: 0 7px 0 #0284c7, 0 12px 24px rgba(2, 132, 199, 0.18);
  text-align: center;
  padding: 16px 14px;
}

.dracky-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dracky-stage-badge {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  color: #713f12;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 900;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 0 #ca8a04;
}

.dracky-img-frame {
  width: 146px;
  height: 146px;
  margin: 4px auto 10px;
  border-radius: 32px;
  background: #ffffff;
  border: 4px solid #7dd3fc;
  box-shadow: 0 8px 0 #0284c7, 0 0 24px rgba(56, 189, 248, 0.35);
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.dracky-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dracky-jump {
  animation: drackyJumpAnim 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes drackyJumpAnim {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-12px) scale(1.08); }
}

.dracky-love {
  animation: drackyLoveAnim 0.55s ease;
}

@keyframes drackyLoveAnim {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.07); }
  75% { transform: rotate(8deg) scale(1.07); }
}

.dracky-speech-bubble {
  background: #ffffff;
  border: 2px solid #bae6fd;
  border-radius: 18px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
  box-shadow: 0 3px 0 #e0f2fe;
}

.dracky-care-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

/* Botones de Comandos Luminosos (Resalte de Color al Tocar) */
.cmd-pad {
  border: 3px solid var(--glow-color, #38bdf8);
  border-radius: 20px;
  padding: 10px 6px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 5px 0 rgba(15, 23, 42, 0.18), 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.cmd-pad:active,
.cmd-pad.cmd-glow-active {
  transform: translateY(4px) scale(1.03);
  box-shadow: 0 0 0 4px #ffffff, 0 0 26px 6px var(--glow-color, #38bdf8) !important;
  filter: brightness(1.08);
}

.cmd-care-btn {
  font-size: 11.5px;
  color: var(--text);
}

.cmd-care-btn .ico {
  font-size: 22px;
  line-height: 1;
}

/* 3 Rutas Lineales de Trabajo: Lógica, Lenguaje y Matemáticas */
.tracks-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.track-cmd-btn {
  padding: 14px 6px;
  border-radius: 22px;
  border: 3px solid #ffffff;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.track-cmd-btn .track-ico {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.18));
}

.track-cmd-btn .track-name {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.track-logic {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  --glow-color: #38bdf8;
  box-shadow: 0 6px 0 #0369a1;
}

.track-lang {
  background: linear-gradient(180deg, #f472b6 0%, #db2777 100%);
  --glow-color: #f472b6;
  box-shadow: 0 6px 0 #9d174d;
}

.track-math {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  --glow-color: #4ade80;
  box-shadow: 0 6px 0 #15803d;
}

/* Botones Gigantes de Comandos dentro de los Minijuegos */
.cmd-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
}

.cmd-pad-big {
  min-height: 108px;
  padding: 16px 10px;
  border-radius: 26px;
  border-width: 4px;
  box-shadow: 0 7px 0 rgba(15, 23, 42, 0.18);
}

.cmd-big-emoji {
  font-size: 48px;
  line-height: 1;
}

.cmd-big-number {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.cmd-sub-label {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  margin-top: 4px;
}

.btn-voice-replay {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
  font-size: 22px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 0 #ca8a04;
}

.btn-voice-replay:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #ca8a04;
}

.btn-voice-hero {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  color: #713f12;
  border: 3px solid #ffffff;
  border-radius: 22px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 5px 0 #ca8a04;
}

.btn-voice-hero:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #ca8a04;
}

.visual-pattern-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  border: 4px solid #7dd3fc;
  border-radius: 24px;
  padding: 16px 20px;
  box-shadow: 0 6px 0 #0284c7;
  width: 100%;
}

.pattern-token {
  font-size: 38px;
  line-height: 1;
}

.pattern-token.mystery {
  background: #fef9c3;
  border: 3px dashed #eab308;
  border-radius: 14px;
  padding: 4px 10px;
}

.letter-spotlight {
  border: 4px solid #38bdf8;
  border-radius: 24px;
  padding: 10px 30px;
  box-shadow: 0 6px 0 rgba(15, 23, 42, 0.14);
}

.math-objects-box,
.math-sum-box {
  background: #ffffff;
  border: 4px solid #4ade80;
  border-radius: 24px;
  padding: 18px 20px;
  font-size: 38px;
  letter-spacing: 6px;
  box-shadow: 0 6px 0 #15803d;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.video-card-btn {
  width: 100%;
  flex-direction: row;
  padding: 12px 14px;
  margin-bottom: 10px;
  justify-content: flex-start;
  gap: 12px;
}

.video-thumb-ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   3 MUNDOS VISUALES ADAPTATIVOS POR EDAD (3-5 Jardín | 6-8 Isla | 9-12 Galaxia)
   ========================================================================== */

/* Selector Superior de 3 Mundos en la Portada */
.world-switcher-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.world-tab-btn {
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #cbd5e1;
  border-radius: 18px;
  padding: 8px 4px;
  font-size: 11.5px;
  font-weight: 900;
  color: #475569;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 4px 0 #94a3b8;
  transition: all 0.14s ease;
}

.world-tab-btn .w-ico { font-size: 20px; line-height: 1; }
.world-tab-btn .w-sub { font-size: 9.5px; font-weight: 800; opacity: 0.85; }

.world-tab-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #94a3b8;
}

.world-tab-btn[data-age="3-5"].active {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 5px 0 #15803d, 0 0 16px rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

.world-tab-btn[data-age="6-8"].active {
  background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 5px 0 #c2410c, 0 0 16px rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
}

.world-tab-btn[data-age="9-12"].active {
  background: linear-gradient(180deg, #818cf8 0%, #4f46e5 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 5px 0 #312e81, 0 0 18px rgba(56, 189, 248, 0.65);
  transform: translateY(-2px);
}

.track-sub-pill {
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 2px;
}

/* MUNDO 2: ISLA AVENTURA (6-8 años) */
.app-shell[data-world="6-8"] {
  background: linear-gradient(180deg, #38bdf8 0%, #7dd3fc 28%, #fed7aa 70%, #fef08a 100%);
}

.app-shell[data-world="6-8"] .dracky-hero-card {
  border-color: #fb923c;
  box-shadow: 0 7px 0 #ea580c, 0 12px 24px rgba(234, 88, 12, 0.2);
}

/* MUNDO 3: GALAXIA GAMER NEÓN (9-12 años) */
.app-shell[data-world="9-12"] {
  background: radial-gradient(circle at top, #1e1b4b 0%, #0f172a 60%, #020617 100%);
  color: #f8fafc;
}

.app-shell[data-world="9-12"] .sky-cloud {
  opacity: 0.08 !important;
}

.app-shell[data-world="9-12"] .app-header {
  background: rgba(15, 23, 42, 0.94);
  border-bottom-color: #38bdf8;
}

.app-shell[data-world="9-12"] .brand-text span {
  color: #38bdf8;
}

.app-shell[data-world="9-12"] .bottom-nav {
  background: rgba(15, 23, 42, 0.97);
  border-top-color: #6366f1;
}

.app-shell[data-world="9-12"] .nav-btn {
  color: #94a3b8;
}

.app-shell[data-world="9-12"] .nav-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 3px 0 #0284c7, 0 0 14px rgba(56, 189, 248, 0.35);
}

.app-shell[data-world="9-12"] .card {
  background: rgba(30, 41, 59, 0.92);
  border-color: #6366f1;
  color: #f8fafc;
  box-shadow: 0 6px 0 #1e1b4b, 0 0 20px rgba(99, 102, 241, 0.22);
}

.app-shell[data-world="9-12"] .dracky-hero-card {
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  border-color: #38bdf8;
  box-shadow: 0 7px 0 #0284c7, 0 0 24px rgba(56, 189, 248, 0.35);
}

.app-shell[data-world="9-12"] .dracky-speech-bubble {
  background: #0f172a;
  border-color: #38bdf8;
  color: #e0f2fe;
}

.app-shell[data-world="9-12"] .game-meta h3,
.app-shell[data-world="9-12"] .stat-header,
.app-shell[data-world="9-12"] h2,
.app-shell[data-world="9-12"] h3 {
  color: #f8fafc !important;
}

.app-shell[data-world="9-12"] .game-meta p,
.app-shell[data-world="9-12"] #drackyGrowthHint {
  color: #cbd5e1 !important;
}

.app-shell[data-world="9-12"] .game-overlay {
  background: radial-gradient(circle at top, #1e1b4b 0%, #0f172a 70%, #020617 100%);
}

.app-shell[data-world="9-12"] .game-prompt {
  background: #1e293b;
  color: #f8fafc;
  border-color: #38bdf8;
  box-shadow: 0 5px 0 #0284c7;
}

/* ==========================================================================
   Misión Diaria (3 Estrellas), Calendario Semanal, Simón LED y Reporte Padres
   ========================================================================== */

.simon-banner-btn {
  width: 100%;
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 14px;
  border-radius: 22px;
  border: 3px solid #ffffff;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 55%, #0ea5e9 100%);
  --glow-color: #a78bfa;
  box-shadow: 0 6px 0 #4338ca, 0 10px 18px rgba(99, 102, 241, 0.3);
}

.mission-card {
  border: 3px solid #facc15;
  box-shadow: 0 6px 0 #ca8a04;
}

.mission-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mission-pill {
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 8px 4px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 900;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mission-pill.done {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 3px 0 #15803d;
}

.weekly-cal-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-day {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 5px 2px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.cal-day.today {
  border-color: #38bdf8;
}

.cal-day.active {
  background: #fef9c3;
  border-color: #facc15;
}

.cal-letter {
  font-size: 10px;
  font-weight: 900;
  color: #64748b;
}

.cal-dot {
  font-size: 13px;
  line-height: 1;
}

.report-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.report-metric-box {
  background: #e0f2fe;
  border: 2px solid #7dd3fc;
  border-radius: 16px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rm-val {
  font-size: 17px;
  font-weight: 900;
  color: #0369a1;
}

.rm-lbl {
  font-size: 10.5px;
  font-weight: 800;
  color: #475569;
}

.report-insight-box {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #0f172a;
  font-weight: 700;
}

/* ==========================================================================
   Centro de Experiencia (XP & Rango) Exclusivo para 9-12 Años
   ========================================================================== */

.gamer-xp-card {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%) !important;
  border: 3px solid #38bdf8 !important;
  box-shadow: 0 7px 0 #0369a1, 0 0 28px rgba(56, 189, 248, 0.35) !important;
  text-align: center;
}

.gamer-rank-pill {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 2px solid #38bdf8;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.gamer-xp-hero {
  padding: 12px 0 14px;
}

.gamer-xp-number {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(90deg, #38bdf8, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.gamer-xp-sub {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  margin-top: 4px;
}

.gamer-cmd-btn {
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 11.5px;
  box-shadow: 0 4px 0 #020617;
}

.gamer-cmd-btn .ico {
  font-size: 22px;
  line-height: 1;
}

/* ==========================================================================
   Retroalimentación Pedagógica de Error (1 Oportunidad + Explicación)
   ========================================================================== */

.cmd-wrong-active {
  border-color: #ef4444 !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
  box-shadow: 0 0 0 4px #ffffff, 0 0 22px rgba(239, 68, 68, 0.75) !important;
  animation: wrongShake 0.35s ease;
}

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

.feedback-explain-card {
  width: 100%;
  background: #fff1f2;
  border: 3px solid #f43f5e;
  border-radius: 22px;
  padding: 14px;
  text-align: left;
  box-shadow: 0 6px 0 #be123c, 0 10px 20px rgba(244, 63, 94, 0.2);
  animation: popIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fb-header {
  font-size: 14px;
  font-weight: 900;
  color: #be123c;
  margin-bottom: 4px;
}

.fb-correct {
  font-size: 14px;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 6px 10px;
  margin-bottom: 6px;
}

.fb-explain {
  font-size: 12.5px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.4;
}

/* ==========================================================================
   Carruseles Horizontales Deslizables (Cajas de Juego + Videos HXBoom)
   ========================================================================== */

.world-switcher-bar.two-worlds {
  grid-template-columns: repeat(2, 1fr);
}

.carousel-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 2px 8px;
}

.carousel-nav-btns {
  display: flex;
  gap: 6px;
}

.carousel-arrow-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 #0369a1;
}

.carousel-arrow-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0369a1;
}

.swipe-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.swipe-carousel::-webkit-scrollbar {
  display: none;
}

/* Cajas grandes deslizables de entrenamiento */
.swipe-track-box {
  flex: 0 0 148px;
  scroll-snap-align: start;
  padding: 16px 10px;
  border-radius: 24px;
  border: 3px solid #ffffff;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.swipe-track-box .track-ico {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 6px;
}

.swipe-track-box .track-name {
  font-size: 14px;
  font-weight: 900;
}

/* Cajas llamativas deslizables de Videos Animados (HXBoom) */
.swipe-video-card {
  flex: 0 0 175px;
  scroll-snap-align: start;
  padding: 10px;
  border-radius: 24px;
  border: 3px solid #ffffff;
  color: #ffffff;
  box-shadow: 0 6px 0 rgba(15, 23, 42, 0.22), 0 10px 18px rgba(0, 0, 0, 0.14);
}

.swipe-video-thumb {
  width: 100%;
  height: 102px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  background: #ffffff;
}

.swipe-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-badge-float {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  animation: pulseGold 1.8s infinite ease-in-out;
}

.swipe-video-meta {
  text-align: left;
  width: 100%;
}

.sv-title {
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.sv-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  opacity: 0.92;
  margin-top: 2px;
}
