html,
body {
  margin: 0;
  background: #fff;
}

.audiolibros-hero {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
}

#enterPrompt {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

#enterPrompt.hide {
  opacity: 0;
  pointer-events: none;
}

.entry-btn {
  position: relative;
  display: flex;
  align-items: center;
  height: 84px;
  width: 84px;
  color: #000;
  text-decoration: none;
  background: #fff;
  border: 2px solid #000;
  border-radius: 42px;
  box-shadow: 1px 3px 16px rgba(0, 0, 0, 0.25);
  transition: width 0.9s cubic-bezier(0.2, 0.9, 0.3, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.entry-btn.grown {
  width: 270px;
}

.entry-btn:hover {
  background: #000;
}

.entry-logo-wrap {
  position: absolute;
  left: 7px;
  top: 7px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 0.5px solid #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.3);
}

.entry-btn:hover .entry-logo {
  filter: grayscale(1) contrast(1.3) invert(1);
}

.entry-text {
  position: absolute;
  left: 92px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #000;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.28em;
  transition: width 0.5s ease 0.5s, color 0.3s ease;
}

.entry-btn.grown .entry-text {
  width: 150px;
}

.entry-btn:hover .entry-text {
  color: #fff;
}

#enterBtn.btn--clicked {
  width: 84px;
  z-index: -10;
}

#enterBtn.btn--clicked .entry-text {
  width: 0;
}

.color {
  display: block;
  position: absolute;
  width: 42em;
  height: 42em;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.8s ease;
}

.color.expanded {
  transform: translate(-50%, -50%) scale(1);
}

.color--black {
  background: #000;
  transition-delay: 0.25s;
}

.color--white {
  background: #fff;
  transition-delay: 0.5s;
}

#growthCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.4s ease;
}

#growthCanvas.done {
  opacity: 0;
}

#forwardLink {
  position: absolute;
  inset: 0;
  display: block;
}

#forwardLink.shake {
  animation: heroShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes heroShake {
  0% { transform: translate(0, 0) rotate(0); }
  12% { transform: translate(-8px, 4px) rotate(-0.4deg); }
  24% { transform: translate(7px, -5px) rotate(0.4deg); }
  36% { transform: translate(-6px, 5px) rotate(-0.3deg); }
  48% { transform: translate(5px, -4px) rotate(0.25deg); }
  60% { transform: translate(-3px, 3px) rotate(-0.15deg); }
  72% { transform: translate(2px, -2px) rotate(0.1deg); }
  84% { transform: translate(-1px, 1px) rotate(0); }
  100% { transform: translate(0, 0) rotate(0); }
}

#finalLogo {
  position: absolute;
  left: 50%;
  top: calc(50% - 32px);
  width: min(78vw, 70dvh, 760px);
  max-width: 760px;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  filter: grayscale(1) contrast(1.45);
  transition: opacity 0.3s ease-out,
    transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  will-change: transform, opacity;
}

#finalLogo.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  cursor: pointer;
}

#finalLogoStone {
  position: absolute;
  left: 50%;
  top: calc(50% - 32px);
  width: min(78vw, 70dvh, 760px);
  max-width: 760px;
  transform: translate(-50%, -50%) scale(1.05);
  opacity: 1;
  filter: grayscale(1) contrast(1.45) brightness(1.15);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s ease-out;
  pointer-events: none;
  z-index: 2;
  will-change: clip-path, transform, filter;
}

#finalLogoStone.show {
  clip-path: circle(75% at 50% 50%);
  transform: translate(-50%, -50%) scale(1);
  filter: grayscale(1) contrast(1.45) brightness(1);
}

#shockwave {
  position: absolute;
  left: 50%;
  top: calc(50% - 32px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  border: 4px solid rgba(15, 15, 15, 0.5);
}

#shockwave.burst {
  animation: shockwaveBurst 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shockwaveBurst {
  0% {
    width: 12px;
    height: 12px;
    opacity: 0.85;
    border-width: 5px;
  }
  55% {
    opacity: 0.22;
  }
  100% {
    width: 860px;
    height: 860px;
    opacity: 0;
    border-width: 1px;
  }
}

#flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

#flash.hit {
  animation: flashHit 0.45s ease-out forwards;
}

@keyframes flashHit {
  0% { opacity: 0; }
  8% { opacity: 0.85; }
  100% { opacity: 0; }
}

.hero-label {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.35em;
  text-transform: lowercase;
  color: #6f98ec;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-label.show {
  opacity: 0.8;
}

.back-link {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: #000;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.35s ease, color 0.2s ease;
}

.back-link:hover {
  color: #6f98ec;
  text-decoration: underline;
}

.back-link.show {
  opacity: 0.6;
}