/* Nexus · Nixie tube counter */
.nx-nixie-root {
  --nix-fg: #ffb15a;
  --nix-glow: rgba(255, 165, 70, .9);
  --nix-dim: rgba(255, 165, 70, .08);
  display: inline-block;
  font-family: var(--nx-font-pixel, 'VT323', monospace);
  user-select: none;
}

.nx-nixie-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #14171d 0%, #0a0c10 100%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 6px 18px rgba(0, 0, 0, .55);
}

.nx-nixie-label {
  font-family: var(--nx-font-mono, monospace);
  font-size: 9px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .35);
  text-transform: uppercase;
}

.nx-nixie-row {
  display: flex;
  gap: 6px;
}

.nx-nixie-tube {
  position: relative;
  width: 34px;
  height: 56px;
  border-radius: 6px 6px 12px 12px / 8px 8px 14px 14px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 165, 70, .04) 0%, transparent 60%),
    linear-gradient(180deg, #1a1d22 0%, #0a0c10 50%, #0a0c10 100%);
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, .8),
    inset 0 -2px 0 rgba(0, 0, 0, .8),
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 0 0 1px rgba(255, 255, 255, .04);
  overflow: hidden;
}

.nx-nixie-stack {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nx-nixie-glyph {
  position: absolute;
  font-size: 38px;
  line-height: 1;
  color: var(--nix-fg);
  opacity: .08;
  text-shadow: none;
  transition: opacity 200ms ease, text-shadow 200ms ease;
  font-family: inherit;
}

.nx-nixie-glyph.is-lit {
  opacity: 1;
  text-shadow:
    0 0 4px var(--nix-glow),
    0 0 10px var(--nix-glow),
    0 0 20px rgba(255, 110, 30, .55);
}

.nx-nixie-glyph.is-fade-in { animation: nx-nixie-fade 220ms ease-out; }

@keyframes nx-nixie-fade {
  0% { opacity: 0; }
  60% { opacity: 1.2; }
  100% { opacity: 1; }
}

.nx-nixie-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: .35;
  mix-blend-mode: screen;
}

.nx-nixie-reflect {
  position: absolute;
  top: 0;
  left: 6px;
  right: 6px;
  height: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, transparent 100%);
  border-radius: 50% / 100% 100% 0 0;
  pointer-events: none;
  filter: blur(.5px);
}

@media (prefers-reduced-motion: reduce) {
  .nx-nixie-glyph { transition: none; }
  .nx-nixie-glyph.is-fade-in { animation: none; }
}
