/* Billboard Hot 100 report — full-screen "strum to enter" intro gate.
   Desktop + mouse only, by design: no touch-specific styling here. */

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(235, 104, 52, 0.18), transparent 60%),
    radial-gradient(900px 600px at 80% 90%, rgba(42, 120, 214, 0.16), transparent 60%),
    #0e1a30;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.intro-gate.is-leaving {
  opacity: 0;
}

.intro-gate__skip {
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.intro-gate__skip:hover,
.intro-gate__skip:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.intro-gate__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 24px;
  max-width: 480px;
}

.intro-gate__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.intro-gate__guitar-wrap {
  position: relative;
  width: min(60vw, 300px);
  /* A small orange guitar-pick cursor while hovering the strings. */
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="34" viewBox="0 0 26 34"><path d="M13 2C5 2 2 12 4 20c2 8 6 12 9 12s7-4 9-12c2-8-1-18-9-18z" fill="%23eb6834" stroke="%23101a2b" stroke-width="2"/></svg>')
    13 17,
    pointer;
}

.intro-gate__guitar {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.intro-body {
  fill: #172441;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 2;
}

.intro-neck {
  fill: #101a2b;
}

.intro-hole {
  fill: #0a1120;
}

.intro-string {
  stroke: #cdd3dc;
  stroke-linecap: round;
}

.intro-string.is-plucked {
  animation: intro-string-pluck 0.5s ease-out;
}

@keyframes intro-string-pluck {
  0% { transform: translateY(0); }
  12% { transform: translateY(-7px); }
  26% { transform: translateY(6px); }
  40% { transform: translateY(-4px); }
  54% { transform: translateY(3px); }
  68% { transform: translateY(-1.5px); }
  82% { transform: translateY(1px); }
  100% { transform: translateY(0); }
}

.intro-gate__sweep {
  position: absolute;
  left: 50%;
  top: 44%;
  font-size: 22px;
  line-height: 1;
  margin-left: -11px;
  animation: intro-sweep 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes intro-sweep {
  0% { transform: translateY(-58px); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(58px); opacity: 0; }
}

.intro-gate__directions {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.intro-gate__directions.is-nudge {
  animation: intro-nudge 0.6s ease;
}

@keyframes intro-nudge {
  0%, 100% { color: rgba(255, 255, 255, 0.75); transform: scale(1); }
  30% { color: #eb6834; transform: scale(1.04); }
}
