body {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.crono-band {
  flex-shrink: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 2rem 0.8rem;
  height: clamp(80px, 12vw, 160px);
}
.crono-band h1 {
  font-family: "BebasNeue", sans-serif;
  font-size: clamp(2.5rem, 9vw, 8rem);
  color: var(--pink);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  top: 0.06em;
}

#world-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
#world {
  position: absolute;
  width: 13870px;
  height: 100%;
  top: 0;
  left: 0;
}

.block {
  position: absolute;
  background: var(--pink);
  border: none;
}

.bld-year {
  position: absolute;
  font-family: "Outreque", sans-serif;
  font-size: 1.3rem;
  color: var(--cream);
  white-space: nowrap;
  padding: 2px 6px;
  transition: color 0.2s ease;
}

.bld-year.active {
  color: #fd7145;
}

.bld-text {
  display: none;
}

/* ── PERSONAJE ── */
#player {
  position: absolute;
  width: 90px;
  pointer-events: none;
}
#player img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes squish {
  0% {
    transform: scaleX(1.4) scaleY(0.7);
  }
  55% {
    transform: scaleX(0.9) scaleY(1.1);
  }
  100% {
    transform: scaleX(1) scaleY(1);
  }
}
#player.squish {
  animation: squish 0.2s ease-out forwards;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--pink);
  pointer-events: none;
  border-radius: 50%;
  animation: pf 0.5s ease-out forwards;
}
@keyframes pf {
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy));
  }
}

#ground-line {
  position: absolute;
  left: 0;
  width: 13870px;
  background: var(--pink);
}

/* ─────────────────────────────────────────────
   CARD
───────────────────────────────────────────── */

#info-card {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);

  width: min(400px, calc(100vw - 2rem));

  background: #fd7145;
  border-radius: 10px;
  padding: 6px;

  z-index: 100;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

#info-card.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

#info-card-img {
  position: relative;
  width: 100%;
  max-height: clamp(110px, 25vw, 220px);
  overflow: hidden;
  border-radius: 8px;
  background: #222;
}

#info-card-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
}

#info-card-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

#info-card-year {
  position: absolute;
  left: 7px;
  bottom: 0;
  color: var(--cream);
  font-family: "Outreque", sans-serif;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1;
  z-index: 2;
}

#info-card-content {
  margin-top: 6px;
  background: #ffe3cf;
  border-radius: 8px;
  padding: 8px;
}

#info-card-title {
  font-size: clamp(0.85rem, 3vw, 18px);
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  margin-bottom: 4px;
}

#info-card-text {
  font-size: clamp(0.75rem, 2.8vw, 15px);
  line-height: 1.35;
  color: #111;
}

/* ── CONTROLES ── */
#site-footer {
  position: fixed;
  bottom: 1.5rem;
  left: 2rem;
  z-index: 50;
  display: flex;
  gap: 0.5rem;
  background: var(--cream);
  border-radius: 14px;
  padding: 0.45rem 1rem;
  align-items: center;
}
#site-footer button {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--pink);
  padding: 2px 6px;
  line-height: 1;
  font-family: inherit;
  font-weight: 700;
}
#site-footer button:hover {
  color: var(--ink);
}

#footer-hint {
  position: fixed;
  bottom: 1.9rem;
  right: 2rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  z-index: 50;
}