/* NVIDIA / green stock coin rain */
#stock-rain {
  position: fixed;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
  contain: layout style paint;
}

.nv-coin {
  position: absolute;
  top: -80px;
  width: var(--size, 44px);
  height: var(--size, 44px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 28%, #c8ff6a 0%, #76b900 42%, #4a7a00 78%, #2d4a00 100%);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 14px rgba(118, 185, 0, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(180, 255, 80, 0.55);
  animation-name: nvCoinFall;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  will-change: transform, opacity;
}

.nv-coin::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.nv-coin__logo {
  width: 62%;
  height: 62%;
  display: block;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.nv-coin.is-ticker {
  border-radius: 8px;
  width: var(--w, 56px);
  height: var(--h, 28px);
  background: linear-gradient(135deg, #0b1a00 0%, #1a3a00 50%, #76b900 100%);
  border: 1px solid rgba(184, 255, 74, 0.5);
}

.nv-coin.is-ticker .nv-coin__logo {
  display: none;
}

.nv-coin.is-ticker::after {
  content: attr(data-label);
  font: 800 10px/1 "Outfit", system-ui, sans-serif;
  color: #e8ffb0;
  letter-spacing: 0.04em;
  z-index: 1;
  text-shadow: 0 0 8px rgba(118, 185, 0, 0.8);
}

.nv-chip {
  position: absolute;
  top: -40px;
  width: var(--w, 52px);
  height: var(--h, 22px);
  border-radius: 4px;
  background: linear-gradient(90deg, #76b900, #a8e600);
  box-shadow: 0 0 12px rgba(118, 185, 0, 0.5);
  animation-name: nvChipFall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 9px/1 "Outfit", system-ui, sans-serif;
  color: #0a1400;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

@keyframes nvCoinFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) rotateY(0deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--drift, 40px), 110vh, 0)
      rotate(var(--spin, 360deg)) rotateY(var(--flip, 720deg));
    opacity: 0;
  }
}

@keyframes nvChipFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(var(--drift, 30px), 110vh, 0) rotate(var(--spin, 200deg));
    opacity: 0.1;
  }
}

@media (max-width: 480px) {
  .nv-coin {
    --size: 32px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #stock-rain {
    display: none !important;
  }
}
