@import url("https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@1&family=Cinzel&display=swap");

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

html,
body {
  height: 100%;
  background: #0a0a0a;
  color: #c8b89a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IM Fell English", serif;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #1a1208 0%, #000 70%);
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  padding: 2rem;
  animation: fadeIn 3s ease forwards;
}

.symbol {
  font-size: 3rem;
  letter-spacing: 1rem;
  opacity: 0.35;
  margin-bottom: 2.5rem;
  font-family: "Cinzel", serif;
}

h1 {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #7a6a52;
  margin-bottom: 2.5rem;
}

.verse {
  font-style: italic;
  font-size: 1.25rem;
  line-height: 2.2;
  color: #d4c4a8;
}

.verse span {
  display: block;
}

.divider {
  margin: 2.5rem auto;
  width: 60px;
  height: 1px;
  background: #3a2e1e;
}

.footnote {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: #4a3e2e;
  text-transform: uppercase;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Expired skull ── */
.skull {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #8b0000;
  font-family: monospace;
  font-size: clamp(0.3rem, 0.9vw, 0.65rem);
  line-height: 1.4;
  text-align: center;
  white-space: pre;
  margin: 0;
  padding: 0;
}

/* ── Countdown ── */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 2rem 0 0.5rem;
  font-family: "Cinzel", serif;
  transition: color 1s ease;
}

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

.countdown-unit span {
  font-size: 2.8rem;
  color: #c8b89a;
  letter-spacing: 0.05em;
  line-height: 1;
}

.countdown-unit label {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #4a3e2e;
  margin-top: 0.4rem;
}

.countdown-sep {
  font-size: 2.4rem;
  color: #3a2e1e;
  align-self: flex-start;
  padding-top: 0.1rem;
  line-height: 1;
}

.countdown.urgent .countdown-unit span {
  color: #8b2020;
  animation: urgentPulse 1s infinite;
}

.countdown.urgent .countdown-sep {
  color: #5a1515;
}

.countdown.expired .countdown-unit span {
  color: #3a0a0a;
  animation: none;
}

#unit-days,
#sep-days,
#unit-hours,
#sep-hours {
  transition: opacity 0.8s ease;
}

@keyframes urgentPulse {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 8px #8b202088;
  }
  50% {
    opacity: 0.6;
    text-shadow: none;
  }
}
