:root {
  --bg: #080b12;
  --panel: rgba(20, 26, 39, 0.5);
  --text: #ecf1ff;
  --muted: #9cadcf;
  --accent: #88a8ff;
  --accent-soft: rgba(136, 168, 255, 0.15);
  --line: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(102, 128, 206, 0.3), transparent),
    radial-gradient(700px 450px at -15% 100%, rgba(90, 130, 188, 0.23), transparent),
    var(--bg);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.shell {
  width: min(720px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.2rem, 2vw + 1rem, 2.5rem);
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.badge {
  display: inline-block;
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(136, 168, 255, 0.4);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
}

h1 {
  margin: 1rem 0 0.5rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
}

.subhead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 60ch;
  line-height: 1.6;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.countdown > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 0.8rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.countdown span {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

.countdown small {
  color: var(--muted);
  letter-spacing: 0.03em;
}

.countdown span.is-updating {
  animation: countdown-pop 280ms ease;
}

@keyframes countdown-pop {
  0% {
    transform: translateY(4px) scale(0.96);
    opacity: 0.55;
    filter: brightness(1.3);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: brightness(1);
  }
}

.quiet,
.micro {
  margin: 0.4rem 0;
}

.quiet {
  color: #c9d6f7;
  font-weight: 500;
}

.micro {
  color: #7f8eb2;
  font-size: 0.9rem;
}

.hint-button {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: all 200ms ease;
}

.hint-button:hover {
  transform: translateY(-1px);
  color: rgba(255, 255, 255, 0.8);
}

.hint-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  color: #d4e0ff;
  transition: all 250ms ease;
}

.hint-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


@media (prefers-reduced-motion: reduce) {
  .countdown span.is-updating {
    animation: none;
  }
}

@media (max-width: 580px) {
  body {
    padding: 1rem;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
}
