#countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    display: none;  /* hide initially */
}

#countdown span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.4rem 0.5rem;
  background: #111;
  color: #fff;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
}

.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.tile {
  position: relative;
  overflow: hidden;
}

.value {
  display: inline-block;
  transform: translateY(0);
}

.value.slide {
  animation: slide-down 0.35s ease-out;
}

@keyframes slide-down {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.label {
  font-size: 0.75rem;     /* smaller text */
  margin-top: 4px;
}

@media (max-width: 768px) {
  #countdown span {
    font-size: 2.1rem;
    padding: 0.32rem 0.4rem;
  }
}

@media (max-width: 480px) {
  #countdown span {
    font-size: 1.5rem;
    padding: 0.25rem 0.3rem;
  }
}