/* ============================================
   VARIABLES GLOBALES
   ============================================ */
:root {
  --yellow: #ffd700;
  --mono: 'Share Tech Mono', 'Courier New', monospace;
  --panel-bg: rgba(105, 132, 145, 0.72);
  --panel-border: rgba(210, 220, 225, 0.75);
}


/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ── BODY ── */
body {
  background-image: url("img/starspark2.gif");
  background-color: rgb(42, 56, 40);
  cursor: url("/images/pointer.png"), auto;
  font-family: Georgia, serif;
  min-height: 100vh;
}


/* ── TÍTULO ── */
.coll-header a {
  font-family: 'Press Start 2P', monospace;
  display: flex;
  position: relative;
  text-align: center;
  margin: 81px;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.coll-title {
  position: absolute;
  font-size: clamp(24px, 4vw, 100px);
  color: #ffffff;
  white-space: nowrap;
}

.title-gif {

  position: absolute;
  width: 20em;
  opacity: 0;
  z-index: 1;
  filter: drop-shadow(5px 5px 5px #222);
}

.coll-link:hover .title-gif {
  display: block;
  opacity: 1;
}

.coll-link:hover .coll-title {
  opacity: 0;
}


/* ── WRAPPER Y ESTANTERÍA ── */
.wrapper {
  display: grid;
  justify-items: center;
}

.shelf {
  position: relative;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0px 0px 8px rgb(0, 0, 0));
  width: fit-content;
  top: -16%;
}

.shelf img {
  display: block;
}


/* ── BOBBLEHEADS — ESTRUCTURA ── */

.toy {
  position: absolute;
}

/* Nico*/

.nico {
  position: absolute;
  top: 147px;
  left: 145px;
  width: 128px;
  padding-top: 84px;
  z-index: 1;
}

.nico img {
  width: 100%;
}

.nico .body {
  position: absolute;
  width: 90px;
  left: 13px;
  top: 102px;
  z-index: -1;
}

/* Lu*/

.lu {
  position: absolute;
  top: 147px;
  left: 145px;
  width: 128px;
  padding-top: 84px;
  z-index: 1;
}

.lu img {
  width: 100%;
}

.lu .body {
  position: absolute;
  width: 90px;
  left: 156px;
  top: 89px;
  z-index: -1;
}

.lu .head {
  position: absolute;
  width: 145px;
  left: 127px;
  top: -5px;
}

/* Adri */

.adri {
  position: absolute;
  top: 482px;
  left: 653px;
  width: 128px;
  padding-top: 84px;
  z-index: 1;
}

.adri img {
  width: 100%;
}

.adri .body {
  position: absolute;
  width: 90px;
  left: 156px;
  top: 89px;
  z-index: -1;
}

.adri .head {
  position: absolute;
  width: 124px;
  left: 139px;
  top: 4px;
}

/* Marta*/

.marta {
  position: absolute;
  top: 447px;
  left: 810px;
  width: 128px;
  padding-top: 84px;
  z-index: 1;
}

.marta img {
  width: 100%;
}

.marta .body {
  position: absolute;
  width: 71px;
  left: 152px;
  top: 117px;
  z-index: -1;
}

.marta .head {
  position: absolute;
  width: 129px;
  left: 125px;
  top: 33px;
}

.head-wrapper {
  position: absolute;
  top: -60px;
  width: 100%;
  text-align: center;
}

/* ── BOBBLEHEADS — ANIMACIÓN ── */
@keyframes bobble {
  0%   { rotate:  8deg; }
  25%  { rotate: -8deg; }
  50%  { rotate:  8deg; }
  75%  { rotate: -8deg; }
  100% { rotate:  8deg; }
}

.head {
  animation: bobble 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;

  width: 100px;
}

.nico .head:hover {
  transform: scale(4);
  z-index: 1;
}



/* ── ACCESIBILIDAD ── */
@media (prefers-reduced-motion: reduce) {
  .head {
    animation: none;
  }
}