:root {
  --ash: #0a0d0d;
  --ash-2: #111615;
  --bone: #efe2c5;
  --bone-muted: #b9aa88;
  --ember: #e6843b;
  --ember-hot: #ffb15e;
  --blood: #6f1d1b;
  --verdigris: #5d8f86;
  --line: rgba(239, 226, 197, 0.16);
  --panel: rgba(11, 14, 14, 0.74);
  --panel-strong: rgba(20, 24, 22, 0.88);
  --shadow: rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ash);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--bone);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background:
    linear-gradient(90deg, rgba(10, 13, 13, 0.95) 0%, rgba(10, 13, 13, 0.72) 44%, rgba(10, 13, 13, 0.92) 100%),
    linear-gradient(180deg, rgba(10, 13, 13, 0.06), rgba(10, 13, 13, 0.94)),
    url("/assets/ashen-fortress.webp") center / cover fixed;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 20% 16%, rgba(230, 132, 59, 0.24), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(93, 143, 134, 0.18), transparent 28rem),
    linear-gradient(120deg, rgba(111, 29, 27, 0.28), transparent 42%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(239, 226, 197, 0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 226, 197, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
p {
  margin-top: 0;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(20px, 4vw, 42px) 0 clamp(42px, 7vw, 90px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand,
.realm-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 9, 0.58);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.brand {
  padding: 8px 14px 8px 8px;
  border-radius: 18px;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  filter: drop-shadow(0 9px 13px rgba(0, 0, 0, 0.5));
}

.brand span,
.realm-status {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.realm-status {
  padding: 14px 16px;
  border-radius: 999px;
  color: #f6d8a8;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ember-hot);
  box-shadow: 0 0 0 7px rgba(230, 132, 59, 0.14), 0 0 22px rgba(255, 177, 94, 0.85);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 440px);
  gap: clamp(22px, 4vw, 54px);
  min-height: clamp(650px, 72vh, 820px);
  padding: clamp(26px, 5vw, 68px);
  border: 1px solid var(--line);
  border-radius: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(112deg, rgba(239, 226, 197, 0.1), transparent 35%),
    linear-gradient(145deg, rgba(10, 13, 13, 0.88), rgba(18, 22, 20, 0.64));
  box-shadow: 0 28px 90px var(--shadow);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 13, 13, 0.94), rgba(10, 13, 13, 0.44) 66%, rgba(10, 13, 13, 0.86)),
    url("/assets/ashen-fortress.webp") center / cover;
  opacity: 0.76;
}

.hero::after {
  position: absolute;
  inset: auto -11% -28% auto;
  z-index: -1;
  width: min(56vw, 620px);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(230, 132, 59, 0.28), transparent 58%),
    radial-gradient(circle at 42% 42%, rgba(93, 143, 134, 0.18), transparent 46%);
  filter: blur(2px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  animation: lift 620ms ease-out both;
}

.eyebrow,
.card-kicker {
  margin-bottom: 18px;
  color: #f4c178;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow {
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid rgba(230, 132, 59, 0.38);
  border-radius: 999px;
  background: rgba(230, 132, 59, 0.11);
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 8.2vw, 8.9rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.075em;
  text-wrap: balance;
  text-shadow: 0 18px 32px rgba(0, 0, 0, 0.58);
}

.lede {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--bone-muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-action,
.server-address {
  min-height: 48px;
  padding: 15px 18px;
  border-radius: 15px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-action {
  border: 1px solid rgba(255, 177, 94, 0.48);
  color: #24130b;
  background: linear-gradient(135deg, #ffbf6b, #d46b30);
  box-shadow: 0 14px 32px rgba(230, 132, 59, 0.28);
  text-decoration: none;
}

.secondary-action {
  min-height: 48px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: #ead8b0;
  background: rgba(0, 0, 0, 0.24);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.server-address {
  border: 1px solid var(--line);
  color: #ead8b0;
  background: rgba(0, 0, 0, 0.24);
}

.reliquary {
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(239, 226, 197, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(239, 226, 197, 0.08), rgba(239, 226, 197, 0.02)),
    rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
  animation: lift 720ms 90ms ease-out both;
}

.champion {
  grid-column: 1 / -1;
  width: 100%;
  height: min(54vh, 520px);
  min-height: 360px;
  object-fit: cover;
  object-position: center 36%;
  border: 1px solid rgba(239, 226, 197, 0.16);
  border-radius: 22px;
  filter: saturate(0.78) contrast(1.08);
}

.rune-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(239, 226, 197, 0.15);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(111, 29, 27, 0.28), rgba(9, 12, 12, 0.78));
}

.rune-card.wide {
  grid-column: 1 / -1;
}

.rune-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--bone-muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rune-card strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.feature-card,
.notice-card {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  animation: lift 620ms ease-out both;
}

.feature-card {
  grid-column: span 5;
}

.feature-card--dark {
  grid-column: span 4;
  animation-delay: 70ms;
}

.notice-card {
  grid-column: span 3;
  padding: 28px;
  background:
    linear-gradient(155deg, rgba(230, 132, 59, 0.22), transparent 52%),
    linear-gradient(180deg, rgba(93, 143, 134, 0.14), transparent),
    var(--panel-strong);
  animation-delay: 140ms;
}

.feature-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  filter: saturate(0.82) contrast(1.08);
}

.feature-card div {
  padding: 26px;
}

.feature-card h2,
.notice-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.feature-card p,
.notice-card p {
  color: var(--bone-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.feature-card p:last-child,
.notice-card p:last-child {
  margin-bottom: 0;
}

.gate-page {
  display: grid;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(10, 13, 13, 0.96), rgba(10, 13, 13, 0.72), rgba(10, 13, 13, 0.94)),
    linear-gradient(180deg, rgba(10, 13, 13, 0.1), rgba(10, 13, 13, 0.96)),
    url("/assets/moon-hunt.webp") center / cover fixed;
}

.gate-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(20px, 5vw, 48px) 0;
}

.gate-brand {
  width: fit-content;
  margin-bottom: 18px;
}

.gate-panel {
  min-height: min(680px, calc(100vh - 120px));
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(239, 226, 197, 0.1), transparent 38%),
    linear-gradient(150deg, rgba(10, 13, 13, 0.9), rgba(20, 24, 22, 0.74));
  box-shadow: 0 28px 90px var(--shadow);
  animation: lift 620ms ease-out both;
}

.gate-panel h1 {
  max-width: 790px;
}

.gate-note,
.queue-display {
  max-width: 620px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(239, 226, 197, 0.15);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(111, 29, 27, 0.24), rgba(9, 12, 12, 0.76));
}

.gate-note span,
.queue-display span {
  display: block;
  margin-bottom: 8px;
  color: var(--bone-muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gate-note strong,
.queue-display strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.queue-log {
  display: grid;
  gap: 12px;
  max-width: 650px;
  margin: 22px 0 0;
  padding-left: 22px;
  color: var(--bone-muted);
  line-height: 1.55;
}

.queue-log li::marker {
  color: var(--ember-hot);
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  body {
    background-attachment: scroll;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .reliquary {
    max-width: 640px;
  }

  .feature-card,
  .feature-card--dark,
  .notice-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 560px);
    padding-top: 10px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .brand,
  .realm-status {
    justify-content: center;
  }

  .hero {
    padding: 22px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.15rem);
  }

  .actions,
  .primary-action,
  .secondary-action,
  .server-address {
    width: 100%;
  }

  .primary-action,
  .secondary-action,
  .server-address {
    text-align: center;
  }

  .reliquary {
    grid-template-columns: 1fr;
  }

  .champion {
    min-height: 330px;
  }

  .rune-card.wide {
    grid-column: auto;
  }

  .feature-card,
  .notice-card {
    min-height: auto;
    border-radius: 24px;
  }
}

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