:root {
  --bg: #020202;
  --hole: #0a0a0a;
  --liquid: #bc13fe;
  --floor-idle: #1a1a1a;
}

body {
  margin: 0;
  background: var(--bg);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Arial Black', sans-serif;
}

/* --- THE STAGE --- */
.stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: url('#liquid'); /* Critical for the gooey fusion */
}

.drip-container {
  display: flex;
  gap: 15px;
  z-index: 5;
}

/* --- THE LETTERS --- */
.letter {
  position: relative;
  font-size: 15rem;
  color: var(--hole);
  cursor: pointer;
  line-height: 1;
  transform-origin: bottom; /* Makes the swell feel heavy */
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.letter::before {
  content: attr(data-text);
  position: absolute;
  bottom: 0; 
  left: 0;
  width: 100%;
  height: 0%;
  color: var(--liquid);
  overflow: hidden;
  transition: height 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 2;
}

.letter::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 25px;
  height: 25px;
  background: var(--liquid);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%);
}

/* --- HOVER STATES --- */
.letter:hover {
  transform: scale(1.05, 1.1); /* Swelling as it fills */
}

.letter:hover::before {
  height: 100%;
}

.letter:hover::after {
  animation: drip-fall 1.5s infinite ease-in;
}

@keyframes drip-fall {
  0% { bottom: 20px; opacity: 1; transform: translateX(-50%) scale(1); }
  80% { bottom: -45vh; opacity: 1; transform: translateX(-50%) scale(0.6, 1.4); }
  100% { bottom: -50vh; opacity: 1; transform: translateX(-50%) scale(1.5, 0.1); }
}

/* --- THE FLOOR & SPREADING INK --- */
.liquid-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background: var(--floor-idle);
  overflow: visible;
}

.floor-ink {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--liquid);
  /* Starts as a tiny point hidden under the letter */
  clip-path: circle(0% at var(--drop-x, 50%) 50%);
  opacity: 0;
  /* Syncs color spread with the 1.1s impact */
  transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  transition-delay: 0.5s; 
}

.stage:has(.letter:hover) .floor-ink {
  clip-path: circle(100% at var(--drop-x, 50%) 50%);
  opacity: 1;
}

/* --- SPLASH PARTICLES --- */
.particle {
  position: absolute;
  top: 0;
  left: var(--drop-x, 50%);
  width: 8px;
  height: 8px;
  background: var(--liquid);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.stage:has(.letter:hover) .particle {
  animation: splash-launch 1.5s infinite;
}

.p2 { animation-delay: 0.05s; } /* Slight offset for realism */

@keyframes splash-launch {
  0%, 88% { transform: translate(-50%, 0) scale(0); opacity: 0; }
  92% { transform: translate(-50%, -45px) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, 15px) scale(0); opacity: 0; }
}
/* --- ALWAYS-ON RUSSELL BADGE --- */
.russell-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 8px 16px; /* Slightly smaller padding */
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 10px; /* Smaller font */
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 999999; /* Maxed out to ensure clickability */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.badge-text {
  position: relative;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.badge-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--liquid) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 1;
}

/* Hover & Click States */
.russell-badge:hover {
  transform: translateY(-3px);
  border-color: var(--liquid);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.russell-badge:hover .badge-text {
  opacity: 1;
}

.russell-badge:hover .badge-glow {
  transform: translate(-50%, -50%) scale(1.5);
  opacity: 0.3;
}

.russell-badge:active {
  transform: translateY(-1px) scale(0.95);
}