:root {
  --bg: #0b3d24;
  --bg-deep: #062616;
  --text: #fff8e7;
  --accent: #ffd76a;
  --accent-red: #f2867e;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  text-align: center;
  overflow-x: hidden;
}

#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  width: 100%;
  max-width: 90rem;
}

h1 {
  font-family: "Asul", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 5.5vw, 5rem);
  margin: 0 0 clamp(1rem, 4vh, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3.5rem);
}

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

.value {
  font-size: clamp(2.75rem, 12vw, 15rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  text-shadow: 0 0 0.15em rgba(255, 215, 106, 0.35);
}

.label {
  margin-top: clamp(0.25rem, 1vw, 1rem);
  font-size: clamp(0.75rem, 1.6vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  opacity: 0.85;
}

.message {
  font-size: clamp(2rem, 7vw, 7rem);
  color: var(--accent-red);
  font-weight: 700;
  margin: 0;
}

.tz-note {
  margin-top: clamp(1.5rem, 4vh, 3rem);
  font-size: clamp(0.7rem, 1.2vw, 1.1rem);
  opacity: 0.65;
}

@media (max-width: 600px) {
  .countdown {
    row-gap: 1.5rem;
  }
  .unit {
    flex: 0 0 40%;
  }
}

@media (prefers-contrast: more) {
  .value { color: #ffffff; }
  .label, .tz-note { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #snow { display: none; }
}
