:root {
  color-scheme: dark;
  --ink: #05070a;
  --dusk: #0d1420;
  --fog: #4c5f74;
  --amber: #f4b860;
  --amber-dim: #a97a3a;
  --parchment: #efe6d3;
  --brass: #c9a15a;
  --blood: #8c2f2f;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: "Courier Prime", "Courier New", monospace;
  overflow-x: clip;
  width: 100%;
}

.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: radial-gradient(ellipse at 50% 30%, var(--dusk) 0%, var(--ink) 65%);
  overflow: hidden;
}

/* --- atmosphere layers --- */

.glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(700px, 90vw);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(244, 184, 96, 0.28) 0%, rgba(244, 184, 96, 0) 65%);
  animation: flicker 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  42% {
    opacity: 0.85;
  }
  46% {
    opacity: 1;
  }
  70% {
    opacity: 0.92;
  }
  74% {
    opacity: 1;
  }
}

.fog {
  position: absolute;
  top: 0;
  left: -20%;
  width: 140%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}

.fog--back {
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(76, 95, 116, 0.18) 30%,
    transparent 55%,
    rgba(76, 95, 116, 0.15) 80%,
    transparent 100%
  );
  animation: drift 60s linear infinite;
}

.fog--front {
  bottom: 0;
  top: auto;
  height: 45%;
  background: linear-gradient(
    to top,
    rgba(5, 7, 10, 0.9) 0%,
    rgba(76, 95, 116, 0.12) 55%,
    transparent 100%
  );
  animation: drift 40s linear infinite reverse;
}

@keyframes drift {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4%);
  }
  100% {
    transform: translateX(0);
  }
}

.shadow-figure {
  position: absolute;
  bottom: 0;
  left: 6%;
  width: 120px;
  height: 60vh;
  max-height: 480px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  clip-path: polygon(45% 0%, 58% 8%, 62% 20%, 58% 32%, 68% 45%, 60% 60%, 66% 100%, 34% 100%, 40% 60%, 32% 45%, 42% 32%, 38% 20%, 42% 8%);
  filter: blur(2px);
  opacity: 0.5;
  display: none;
}

@media (min-width: 900px) {
  .shadow-figure {
    display: block;
  }
}

.skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 22vh;
  min-height: 140px;
  max-height: 240px;
}

/* --- content --- */

.content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 46rem;
  text-align: center;
  overflow-wrap: break-word;
}

.kicker {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--brass);
  margin: 0 0 1.25rem;
}

h1 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  color: var(--parchment);
  text-shadow: 0 0 30px rgba(244, 184, 96, 0.35), 0 0 4px rgba(0, 0, 0, 0.8);
}

.tagline {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fog);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.stamp {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2.25rem;
  border: 2px solid var(--blood);
  border-radius: 4px;
  color: var(--blood);
  transform: rotate(-3deg) scale(1.5);
  opacity: 0;
  filter: blur(1px);
  box-shadow: inset 0 0 0 2px rgba(140, 47, 47, 0.25);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.25s ease, filter 0.25s ease;
}

.stamp.stamp--in {
  transform: rotate(-3deg) scale(1);
  opacity: 0.92;
  filter: blur(0);
}

.stamp__rank {
  display: block;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.stamp__line {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}
