@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/cinzel-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --bg: #07090a;
  --bg-deep: #050607;
  --surface: #0e1211;
  --surface-2: #141a17;
  --line: rgba(222, 232, 218, 0.08);
  --text: #ece4cf;
  --text-dim: #a49d8a;
  --accent: #d9a441;
  --accent-bright: #f0c469;
  --accent-soft: rgba(217, 164, 65, 0.1);
  --accent-line: rgba(217, 164, 65, 0.32);
  --ember: #c4501f;
  --discord: #5865f2;
  --ink: #17130a;
  --radius: 4px;
  --font-display: "Cinzel", "Georgia", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.12; }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; text-wrap: balance; }
h3 { font-family: var(--font-body); font-weight: 600; }

a { color: inherit; }

::selection { background: rgba(217, 164, 65, 0.3); color: var(--text); }
.gold::selection, .gold *::selection { background: rgba(217, 164, 65, 0.25); -webkit-text-fill-color: var(--accent-bright); }
body { -webkit-user-select: none; user-select: none; caret-color: transparent; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; caret-color: auto; }
pre, code, .legal { -webkit-user-select: text; user-select: text; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s ease;
}
.skip:focus { top: 0; }

.kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.kicker::before, .kicker-center::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  vertical-align: 0.12em;
  margin-right: 0.85rem;
  box-shadow: 0 0 8px rgba(217, 164, 65, 0.7);
}
.kicker-center { text-align: center; }
.kicker-center::after { margin: 0 0 0 0.85rem; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gold {
  background: linear-gradient(180deg, #f6dc98 8%, var(--accent) 52%, #93691a 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ornate-rule {
  display: flex;
  align-items: center;
  margin: 1.6rem 0 0;
  max-width: 340px;
  height: 9px;
}
.ornate-rule::before, .ornate-rule::after {
  content: "";
  flex: 1;
  height: 1px;
}
.ornate-rule::before { background: linear-gradient(90deg, transparent, var(--accent)); }
.ornate-rule::after { background: linear-gradient(90deg, var(--accent), transparent); }
.ornate-rule i {
  width: 8px;
  height: 8px;
  margin: 0 10px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(217, 164, 65, 0.7);
}
.ornate-rule-center { margin-left: auto; margin-right: auto; }

.glow-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--accent-line) 20%, var(--accent) 50%, var(--accent-line) 80%, transparent);
  box-shadow: 0 0 14px rgba(217, 164, 65, 0.45);
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn img { width: 18px; height: 18px; }

.btn-primary {
  overflow: hidden;
  background: linear-gradient(180deg, #eec46a, var(--accent) 50%, #a9781f);
  color: var(--ink);
  border: 1px solid #7d5a15;
  box-shadow: 0 0 26px rgba(217, 164, 65, 0.35), inset 0 1px 0 rgba(255, 245, 220, 0.55), inset 0 -1px 0 rgba(90, 60, 10, 0.4);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -75%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 250, 230, 0.6), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(217, 164, 65, 0.55), inset 0 1px 0 rgba(255, 245, 220, 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover::after { animation: sheen 0.6s ease; }
}
@keyframes sheen {
  from { left: -75%; }
  to { left: 125%; }
}

.btn-play::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.btn-discord {
  background: var(--discord);
  color: #fff;
  border: 1px solid #4752c4;
  box-shadow: 0 0 22px rgba(88, 101, 242, 0.4);
}
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(88, 101, 242, 0.6); filter: brightness(1.08); }

.btn-ghost {
  background: rgba(10, 12, 12, 0.55);
  color: var(--text);
  border: 1px solid var(--accent-line);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.78rem; }
.btn-lg { padding: 1.15rem 2.8rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.96), rgba(5, 6, 7, 0.88));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line) 30%, var(--accent-line) 70%, transparent);
}

.nav-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: var(--nav-h);
  align-items: center;
  gap: 2rem;
}

.nav-side { display: flex; align-items: center; gap: 2.1rem; }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.nav-side > a, .nav-drop-btn {
  position: relative;
  padding: 0.4rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #cfc5ab;
  transition: color 0.15s ease;
}
.nav-side > a::after, .nav-drop-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(217, 164, 65, 0.8);
  transition: left 0.22s ease, right 0.22s ease;
}
.nav-side > a:hover, .nav-drop-btn:hover, .nav-drop.is-open > .nav-drop-btn { color: var(--accent-bright); }
.nav-side > a:hover::after, .nav-side > a.active::after, .nav-drop-btn.active::after { left: 0; right: 0; }
.nav-side > a.active, .nav-drop-btn.active { color: var(--accent-bright); }

.crest {
  position: relative;
  z-index: 2;
  display: block;
  width: 112px;
  height: 112px;
  align-self: start;
  margin-top: 10px;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 18px rgba(217, 164, 65, 0.35));
}
.crest::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.28), transparent 68%);
}
.crest img { width: 100%; height: 100%; }
.crest:hover { transform: scale(1.05) rotate(-2deg); filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 28px rgba(217, 164, 65, 0.6)); }
.nav.is-compact .crest { width: 64px; height: 64px; margin-top: 6px; }

.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  border: 0;
  background: none;
  line-height: inherit;
  cursor: pointer;
}
.nav-drop-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.18s ease;
}
.nav-drop.is-open > .nav-drop-btn .nav-drop-caret { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  z-index: 50;
  min-width: 13rem;
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: rgba(8, 10, 10, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6), 0 0 30px rgba(217, 164, 65, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-drop-menu::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 1rem;
}
.nav-drop.is-open > .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-drop-menu a {
  padding: 0.6rem 0.85rem;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #cfc5ab;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-drop-menu a:hover, .nav-drop-menu a.active { background: var(--accent-soft); color: var(--accent-bright); }

@media (hover: hover) and (min-width: 1001px) {
  .nav-drop:hover > .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: rgba(10, 12, 12, 0.6);
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--accent);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 21px; }
.nav-toggle::after { top: 28px; }
.nav.is-open .nav-toggle::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span { opacity: 0; }
.nav.is-open .nav-toggle::after { transform: translateY(-7px) rotate(-45deg); }

.status-pill[hidden] { display: none; }
.status-pill {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}
.status-pill #status-count { color: var(--text); font-weight: 600; }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fbf5f;
  box-shadow: 0 0 6px rgba(111, 191, 95, 0.8);
}

/* ---------- home hero ---------- */

.hero {
  position: relative;
  min-height: clamp(620px, 100dvh, 980px);
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  border-bottom: 1px solid var(--accent-line);
}

.hero-slides { position: absolute; inset: 0; z-index: -3; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s ease;
}
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active { animation: kenburns 9s linear forwards; }
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.12); }
}
html:not(.js) .hero-slide:first-child { opacity: 1; }

.hero-slide.is-active { animation: none; }
.hero-slide { transform: none; transition: opacity 1.1s ease; }
.hs-archive { --glow: 132, 92, 255; }
.hs-clans { --glow: 236, 112, 40; }
.hs-toolbelt { --glow: 214, 140, 58; }
.hs-clue { --glow: 240, 196, 105; }
.hs-auras { --glow: 206, 74, 52; }
.hs-relics { --glow: 64, 190, 168; }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 34% 60% at 6% 55%, rgba(var(--glow), 0.22), transparent 70%),
    radial-gradient(ellipse 34% 60% at 94% 55%, rgba(var(--glow), 0.22), transparent 70%),
    var(--bg-deep);
}
.hs-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 45%;
  opacity: 0.55;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active .hs-bg { animation: kenburns 9s linear forwards; }
}

.hs-z {
  position: absolute;
  top: calc(50% + var(--nav-h) / 2);
  width: 560px;
  height: 820px;
}
.hs-zl { left: 0; transform: translateY(-50%) scale(var(--hz, 0.8)); transform-origin: left center; }
.hs-zr { right: 0; transform: translateY(-50%) scale(var(--hz, 0.8)); transform-origin: right center; }
.hs-z img { position: absolute; display: block; user-select: none; }

.hs-a, .hs-f { filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.7)); }
.hs-xarth { left: 40px; bottom: 80px; height: 560px; }
.hs-ocellus { right: 30px; bottom: 70px; height: 640px; }
.hs-guardian { right: 330px; bottom: 250px; height: 300px; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.7)) brightness(0.75); }

.hs-panel {
  position: absolute;
  top: 430px;
  padding: 6px;
  background: linear-gradient(160deg, rgba(240, 196, 105, 0.5), rgba(126, 96, 42, 0.35) 40%, rgba(240, 196, 105, 0.35));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 60px rgba(var(--glow), 0.2);
}
.hs-panel img { position: static; filter: brightness(1.25) contrast(1.05); }
.hs-tilt-r { right: 20px; transform: perspective(1400px) rotateY(-20deg) rotateX(3deg); }
.hs-tilt-l { left: 20px; transform: perspective(1400px) rotateY(20deg) rotateX(3deg); }

.hs-warden { left: 30px; bottom: 90px; height: 600px; }
.hs-crest {
  position: absolute;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(236, 112, 40, 0.3), transparent 65%);
}
.hs-crest img { position: static; width: 120px; height: 120px; image-rendering: pixelated; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.7)); }
.hs-c1 { left: 300px; top: 90px; }
.hs-c2 { left: 290px; top: 360px; width: 120px; height: 120px; }
.hs-c2 img, .hs-c3 img { width: 80px; height: 80px; }
.hs-c3 { left: 300px; top: 540px; width: 120px; height: 120px; }

.hs-t1 { left: 60px; top: 110px; height: 150px; }
.hs-t2 { left: 270px; top: 250px; height: 140px; }
.hs-t3 { left: 50px; top: 410px; height: 150px; }
.hs-t4 { left: 280px; top: 520px; height: 120px; }
.hs-t5 { left: 100px; top: 640px; height: 100px; }

.hs-l1 { left: 70px; top: 140px; width: 150px; }
.hs-l2 { left: 290px; top: 230px; width: 170px; }
.hs-l3 { left: 60px; top: 420px; width: 160px; }
.hs-l4 { left: 300px; top: 510px; width: 140px; }
.hs-l5 { right: 330px; top: 170px; width: 120px; }
.hs-f.hs-l1, .hs-f.hs-l2, .hs-f.hs-l3, .hs-f.hs-l4, .hs-f.hs-l5 { filter: drop-shadow(0 0 16px rgba(240, 196, 105, 0.35)) drop-shadow(0 12px 12px rgba(0, 0, 0, 0.6)); }
.hs-rays {
  position: absolute;
  right: 0;
  top: 190px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(240, 196, 105, 0.2) 0deg 7deg, transparent 7deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 68%);
  mask-image: radial-gradient(circle, #000 15%, transparent 68%);
}
.hs-box { right: 70px; top: 360px; width: 380px; filter: drop-shadow(0 26px 24px rgba(0, 0, 0, 0.75)); }
.hs-casket { right: 205px; top: 250px; width: 110px; opacity: 0; filter: drop-shadow(0 0 18px rgba(240, 196, 105, 0.6)); }

.hs-orb {
  position: absolute;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c), 0.42), rgba(var(--c), 0.08) 55%, transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(var(--c), 0.45);
}
.hs-orb img { position: static; width: 96px; height: 96px; image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.7)); }
.hs-o1 { --c: 214, 54, 54; right: 60px; top: 150px; }
.hs-o2 { --c: 120, 170, 220; right: 250px; top: 320px; }
.hs-o3 { --c: 230, 120, 50; right: 70px; top: 490px; }
.hs-o4 { --c: 200, 180, 120; right: 270px; top: 620px; width: 104px; height: 104px; }
.hs-o4 img { width: 64px; height: 64px; }

.hs-links { position: absolute; inset: 0; width: 560px; height: 820px; overflow: visible; }
.hs-links path { fill: none; stroke: rgba(64, 190, 168, 0.6); stroke-width: 1.5; stroke-dasharray: 4 6; }
.hs-rune {
  position: absolute;
  width: 132px;
  height: 120px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(64, 190, 168, 0.35), transparent 65%);
}
.hs-rune img { position: static; width: 108px; height: 96px; image-rendering: pixelated; filter: drop-shadow(0 0 12px rgba(64, 220, 190, 0.5)) drop-shadow(0 10px 10px rgba(0, 0, 0, 0.7)); }
.hs-r1 { left: 90px; top: 110px; }
.hs-r2 { left: 270px; top: 320px; }
.hs-r3 { left: 110px; top: 540px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active .hs-zl { animation: hs-in-l 1.1s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-slide.is-active .hs-zr { animation: hs-in-r 1.1s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-slide.is-active .hs-a { animation: hs-bob 5s ease-in-out infinite; }
  .hero-slide.is-active .hs-ocellus { animation-delay: -2.5s; }
  .hero-slide.is-active .hs-f { animation: hs-float 4.6s ease-in-out infinite; }
  .hero-slide.is-active .hs-f:nth-child(2n) { animation-duration: 5.4s; animation-delay: -1.8s; }
  .hero-slide.is-active .hs-f:nth-child(3n) { animation-duration: 6s; animation-delay: -3.1s; }
  .hero-slide.is-active .hs-rays { animation: hs-spin 40s linear infinite; }
  .hero-slide.is-active .hs-box { animation: hs-thud 3.2s ease-in-out 0.6s infinite; }
  .hero-slide.is-active .hs-casket { animation: hs-drop 3.2s cubic-bezier(.5, 0, .9, .6) -0.3s infinite; }
  .hero-slide.is-active .hs-orb { animation: hs-pulse 3.6s ease-in-out infinite; }
  .hero-slide.is-active .hs-orb:nth-child(2n) { animation-delay: -1.8s; }
  .hero-slide.is-active .hs-crest { animation: hs-float 5s ease-in-out infinite; }
  .hero-slide.is-active .hs-c2 { animation-delay: -1.7s; }
  .hero-slide.is-active .hs-c3 { animation-delay: -3.3s; }
  .hero-slide.is-active .hs-rune { animation: hs-float 4.8s ease-in-out infinite; }
  .hero-slide.is-active .hs-r2 { animation-delay: -1.6s; }
  .hero-slide.is-active .hs-r3 { animation-delay: -3.2s; }
  .hero-slide.is-active .hs-links path { animation: hs-march 1.6s linear infinite; }
}
@keyframes hs-in-l { from { opacity: 0; translate: -80px 0; } to { opacity: var(--zo, 1); translate: 0 0; } }
@keyframes hs-in-r { from { opacity: 0; translate: 80px 0; } to { opacity: var(--zo, 1); translate: 0 0; } }
@keyframes hs-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes hs-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 2deg; } }
@keyframes hs-spin { to { rotate: 360deg; } }
@keyframes hs-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }
@keyframes hs-march { to { stroke-dashoffset: -20; } }
@keyframes hs-drop {
  0% { opacity: 0; transform: translateY(-90px) rotate(-8deg); }
  12% { opacity: 1; }
  38% { opacity: 1; transform: translateY(110px) rotate(4deg) scale(0.9); }
  44%, 100% { opacity: 0; transform: translateY(130px) scale(0.7); }
}
@keyframes hs-thud { 0%, 34%, 52%, 100% { translate: 0 0; } 40% { translate: 0 6px; } }

.hero-feature {
  position: absolute;
  left: 50%;
  bottom: 8.6rem;
  transform: translateX(-50%);
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 2rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.3rem 0.8rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.hero-feature-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.hero-feature-line { font-size: 0.95rem; color: var(--text-dim); }
.hero-feature-line::before { content: "\2726"; margin-right: 0.8rem; font-size: 0.6rem; color: var(--accent); vertical-align: 0.15em; }

@media (max-width: 760px) {
  .hs-zl { top: calc(var(--nav-h) + 1rem); transform: scale(var(--hz, 0.42)); transform-origin: left top; opacity: 0.5; --zo: 0.5; }
  .hs-zr { top: auto; bottom: 9rem; transform: scale(var(--hz, 0.42)); transform-origin: right bottom; opacity: 0.5; --zo: 0.5; }
  .hero-feature { bottom: 8.2rem; }
  .hero-feature-line::before { display: none; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 50% at 50% 48%, rgba(5, 6, 7, 0.55), transparent 75%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.75) 0%, rgba(5, 6, 7, 0.25) 30%, rgba(5, 6, 7, 0.35) 70%, var(--bg) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
  padding: 5rem 1.5rem 6rem;
}

.runes {
  font-family: "Segoe UI Symbol", "Noto Sans Runic", "Segoe UI Historic", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.55em;
  color: rgba(217, 164, 65, 0.55);
  text-shadow: 0 0 12px rgba(217, 164, 65, 0.6);
  margin-bottom: 1.4rem;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.85);
}
.hero h1 .h1-top {
  font-size: clamp(1.6rem, 4.2vw, 3.4rem);
  color: var(--text);
  letter-spacing: 0.12em;
}
.hero h1 .h1-main {
  font-size: clamp(3.4rem, 10.5vw, 8.4rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 30px rgba(217, 164, 65, 0.25));
}

.hero-sub {
  margin: 1.6rem auto 0;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 7rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}
.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--accent);
  background: transparent;
  transform: rotate(45deg);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.hero-dots button[aria-current="true"] { background: var(--accent); box-shadow: 0 0 10px rgba(217, 164, 65, 0.8); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue::after { animation: cue 2s ease-in-out infinite; }
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

.hero-atmo { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.ember {
  position: absolute;
  bottom: -12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffb347;
  opacity: 0;
  filter: blur(0.5px);
  box-shadow: 0 0 10px rgba(255, 150, 50, 0.95);
}
@media (prefers-reduced-motion: no-preference) {
  .ember { animation: rise 9s linear infinite; }
  .e1 { left: 8%; animation-delay: 0s; }
  .e2 { left: 19%; animation-delay: 2.1s; animation-duration: 11s; }
  .e3 { left: 33%; animation-delay: 4.4s; width: 3px; height: 3px; }
  .e4 { left: 47%; animation-delay: 1.2s; animation-duration: 13s; }
  .e5 { left: 61%; animation-delay: 6s; width: 3px; height: 3px; }
  .e6 { left: 74%; animation-delay: 7.5s; animation-duration: 12s; }
  .e7 { left: 86%; animation-delay: 3.3s; animation-duration: 10s; }
  .e8 { left: 94%; animation-delay: 5.2s; width: 4px; height: 4px; }
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 0.9; }
  60%  { opacity: 0.55; }
  100% { transform: translateY(-95vh) translateX(4vw); opacity: 0; }
}

/* ---------- spotlight banner ---------- */

.spotlight-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1rem;
  text-align: center;
}

.spotlight {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 3rem 2rem;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(217, 164, 65, 0.1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("img/real/spotlight-tfa.jpg") center / cover no-repeat;
  filter: brightness(1.25) saturate(1.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 60% at 50% 50%, rgba(5, 6, 7, 0.55), rgba(5, 6, 7, 0.15) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.2), transparent 40%, rgba(5, 6, 7, 0.7));
}
.spotlight:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 36px 90px rgba(0, 0, 0, 0.75), 0 0 80px rgba(217, 164, 65, 0.2); }
.spotlight:hover::before { transform: scale(1.04); }

.spotlight-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, #eec46a, var(--accent));
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.spotlight h2 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.9));
}
.spotlight p {
  margin: 1rem auto 0;
  max-width: 48ch;
  color: var(--text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.spotlight-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.spotlight-facts span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid var(--accent-line);
  background: rgba(5, 6, 7, 0.65);
  padding: 0.5rem 1rem;
  border-radius: 2px;
}

.spotlight-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, letter-spacing 0.25s ease;
}
.spotlight-link:hover { color: var(--accent-bright); letter-spacing: 0.26em; }

/* ---------- ornate art frame ---------- */

.art-frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(217, 164, 65, 0.09), rgba(217, 164, 65, 0.02));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(217, 164, 65, 0.08);
}
.art-frame::before, .art-frame::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
}
.art-frame::before {
  top: -2px;
  left: -2px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.art-frame::after {
  bottom: -2px;
  right: -2px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.art-frame img { border-radius: 2px; width: 100%; }

.corners { position: relative; }
.corners::after {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 16px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 1px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 16px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 1px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 16px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 1px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 16px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 1px 16px no-repeat;
  opacity: 0.55;
  transition: opacity 0.2s ease, inset 0.25s ease;
}
.corners:hover::after { opacity: 1; inset: 4px; }

/* ---------- page hero (subpages) ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
  text-align: center;
  border-bottom: 1px solid var(--accent-line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--page-art, linear-gradient(180deg, #101712, var(--bg)));
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.5) saturate(1.05);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 120% 100% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.6) 0%, rgba(5, 6, 7, 0.55) 60%, var(--bg) 100%);
}
.page-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 7.5rem 1.5rem 4.5rem;
}

.page-art-hall { --page-art: url("img/hall.png"); }
.page-art-relic { --page-art: url("img/relic.jpg"); }
.page-art-boss { --page-art: url("img/boss-art.jpg"); }
.page-art-play { --page-art: url("img/play-now.jpg"); }
.page-art-camp { --page-art: url("img/campfire.jpg"); }
.page-art-raid { --page-art: url("img/raid-gate.jpg"); }
.page-art-delve { --page-art: url("img/delve.jpg"); }
.page-hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8));
}
.page-hero h1:not(.gold) { color: var(--text); }
.page-hero p {
  margin: 1.1rem auto 0;
  max-width: 56ch;
  color: var(--text);
  opacity: 0.88;
  font-size: 1.1rem;
}
.page-hero .ornate-rule { margin-left: auto; margin-right: auto; max-width: 220px; }
.page-hero .kicker::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  vertical-align: 0.12em;
  margin-left: 0.85rem;
  box-shadow: 0 0 8px rgba(217, 164, 65, 0.7);
}

/* ---------- stats strip ---------- */

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-deep); }

.stats-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat { display: flex; flex-direction: column; }
.stat + .stat { border-left: 1px solid var(--accent-line); }
.stat dd {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.1;
}
.stat dt {
  order: 2;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* ---------- sections ---------- */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-deep {
  max-width: none;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-deep > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.section-head { margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 26ch; }
.section-head p { margin-top: 1rem; max-width: 58ch; color: var(--text-dim); }
.section-head-center { text-align: center; }
.section-head-center h2, .section-head-center p { margin-left: auto; margin-right: auto; }

/* ---------- door cards (home) ---------- */

.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.door {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  padding: 2rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.door::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--door-art);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  filter: saturate(0.9) brightness(0.85);
}
.door > .door-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.1) 0%, rgba(5, 6, 7, 0.5) 50%, rgba(5, 6, 7, 0.96) 100%);
}
.door:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(217, 164, 65, 0.15); }
.door:hover::before { transform: scale(1.07); filter: saturate(1.05) brightness(1); }

.door-num {
  margin-bottom: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--accent);
  opacity: 0.85;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9), 0 0 20px rgba(217, 164, 65, 0.3);
}

.door h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.door p { margin-top: 0.5rem; color: var(--text-dim); font-size: 0.95rem; max-width: 34ch; }
.door .door-go {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s ease, padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.door:hover .door-go { color: var(--accent-bright); padding-left: 8px; }

.door-art-modes { --door-art: url("img/real/door-modes.jpg"); }
.door-art-features { --door-art: url("img/real/door-features.jpg"); }
.door-art-bosses { --door-art: url("img/real/door-bosses.jpg"); }

/* ---------- download band (home) ---------- */

.download-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--accent-line);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(217, 164, 65, 0.09), transparent 70%),
    linear-gradient(180deg, var(--bg-deep), #0b0d0c 60%, var(--bg-deep));
}
.download-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}
.download-gem {
  width: 16px;
  height: 16px;
  margin: 0 auto 2.4rem;
  background: var(--text);
  transform: rotate(45deg);
  box-shadow: 0 0 18px rgba(236, 228, 207, 0.6), 0 0 40px rgba(217, 164, 65, 0.4);
}
.download-band h2 {
  display: flex;
  flex-direction: column;
  font-size: clamp(2rem, 5vw, 3.6rem);
}
.download-band h2 span:first-child { color: var(--text); }
.download-band p { margin: 1.1rem auto 0; max-width: 48ch; color: var(--text-dim); }

.platforms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2.8rem 0 2.6rem;
}
.platform {
  width: 112px;
  padding: 1.2rem 0.6rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 26, 23, 0.9), rgba(10, 12, 12, 0.9));
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.platform img { width: 34px; height: 34px; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.platform span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.platform:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(217, 164, 65, 0.12); }
.platform:hover img { transform: scale(1.12); }
.platform:hover span { color: var(--accent-bright); }

/* ---------- play page ---------- */

.play-wrap { max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }

.notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(217, 164, 65, 0.1), rgba(217, 164, 65, 0.03));
  color: var(--text-dim);
  font-size: 0.98rem;
}
.notice strong { color: var(--accent-bright); }
.notice-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: 0.85rem;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.6rem;
}
.dl-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
.dl-card {
  display: flex;
  flex-direction: column;
  padding: 2.2rem 1.7rem 1.7rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 26, 23, 0.95), rgba(9, 11, 11, 0.95));
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.dl-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 30px rgba(217, 164, 65, 0.1); }
.dl-card-hot { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(217, 164, 65, 0.14), transparent 70%), linear-gradient(180deg, rgba(24, 28, 22, 0.98), rgba(9, 11, 11, 0.95)); }
.dl-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: rgba(5, 6, 7, 0.7);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}
.dl-card-hot .dl-badge { color: var(--ink); background: linear-gradient(180deg, #eec46a, var(--accent)); border-color: #7d5a15; }
.dl-icon { width: 58px; height: 58px; margin: 0.6rem auto 1.4rem; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)); }
.dl-meta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dl-meta::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.5rem;
  vertical-align: 0.15em;
  border-radius: 50%;
  background: var(--accent);
}
.dl-card h2 { font-size: 1.15rem; letter-spacing: 0.08em; margin: 0.5rem 0 0.7rem; }
.dl-card p { color: var(--text-dim); font-size: 0.94rem; }
.dl-card .dl-help { margin-top: 0.8rem; color: var(--accent); font-size: 0.9rem; text-decoration: none; }
.dl-card .dl-help:hover { color: var(--accent-bright); text-decoration: underline; }
.dl-actions { margin-top: auto; padding-top: 1.5rem; display: grid; gap: 0.6rem; }

.help-title {
  margin: 4.5rem 0 1.8rem;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.24em;
  color: var(--accent);
}
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.help-card {
  padding: 1.7rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.help-card h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.help-card h3 img { width: 20px; height: 20px; }
.help-card p, .help-card li { color: var(--text-dim); font-size: 0.94rem; }
.help-card h3 ~ * + * { margin-top: 0.8rem; }
.help-card ol { padding-left: 1.3rem; display: grid; gap: 0.35rem; }
.help-card strong { color: var(--text); }
.help-card a:not(.btn) { color: var(--accent); }
.help-card a:not(.btn):hover { color: var(--accent-bright); }
.help-card pre, .help-card code {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.86rem;
}
.help-card pre {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #040505;
  color: #e9cf8b;
  overflow-x: auto;
}
.help-card code { color: #e9cf8b; }
.help-card summary { cursor: pointer; color: var(--accent); font-size: 0.94rem; }
.help-card summary:hover { color: var(--accent-bright); }
.help-card details > *:not(summary) { margin-top: 0.6rem; }
.help-card ul { padding-left: 1.3rem; display: grid; gap: 0.3rem; }
.help-card .btn { margin-top: 1.2rem; }
.help-card-wide { grid-column: 1 / -1; }
.help-card ol.ios-steps {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding: 0;
  list-style: none;
  counter-reset: ios-step;
}
.ios-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  counter-increment: ios-step;
}
.ios-steps svg {
  width: 100%;
  max-width: 190px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
}
.ios-steps span::before {
  content: counter(ios-step);
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #eec46a, var(--accent));
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
}
@media (max-width: 760px) {
  .help-card ol.ios-steps { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
}

/* ---------- game modes ---------- */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.mode-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.mode-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.mode-card h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 1.15rem; margin-bottom: 0.55rem; }
.mode-card p { color: var(--text-dim); font-size: 0.975rem; }

.mode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.mode-sigil {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  box-shadow: inset 0 0 16px rgba(217, 164, 65, 0.12);
}

.mode-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}

.mode-featured {
  background:
    linear-gradient(100deg, rgba(14, 18, 17, 0.95) 35%, rgba(14, 18, 17, 0.5)),
    url("img/real/mode-standard.jpg") right center / cover no-repeat,
    var(--surface-2);
  border-color: var(--accent-line);
}
.mode-featured:hover { border-color: var(--accent); }

.mode-quiet {
  background:
    radial-gradient(ellipse 80% 100% at 0% 100%, rgba(217, 164, 65, 0.07), transparent 60%),
    var(--surface);
  border-color: rgba(217, 164, 65, 0.18);
}

.mode-tinted {
  background:
    radial-gradient(ellipse 90% 100% at 0% 100%, rgba(47, 84, 45, 0.35), transparent 65%),
    var(--surface);
}

.mode-art {
  background:
    linear-gradient(100deg, rgba(14, 18, 17, 0.95) 34%, rgba(14, 18, 17, 0.3)),
    var(--mode-art) right center / cover no-repeat,
    var(--surface);
}
.mode-art-ironman { --mode-art: url("img/real/mode-ironman.jpg"); }
.mode-art-hardcore { --mode-art: url("img/real/mode-hardcore.jpg"); }
.mode-art-ultimate { --mode-art: url("img/real/mode-ultimate.jpg"); }
.mode-art-group { --mode-art: url("img/real/mode-group.jpg"); }
.mode-art-hcgroup { --mode-art: url("img/real/mode-hcgroup.jpg"); }

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 1rem;
}

/* ---------- xp rate band ---------- */

.rate-band {
  margin-top: 4.5rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}
.rate-band h2 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.8rem;
}
.rate-band h2:has(+ .rate-note) { margin-bottom: 0.5rem; }
.rate-note { margin-bottom: 1.8rem; color: var(--text-dim); }

.rate-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 1.1rem;
}

.rate {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  background: rgba(233, 231, 218, 0.02);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.rate:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.rate-x {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  display: block;
  margin-bottom: 0.35rem;
}
.rate p { color: var(--text-dim); font-size: 0.93rem; }

.rate-hot {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  box-shadow: 0 0 44px rgba(217, 164, 65, 0.09);
}
.rate-hot:hover { border-color: var(--accent); }
.rate-hot .rate-x { color: var(--accent); }

.rate-art {
  background:
    linear-gradient(100deg, rgba(14, 18, 17, 0.95) 34%, rgba(14, 18, 17, 0.3)),
    var(--rate-art) right center / cover no-repeat,
    rgba(233, 231, 218, 0.02);
}
.rate-hot.rate-art {
  background:
    linear-gradient(100deg, rgba(32, 25, 11, 0.93) 34%, rgba(32, 25, 11, 0.3)),
    var(--rate-art) right center / cover no-repeat,
    var(--accent-soft);
}
.rate-art-fast { --rate-art: url("img/real/rate-35x.jpg"); }
.rate-art-balanced { --rate-art: url("img/real/rate-5x.jpg"); }
.rate-art-slow { --rate-art: url("img/real/rate-1x.jpg"); }

.rate-flag {
  position: absolute;
  top: -11px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, #eabf62, var(--accent));
  border-radius: 2px;
  padding: 0.2rem 0.6rem;
}

/* ---------- endgame bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.cell:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.cell h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 1.2rem; margin-bottom: 0.6rem; }
.cell p { color: var(--text-dim); font-size: 0.985rem; }

.cell-wide { grid-column: span 2; }

.cell-glow {
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(217, 164, 65, 0.1), transparent 55%),
    var(--surface-2);
  border-color: var(--accent-line);
}

.cell-img {
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.3) 0%, rgba(5, 6, 7, 0.92) 78%),
    url("img/real/cell-delve.jpg") center top / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
}

.cell-relic {
  background:
    linear-gradient(112deg, rgba(14, 18, 17, 0.96) 42%, rgba(14, 18, 17, 0.4)),
    url("img/real/cell-prestige.jpg") right center / cover no-repeat,
    var(--surface-2);
  border-color: var(--accent-line);
}

.cell-art {
  background:
    linear-gradient(112deg, rgba(14, 18, 17, 0.95) 36%, rgba(14, 18, 17, 0.3)),
    var(--cell-art) right center / cover no-repeat,
    var(--surface-2);
}
.cell-art-pass { --cell-art: url("img/real/cell-pass.jpg"); }
.cell-art-perks { --cell-art: url("img/real/cell-perks.jpg"); }
.cell-art-collog { --cell-art: url("img/real/cell-collog.jpg"); }

/* ---------- bosses ---------- */

.raid-split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.raid-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.raid-copy p { margin-top: 1.1rem; color: var(--text-dim); max-width: 46ch; }
.raid-note { font-size: 0.95rem; border-left: 2px solid var(--accent); padding-left: 1rem; }

.boss-scroller {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-line) transparent;
}

.boss-card {
  scroll-snap-align: start;
  flex: 0 0 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.boss-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.boss-card > div { padding: 1.4rem 1.6rem 1.6rem; }

.boss-portrait {
  aspect-ratio: 5 / 4;
  background-image: var(--boss-art, radial-gradient(ellipse 80% 80% at 50% 30%, rgba(47, 84, 45, 0.5), transparent 70%));
  background-size: cover;
  background-position: center 20%;
  border-bottom: 1px solid var(--accent-line);
}

.portrait-tfa { --boss-art: url("img/real/boss-tfa.jpg"); }
.portrait-echoes { --boss-art: url("img/real/boss-echoes.jpg"); }
.portrait-galvek { --boss-art: url("img/real/boss-galvek.jpg"); }
.portrait-toa { --boss-art: url("img/real/boss-toa.jpg"); }
.portrait-yama { --boss-art: url("img/real/boss-yama.jpg"); }
.portrait-sol { --boss-art: url("img/real/boss-sol.jpg"); }
.portrait-doom { --boss-art: url("img/real/boss-doom.jpg"); }
.portrait-nightmare { --boss-art: url("img/real/boss-nightmare.jpg"); }
.portrait-nex { --boss-art: url("img/real/boss-nex.jpg"); }
.portrait-dt2 { --boss-art: url("img/real/boss-dt2.jpg"); }
.portrait-hespori { --boss-art: url("img/real/boss-hespori.jpg"); }

.boss-portrait-rune {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 80% 80% at 50% 30%, rgba(47, 84, 45, 0.45), transparent 70%),
    var(--bg-deep);
}
.boss-portrait-rune span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4rem;
  color: rgba(217, 164, 65, 0.5);
  text-shadow: 0 0 34px rgba(217, 164, 65, 0.35);
}
.boss-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.boss-card p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- community pulse ---------- */

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}

.pulse {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.pulse-wide { grid-column: span 3; background: var(--surface-2); }
.pulse h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 1.05rem; margin-bottom: 0.55rem; }
.pulse p { color: var(--text-dim); font-size: 0.96rem; }

.pulse-art {
  background:
    linear-gradient(100deg, rgba(14, 18, 17, 0.975) 44%, rgba(14, 18, 17, 0.6)),
    var(--pulse-art) right center / cover no-repeat,
    var(--surface);
}
.pulse-wide.pulse-art {
  background:
    linear-gradient(100deg, rgba(14, 18, 17, 0.97) 46%, rgba(14, 18, 17, 0.58)),
    var(--pulse-art) right center / cover no-repeat,
    var(--surface-2);
}
.pulse-art-events { --pulse-art: url("img/real/pulse-events.jpg"); }
.pulse-art-wogw { --pulse-art: url("img/real/pulse-wogw.jpg"); }
.pulse-art-bonfire { --pulse-art: url("img/real/pulse-bonfire.jpg"); }
.pulse-art-boards { --pulse-art: url("img/real/pulse-boards.jpg"); }
.pulse-art-tasks { --pulse-art: url("img/real/pulse-tasks.jpg"); }

/* ---------- discord band ---------- */

.discord-band {
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.85) 0%, rgba(5, 6, 7, 0.55) 50%, rgba(5, 6, 7, 0.92) 100%),
    url("img/campfire.jpg") center 65% / cover no-repeat,
    var(--bg-deep);
  border-top: 1px solid var(--accent-line);
}

.discord-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}
.discord-inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.discord-inner p { margin: 1.1rem auto 2rem; color: var(--text-dim); max-width: 52ch; }

/* ---------- footer ---------- */

.footer {
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--accent-line);
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.94), rgba(5, 6, 7, 0.98)),
    url("img/hall.png") center 70% / cover no-repeat,
    var(--bg-deep);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.footer-brand .brand img {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 0 12px rgba(217, 164, 65, 0.3));
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.wordmark span { color: var(--accent); }
.footer-brand p { margin-top: 1rem; max-width: 32ch; color: var(--text-dim); font-size: 0.92rem; }

.socials { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 18, 17, 0.8);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.socials a img { width: 18px; height: 18px; opacity: 0.75; transition: opacity 0.2s ease; }
.socials a:hover { border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-2px); }
.socials a:hover img { opacity: 1; }

.footer-col h3 {
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.15s ease, padding-left 0.2s ease;
}
.footer-col a:hover { color: var(--accent-bright); padding-left: 4px; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  opacity: 0.75;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }
.footer-bottom nav { display: flex; gap: 1.4rem; }

/* ---------- reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; }
  .js .reveal.in {
    opacity: 1;
    animation: reveal-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .js .doors > .reveal.in:nth-child(2), .js .mode-grid > .reveal.in:nth-child(2),
  .js .bento > .reveal.in:nth-child(2), .js .pulse-grid > .reveal.in:nth-child(2),
  .js .dl-grid > .reveal.in:nth-child(2), .js .platforms > .reveal.in:nth-child(2),
  .js .steps > .reveal.in:nth-child(2) { animation-delay: 0.08s; }
  .js .doors > .reveal.in:nth-child(3), .js .mode-grid > .reveal.in:nth-child(3),
  .js .bento > .reveal.in:nth-child(3), .js .pulse-grid > .reveal.in:nth-child(3),
  .js .dl-grid > .reveal.in:nth-child(3), .js .platforms > .reveal.in:nth-child(3),
  .js .steps > .reveal.in:nth-child(3) { animation-delay: 0.16s; }
  .js .mode-grid > .reveal.in:nth-child(4), .js .bento > .reveal.in:nth-child(4),
  .js .dl-grid > .reveal.in:nth-child(4), .js .platforms > .reveal.in:nth-child(4),
  .js .pulse-grid > .reveal.in:nth-child(4) { animation-delay: 0.24s; }
  .js .mode-grid > .reveal.in:nth-child(5), .js .bento > .reveal.in:nth-child(5),
  .js .dl-grid > .reveal.in:nth-child(5), .js .dl-grid > .reveal.in:nth-child(6), .js .platforms > .reveal.in:nth-child(5),
  .js .pulse-grid > .reveal.in:nth-child(5) { animation-delay: 0.32s; }

  .hero-inner > * { animation: hero-in 1s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .hero-inner > :nth-child(2) { animation-delay: 0.12s; }
  .hero-inner > :nth-child(3) { animation-delay: 0.3s; }
  .hero-inner > :nth-child(4) { animation-delay: 0.45s; }
  .hero-inner > :nth-child(5) { animation-delay: 0.6s; }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(22px); }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
}

/* ---------- legal ---------- */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}
.legal-updated {
  color: var(--text-dim);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.legal h2 {
  font-size: 1.3rem;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 {
  font-size: 1.05rem;
  margin: 1.8rem 0 0.6rem;
  color: var(--text);
}
.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 0.985rem;
  line-height: 1.75;
}
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1.4rem 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { color: var(--accent-bright); text-decoration: underline; }
.legal-note {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1.6rem 0 2rem;
}
.legal-note p:last-child { margin-bottom: 0; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6rem;
  font-size: 0.94rem;
}
.legal th,
.legal td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  vertical-align: top;
}
.legal th { color: var(--text); font-weight: 600; }
.legal-wrap { overflow-x: auto; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .nav-side { gap: 1.4rem; }
  .nav-side > a, .nav-drop-btn { font-size: 0.74rem; letter-spacing: 0.12em; }
}

@media (max-width: 1000px) {
  :root { --nav-h: 64px; }
  .nav-inner { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .crest { width: 52px; height: 52px; margin-top: 6px; grid-column: 1; grid-row: 1; }
  .nav.is-compact .crest { width: 52px; height: 52px; margin-top: 6px; }
  .nav-toggle { display: block; grid-column: 3; grid-row: 1; }
  .status-pill { display: none; }
  .nav-side {
    position: fixed;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1.5rem;
    background: #050607;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease, visibility 0.3s;
  }
  .nav-left { top: var(--nav-h); }
  .nav-right { top: calc(var(--nav-h) + var(--left-h, 0px)); border-bottom: 1px solid var(--accent-line); }
  .nav.is-open .nav-side { max-height: 30rem; visibility: visible; }
  .nav.is-open .nav-left { padding-top: 0.6rem; }
  .nav.is-open .nav-right { padding-bottom: 1rem; }
  .nav-side > a, .nav-side .nav-drop-btn { flex-shrink: 0; padding: 0.85rem 0; font-size: 0.85rem; border-bottom: 1px solid var(--line); text-align: left; }
  .nav-side > a::after, .nav-side .nav-drop-btn::after { display: none; }
  .nav-side .nav-drop, .nav-side .nav-drop-menu { display: contents; }
  .nav-side .nav-drop-menu { visibility: inherit; opacity: 1; transform: none; }
  .nav-side .nav-drop-btn { display: none; }
  .nav-side .nav-drop-menu a { flex-shrink: 0; padding: 0.85rem 0; font-size: 0.85rem; border-bottom: 1px solid var(--line); background: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 280px; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .mode-grid, .bento { grid-template-columns: 1fr 1fr; }
  .cell-wide { grid-column: span 2; }
  .rate-row { grid-template-columns: 1fr 1fr; }
  .pulse, .pulse-wide { grid-column: span 3; }
  .raid-split { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

html:not(.js) .nav-side .nav-drop,
html:not(.js) .nav-side .nav-drop-menu { display: contents; }
html:not(.js) .nav-side .nav-drop-btn { display: none; }

@media (max-width: 768px) {
  .section { padding: 4.5rem 1.25rem; }
  .page-hero-inner { padding: 5rem 1.25rem 3.5rem; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 1.6rem 0; padding: 1.8rem 1.25rem; }
  .stat:nth-child(3) { border-left: 0; }
  .mode-grid, .bento, .rate-row, .dl-grid { grid-template-columns: 1fr; }
  .cell-wide { grid-column: auto; }
  .pulse, .pulse-wide { grid-column: 1 / -1; }
  .hero-inner { padding: 4rem 1.25rem 7rem; }
  .spotlight { min-height: 360px; padding: 2.4rem 1.2rem; }
  .download-inner { padding: 4.5rem 1.25rem; }
  .platform { width: calc(33.333% - 0.6rem); min-width: 92px; }
}

@media (max-width: 520px) {
  .btn { padding: 0.85rem 1.4rem; }
  .btn-lg { padding: 1rem 1.8rem; }
  .hero-ctas .btn { width: 100%; }
  .section { padding: 3.5rem 1rem; }
  .page-hero-inner { padding: 4rem 1rem 2.75rem; }
  .hero-inner { padding: 3rem 1rem 7rem; }
  .spotlight-wrap { padding: 3rem 1rem 0.5rem; }
  .play-wrap { padding: 2.5rem 1rem 4rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 3rem 1rem 1.5rem; }
  .footer-bottom { padding: 1.2rem 1rem 1.6rem; }
  .legal { padding: 3rem 1rem 4rem; }
  .runes { letter-spacing: 0.3em; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .nav-side { transition: none; }
}
