:root {
  --bg: #09080c;
  --bg-raise: #121017;
  --ink: #f4eee4;
  --muted: #b7ab9d;
  --faint: #8b8074;
  --gold: #e4c48a;
  --gold-deep: #a37b3d;
  --ember: #e25a28;
  --line: rgba(228, 196, 138, 0.28);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Outfit, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(120, 72, 32, 0.16), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: #1a1208;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.nav {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 6vw;
  background: linear-gradient(to bottom, rgba(9, 8, 12, 0.88), rgba(9, 8, 12, 0.35) 70%, transparent);
}
.nav.scrolled {
  background: rgba(9, 8, 12, 0.92);
  border-bottom: 1px solid rgba(228, 196, 138, 0.12);
  backdrop-filter: blur(10px);
}
.brand {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font: 600 0.72rem var(--sans);
}
.menu {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}
.menu a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.menu a:hover,
.menu a[aria-current="page"] { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.35rem;
  background: linear-gradient(180deg, #f3ddb0, #c9a15c);
  color: #1b1308;
  text-decoration: none;
  font: 600 0.78rem var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn-small { padding: 0.65rem 0.9rem; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(8, 7, 10, 0.88) 0%, rgba(8, 7, 10, 0.62) 28%, rgba(8, 7, 10, 0.18) 52%, rgba(8, 7, 10, 0.35) 100%),
    linear-gradient(to top, rgba(9, 8, 12, 0.94), transparent 32%);
}
.figure {
  position: absolute;
  bottom: 0;
  z-index: 2;
  height: min(78vh, 820px);
  width: auto;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  user-select: none;
}
.figure-m { left: max(0px, calc(50% - 640px)); }
.figure-f { right: max(0px, calc(50% - 640px)); }
.hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  width: min(30rem, calc(100% - 2.4rem));
  padding: 6.5rem 0 2rem;
}
.kicker {
  margin: 0 0 0.8rem;
  color: var(--gold);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 600;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  line-height: 0.92;
  text-wrap: balance;
}
.hero h1 span { display: block; color: var(--gold); font-style: italic; }
.lede {
  margin: 1.15rem auto 0;
  color: #fffaf3;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  text-shadow: 0 2px 18px #000, 0 0 2px #000;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.start-block { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.nodownload {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px #000;
}

.band { padding: 5.5rem 6vw; }
.band-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}
.band h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.95;
}
.band-head p { max-width: 28rem; color: var(--muted); margin: 0; }

.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.promise {
  padding: 1.6rem 1.3rem 1.8rem;
  border-right: 1px solid rgba(228, 196, 138, 0.16);
}
.promise:last-child { border-right: 0; }
.promise b {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
}
.promise h3 { margin: 0.35rem 0 0.45rem; font-size: 1.7rem; }
.promise p { margin: 0; color: var(--muted); }

.road {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem 1.15rem;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0.4rem 0 1rem;
}
.medallion {
  width: 176px;
  text-align: center;
}
.medallion img {
  width: 176px;
  height: 176px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.medallion strong { display: block; margin-top: 0.7rem; font-size: 0.95rem; }
.medallion span { color: var(--faint); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.preview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
}
.preview-bosses, .preview-gear {
  background: var(--bg-raise);
  border: 1px solid rgba(228, 196, 138, 0.14);
  padding: 1.3rem;
}
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 1rem;
}
.trio a {
  display: grid;
  align-items: end;
  min-height: 240px;
  padding: 0.8rem;
  text-decoration: none;
  background:
    linear-gradient(to top, rgba(8, 7, 10, 0.9), transparent 55%),
    #0c0b0f center / contain no-repeat;
  border: 1px solid rgba(228, 196, 138, 0.12);
}
.trio img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  margin-bottom: 0.4rem;
}
.trio span { font-family: var(--serif); font-size: 1.35rem; }
.icon-row {
  display: flex;
  gap: 0.6rem;
  align-items: end;
  min-height: 140px;
  margin: 1rem 0 1.2rem;
}
.icon-row img {
  width: 84px;
  height: 110px;
  object-fit: contain;
}

.page {
  padding: 7.5rem 6vw 4rem;
}
.page-intro { max-width: 40rem; margin-bottom: 2.4rem; }
.page-intro h1 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.92;
}
.page-intro p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.foes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.foe {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.4rem;
  background: linear-gradient(180deg, #16131b, #0e0c11);
  border: 1px solid rgba(228, 196, 138, 0.14);
  min-height: 280px;
  overflow: hidden;
}
.foe img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  align-self: end;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45));
}
.foe div { padding: 1.3rem 1.2rem 1.3rem 0.2rem; }
.foe .where {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.foe h2 { margin: 0.25rem 0 0.45rem; font-size: 2rem; line-height: 1; }
.foe p { margin: 0; color: #e6dfd4; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
}
.filters button {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(228, 196, 138, 0.2);
  padding: 0.55rem 0.8rem;
  font: 600 0.75rem var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.filters button[aria-pressed="true"],
.filters button:hover {
  color: #1b1308;
  background: var(--gold);
  border-color: var(--gold);
}
.armory { margin: 0 0 2.6rem; }
.armory h2 { margin: 0 0 0.9rem; font-size: 2.4rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.75rem;
}
.item {
  background: #100e14;
  border: 1px solid rgba(228, 196, 138, 0.12);
  padding: 0.85rem 0.85rem 1rem;
  min-height: 230px;
  display: flex;
  flex-direction: column;
}
.item .art {
  height: 128px;
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  align-items: end;
  gap: 0.3rem;
}
.item img { height: 120px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
.item img.pixel { image-rendering: pixelated; height: 128px; }
.item h3 { margin: 0.55rem 0 0.2rem; font-size: 1.35rem; line-height: 1.05; }
.item p { margin: 0; color: var(--faint); font-size: 0.86rem; }
.rarity { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.common { color: #d9d0c4; }
.rare { color: #7eb0ff; }
.epic { color: #c98bff; }
.legendary { color: #f0a14a; }
.item.legendary { box-shadow: inset 0 0 0 1px rgba(240, 161, 74, 0.35); }
.item.epic { box-shadow: inset 0 0 0 1px rgba(201, 139, 255, 0.28); }
.item.rare { box-shadow: inset 0 0 0 1px rgba(126, 176, 255, 0.25); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 6vw 2.6rem;
  border-top: 1px solid rgba(228, 196, 138, 0.16);
  color: var(--muted);
}
.foot strong {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.foot p { margin: 0.3rem 0 0; max-width: 26rem; }
.foot nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.foot a:hover { color: var(--ink); }

.gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2rem 1.2rem;
}
.gate .hero-bg { filter: brightness(0.55) saturate(0.9); }
.gate-card {
  position: relative;
  z-index: 3;
  width: min(38rem, 100%);
  background: rgba(6, 5, 8, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2.4rem 1.6rem 1.8rem;
}
.gate h1, .gate p, .gate .kicker { color: #fff; }
.gate h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.9;
}
.gate p { color: #fff; font-size: 1.15rem; }
.gate .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.gate-actions { display: flex; justify-content: center; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.4rem; }

@media (max-width: 1100px) {
  .promises, .preview, .foes { grid-template-columns: 1fr 1fr; }
  .promise:nth-child(2) { border-right: 0; }
  .figure { height: min(52vh, 520px); }
  .figure-m { left: -2%; }
  .figure-f { right: -2%; }
  .hero-copy { margin-bottom: 16vh; }
  .foe { grid-template-columns: 1fr; }
  .foe img { max-height: 280px; }
  .foe div { padding: 0 1rem 1.2rem; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1rem 1rem;
    background: #09080c;
    border-bottom: 1px solid var(--line);
    z-index: 12;
  }
  .menu.open { display: flex; }
  .menu a { padding: 0.85rem 0.2rem; border-bottom: 1px solid rgba(228, 196, 138, 0.1); }
  .promises, .preview, .foes, .trio { grid-template-columns: 1fr; }
  .promise { border-right: 0; border-bottom: 1px solid rgba(228, 196, 138, 0.16); }
  .band-head, .foot { flex-direction: column; align-items: start; }
  .figure { height: 27vh; }
  .hero-copy { margin-bottom: 30vh; padding-top: 5.2rem; }
  .hero-actions { margin-top: 1.1rem; }
  .page { padding-top: 6.2rem; }
}
.wish {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
}
.wish label { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.86rem; }
.wish input, .wish textarea {
  width: 100%;
  background: #100e14;
  color: #fff;
  border: 1px solid rgba(228, 196, 138, 0.28);
  padding: 0.8rem 0.85rem;
  font: 400 1rem var(--sans);
}
.wish textarea { min-height: 180px; resize: vertical; }
.wish-note { min-height: 1.4em; margin: 0; color: var(--gold); }
.trap { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
