:root {
  color-scheme: dark;
  --ink: #f9e9b4;
  --muted: #b6b5cb;
  --gold: #f2b33d;
  --gold-bright: #ffdc73;
  --red: #db3657;
  --night: #090b14;
  --slate: #161a2c;
  --violet: #282547;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--night);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(70, 59, 121, 0.38), transparent 38%),
    linear-gradient(180deg, #13162a 0%, #0b0d18 72%, #07080e 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle, transparent 40%, rgba(2, 3, 8, 0.72) 112%);
}

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.2;
  background-image:
    linear-gradient(92deg, transparent 0 68%, rgba(148, 143, 197, 0.08) 69% 70%, transparent 71%),
    linear-gradient(rgba(150, 145, 201, 0.1) 1px, transparent 1px);
  background-size: 142px 70px, 100% 70px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.dungeon-arch {
  position: absolute;
  top: -27vw;
  left: 50%;
  width: min(1040px, 93vw);
  aspect-ratio: 1;
  translate: -50% 0;
  border: clamp(42px, 6vw, 84px) solid rgba(35, 37, 63, 0.83);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 2px rgba(152, 145, 201, 0.08),
    0 32px 100px rgba(0, 0, 0, 0.46);
}

.dungeon-arch::after {
  position: absolute;
  inset: -52px;
  content: "";
  border: 2px solid rgba(197, 186, 255, 0.05);
  border-radius: inherit;
}

.floor-grid {
  position: absolute;
  right: -20%;
  bottom: -18%;
  left: -20%;
  height: 48%;
  opacity: 0.2;
  transform: perspective(420px) rotateX(64deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(120, 114, 169, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 114, 169, 0.22) 1px, transparent 1px);
  background-size: 82px 60px;
  mask-image: linear-gradient(to bottom, transparent 5%, black 75%);
}

.glow {
  position: absolute;
  top: 52%;
  width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.2;
  background: radial-gradient(circle, #ffb43b 0 3%, #c84422 14%, transparent 67%);
}

.glow-left {
  left: -90px;
}

.glow-right {
  right: -90px;
}

.ember {
  position: absolute;
  bottom: -14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  background: var(--gold-bright);
  box-shadow: 0 0 12px 3px rgba(255, 173, 50, 0.45);
  animation: drift-up 8s linear infinite;
}

.ember-1 { left: 9%; animation-delay: -1s; }
.ember-2 { left: 23%; animation-delay: -5s; animation-duration: 11s; }
.ember-3 { left: 39%; animation-delay: -8s; animation-duration: 9s; }
.ember-4 { left: 62%; animation-delay: -3s; animation-duration: 12s; }
.ember-5 { left: 78%; animation-delay: -7s; animation-duration: 10s; }
.ember-6 { left: 91%; animation-delay: -4s; animation-duration: 13s; }

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(100svh - 74px);
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(44px, 8vh, 86px) 24px 34px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.status {
  display: inline-flex;
  margin: 0 0 clamp(20px, 3vh, 34px);
  padding: 8px 13px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(239, 219, 157, 0.18);
  border-radius: 999px;
  background: rgba(12, 14, 25, 0.48);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  color: #d8d4e2;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f7b73c;
  box-shadow: 0 0 0 4px rgba(247, 183, 60, 0.12), 0 0 12px rgba(247, 183, 60, 0.65);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.logo {
  display: block;
  width: min(900px, 94vw);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.38));
  transform: translateZ(0);
  animation: logo-enter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tagline {
  display: flex;
  margin: clamp(10px, 1.8vh, 22px) 0 0;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 1.4vw, 18px);
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
  text-shadow: 0 3px 20px rgba(224, 130, 31, 0.22);
}

.tagline i {
  display: block;
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
  background: var(--red);
  box-shadow: 0 0 10px rgba(219, 54, 87, 0.55);
}

.intro {
  max-width: 620px;
  margin: 19px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.72;
  text-wrap: balance;
}

.coming-soon {
  display: grid;
  width: min(520px, 88vw);
  margin: clamp(27px, 4vh, 42px) auto 0;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.coming-soon strong {
  color: #fff4ce;
  font-size: clamp(14px, 1.5vw, 17px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 179, 61, 0.6));
}

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

.pillars {
  display: flex;
  margin: 25px 0 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.pillars li {
  display: flex;
  padding: 9px 13px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(167, 161, 209, 0.13);
  border-radius: 7px;
  background: rgba(19, 21, 38, 0.4);
  color: #aaa9bf;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pillar-icon {
  color: #e6a832;
  font-size: 9px;
}

footer {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 74px;
  width: min(100% - 44px, 1160px);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(155, 149, 197, 0.1);
  color: #6f7082;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer a {
  color: #9a98ab;
  text-decoration: none;
  transition: color 160ms ease;
}

footer a:hover,
footer a:focus-visible {
  color: var(--gold-bright);
}

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

@keyframes logo-enter {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes status-pulse {
  50% { opacity: 0.55; transform: scale(0.82); }
}

@keyframes drift-up {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.7); }
  12% { opacity: 0.8; }
  75% { opacity: 0.35; }
  100% { opacity: 0; transform: translate3d(35px, -92vh, 0) scale(0.2); }
}

@media (max-width: 640px) {
  .hero {
    min-height: calc(100svh - 64px);
    padding: 34px 18px 28px;
  }

  .status {
    margin-bottom: 18px;
    font-size: 9px;
  }

  .logo {
    width: min(104vw, 700px);
    max-width: none;
  }

  .tagline {
    font-size: 13px;
    letter-spacing: 0.14em;
  }

  .intro {
    max-width: 420px;
    font-size: 14px;
    line-height: 1.65;
  }

  .pillars {
    gap: 7px;
  }

  .pillars li {
    padding: 8px 9px;
    font-size: 9px;
  }

  footer {
    min-height: 64px;
    width: calc(100% - 32px);
    font-size: 9px;
  }

  .dungeon-arch {
    top: -20vw;
    width: 122vw;
  }
}

@media (max-height: 720px) and (min-width: 641px) {
  .hero {
    min-height: calc(100svh - 56px);
    padding-top: 28px;
    padding-bottom: 22px;
  }

  .status { margin-bottom: 12px; }
  .logo { width: min(700px, 80vw); }
  .intro { margin-top: 10px; }
  .coming-soon { margin-top: 18px; }
  .pillars { margin-top: 16px; }
  footer { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
