@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&display=swap');
/* Fondo de animalitos estilo WhatsApp */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='40' font-size='30' opacity='0.08'%3E🐶%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='40' font-size='30' opacity='0.08'%3E🐱%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='40' font-size='30' opacity='0.08'%3E🐼%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='40' font-size='30' opacity='0.08'%3E🐻%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='40' font-size='30' opacity='0.08'%3E🦊%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='40' font-size='30' opacity='0.08'%3E🐰%3C/text%3E%3C/svg%3E");
    background-position: 0 0, 30px 30px, 60px 0, 90px 30px, 120px 0, 150px 30px;
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

body {
  margin: 0;
  font-family: 'Comic Neue', cursive, 'Segoe UI', sans-serif;
  background-color: #fffbee;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #ffcb8e, #f0932b);
  padding: 12px 24px;
  font-weight: bold;
  font-size: 24px;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-bottom: 6px dashed #e17055;
  border-radius: 0 0 24px 24px;
}

.icon-btn {
  background: #fff8dc;
  border: 3px dashed #f9ca24;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 22px;
  color: #2d3436;
  cursor: pointer;
  box-shadow: 0 5px 0 #d1ccc0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.icon-btn:hover {
  transform: scale(1.15);
}

.boton-fav,
.boton-crear {
  display: inline-block;
  padding: 12px 20px;
  margin: 10px 5px;
  font-weight: bold;
  font-size: 18px;
  border-radius: 14px;
  cursor: pointer;
  border: 3px dashed #fdcb6e;
  background-color: #ffeaa7;
  box-shadow: 0 4px 0 #d1ccc0;
  font-family: 'Comic Neue', cursive;
}

.boton-fav:hover {
  background-color: #feca57;
}

.boton-crear {
  background-color: #00b894;
  color: white;
}

.boton-crear:hover {
  background-color: #00cec9;
}

.estrella {
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  transition: transform 0.2s;
}

.favorito {
  color: gold;
}

.no-favorito {
  color: #ccc;
}

.estrella:hover {
  transform: scale(1.2);
}

.play-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 20px;
  font-weight: bold;
  background-color: #00b894;
  color: white;
  border: none;
  border-radius: 18px;
  box-shadow: 0 4px 0 #019875;
  cursor: pointer;
  text-align: center;
  margin-top: 8px;
  transition: transform 0.2s ease;
}

.play-btn:hover {
  background-color: #00cec9;
  transform: scale(1.05);
}

/* --- NUEVO ESTILO PARA CADA JUEGO --- */
.juego {
  background: #fff3e6;
  border-radius: 24px;
  padding: 14px 16px;
  box-shadow:
    5px 5px 0 #f9b56f,
    0 6px 12px rgba(216, 106, 28, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-family: 'Comic Neue', cursive;
  position: relative;
  text-align: center;
}

.juego:hover {
  transform: scale(1.04) rotate(-1deg);
  box-shadow:
    8px 8px 0 #f28f3b,
    0 8px 20px rgba(219, 108, 0, 0.18);
}

.juego img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 10px;
}

.juego h3 {
  margin: 8px 0 4px 0;
  font-size: 16px;
  color: #6b3e00;
  text-shadow: 1px 1px 0 #fed8b1;
}

.juego p {
  margin: 3px 0;
  font-size: 14px;
  color: #a86b00;
}

/* ❤️ Estilo para corazones de like */
.corazon {
  cursor: pointer;
  font-size: 26px;
  color: #636e72; /* gris por defecto */
  transition: transform 0.2s, color 0.2s;
  display: inline-block;
  margin-top: 4px;
  user-select: none;
}

.corazon:hover {
  transform: scale(1.25) rotate(-5deg);
  color: #ff7675;
}

.corazon.liked {
  color: #e74c3c;
  text-shadow: 1px 1px 0 #fab1a0;
}

.corazon.not-liked {
  color: #636e72;
}

.play-btn.locked {
  background: #e74c3c;
  color: #fff;
  font-weight: bold;
}

.play-btn.locked:hover {
  background: #c0392b;
}


.count-likes {
  margin-left: 6px;
  font-weight: bold;
  color: #d35400;
  font-size: 14px;
  vertical-align: middle;
  text-shadow: 1px 1px 0 #f6e58d;
}

/* === Responsive === */
@media screen and (max-width: 600px) {
  .top-bar {
    font-size: 18px;
    padding: 10px;
  }

  .boton-fav, .boton-crear {
    font-size: 16px;
    padding: 10px;
  }

  .play-btn {
    font-size: 18px;
    padding: 8px 16px;
  }

  #buscar {
    width: 100%;
    box-sizing: border-box;
  }

  .juego {
    font-size: 14px;
  }

  .juego img {
    height: 100px;
  }

  .juego h3 {
    font-size: 15px;
  }

  .juego p {
    font-size: 13px;
  }
}
