:root {
  color-scheme: dark;
  --night: #0a0e21;
  --ink: #eef2fb;
  --muted: #93a0c4;
  --warm: #ffca6e;
  --line: rgba(238, 242, 251, 0.18);
  --font-pixel: 'Press Start 2P', 'Courier New', monospace;
  --font-term: 'VT323', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  min-width: 320px;
  overflow: hidden;
  background: var(--night);
}

button { font: inherit; }

.countdown-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
  background: var(--night);
}

.winter-scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.countdown-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vh, 4rem) 0 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-family: var(--font-term);
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}

h1 {
  max-width: 46rem;
  margin: 0;
  font-family: var(--font-term);
  font-size: clamp(2rem, 5.6vw, 3.9rem);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
  text-shadow: 0 3px 0 rgba(4, 6, 18, 0.55);
}

.countdown-block { margin-top: clamp(1.3rem, 3.6vh, 2.6rem); }

.countdown {
  margin: 0;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: clamp(1.05rem, 4.4vw, 3.4rem);
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 4px 0 rgba(4, 6, 18, 0.6), 0 0 1px rgba(255, 202, 110, 0.35);
}

.target-label, .dawn-message {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-family: var(--font-term);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: 0.08em;
}

.dawn-message {
  margin-top: 0.9rem;
  color: var(--warm);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.controls button {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.5rem 0.7rem;
  color: var(--muted);
  background: rgba(10, 14, 33, 0.66);
  cursor: pointer;
  font-family: var(--font-term);
  font-size: 1rem;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 0 rgba(4, 6, 18, 0.55);
  transition: color 140ms ease, border-color 140ms ease;
}

.controls button:hover, .controls button:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.controls button:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .countdown-content { padding-top: 1.5rem; }
  .eyebrow { letter-spacing: 0.28em; text-indent: 0.28em; }
  .countdown { font-size: clamp(0.82rem, 3.6vw, 1.6rem); }
  .controls { right: 0.75rem; bottom: 0.75rem; }
}
