/* ============================================================
   Dungeons and Taverns  |  site styles
   Dark single-column layout, Monocraft pixel headings over a
   plain sans body, one warm amber accent, pill buttons, big
   rounded screenshots.
   ============================================================ */

@font-face {
  font-family: "Monocraft";
  src: url("/assets/fonts/Monocraft.woff2") format("woff2"),
       url("/assets/fonts/Monocraft.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Monocraft";
  src: url("/assets/fonts/Monocraft-SemiBold.woff2") format("woff2"),
       url("/assets/fonts/Monocraft-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #131110;
  --bg-soft: #191614;
  --card: #1d1a17;
  --card-hover: #242019;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .12);
  --text: #f4f1ea;
  --muted: #b3aa9b;
  --faint: #857d70;
  --accent: #f5a11b;
  --accent-bright: #ffb84d;
  --accent-ink: #1d1204;
  --enchant: #c9a0ff;
  --danger: #ff6b6b;
  --discord: #5865f2;
  --radius: 16px;
  --radius-sm: 10px;
  --font-pixel: "Monocraft", "Courier New", monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #100e0d;
}

/* custom scrollbar */
::-webkit-scrollbar { width: 13px; height: 13px; }
::-webkit-scrollbar-track { background: #100e0d; border-left: 1px solid rgba(255, 255, 255, .06); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  border: 3px solid #100e0d;
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-bright); }
::-webkit-scrollbar-corner { background: #100e0d; }

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

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

a { color: var(--accent-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffcf85; }

::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }

/* ---------------- typography ---------------- */

h1, h2, h3, h4 { font-family: var(--font-pixel); font-weight: 400; line-height: 1.2; letter-spacing: .5px; }

h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.overline {
  display: block;
  font-family: var(--font-pixel);
  font-size: .85rem;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 64ch; }

p + p { margin-top: 14px; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .85em;
  background: #0d0b0a;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--accent-bright);
  word-break: break-all;
}

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

.pill {
  position: relative;
  overflow: hidden;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  box-shadow: 0 4px 18px rgba(245, 161, 27, .25);
}
.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 161, 27, .4);
  color: var(--accent-ink);
}
.pill:active { transform: translateY(0); }
/* light sweeps across the button on hover */
.pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-130%);
  pointer-events: none;
}
.pill:hover::after { animation: sheen .65s ease forwards; }
.pill.ghost::after { background: linear-gradient(115deg, transparent 35%, rgba(245, 161, 27, .22) 50%, transparent 65%); }
@keyframes sheen { to { transform: translateX(130%); } }

.pill.ghost {
  background: rgba(245, 161, 27, .08);
  color: var(--accent-bright);
  border: 1px solid rgba(245, 161, 27, .4);
  box-shadow: none;
}
.pill.ghost:hover { background: rgba(245, 161, 27, .16); box-shadow: 0 6px 20px rgba(245, 161, 27, .15); color: var(--accent-bright); }

.pill.discord { background: var(--discord); color: #fff; box-shadow: 0 4px 18px rgba(88, 101, 242, .3); }
.pill.discord:hover { box-shadow: 0 8px 28px rgba(88, 101, 242, .45); color: #fff; }

.pill.sm { padding: 9px 22px; font-size: .92rem; }
.pill.lg { padding: 17px 40px; font-size: 1.08rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 17, 16, .93);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* lifts off the page once you start scrolling */
.site-nav.scrolled {
  background: rgba(14, 12, 11, .98);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.site-nav .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 9px; image-rendering: pixelated; }
.brand span { font-family: var(--font-pixel); font-size: 1.15rem; color: var(--text); letter-spacing: .5px; }
.brand b { color: var(--accent); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a:not(.pill) {
  position: relative;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color .15s ease;
}
.nav-links a:not(.pill)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width .22s ease;
}
.nav-links a:not(.pill):hover { color: var(--text); }
.nav-links a:not(.pill):hover::after { width: 100%; }
.nav-links a:not(.pill)[aria-current="page"] { color: var(--accent-bright); }
.nav-links a:not(.pill)[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
}

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

.hero {
  position: relative;
  text-align: center;
  min-height: calc(100vh - 74px);
  min-height: calc(100dvh - 74px);
  /* two rows: the content centres in the free space, the scroll cue owns its own row
     underneath so the two can never overlap at any viewport size */
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  /* vertical rhythm shrinks on short viewports so the hero never overflows the screen */
  padding: clamp(20px, 4vh, 64px) 24px clamp(22px, 3vh, 34px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner { grid-row: 1; align-self: center; width: 100%; }

/* staggered entrance on first paint */
.hero-inner > * { animation: heroIn .75s cubic-bezier(.2, .7, .3, 1) backwards; }
.hero-inner > *:nth-child(1) { animation-delay: .08s; }
.hero-inner > *:nth-child(2) { animation-delay: .18s; }
.hero-inner > *:nth-child(3) { animation-delay: .28s; }
.hero-inner > *:nth-child(4) { animation-delay: .38s; }
.hero-inner > *:nth-child(5) { animation-delay: .48s; }
.hero .scroll-hint { animation: heroIn .8s ease .9s backwards; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  /* very slow drift so the scene never feels like a still photograph */
  animation: heroDrift 46s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.07) translateY(-1.2%); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 17, 16, .82) 0%, rgba(19, 17, 16, .6) 38%, rgba(19, 17, 16, .88) 78%, var(--bg) 99%);
}
.hero > :not(.hero-bg) { position: relative; }

.hero h1 { margin-bottom: 8px; text-shadow: 0 2px 30px rgba(0, 0, 0, .75); }
.hero .tagline { font-family: var(--font-pixel); font-size: clamp(1rem, 2.4vw, 1.35rem); color: var(--accent-bright); margin-bottom: clamp(12px, 2.5vh, 22px); text-shadow: 0 1px 16px rgba(0, 0, 0, .7); }
.hero .lead { margin: 0 auto clamp(20px, 3.6vh, 34px); color: #ded7ca; text-shadow: 0 1px 14px rgba(0, 0, 0, .8); }

.hero .btn-row { justify-content: center; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 2vh, 16px) 46px;
  list-style: none;
  margin-top: clamp(20px, 4.5vh, 48px);
}
.hero-stats b { display: block; font-family: var(--font-pixel); font-weight: 400; font-size: 1.55rem; color: var(--accent-bright); text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.hero-stats span { font-size: .82rem; color: #b8b0a2; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 600; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }

.scroll-hint {
  grid-row: 2;
  align-self: end;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a49b8c;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .9);
}
.scroll-hint:hover { color: var(--accent-bright); }
.scroll-hint i {
  display: block;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: nudge 1.8s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .55; }
  50% { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}
/* no room for the hint on short screens */
@media (max-height: 600px) {
  .scroll-hint { display: none; }
}

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

section { padding: 96px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.tight { padding: 72px 0; }

.section-head { max-width: 68ch; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; }

/* ---------------- feature rows ---------------- */

.feature {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.feature + .feature { margin-top: 96px; }
.feature.flip .media { order: 2; }
.feature .media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature .media:hover { transform: translateY(-4px); box-shadow: 0 26px 70px rgba(0, 0, 0, .6), 0 0 40px rgba(245, 161, 27, .08); }
.feature .media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 14px; }
.feature p { color: var(--muted); }
.feature .btn-row { margin-top: 24px; }

/* about split */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-grid .media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  cursor: zoom-in;
}
.about-grid .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------------- cards ---------------- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245, 161, 27, .3); background: var(--card-hover); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }

.card.img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.img .thumb { cursor: zoom-in; border-bottom: 1px solid var(--line); }
.card.img .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.card.img .thumb:hover img { transform: scale(1.04); }
.card.img .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 12px; }
.tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--faint);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 3px 11px;
  white-space: nowrap;
}
.tag.loot { color: var(--accent-bright); border-color: rgba(245, 161, 27, .35); background: rgba(245, 161, 27, .07); }
.tag.nether { color: #ff8f7a; border-color: rgba(255, 107, 90, .3); background: rgba(255, 107, 90, .06); }
.tag.end { color: #c9b8ea; border-color: rgba(180, 150, 230, .3); background: rgba(180, 150, 230, .06); }

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  margin-bottom: 16px;
}

/* ---------------- download page ---------------- */

.release {
  background: linear-gradient(180deg, rgba(245, 161, 27, .07), rgba(245, 161, 27, .015));
  border: 1px solid rgba(245, 161, 27, .28);
  border-radius: var(--radius);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  align-items: center;
}
.release .ver {
  font-family: var(--font-pixel);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--text);
  line-height: 1.1;
}
.release .badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 30px;
  padding: 3px 12px;
  vertical-align: 6px;
  margin-left: 10px;
}
.release .meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; font-size: .92rem; color: var(--muted); }
.release .meta b { color: var(--text); font-weight: 600; }
.release .cta { text-align: center; }
.release .cta small { display: block; margin-top: 10px; font-size: .8rem; color: var(--faint); }

/* version picker */
.vpick { display: grid; gap: 12px; }
.vpick-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--faint);
}
.vpick-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.vpick-file { font-size: .86rem; color: var(--faint); }
.vpick-file b { color: var(--muted); font-weight: 600; }

.combo { position: relative; min-width: 260px; }
.combo-btn {
  width: 100%;
  height: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-pixel);
  font-size: 1.25rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 50px;
  padding: 10px 20px 10px 24px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.combo-btn:hover { border-color: rgba(245, 161, 27, .45); background: var(--card-hover); }
.combo-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.combo-btn .tick {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}
.combo[data-open="true"] .combo-btn { border-color: rgba(245, 161, 27, .55); }
.combo[data-open="true"] .combo-btn .tick { transform: rotate(-135deg) translate(-4px, -4px); }

.combo-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  background: #17140f;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
  padding: 8px;
}
.combo-list[hidden] { display: none; }
.combo-group {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--faint);
  padding: 12px 12px 6px;
}
.combo-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.combo-opt:hover, .combo-opt.cursor { background: rgba(245, 161, 27, .1); color: var(--text); }
.combo-opt[aria-selected="true"] { color: var(--accent-bright); background: rgba(245, 161, 27, .14); }
.combo-opt .flag {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 30px;
  padding: 2px 9px;
}

.dl-rows { display: grid; gap: 12px; }
.dl-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  transition: border-color .2s ease, background .2s ease;
}
.dl-row:hover { border-color: rgba(245, 161, 27, .32); background: var(--card-hover); }
.dl-row .kind {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  color: var(--accent-bright);
  background: rgba(245, 161, 27, .09);
  border: 1px solid rgba(245, 161, 27, .28);
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 116px;
  text-align: center;
}
.dl-row .info strong { display: block; font-size: 1rem; color: var(--text); font-weight: 700; }
.dl-row .info span { font-size: .88rem; color: var(--faint); }

.req { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.req div { padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--card); }
.req div:nth-child(odd) { border-right: 1px solid var(--line); }
.req div:nth-last-child(-n+2) { border-bottom: none; }
.req dt { font-size: .74rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.req dd { color: var(--text); font-size: .98rem; }

/* ---------------- install walkthrough ---------------- */

.walk { display: grid; gap: 0; counter-reset: walkstep; }
.walk > li {
  list-style: none;
  counter-increment: walkstep;
  position: relative;
  padding: 0 0 34px 68px;
  border-left: 2px solid var(--line-strong);
  margin-left: 21px;
}
.walk > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.walk > li::before {
  content: counter(walkstep);
  position: absolute;
  left: -22px;
  top: -4px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  border-radius: 12px;
  border: 4px solid var(--bg);
}
.walk h3 { margin-bottom: 8px; }
.walk p { color: var(--muted); font-size: .97rem; }
.walk ul { margin: 10px 0 0 18px; color: var(--muted); font-size: .95rem; display: grid; gap: 6px; }
.walk .callout { margin-top: 14px; }
section.alt .walk > li::before { border-color: var(--bg-soft); }

/* path picker */
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pick {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.pick:hover { transform: translateY(-4px); border-color: rgba(245, 161, 27, .4); background: var(--card-hover); }
.pick .who { font-size: .74rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); }
.pick h3 { color: var(--accent-bright); margin: 8px 0 10px; font-size: 1.4rem; }
.pick p { color: var(--muted); font-size: .95rem; }
.pick .go { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--accent-bright); font-size: .92rem; }

/* ---------------- enchantment cards ---------------- */

.ench {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--enchant);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ench:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0, 0, 0, .4), 0 0 30px rgba(201, 160, 255, .07); }
.ench h3 {
  color: var(--enchant);
  font-size: 1.15rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.ench h3 .lvl { font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.ench > p { color: var(--muted); font-size: .94rem; margin: 10px 0 12px; }
.ench dl { display: grid; gap: 4px; font-size: .86rem; }
.ench dt { display: none; }
.ench dd.items { color: var(--faint); }
.ench dd.clash { color: var(--danger); }
.ench dd.found { color: var(--accent-bright); }
.ench.curse { border-left-color: var(--danger); }
.ench.curse h3 { color: var(--danger); }

/* ---------------- progression chains ---------------- */

.chain { margin-top: 26px; }
.chain .label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--faint);
  margin-bottom: 10px;
}
.chain .row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
/* each link of the chain lights up in turn as it scrolls in */
.js .rv .chain .row > * { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.js .rv.in .chain .row > * { opacity: 1; transform: none; }
.js .rv.in .chain .row > *:nth-child(2) { transition-delay: .07s; }
.js .rv.in .chain .row > *:nth-child(3) { transition-delay: .14s; }
.js .rv.in .chain .row > *:nth-child(4) { transition-delay: .21s; }
.js .rv.in .chain .row > *:nth-child(5) { transition-delay: .28s; }
.js .rv.in .chain .row > *:nth-child(6) { transition-delay: .35s; }
.js .rv.in .chain .row > *:nth-child(7) { transition-delay: .42s; }
.chain .step { transition: border-color .2s ease, color .2s ease, background .2s ease; }
.chain .step:hover { border-color: rgba(245, 161, 27, .45); color: var(--accent-bright); }
.chain .step {
  font-family: var(--font-pixel);
  font-size: .95rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 15px;
  white-space: nowrap;
}
.chain .step.goal { color: var(--accent-bright); border-color: rgba(245, 161, 27, .5); background: rgba(245, 161, 27, .07); }
.chain .arrow { color: var(--faint); font-size: 1rem; }

/* ---------------- callout ---------------- */

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: .96rem;
  color: var(--muted);
}
.callout b { color: var(--text); }

/* ---------------- marquee gallery ---------------- */

.marquee {
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; gap: 18px; width: max-content; animation: slide 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .shot {
  flex: 0 0 auto;
  width: 340px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  cursor: zoom-in;
}
.marquee .shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------- page head (subpages) ---------------- */

.page-head { padding: 110px 0 60px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.head-bg { position: absolute; inset: 0; pointer-events: none; }
.head-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.head-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 17, 16, .8) 0%, rgba(19, 17, 16, .86) 68%, var(--bg) 98%);
}
.page-head > :not(.head-bg) { position: relative; }
.page-head .lead { margin-top: 16px; color: #ded7ca; }

/* ---------------- subnav ---------------- */

.subnav {
  position: sticky;
  top: 74px;
  z-index: 40;
  background: rgba(19, 17, 16, .96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  white-space: nowrap;
}
.subnav .wrap { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.subnav a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 30px;
  border: 1px solid transparent;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.subnav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.subnav a.active { color: var(--accent-bright); background: rgba(245, 161, 27, .09); border-color: rgba(245, 161, 27, .35); }

.cat-section { padding: 64px 0 8px; }
.cat-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.cat-head .count { font-size: .82rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); }
.cat-intro { color: var(--muted); max-width: 72ch; margin-bottom: 36px; }

/* ---------------- faq ---------------- */

.faq-list { display: grid; gap: 14px; max-width: 860px; }
details.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease;
}
details.faq:hover { border-color: var(--line-strong); }
details.faq[open] { border-color: rgba(245, 161, 27, .3); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--font-pixel); color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
details.faq[open] summary::after { content: "-"; }
details.faq .a { padding: 0 24px 20px; color: var(--muted); font-size: .97rem; }
details.faq .a p + p { margin-top: 10px; }
details.faq[open] .a { animation: faqOpen .28s ease; }
details.faq summary::after { transition: transform .2s ease, color .2s ease; }
details.faq summary:hover::after { transform: scale(1.25); }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- tables ---------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .93rem; }
th {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-align: left;
  background: rgba(255, 255, 255, .03);
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-strong);
}
td { padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
td:first-child { color: var(--text); font-weight: 600; }
tr:last-child td { border-bottom: none; }

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

footer {
  background: #0e0c0b;
  border-top: 1px solid var(--line);
  padding: 64px 0 44px;
  font-size: .95rem;
  color: var(--muted);
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-brand img { width: 32px; height: 32px; border-radius: 7px; image-rendering: pixelated; }
.foot-brand span { font-family: var(--font-pixel); font-size: 1rem; color: var(--text); }
.foot-grid h4 { font-size: .78rem; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--faint); margin-bottom: 16px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--accent-bright); text-decoration: underline; }
.foot-grid .about { max-width: 44ch; font-size: .92rem; }
.legal { border-top: 1px solid var(--line); padding-top: 26px; font-size: .8rem; color: var(--faint); line-height: 1.8; }

/* ---------------- lightbox ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 9, 8, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s;
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .8);
  transform: scale(.96);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}
.lightbox.open img { transform: scale(1); }
.lightbox figcaption {
  position: absolute;
  bottom: 3.5vh;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: var(--text);
}

/* ---------------- misc ---------------- */

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 200; font-weight: 700; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; top: 0; }

.copy-btn {
  margin-left: 8px;
  vertical-align: 1px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(245, 161, 27, .08);
  border: 1px solid rgba(245, 161, 27, .35);
  border-radius: 30px;
  padding: 3px 12px;
  cursor: pointer;
  transition: background .15s ease;
}
.copy-btn:hover { background: rgba(245, 161, 27, .18); }

.center { text-align: center; }

/* scroll reveals, hidden state only applies once JS has loaded */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-grid > * { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .rv-grid.in > * { opacity: 1; transform: none; }
.js .rv-grid.in > *:nth-child(2) { transition-delay: .08s; }
.js .rv-grid.in > *:nth-child(3) { transition-delay: .16s; }
.js .rv-grid.in > *:nth-child(4) { transition-delay: .24s; }
.js .rv-grid.in > *:nth-child(5) { transition-delay: .32s; }
.js .rv-grid.in > *:nth-child(6) { transition-delay: .4s; }

/* 404 */
.notfound { min-height: 82vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.notfound h1 { font-size: clamp(3rem, 9vw, 5.5rem); }
.notfound .lead { margin: 18px auto 30px; }

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

@media (max-width: 980px) {
  /* narrow viewports wrap the buttons and stats, so tighten them to keep the hero on screen */
  .hero .lead { font-size: 1.05rem; }
  .hero-stats { gap: 10px 28px; margin-top: clamp(16px, 3vh, 30px); }
  .hero-stats b { font-size: 1.3rem; }
  .hero-stats span { font-size: .72rem; letter-spacing: 1.2px; }
  .hero .pill.lg { padding: 14px 30px; font-size: 1rem; }

  .grid, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.flip, .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .media { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .release { grid-template-columns: 1fr; text-align: left; }
  .release .cta { text-align: left; }
}

@media (max-width: 640px) {
  section { padding: 68px 0; }
  .grid, .grid.two, .grid.four { grid-template-columns: 1fr; }
  .hero { padding: 20px 20px 24px; }
  .hero .lead { font-size: 1rem; margin-bottom: 18px; }
  .hero .tagline { margin-bottom: 12px; }
  .hero-stats { gap: 12px 22px; margin-top: 24px; }
  .hero-stats b { font-size: 1.2rem; }
  .hero-stats span { font-size: .67rem; }
  /* the cue is a desktop affordance, a phone screen is obviously scrollable */
  .scroll-hint { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .marquee .shot { width: 260px; }
  .req, .pick-grid { grid-template-columns: 1fr; }
  .combo, .vpick-row .pill { width: 100%; }
  .walk > li { padding-left: 54px; }
  .req div:nth-child(odd) { border-right: none; }
  .req div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .dl-row { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .dl-row .pill { justify-self: start; }
  .release { padding: 26px 24px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(16, 14, 13, .99);
    border-bottom: 1px solid var(--line-strong);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.pill) { display: block; padding: 13px 4px; font-size: 1.05rem; }
  .nav-links li .pill { display: block; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .scroll-hint i, .hero-bg img, .hero-inner > *,
  .hero .scroll-hint, details.faq[open] .a, .pill:hover::after { animation: none; }
  .marquee { overflow-x: auto; }
  .js .rv, .js .rv-grid > *, .js .rv .chain .row > * { opacity: 1 !important; transform: none !important; transition: none; }
  .feature .media, .card, .ench, .pill, .lightbox img { transition: none; }
  .lightbox img { transform: none; }
}
