:root {
  --olive-950: #14170f;
  --olive-900: #1d2116;
  --olive-800: #2a3020;
  --olive-700: #3b4430;
  --olive-500: #5d6b45;
  --khaki: #c9bf94;
  --sand: #e8e1c4;
  --red: #ed2939;
  --white: #ffffff;
  --stencil: "Black Ops One", "Impact", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, monospace;
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 16px 32px;
  color: var(--sand);
  font-family: var(--mono);
  background: var(--olive-950);
}

.card {
  width: 100%;
  max-width: 720px;
  padding: 40px 32px;
  background: var(--olive-800);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.emblem {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
  margin-bottom: 18px;
}

h1 {
  font-family: var(--stencil);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.target { font-size: 0.95rem; color: var(--khaki); }
.target strong { color: var(--sand); }

.date-pick {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  cursor: pointer;
}
.date-pick strong {
  border-bottom: 1px dashed var(--olive-500);
  transition: border-color 0.2s;
}
.date-pick .edit {
  font-size: 0.85em;
  color: var(--khaki);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.date-pick:hover strong,
.date-pick:focus-within strong { border-color: var(--khaki); }
.date-pick:hover .edit,
.date-pick:focus-within .edit { opacity: 1; }
.date-pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  color-scheme: dark;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 34px 0 28px;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 8px 16px;
  background: var(--olive-900);
  border-radius: 18px;
}

.value {
  font-family: var(--stencil);
  font-size: clamp(1.9rem, 8vw, 4.2rem);
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.label {
  margin-top: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--khaki);
}

.done { margin: 34px 0 28px; }
.done h2 {
  font-family: var(--stencil);
  font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 4.6rem);
  color: var(--red);
  text-shadow: 0 2px 0 var(--white);
}
.done p { margin-top: 10px; color: var(--sand); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 22px;
  border-top: 1px dashed var(--olive-500);
}
.stats dt {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--khaki);
}
.stats dd {
  margin-top: 6px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sand);
}

.now {
  margin-top: 22px;
  font-size: 0.75rem;
  color: var(--olive-500);
  filter: brightness(1.6);
}

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--stencil);
  letter-spacing: 0.1em;
  color: var(--khaki);
}
.foot span { opacity: 0.8; }

.credit {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--olive-500);
  filter: brightness(1.6);
  text-decoration: none;
  transition: color 0.2s;
}
.credit:hover { color: var(--khaki); filter: none; }

@media (max-width: 480px) {
  .card { padding: 28px 16px; border-radius: 22px; }
  .countdown { gap: 6px; }
  .unit { padding: 14px 2px 10px; border-radius: 14px; }
  .label { letter-spacing: 0.06em; font-size: 0.6rem; }
  .stats dd { font-size: 1.05rem; }
}
