#morseCounter {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  background: #001d0a;
  color: #4dff88;
  font-family: 'Courier New', Courier, monospace;
  border: 1px solid #2a8c4a;
  border-radius: 4px;
  box-shadow: inset 0 0 14px rgba(0, 255, 128, 0.18), 0 1px 4px rgba(0, 0, 0, 0.25);
  vertical-align: middle;
}

#morseCounter .morse-display {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

#morseCounter .morse-digit {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

#morseCounter .dot,
#morseCounter .dash {
  display: inline-block;
  height: 7px;
  background: #4dff88;
  border-radius: 1px;
  opacity: 0.5;
  animation: morsePulse 3s ease-in-out infinite;
}

#morseCounter .dot {
  width: 7px;
  border-radius: 50%;
}

#morseCounter .dash {
  width: 16px;
}

@keyframes morsePulse {
  0%, 70%, 100% {
    opacity: 0.5;
    box-shadow: 0 0 3px rgba(77, 255, 136, 0.3);
  }
  35% {
    opacity: 1;
    box-shadow: 0 0 8px #4dff88, 0 0 16px rgba(77, 255, 136, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  #morseCounter .dot,
  #morseCounter .dash {
    animation: none;
    opacity: 0.85;
  }
}
