/* ==========================================================================
   JuegosHD - Estilos Principales & Reseteo para Primera Infancia
   ========================================================================== */

:root {
  /* Paleta Pastel Suave (No Sobreestimulante) */
  --bg-primary: #F4F7F6;
  --bg-surface: #FFFFFF;
  --bg-card: #EBF3F5;
  
  --color-celeste: #69B5DE;
  --color-celeste-light: #E1EFF6;
  --color-verde: #88D49E;
  --color-verde-light: #E7F6ED;
  --color-amarillo: #F6D55C;
  --color-amarillo-light: #FDF7DF;
  --color-arena: #E8D8C8;
  --color-melocoton: #EE8572;
  --color-lila: #C5A3FF;
  
  --text-main: #2C3E50;
  --text-muted: #7F8C8D;
  --text-light: #FFFFFF;
  
  --border-subtle: #D8E2DC;
  --shadow-soft: 0 8px 24px rgba(44, 62, 80, 0.08);
  --shadow-floating: 0 12px 32px rgba(44, 62, 80, 0.16);
  
  --font-family: 'Comic Sans MS', 'Comfortaa', 'Quicksand', system-ui, -apple-system, sans-serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.4;
  
  /* Bloqueo estricto de gestos nativos para evitar zoom, pull-to-refresh y selecciones */
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#app-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, #FFFFFF 0%, var(--bg-primary) 100%);
}

/* Ocultar elementos */
.hidden {
  display: none !important;
}

/* Transiciones suaves */
.fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

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

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

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

/* ==========================================================================
   Ajustes Responsivos para Celulares y Modo Vertical (Portrait)
   ========================================================================== */
@media (max-width: 768px), (orientation: portrait) {
  #menu-screen h1 {
    font-size: clamp(2rem, 7vw, 2.5rem) !important;
  }
  
  #menu-screen p {
    font-size: 1rem !important;
    margin-bottom: 24px !important;
    padding: 0 16px;
  }

  #menu-screen img {
    width: 100px !important;
    height: 100px !important;
  }

  #main-play-btn {
    font-size: 1.35rem !important;
    padding: 14px 38px !important;
  }
}


