:root {
  color-scheme: dark;
  --bg: #0d0c12;
  --bg-deep: #0a0910;
  --gold: #d6b36a;
  --gold-soft: #f1ddaa;
  --violet: #5a4a8d;
  --violet-soft: #7a6fb8;
  --ink: #f9f2e2;
  --glass: rgba(20, 18, 32, 0.75);
  --border: rgba(214, 179, 106, 0.45);
  --bg-image: none;
}

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

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-deep);
  color: var(--ink);
  display: grid;
  place-items: center;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  z-index: 0;
}

body::after {
  background-image:
    radial-gradient(circle at top, rgba(90, 74, 141, 0.3), transparent 55%),
    linear-gradient(135deg, rgba(13, 12, 18, 0.85) 0%, rgba(10, 9, 16, 0.9) 70%);
  z-index: 1;
}

.scene {
  position: relative;
  z-index: 2;
  width: min(920px, 92vw);
  padding: 6rem 2rem;
}

.veil {
  position: absolute;
  inset: 1rem;
  border-radius: 32px;
  background: radial-gradient(circle at top, rgba(214, 179, 106, 0.1), transparent 60%),
    linear-gradient(160deg, rgba(90, 74, 141, 0.2), rgba(10, 9, 16, 0.8));
  filter: blur(0.5px);
  z-index: 0;
}

.countdown-card {
  position: relative;
  z-index: 2;
  background: var(--glass);
  border-radius: 28px;
  padding: 3.5rem clamp(1.5rem, 3vw, 3.5rem);
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(6, 5, 12, 0.65);
  backdrop-filter: blur(14px);
}

.countdown-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}

h1 {
  font-family: "Cinzel", "Inter", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 18px rgba(214, 179, 106, 0.35);
}

.event-date {
  font-size: 1rem;
  color: rgba(249, 242, 226, 0.7);
}

.timer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.time-box {
  padding: 1.5rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(122, 111, 184, 0.4);
  background: linear-gradient(180deg, rgba(90, 74, 141, 0.18), rgba(10, 9, 16, 0.7));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.time-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(214, 179, 106, 0.1), transparent 65%);
  opacity: 0.8;
}

.time-value {
  position: relative;
  font-family: "Cinzel", serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--gold-soft);
  display: block;
  z-index: 1;
}

.time-label {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249, 242, 226, 0.6);
  z-index: 1;
}

.countdown-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 1rem;
  color: rgba(249, 242, 226, 0.65);
}

.runes {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.rune {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(214, 179, 106, 0.35);
  box-shadow: 0 0 25px rgba(122, 111, 184, 0.4);
  animation: spin 22s linear infinite;
}

.rune.ring {
  width: min(680px, 80vw);
  aspect-ratio: 1;
  border: 1px dashed rgba(214, 179, 106, 0.25);
}

.rune.sigil {
  width: min(420px, 60vw);
  aspect-ratio: 1;
  border: 1px solid rgba(122, 111, 184, 0.5);
  animation-direction: reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 680px) {
  .scene {
    padding: 4rem 1rem;
  }

  .countdown-card {
    padding: 2.5rem 1.5rem;
  }

  .timer {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}
