@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800;900&family=Inter:wght@400;600;800&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: #f9e7b6;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 166, 43, 0.22), transparent 26%),
    radial-gradient(circle at 20% 80%, rgba(112, 9, 9, 0.55), transparent 35%),
    linear-gradient(rgba(4, 3, 2, 0.52), rgba(3, 2, 1, 0.88)),
    url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), transparent 25%, transparent 75%, rgba(0,0,0,.72)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
  pointer-events: none;
  z-index: 1;
}

.fog {
  position: fixed;
  inset: -20%;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 42%);
  filter: blur(35px);
  opacity: .33;
  animation: fogMove 16s infinite alternate ease-in-out;
  z-index: 0;
}

.embers {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 188, 87, .9) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 77, 24, .75) 0 1px, transparent 2px);
  background-size: 110px 110px, 170px 170px;
  animation: emberRise 9s linear infinite;
  opacity: .55;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 52px);
  display: grid;
  place-items: center;
  padding: 42px 16px;
}

.panel {
  width: min(980px, 100%);
  text-align: center;
  padding: clamp(28px, 5vw, 62px);
  border: 2px solid rgba(255, 191, 84, .55);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(28, 12, 5, .86), rgba(7, 5, 4, .92)),
    radial-gradient(circle at top, rgba(255, 197, 85, .18), transparent 34%);
  box-shadow:
    0 0 48px rgba(255, 112, 29, .25),
    inset 0 0 42px rgba(255, 196, 77, .08),
    0 28px 90px rgba(0,0,0,.75);
  position: relative;
}

.panel::before, .panel::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border: 2px solid rgba(255, 192, 77, .58);
  pointer-events: none;
}
.panel::before { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.panel::after { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }

.top-rune {
  margin: 0 auto 8px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 207, 117, .6);
  background: radial-gradient(circle, rgba(179, 41, 19, .82), rgba(22, 8, 5, .95));
  color: #ffd375;
  font-size: 38px;
  box-shadow: 0 0 30px rgba(255, 82, 28, .45);
}

.subtitle {
  margin: 0;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: #d49a43;
  font-weight: 800;
}

h1 {
  margin: 10px 0 12px;
  font-family: 'Cinzel', serif;
  font-size: clamp(56px, 10vw, 128px);
  line-height: .9;
  color: #ffe39a;
  text-shadow:
    0 3px 0 #5c1209,
    0 0 22px rgba(255, 146, 38, .75),
    0 0 68px rgba(255, 55, 17, .38);
}

.lead {
  margin: 0 auto 34px;
  max-width: 720px;
  color: #f4d69d;
  font-size: clamp(16px, 2.4vw, 22px);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 30px auto;
}

.timebox {
  padding: 22px 10px;
  border: 1px solid rgba(255, 201, 99, .48);
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(255, 185, 67, .2), transparent 48%),
    linear-gradient(180deg, rgba(60, 21, 9, .9), rgba(12, 7, 5, .96));
  box-shadow: inset 0 0 22px rgba(255, 183, 64, .08), 0 10px 30px rgba(0,0,0,.48);
}

.timebox span {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: clamp(34px, 7vw, 78px);
  font-weight: 900;
  color: #fff0bd;
  text-shadow: 0 0 18px rgba(255, 119, 29, .65);
}

.timebox small {
  display: block;
  margin-top: 4px;
  color: #c78d3d;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
}

.message {
  margin-top: 8px;
  color: #ffce75;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.buttons {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  text-decoration: none;
  color: #ffe7ab;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 201, 93, .48);
  background: rgba(12, 7, 4, .72);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 126, 31, .42);
}

.btn.primary {
  color: #2a0903;
  background: linear-gradient(180deg, #ffd77d, #b75c1a);
  border-color: #ffd77d;
}

footer {
  position: relative;
  z-index: 2;
  min-height: 52px;
  display: grid;
  place-items: center;
  color: rgba(255, 226, 169, .72);
  background: rgba(0, 0, 0, .5);
  border-top: 1px solid rgba(255, 201, 93, .18);
  text-align: center;
  padding: 12px;
}

footer span { color: #ffd271; font-weight: 900; }

@keyframes fogMove {
  from { transform: translate(-4%, -3%) scale(1); }
  to { transform: translate(4%, 3%) scale(1.08); }
}

@keyframes emberRise {
  from { background-position: 0 100vh, 30px 100vh; }
  to { background-position: 0 -120px, 30px -170px; }
}

@media (max-width: 720px) {
  .countdown { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .subtitle { letter-spacing: .18em; }
}
