/* ===== 520 Love · Premium Dark Theme ===== */
:root {
  --bg: #030308;
  --bg-elevated: #0a0a12;
  --gold: #d4af37;
  --gold-light: #f5e6b8;
  --rose: #e8a0b4;
  --rose-dim: #c47a8f;
  --star-blue: #6eb5ff;
  --star-blue-dim: #3d7ab8;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f5f0eb;
  --text-muted: rgba(245, 240, 235, 0.55);
  --glow-gold: 0 0 40px rgba(212, 175, 55, 0.35);
  --glow-rose: 0 0 50px rgba(232, 160, 180, 0.25);
  --glow-blue: 0 0 60px rgba(110, 181, 255, 0.2);
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ===== Canvas & Background ===== */
#star-canvas,
#trail-canvas,
#intro-canvas,
#finale-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#trail-canvas { z-index: 2; }
#intro-canvas { z-index: 1; }

#intro-burst-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10002;
}

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 18s var(--ease-smooth) infinite alternate;
}

.orb-1 {
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, var(--star-blue) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}

.orb-2 {
  width: 40vw;
  height: 40vw;
  max-width: 400px;
  background: radial-gradient(circle, var(--rose-dim) 0%, transparent 70%);
  bottom: 10%;
  right: -5%;
  animation-delay: -6s;
}

.orb-3 {
  width: 35vw;
  height: 35vw;
  max-width: 350px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  margin-left: -17.5vw;
  opacity: 0.2;
  animation-delay: -12s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.08); }
}

@media (min-width: 1000px) {
  .orb-3 { margin-left: -175px; }
}

/* ===== Intro ===== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 1.8s var(--ease-out), visibility 1.8s;
}

.intro.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, #000 85%);
  z-index: 2;
  pointer-events: none;
}

.intro-stage {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  width: 100%;
  padding: 2rem;
}

.intro-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 65%);
  opacity: 0;
  pointer-events: none;
  z-index: 10001;
  transition: opacity 0.15s ease-out;
}

.intro-flash.active {
  opacity: 1;
}

/* 3 2 1 倒计时 */
.intro-countdown {
  position: relative;
  width: clamp(140px, 35vw, 220px);
  height: clamp(140px, 35vw, 220px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-countdown.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.6);
  transition: opacity 0.5s, transform 0.5s, visibility 0.5s;
}

.countdown-num {
  position: relative;
  z-index: 2;
  font-size: clamp(5rem, 22vw, 9rem);
  font-weight: 300;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, var(--gold-light) 40%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6));
  transform: scale(0.3);
  opacity: 0;
}

.countdown-num.pop {
  animation: countdownPop 0.85s var(--ease-out) forwards;
}

@keyframes countdownPop {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-8deg);
    filter: blur(12px) drop-shadow(0 0 0 transparent);
  }
  45% {
    opacity: 1;
    transform: scale(1.15) rotate(0deg);
    filter: blur(0) drop-shadow(0 0 50px rgba(232, 160, 180, 0.8));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) drop-shadow(0 0 25px rgba(212, 175, 55, 0.5));
  }
}

.countdown-num.fade-out-num {
  animation: countdownFadeOut 0.4s ease forwards;
}

@keyframes countdownFadeOut {
  to {
    opacity: 0;
    transform: scale(1.4);
    filter: blur(8px);
  }
}

.countdown-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--gold), var(--rose), var(--star-blue)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  animation: ringPulse 0.9s var(--ease-out) infinite;
}

.countdown-ring-2 {
  inset: -12%;
  animation-direction: reverse;
  animation-duration: 1.2s;
  opacity: 0.25;
}

.intro-countdown.pulse .countdown-ring {
  animation: ringExplode 0.9s var(--ease-out) forwards;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0.7; }
}

@keyframes ringExplode {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* 开场告白句 */
.intro-message {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 720px);
  text-align: center;
  font-size: clamp(1.75rem, 6vw, 3.2rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, #fff 0%, var(--gold-light) 35%, var(--rose) 70%, var(--star-blue) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: messageShimmer 3s linear infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.35));
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.intro-message.show {
  visibility: visible;
  animation: messageIn 0.55s var(--ease-out) forwards, messageShimmer 4s linear 0.55s infinite;
}

.intro-message.dissolve {
  visibility: hidden;
  opacity: 0 !important;
  transition: opacity 0.15s;
}

@keyframes messageIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.85);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

@keyframes messageShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* 进入主页 Hero 入场 */
.main.hero-enter .hero .reveal {
  opacity: 0;
  transform: translateY(50px);
}

.main.hero-enter .hero .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.main.hero-enter .hero-title .line {
  display: block;
  overflow: hidden;
}

.main.hero-enter .hero-title .line.accent {
  animation: heroAccentGlow 2.5s ease-in-out infinite alternate;
}

@keyframes heroAccentGlow {
  from { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.2)); }
  to { filter: drop-shadow(0 0 40px rgba(232, 160, 180, 0.45)); }
}

/* ===== Main Layout ===== */
.main {
  position: relative;
  z-index: 10;
}

.section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.25rem, 5vw, 3rem);
}

.section-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--gold-light) 50%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero ===== */
.hero {
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  background: linear-gradient(120deg, var(--gold-light), var(--rose), var(--star-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.2));
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-style: italic;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Heart button */
.btn-heart {
  width: 72px;
  height: 72px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.btn-heart-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glow-rose);
  animation: heartBeat 1.2s ease-in-out infinite;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.btn-heart:hover .btn-heart-inner {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(232, 160, 180, 0.5);
}

.btn-heart svg {
  width: 32px;
  height: 32px;
  fill: var(--rose);
  filter: drop-shadow(0 0 8px var(--rose));
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.08); }
  30% { transform: scale(1); }
  45% { transform: scale(1.05); }
}

/* Glow button */
.btn-glow {
  position: relative;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.15em;
}

.btn-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold), var(--rose), var(--star-blue), var(--gold));
  background-size: 300% 300%;
  animation: borderFlow 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.btn-glow-text {
  position: relative;
  z-index: 1;
}

.btn-glow-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes borderFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes btnShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Gallery Masonry ===== */
.gallery-section {
  background: linear-gradient(180deg, transparent, rgba(10, 10, 18, 0.6) 20%, transparent);
}

.gallery-masonry {
  column-count: 3;
  column-gap: 1.25rem;
}

@media (max-width: 900px) {
  .gallery-masonry { column-count: 2; }
}

@media (max-width: 520px) {
  .gallery-masonry { column-count: 1; }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  perspective: 800px;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
  transform-style: preserve-3d;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), transparent, rgba(110, 181, 255, 0.2));
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
  pointer-events: none;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
  pointer-events: none;
}

.gallery-card:hover {
  transform: scale(1.03) rotateX(2deg) rotateY(-2deg);
  box-shadow: var(--glow-gold), var(--glow-rose), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.gallery-card:hover::before,
.gallery-card:hover::after {
  opacity: 1;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  transition: transform 0.6s var(--ease-out);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
}

.gallery-empty code {
  color: var(--gold);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
  padding: 1rem;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: var(--glow-gold), var(--glow-rose);
  object-fit: contain;
  animation: lightboxIn 0.6s var(--ease-out);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass);
  color: var(--text);
  font-size: 1.75rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.3s, transform 0.3s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.lightbox-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(232, 160, 180, 0.15), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ===== Timer ===== */
.timer-section {
  text-align: center;
}

.timer-display {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem 0.25rem;
  margin: 2rem 0;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.timer-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.timer-sep {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  padding-bottom: 1.5rem;
  font-weight: 300;
}

.flip-group {
  display: flex;
  gap: 4px;
}

.flip-digit {
  position: relative;
  width: clamp(36px, 8vw, 52px);
  height: clamp(48px, 10vw, 68px);
  perspective: 200px;
  font-variant-numeric: tabular-nums;
}

.flip-digit-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 300;
  color: var(--gold-light);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.flip-digit-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.4);
}

.flip-digit.flipping .flip-digit-inner {
  animation: flipAnim 0.5s var(--ease-out);
}

@keyframes flipAnim {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(-90deg); opacity: 0.5; }
  100% { transform: rotateX(0); }
}

.timer-since {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .timer-sep-sec,
  .timer-unit-sec { display: none; }
}

/* ===== Letter ===== */
.letter-section {
  min-height: 80vh;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--glow-blue);
}

.letter-card {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 720px;
  margin: 0 auto;
}

.typewriter {
  font-family: inherit;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 2;
  white-space: pre-wrap;
  color: var(--text);
  background: none;
  border: none;
  min-height: 12em;
}

.typewriter-cursor {
  position: absolute;
  display: inline;
  color: var(--rose);
  font-weight: 300;
  animation: cursorBlink 1s step-end infinite;
  pointer-events: none;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

/* ===== Finale ===== */
.finale-section {
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  overflow: hidden;
}

#finale-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.finale-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.finale-line {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 300;
  margin: 0.5rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s var(--ease-out);
}

.finale-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.finale-big {
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 300;
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--gold-light), var(--rose), var(--star-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.5));
  animation: finaleGlow 2s ease-in-out infinite alternate;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1.5s var(--ease-out), transform 1.5s var(--ease-out);
}

.finale-big.show {
  opacity: 1;
  transform: scale(1);
}

@keyframes finaleGlow {
  from { filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.4)); }
  to { filter: drop-shadow(0 0 60px rgba(232, 160, 180, 0.6)); }
}

.finale-fade {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 3s ease;
}

.finale-fade.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== Music Player ===== */
.music-player {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 5000;
}

.vinyl-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.vinyl {
  position: relative;
  width: 64px;
  height: 64px;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
}

.vinyl.playing .vinyl-disc {
  animation: spin 4s linear infinite;
  box-shadow: var(--glow-gold);
}

.vinyl.beat .vinyl-disc {
  animation-duration: 3.2s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.vinyl-label {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rose) 0%, var(--gold) 100%);
  border: 2px solid #111;
}

.vinyl-arm {
  position: absolute;
  top: -4px;
  right: 8px;
  width: 28px;
  height: 4px;
  background: linear-gradient(90deg, #444, #888);
  border-radius: 2px;
  transform-origin: right center;
  transform: rotate(-25deg);
  transition: transform 0.4s var(--ease-out);
}

.vinyl.playing .vinyl-arm {
  transform: rotate(-5deg);
}

/* ===== Click hearts ===== */
.click-heart {
  position: fixed;
  pointer-events: none;
  font-size: 1.25rem;
  z-index: 8000;
  will-change: transform, opacity;
  color: var(--rose);
  text-shadow: 0 0 12px rgba(232, 160, 180, 0.6);
  animation: clickHeartFly 0.7s var(--ease-out) forwards;
}

#click-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8000;
  overflow: hidden;
}

@keyframes clickHeartFly {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1); }
}

.falling-heart {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  animation: fallHeart linear forwards;
}

@keyframes fallHeart {
  to {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===== Parallax helper ===== */
[data-parallax] {
  will-change: transform;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
