* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: #ead7c3;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

.scroll-track {
  height: 650vh;
  pointer-events: none;
}

#valley {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  touch-action: pan-y;
  cursor: grab;
}

#valley:active {
  cursor: grabbing;
}

.whisper {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 250, 240, 0.88);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  text-shadow: 0 1px 14px rgba(32, 24, 18, 0.45);
  transition: opacity 0.9s ease;
  white-space: nowrap;
}

#start-hint i {
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, rgba(255, 250, 240, 0.85), transparent);
  animation: pulseLine 2.2s ease-in-out infinite;
}

#valley-hint {
  opacity: 0;
  bottom: 28px;
  letter-spacing: 0.16em;
}

#valley-hint.visible {
  opacity: 1;
}

@keyframes pulseLine {
  0%,
  100% {
    transform: scaleY(0.65);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.95;
  }
}

#sound-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 250, 240, 0.28);
  background: rgba(24, 28, 22, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 250, 240, 0.72);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
}

#sound-btn:hover {
  background: rgba(24, 28, 22, 0.42);
  color: rgba(255, 250, 240, 0.96);
}

#sound-btn .wave {
  opacity: 0.22;
  transition: opacity 0.3s ease;
}

#sound-btn.active .wave {
  opacity: 1;
}

@media (max-width: 640px) {
  .whisper {
    font-size: 10px;
    letter-spacing: 0.16em;
    bottom: 24px;
  }
  #sound-btn {
    right: 16px;
    bottom: 16px;
  }
}
