*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #000000;
  --color-text: #e8e4df;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* ── Background Video ── */

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) brightness(0.4);
  transform: scale(1.1);
}

/* ── Overlays ── */

.overlay-darken {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.overlay-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

/* ── Animated noise canvas ── */

#noiseCanvas {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: screen;
}

/* ── Particle Canvas ── */

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ── Cursor Aura ── */

#cursorAura {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  background: radial-gradient(circle,
    rgba(255,160,120,0.28) 0%,
    rgba(255,100,180,0.16) 30%,
    rgba(130,120,255,0.08) 55%,
    transparent 75%);
  mix-blend-mode: screen;
  filter: blur(8px);
  will-change: left, top, opacity;
  transition: opacity 0.3s ease;
}

/* ── Tap Screen ── */

.tap-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  overflow: hidden;
}

.tap-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) brightness(0.55) saturate(1.3);
  transform: scale(1.08);
}

.tap-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.6) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.tap-content {
  position: relative;
  z-index: 2;
  text-align: center;
  user-select: none;
}

.tap-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  color: var(--color-text);
  text-shadow:
    0 0 20px rgba(255,157,125,0.5),
    0 0 60px rgba(255,109,187,0.25),
    0 0 110px rgba(255,179,124,0.15);
  animation: tapPulse 2.5s ease-in-out infinite;
}

@keyframes tapPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

/* ── Intro Container ── */

.intro-container {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.intro-inner {
  position: relative;
  width: min(70vw, 70vh);
  height: min(70vw, 70vh);
  max-width: 560px;
  max-height: 560px;
}

.intro-piece {
  position: absolute;
  will-change: transform, filter;
}

.merge-flash {
  position: absolute;
  width: 600px;
  height: 600px;
  z-index: 51;
  background: radial-gradient(circle at center,
    rgba(255,200,140,0.95) 0%,
    rgba(255,140,180,0.4) 30%,
    transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.merge-glow {
  position: absolute;
  width: min(76vw, 76vh);
  height: min(76vw, 76vh);
  max-width: 620px;
  max-height: 620px;
  border-radius: 12px;
  box-shadow:
    0 0 60px rgba(255,136,110,0.5),
    0 0 140px rgba(255,111,170,0.25),
    0 0 200px rgba(114,126,255,0.2),
    inset 0 0 90px rgba(255,138,192,0.1);
  opacity: 0;
  pointer-events: none;
}

.lens-flare {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,0.65) 0%,
    rgba(255,190,130,0.35) 18%,
    rgba(130,160,255,0.12) 40%,
    transparent 70%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 52;
}

/* ── Main Screen ── */

.main-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.main-screen.active {
  pointer-events: auto;
}

.main-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.main-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--color-text);
  text-shadow:
    0 0 30px rgba(200,168,124,0.25),
    0 0 80px rgba(200,168,124,0.08);
  opacity: 0;
  transform: translateY(20px);
}

.main-quote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-align: center;
  color: rgba(232, 228, 223, 0.9);
  text-shadow:
    0 0 16px rgba(255, 144, 144, 0.2),
    0 0 40px rgba(182, 120, 255, 0.12);
  opacity: 0;
  transform: translateY(16px);
}

.main-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  cursor: none;
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: transform, box-shadow;
}

.link-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(200,168,124,0.3);
  box-shadow:
    0 0 25px rgba(200,168,124,0.15),
    0 0 60px rgba(200,168,124,0.05);
  transform: translateY(-2px);
}

.link-btn:active {
  transform: scale(0.96) translateY(0);
  transition-duration: 0.1s;
}

.twitter-icon {
  opacity: 0.85;
}

/* ── Mute Button ── */

.mute-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--color-text);
  cursor: none;
  opacity: 0;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mute-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(200,168,124,0.3);
  box-shadow: 0 0 20px rgba(200,168,124,0.12);
}

.mute-btn:active {
  transform: scale(0.92);
}

/* ── Clipboard Toast ── */

.clipboard-toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .intro-inner {
    width: 88vw;
    height: 88vw;
  }

  .merge-glow {
    width: 92vw;
    height: 92vw;
  }

  .main-links {
    flex-direction: column;
    gap: 1rem;
  }

  .main-content {
    gap: 2rem;
  }

  .tap-text {
    letter-spacing: 0.35em;
  }
}
