.visitor-counter-section {
  padding: 38px 16px 42px;
  border-top: 1px solid rgba(98, 207, 255, 0.1);
  background:
    radial-gradient(circle at 50% 115%, rgba(40, 147, 220, 0.14), transparent 28rem),
    #010407;
}

.visitor-counter-sign {
  position: relative;
  width: min(100%, 470px);
  margin-inline: auto;
  padding: 24px 54px 22px;
  overflow: hidden;
  border: 1px solid rgba(67, 190, 255, 0.34);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(10, 28, 45, 0.92), rgba(1, 7, 14, 0.97)),
    #020810;
  text-align: center;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.42),
    inset 0 0 36px rgba(30, 139, 210, 0.075),
    0 0 24px rgba(44, 169, 242, 0.075);
}

.visitor-counter-sign::before {
  position: absolute;
  top: 0;
  right: 14%;
  left: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a9ef42, transparent);
  box-shadow: 0 0 10px rgba(169, 239, 66, 0.42);
  content: "";
}

.visitor-counter-label,
.visitor-counter-tagline {
  margin: 0;
  text-transform: uppercase;
}

.visitor-counter-label {
  color: #a9ef42;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  font-weight: 680;
  letter-spacing: 0.18em;
  line-height: 1.55;
}

.visitor-counter-total {
  min-height: 48px;
  margin-top: 10px;
  color: #62cfff;
  font-family: var(--font-geist-mono), "Courier New", monospace;
  font-size: clamp(32px, 9vw, 46px);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: 0.12em;
  line-height: 1;
  text-indent: 0.12em;
  text-shadow:
    0 0 5px rgba(98, 207, 255, 0.92),
    0 0 17px rgba(35, 165, 239, 0.55),
    0 0 34px rgba(22, 126, 207, 0.28);
  transform-origin: center;
}

.visitor-counter-total.is-ready {
  animation:
    visitor-number-flip 0.62s cubic-bezier(0.2, 0.76, 0.25, 1) both,
    visitor-neon-pulse 4.6s 0.65s ease-in-out infinite;
}

.visitor-counter-tagline {
  margin-top: 10px;
  color: #83919b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: none;
}

.night-raven {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 26px;
  height: 24px;
  opacity: 0.7;
  filter: drop-shadow(0 0 6px rgba(98, 207, 255, 0.28));
}

.night-raven::before {
  position: absolute;
  top: 7px;
  left: 5px;
  width: 17px;
  height: 12px;
  border-radius: 60% 35% 62% 38%;
  background: #00040a;
  box-shadow: 8px -5px 0 -3px #00040a;
  clip-path: polygon(0 42%, 48% 0, 100% 22%, 80% 58%, 94% 100%, 45% 75%, 8% 100%);
  content: "";
}

.night-raven::after {
  position: absolute;
  top: 3px;
  right: -1px;
  width: 9px;
  height: 7px;
  background: #00040a;
  clip-path: polygon(0 15%, 100% 48%, 0 78%);
  content: "";
}

@keyframes visitor-number-flip {
  from {
    opacity: 0.18;
    transform: perspective(240px) rotateX(-74deg) translateY(7px);
  }
  to {
    opacity: 1;
    transform: perspective(240px) rotateX(0deg) translateY(0);
  }
}

@keyframes visitor-neon-pulse {
  0%,
  100% {
    filter: brightness(0.96);
  }
  50% {
    filter: brightness(1.13);
  }
}

@media (max-width: 520px) {
  .visitor-counter-section {
    padding: 30px 16px 34px;
  }

  .visitor-counter-sign {
    padding: 22px 39px 20px 20px;
  }

  .night-raven {
    top: 14px;
    right: 12px;
    transform: scale(0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .visitor-counter-total.is-ready {
    animation: none;
  }
}
