*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #050711;
  color: #f9fafb;
  overflow: hidden;
}

#slideshow {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3.5rem 2rem 2rem;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.8) 18%,
    rgba(0, 0, 0, 0.6) 32%,
    rgba(0, 0, 0, 0.35) 48%,
    transparent 100%
  );
}

.overlay-inner {
  text-align: center;
  max-width: 640px;
  width: 100%;
  padding: 2.5rem 2rem 2.75rem;
  background: transparent;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

#headline {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.85);
}

#subheadline {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e5e7eb;
  opacity: 0.95;
  margin-bottom: 2rem;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.85);
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.time-box {
  min-width: 72px;
  padding: 0.25rem 0.5rem;
}

.value {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.85);
}

.label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(226, 232, 240, 0.95);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
}

#after-message {
  font-size: 0.95rem;
  color: #e5e7eb;
  opacity: 0.95;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.85);
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .overlay-inner {
    padding: 2rem 1.5rem 2.25rem;
  }

  #countdown {
    gap: 0.5rem;
  }

  .time-box {
    min-width: 64px;
  }

  .value {
    font-size: 1.4rem;
  }
}


