/* visitor-counter.css
   Old-school odometer / "hit counter" look — dark LCD-style digits
   in individual beveled slots, each one flipping when it updates. */

.visitor-counter {
  display: inline-flex;
  gap: 3px;
  padding: 6px;
  background: #1a1a1a;
  border: 3px solid #555;
  border-radius: 4px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.15);
  font-family: 'Courier New', Consolas, monospace;
  margin: 100px;
}

.vc-digit {
  display: inline-block;
  width: 1.1em;
  padding: 4px 2px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #ff3b1f;
  background: #111;
  border: 1px solid #000;
  border-radius: 2px;
  text-shadow: 0 0 6px rgba(255, 59, 31, 0.85);
  box-shadow: inset 0 0 4px rgba(255, 59, 31, 0.3);
  perspective: 200px;
}

/* little per-digit flip when the number changes */
@keyframes vc-flip {
  0%   { transform: rotateX(0deg);   }
  50%  { transform: rotateX(90deg);  opacity: 0.4; }
  51%  { transform: rotateX(-90deg); opacity: 0.4; }
  100% { transform: rotateX(0deg);   }
}

.vc-flip {
  animation: vc-flip 0.35s ease-in-out;
}

/* small caption you can place under the counter, e.g.
   <div id="visitor-counter"></div>
   <p class="visitor-counter-label">visitors since 2026</p> */
.visitor-counter-label {
  margin-top: 4px;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 11px;
  color: #999;
  text-align: center;
}

.visitor-counter[data-error="true"]::after {
  content: 'counter unavailable';
  font-family: sans-serif;
  font-size: 12px;
  color: #999;
}
