/* Javi-Pork: colores alegres y botones grandes para manos pequeñas. */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Comic Sans MS", "Chalkboard SE", "Segoe UI", sans-serif;
  background: linear-gradient(160deg, #ffe5ec 0%, #e0f4ff 55%, #e8ffe0 100%);
  min-height: 100vh;
  color: #4a3b47;
}

.app-header {
  text-align: center;
  padding: 1rem;
}
.app-header h1 { font-size: 2rem; }
.subtitle { font-size: 1rem; color: #a06a7c; display: block; }

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ——— Escenario 3D ——— */
.stage {
  background: radial-gradient(circle at 50% 30%, #fff7fa, #ffd9e4);
  border: 4px solid #ff9ebb;
  border-radius: 24px;
  padding: 0.8rem;
  text-align: center;
  box-shadow: 0 8px 0 #f7c1d2;
}
#stage3d {
  max-width: 100%;
  cursor: pointer;
  touch-action: manipulation;
}
.no-webgl { font-size: 8rem; }
.animal-label { font-size: 1.3rem; margin: 0.3rem 0; min-height: 1.6rem; }
.animal-picker { display: flex; justify-content: center; gap: 0.8rem; margin: 0.5rem 0; }
.animal-btn {
  font-family: inherit;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border: 3px solid #ff9ebb;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 0 #f7c1d2;
  transition: transform 0.1s;
}
.animal-btn:active { transform: translateY(4px); box-shadow: none; }
.hint { color: #a06a7c; font-size: 0.95rem; }

/* ——— Mesa de sonidos ——— */
.soundboard {
  background: #ffffffcc;
  border: 4px solid #8ecbff;
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 8px 0 #bfe0fb;
}
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tab-btn {
  font-family: inherit;
  font-size: 1.05rem;
  padding: 0.5rem 1rem;
  border: 3px solid #8ecbff;
  border-radius: 14px;
  background: #f2f9ff;
  cursor: pointer;
}
.tab-btn.active { background: #8ecbff; color: #fff; }

.sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.8rem;
}
.sound-btn {
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.9rem 0.5rem;
  font-size: 1rem;
  border: 3px solid #ffd166;
  border-radius: 18px;
  background: #fffbef;
  cursor: pointer;
  box-shadow: 0 5px 0 #f5d78e;
  transition: transform 0.08s;
}
.sound-btn:active { transform: translateY(5px) scale(0.97); box-shadow: none; }
.sound-emoji { font-size: 2.2rem; }
.sound-name { font-weight: bold; }

@media (max-width: 600px) {
  .app-header h1 { font-size: 1.4rem; }
  .sound-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); }
}
