:root {
  --gold: #f8c66b;
  --gold-bright: #ffe6a6;
  --ink: #070c14;
  --paper: #fffaf0;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
}

.landing-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
}

.scene-rotator,
.scene,
.atmosphere {
  position: absolute;
  inset: 0;
}

.scene-rotator {
  z-index: -4;
  background: #081322;
}

.scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.9) contrast(1.05);
  animation: scene-cycle 24s linear infinite;
  will-change: opacity, transform;
}

.scene:nth-child(1) {
  opacity: 1;
  animation-delay: 0s;
}

.scene:nth-child(2) {
  animation-delay: -8s;
}

.scene:nth-child(3) {
  animation-delay: -16s;
}

@keyframes scene-cycle {
  0%,
  25% {
    opacity: 1;
    transform: scale(1.01);
  }
  33.333%,
  91.666% {
    opacity: 0;
    transform: scale(1.055);
  }
  100% {
    opacity: 1;
    transform: scale(1.01);
  }
}

.landing-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 40%, transparent 0, rgba(2, 7, 14, 0.2) 42%, rgba(1, 4, 9, 0.82) 100%),
    linear-gradient(180deg, rgba(2, 8, 16, 0.18), rgba(2, 7, 14, 0.34) 48%, rgba(2, 6, 12, 0.7));
}

.landing-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.01) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 120%, rgba(236, 121, 31, 0.08), transparent 42%);
  opacity: 0.7;
  pointer-events: none;
}

.hero {
  width: min(92vw, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.25rem 5rem;
  text-align: center;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.95);
}

.eyebrow {
  margin: 0 0 clamp(0.7rem, 2vh, 1.35rem);
  color: rgba(255, 235, 193, 0.88);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.64rem, 1.2vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.34em;
  line-height: 1.5;
  text-transform: uppercase;
}

.wordmark {
  width: min(780px, 87vw);
  height: auto;
  opacity: 1;
  mix-blend-mode: normal;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 24px rgba(228, 126, 27, 0.25));
}

.divider {
  width: min(350px, 60vw);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: clamp(0.55rem, 1.6vh, 1rem) 0 clamp(1rem, 2.3vh, 1.6rem);
}

.divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248, 198, 107, 0.75));
}

.divider span:last-child {
  transform: scaleX(-1);
}

.divider i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(248, 198, 107, 0.7);
}

.construction-copy {
  margin: 0;
  color: rgba(255, 250, 240, 0.96);
  font-size: clamp(1.04rem, 2.3vw, 1.35rem);
  line-height: 1.7;
  text-wrap: balance;
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold-bright);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: rgba(248, 198, 107, 0.72);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 160ms ease, filter 160ms ease;
}

.discord-link img {
  width: 1.05em;
  height: 1.05em;
  filter: drop-shadow(0 0 7px rgba(88, 101, 242, 0.9));
}

.discord-link:hover {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(248, 198, 107, 0.55));
}

.discord-link:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 5px;
  border-radius: 2px;
}

.game-summary {
  max-width: 650px;
  margin: clamp(1.2rem, 3vh, 2rem) 0 0;
  color: rgba(235, 241, 249, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.88rem);
  letter-spacing: 0.055em;
  line-height: 1.7;
}

.rotation-status {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.1rem);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.47);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.rotation-line {
  width: 38px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.rotation-line::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  animation: progress 8s linear infinite;
}

@keyframes progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.atmosphere {
  z-index: -1;
  pointer-events: none;
}

.ember {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffd27c;
  box-shadow: 0 0 10px 3px rgba(239, 111, 22, 0.75);
  opacity: 0;
  animation: ember-rise 9s ease-in infinite;
}

.ember-one { left: 13%; animation-delay: 0s; }
.ember-two { left: 32%; animation-delay: 3.5s; animation-duration: 11s; }
.ember-three { left: 67%; animation-delay: 1.5s; animation-duration: 8s; }
.ember-four { left: 83%; animation-delay: 5s; animation-duration: 12s; }
.ember-five { left: 52%; animation-delay: 7s; animation-duration: 10s; }

@keyframes ember-rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.7); }
  12% { opacity: 0.8; }
  65% { opacity: 0.35; }
  100% { opacity: 0; transform: translate3d(22px, -72vh, 0) scale(0.15); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 620px) {
  .hero {
    padding-top: 2.5rem;
    padding-bottom: 5.5rem;
  }

  .eyebrow {
    max-width: 80vw;
    letter-spacing: 0.25em;
  }

  .construction-copy br {
    display: none;
  }

  .rotation-status {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene {
    display: none;
    animation: none;
  }

  .scene:first-child {
    display: block;
    opacity: 1;
    transform: none;
  }

  .ember,
  .rotation-line::after {
    animation: none;
  }
}
