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

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.bg, .flag {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg {
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.flag {
  z-index: 1;
  opacity: 0.38;
  pointer-events: none;
}

.countdown {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 16px;
  text-align: center;
}

.countdown[hidden] { display: none; }

.digits {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.25rem, 1.5vw, 1rem);
  padding: clamp(0.75rem, 3vw, 1.75rem) clamp(1rem, 4vw, 2.5rem);
  border-radius: 1.25rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.unit span, .sep {
  font-size: clamp(2.75rem, 13vw, 8rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.sep { color: #ce1124; }

.unit small {
  margin-top: 0.4rem;
  font-size: clamp(0.65rem, 2.2vw, 0.95rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
}

