
/* Layout: a night-time chronicle. The spawn castle fills the hero, then alternating
   ledger rows; crimson for the vampire moon, gold for the human hearth. Single dark look by choice. */
:root {
  --night: #110e17;
  --stone: #1b1722;
  --stone-2: #241f2d;
  --line: #3a3244;
  --parchment: #ece3d2;
  --ash: #a79eb0;
  --gold: #e9b97a;
  --gold-hi: #ffecb2;
  --blood: #ce3648;
  --leaf: #8fc27a;
  --display: "IM Fell English SC", "Iowan Old Style", Georgia, serif;
  --body: "Alegreya", "Iowan Old Style", Georgia, serif;
  --pixel: "Pixelify Sans", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font: 400 1.075rem/1.62 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--gold-hi); }
h3 { font-size: 1.45rem; color: var(--parchment); }
p { margin: 0; }
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--pixel);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blood);
}
.lede { color: var(--ash); max-width: 62ch; font-size: 1.15rem; }
section { padding-block: clamp(56px, 9vw, 104px); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; }

/* Top bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(17,14,23,.92); }
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: rgba(17,14,23,.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 20px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 30px; height: 30px; image-rendering: pixelated; border-radius: 6px; }
.brand span { font-family: var(--display); font-size: 1.3rem; color: var(--gold-hi); }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; font-family: var(--pixel); font-size: .9rem; }
.nav a { color: var(--ash); text-decoration: none; }
.nav a:hover { color: var(--gold-hi); }
@media (max-width: 720px) { .nav { display: none; } .bar .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .95rem/1 var(--pixel);
  padding: 12px 18px; border-radius: 6px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-blood { background: var(--blood); color: #fff7f2; box-shadow: 0 3px 0 #7e1e2b; }
.btn-blood:hover { filter: brightness(1.1); }
.btn-ghost { border-color: var(--line); color: var(--parchment); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.bar .btn { padding: 9px 14px; font-size: .85rem; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 30%; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(17,14,23,.35) 0%, rgba(17,14,23,0) 18%, rgba(17,14,23,.15) 38%, rgba(17,14,23,.86) 62%, var(--night) 100%);
}
.hero .wrap { padding-block: clamp(230px, 34vw, 430px) clamp(48px, 8vw, 88px); display: grid; gap: 26px; justify-items: start; }
.wordmark { width: min(560px, 100%); image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0,0,0,.6)); }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tagline { line-height: 1.25; font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: var(--parchment); max-width: 26ch; }
.tagline em { color: var(--blood); font-style: normal; }
.tagline b { color: var(--gold); font-weight: 400; }
.pills { font-family: var(--pixel); color: var(--ash); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.pills span + span::before { content: "•"; color: #6b6f78; margin-right: 12px; }

.join { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.ip {
  display: flex; align-items: center; gap: 14px;
  background: rgba(27,23,34,.9); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 8px 8px 16px; min-width: 0;
}
.ip-label { font-family: var(--pixel); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); display: block; }
.ip code { font-family: var(--mono); font-size: 1.15rem; color: var(--gold-hi); word-break: break-all; user-select: all; }
.ip button { flex: none; background: var(--stone-2); color: var(--parchment); border: 1px solid var(--line); border-radius: 6px; font: 600 .85rem/1 var(--pixel); padding: 10px 12px; cursor: pointer; }
.ip button:hover { border-color: var(--gold); }
.fine { font-size: .92rem; color: var(--ash); }

/* Facts strip */
.facts { border-bottom: 1px solid var(--line); background: var(--stone); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 22px; gap: 16px; }
.fact b { display: block; font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.fact span { color: var(--ash); font-size: .95rem; }
@media (max-width: 720px) { .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Races */
.races { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.race { padding: clamp(22px, 4vw, 40px); display: grid; gap: 14px; align-content: start; }
.race.human { background: linear-gradient(160deg, rgba(233,185,122,.13), transparent 70%), var(--stone); }
.race.vampire { background: linear-gradient(200deg, rgba(206,54,72,.18), transparent 70%), var(--stone); border-left: 1px solid var(--line); }
.race h3 { font-size: 2rem; }
.race.human h3 { color: var(--gold-hi); }
.race.vampire h3 { color: #f06a7a; }
.race ul { margin: 0; padding-left: 1.1em; color: var(--parchment); display: grid; gap: 6px; }
.race li::marker { color: var(--ash); }
@media (max-width: 720px) { .races { grid-template-columns: 1fr; } .race.vampire { border-left: 0; border-top: 1px solid var(--line); } }

/* Feature ledger */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.entry { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.entry svg { width: 32px; height: 32px; grid-row: span 2; margin-top: 4px; }
.entry p { color: var(--ash); }
.entry code, .cmd { font-family: var(--mono); font-size: .85em; color: var(--gold); }
@media (max-width: 760px) { .ledger { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--stone); }
.gallery figure.wide { grid-column: 1 / -1; aspect-ratio: 1800 / 560; }
.gallery figure:not(.wide) { aspect-ratio: 1100 / 570; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; font-family: var(--pixel); font-size: .85rem; color: var(--parchment); background: linear-gradient(transparent, rgba(17,14,23,.88)); }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } .gallery figure.wide { aspect-ratio: 16 / 7; } }

/* Worlds */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--pixel); font-weight: 400; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); background: var(--stone); }
td:first-child { font-family: var(--display); font-size: 1.2rem; color: var(--gold-hi); white-space: nowrap; }
td.num { font-family: var(--mono); font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
td { color: var(--parchment); }

/* Season */
.season { background: radial-gradient(ellipse at 80% 20%, rgba(206,54,72,.2), transparent 60%), var(--stone); border-block: 1px solid var(--line); }
.season .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.season blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.4; color: var(--parchment); border-left: 2px solid var(--blood); padding-left: 20px; }
.clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.clock div { background: var(--night); border: 1px solid var(--line); border-radius: 8px; padding: 14px 6px; text-align: center; }
.clock b { display: block; font: 700 clamp(1.6rem, 4vw, 2.3rem)/1 var(--mono); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.clock span { font-family: var(--pixel); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.points { display: flex; flex-wrap: wrap; gap: 8px; }
.points span { font-family: var(--mono); font-size: .82rem; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; color: var(--parchment); }
.points span b { color: var(--gold); font-weight: 600; }
@media (max-width: 820px) { .season .wrap { grid-template-columns: 1fr; } }

/* Rules */
.ladder { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; counter-reset: s; }
.ladder li { list-style: none; font-family: var(--mono); font-size: .8rem; font-size: .85rem; padding: 7px 12px; border-radius: 6px; background: var(--stone); border: 1px solid var(--line); counter-increment: s; }
.ladder li::before { content: counter(s) " "; color: var(--gold); }
.ladder li:nth-child(4), .ladder li:nth-child(5) { border-color: rgba(206,54,72,.6); }
.ladder { padding: 0; margin-top: 0; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
details { border: 1px solid var(--line); border-radius: 8px; background: var(--stone); }
summary { cursor: pointer; padding: 14px 16px; font-family: var(--display); font-size: 1.2rem; color: var(--parchment); display: flex; gap: 12px; align-items: baseline; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .n { font-family: var(--mono); font-size: .9rem; color: var(--blood); min-width: 1.6em; }
summary::after { content: "+"; margin-left: auto; font-family: var(--pixel); color: var(--ash); }
details[open] summary::after { content: "−"; }
details .body { padding: 0 16px 16px 50px; color: var(--ash); display: grid; gap: 8px; }
details .pen { color: var(--gold); font-family: var(--pixel); font-size: .88rem; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } details .body { padding-left: 16px; } }

/* Vote + store */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: var(--stone); padding: clamp(20px, 3.5vw, 32px); display: grid; gap: 16px; align-content: start; }
.panel ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.soon { justify-self: start; font-family: var(--pixel); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--night); background: var(--gold); padding: 4px 10px; border-radius: 4px; }
.tiers { display: grid; gap: 0; }
.tier { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.tier b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--gold-hi); }
.tier .price { font-family: var(--mono); color: var(--parchment); font-variant-numeric: tabular-nums; }
.tier p { grid-column: 1 / -1; color: var(--ash); font-size: .95rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Discord band */
.discord { text-align: left; }
.discord .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.discord p { color: var(--ash); max-width: 52ch; }

footer { border-top: 1px solid var(--line); color: var(--ash); font-size: .9rem; }
footer .wrap { padding-block: 32px; display: grid; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--stone-2); border: 1px solid var(--gold); color: var(--parchment); font-family: var(--pixel); padding: 10px 16px; border-radius: 6px; z-index: 20; }

/* Duskreign theme: serif chronicle headings, warm book prose, pixel UI tags, and hairline-ruled ledgers. */
:root {
  --ash: #b8b1c4;
  --display: "IM Fell English SC", "Iowan Old Style", Georgia, serif;
  --body: "Alegreya", "Iowan Old Style", Georgia, serif;
  --pixel: "Pixelify Sans", ui-monospace, monospace;
  --wrap: 1040px;
}
[hidden] { display: none !important; }
body {
  font: 400 1.12rem/1.62 var(--body);
  background: var(--night);
}
code, .cmd {
  font-family: var(--mono);
  font-size: .82em;
  color: var(--gold-hi);
  background: rgba(36, 31, 45, .85);
  border: 1px solid rgba(233, 185, 122, .2);
  padding: 1px 6px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
main:focus { outline: none; }
section, [id] { scroll-margin-top: 90px; }
section { padding-block: clamp(40px, 6vw, 68px); }
.compact { padding-top: 0; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 30; padding: 12px 20px; background: var(--gold-hi); color: var(--night); }
.skip:focus { top: 12px; }
.pixel-art { image-rendering: pixelated; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: wrap; letter-spacing: .01em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.5rem); color: var(--gold-hi); margin-bottom: 12px; }
h3 { font-size: 1.35rem; color: var(--parchment); }
.wrap > p { max-width: 68ch; color: var(--ash); margin-bottom: 16px; }
.wrap > p a, .wrap > p + p a { font-family: inherit; }

/* Navigation & Buttons */
.btn, button, .nav a { min-height: 44px; }
.nav { align-items: center; font-size: .92rem; gap: 4px 16px; }
.nav a { display: inline-flex; align-items: center; transition: color .15s ease; }
.nav a[aria-current="page"] { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--blood); text-decoration-thickness: 2px; }
.menu-toggle { display: none; }
.btn { border-radius: 4px; transition: border-color .15s ease, background-color .15s ease; }
.btn-blood { background: #b82839; border: 1px solid #e04d5e; box-shadow: 0 2px 0 #68141f; color: #fff; }
.btn-blood:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(27, 23, 34, .75); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(36, 31, 45, .9); }
.text-link { display: inline-block; padding-block: 6px; font-family: var(--pixel); font-size: .92rem; color: var(--gold); text-decoration: none; }
.text-link:hover { color: var(--gold-hi); text-decoration: underline; }

/* Hero */
.hero .wrap { padding-block: clamp(56px, 8vw, 104px) 56px; gap: 18px; }
.hero::after {
  background:
    linear-gradient(90deg, rgba(17,14,23,.92) 0%, rgba(17,14,23,.68) 55%, rgba(17,14,23,.25) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(17,14,23,.45) 45%, rgba(17,14,23,.3) 100%);
}
.hero > img { object-position: 65% 30%; }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wordmark { width: min(420px, 88vw); height: auto; image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0,0,0,.75)); }
.hero .tagline { font-family: var(--display); font-size: clamp(1.38rem, 2.5vw, 1.78rem); max-width: 34ch; line-height: 1.3; color: var(--parchment); }
.hero .fine { max-width: 62ch; font-size: .98rem; }

.hero-status {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(24, 20, 31, .9); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 4px; padding: 5px 12px; font-family: var(--pixel); font-size: .84rem; color: var(--parchment);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 1px;
  background: var(--gold);
}
.hero-status.is-online { border-color: var(--line); border-left-color: #5ce080; }
.hero-status.is-online .status-dot { background: #5ce080; }

/* Join IP Cards */
.join { gap: 14px; }
.ip {
  background: rgba(24, 20, 31, .94);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 10px 10px 16px;
  box-shadow: none;
}
.ip-java { border-left: 3px solid var(--gold); }
.ip-bedrock { border-left: 3px solid var(--blood); }
.ip code { background: none; border: 0; padding: 0; font-size: 1.08rem; }
.ip button { min-height: 44px; border-radius: 4px; transition: border-color .15s ease, background-color .15s ease; }
.ip button:hover { background: #2f283b; border-color: var(--gold); color: var(--gold-hi); }
.ip-actions { display: flex; gap: 6px; align-items: center; }
.btn-direct-bedrock {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: #b82839;
  color: #fff; border: 1px solid #e04d5e; border-radius: 4px;
  font: 600 .85rem/1 var(--pixel); padding: 10px 12px; text-decoration: none; cursor: pointer; min-height: 44px;
}
.btn-direct-bedrock:hover { filter: brightness(1.08); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 2px; }
.hero-actions .btn { justify-content: center; }

/* Races: single joined panel with center rule */
.races {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 20px;
}
.race {
  border-radius: 0; padding: clamp(22px, 3.5vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: none;
}
.race.human {
  background: linear-gradient(160deg, rgba(233, 185, 122, .11), transparent 65%), var(--stone);
  border: 0;
  border-top: 3px solid var(--gold);
}
.race.vampire {
  background: linear-gradient(200deg, rgba(206, 54, 72, .15), transparent 65%), var(--stone);
  border: 0;
  border-left: 1px solid var(--line);
  border-top: 3px solid var(--blood);
}
.race-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.race h3 { font-size: 1.85rem; margin: 0; }
.race.human h3 { color: var(--gold-hi); }
.race.vampire h3 { color: #ff7a8a; }
.race-badge {
  font-family: var(--pixel); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 3px; border: 1px solid var(--line);
}
.badge-human { color: var(--gold-hi); background: rgba(233, 185, 122, .1); border-color: rgba(233, 185, 122, .35); }
.badge-vampire { color: #ff9aa6; background: rgba(206, 54, 72, .12); border-color: rgba(206, 54, 72, .4); }
.race ul { margin: 0; padding-left: 1.2em; color: var(--parchment); display: grid; gap: 8px; }
.race.human li::marker { color: var(--gold); }
.race.vampire li::marker { color: var(--blood); }
.race-hud-preview {
  margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex; align-items: center; gap: 14px;
}
.race-hud-preview img {
  width: 146px; height: auto; object-fit: contain;
  border-radius: 4px; border: 1px solid var(--line); background: #141219; flex: none;
}
.race-hud-preview span { font-size: .92rem; color: var(--ash); line-height: 1.35; }

/* Hairline-ruled ledgers (instead of uniform card boxes) */
.plain-list { margin: 0 0 14px; padding-left: 1.2em; display: grid; gap: 10px; max-width: 72ch; color: var(--ash); }
.plain-list b { color: var(--parchment); font-weight: 700; }

.feature-cards, .features-bento {
  list-style: none; padding: 0; max-width: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}
.feature-cards li, .features-bento li {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0;
  color: var(--ash);
  transition: none;
}
.feature-cards li:hover, .features-bento li:hover {
  border-color: var(--line);
  transform: none;
}
.feature-cards li b, .features-bento li b {
  display: block; font-family: var(--body); font-weight: 700; font-size: 1.16rem;
  color: var(--gold-hi); margin-bottom: 4px;
}

/* Custom Pixel Art Showcase Strip */
.art-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-top: 24px;
}
.art-card {
  margin: 0; background: var(--stone); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column;
}
.art-frame {
  background: #16131f; border-bottom: 1px solid var(--line);
  height: 132px; display: flex; align-items: center; justify-content: center; padding: 14px;
}
.art-frame img { max-height: 104px; width: auto; max-width: 100%; object-fit: contain; }
.art-card figcaption { padding: 14px 16px; display: grid; gap: 4px; }
.art-card figcaption b { font-family: var(--pixel); font-size: .98rem; color: var(--parchment); }
.art-card figcaption span { font-size: .92rem; color: var(--ash); line-height: 1.4; }

/* Gallery */
.gallery figure { border-radius: 4px; box-shadow: none; }
.gallery figcaption { font-family: var(--pixel); font-size: .88rem; }

/* Live Map Callout */
.callout-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--stone);
  border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 4px;
  padding: 22px 26px; box-shadow: none;
}
.callout-text h2 { margin-bottom: 6px; font-size: 1.65rem; color: var(--gold-hi); }
.callout-text p { color: var(--ash); margin: 0; max-width: 60ch; }
.callout-card .btn { flex: none; }

/* Season 1 Banner + Countdown */
.season {
  background: var(--stone);
  border-block: 1px solid var(--line);
  padding-block: clamp(44px, 5.5vw, 64px);
}
.season .wrap {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center;
}
.season-copy { display: grid; gap: 12px; }
.season-copy p { color: var(--ash); max-width: 60ch; }
.season h2 { margin-bottom: 0; }
.points { margin-top: 4px; }
.points span { background: var(--night); border-radius: 4px; }
.season-clock-wrap { display: grid; gap: 10px; }
.season-clock-wrap .fine { text-align: center; margin: 0; font-size: .9rem; }

/* Updates & Changelog */
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head-row h2 { margin: 0; }
.update-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.update-card {
  background: var(--stone); border: 1px solid var(--line); border-top: 3px solid var(--blood);
  border-radius: 4px; padding: 20px; display: flex; flex-direction: column; align-items: start; gap: 10px;
  transition: border-color .15s ease;
}
.update-card:hover { border-color: rgba(233, 185, 122, .45); border-top-color: var(--blood); }
time { font-family: var(--mono); font-size: .78rem; color: var(--ash); }
.update-card h3 { font-size: 1.32rem; }
.update-card h3 a { color: var(--parchment); text-decoration: none; }
.update-card h3 a:hover { color: var(--gold-hi); }
.update-card p { color: var(--ash); font-size: 1rem; }
.update-card .text-link { margin-top: auto; padding-block: 2px; }

.changelog { max-width: 840px; }
.changelog article {
  background: var(--stone); border: 1px solid var(--line); border-radius: 4px;
  padding: 24px 28px; margin-bottom: 18px;
}
.changelog h2 { font-size: 1.6rem; margin-block: 6px 14px; color: var(--gold-hi); }
.changelog ul { display: grid; gap: 9px; padding-left: 1.2em; color: var(--ash); margin: 0; }
.changelog li::marker { color: var(--blood); }
.changelog p { margin-block: 12px 0; color: var(--ash); }
.changelog h3 { font-size: 1.2rem; margin-top: 20px; }
.changelog strong { color: var(--parchment); }

/* Subpages: Getting Started, Rules, Trader Prices */
.page-intro { padding-block: 48px 28px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(27, 23, 34, .65), transparent); margin-bottom: 12px; }
.page-intro .wrap { display: grid; gap: 14px; justify-items: start; }
.page-intro h1, .section-head h1 { font-size: clamp(2.1rem, 5vw, 2.8rem); color: var(--gold-hi); }
.page-intro p { color: var(--ash); }
.inline-ip { margin: 6px 0 18px; }
#steps-heading + ol, #bedrock ol { padding-left: 1.4em; display: grid; gap: 10px; color: var(--ash); max-width: 72ch; margin: 0 0 14px; }
#steps-heading + ol li::marker, #bedrock ol li::marker { color: var(--gold); font-family: var(--mono); font-weight: 700; }
.faq { display: grid; gap: 10px; max-width: 840px; }
.faq details { transition: border-color .15s ease; }
.faq details[open] { border-color: rgba(233, 185, 122, .45); }
.faq .body { padding-left: 16px; }
.rules .n { color: #f06a7a; }
.rules summary { min-height: 54px; }
#voting ul {
  list-style: none; padding: 0; margin: 14px 0 16px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
#voting li a {
  display: inline-flex; align-items: center; padding: 10px 16px;
  background: var(--stone); border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--pixel); font-size: .9rem; color: var(--gold-hi); text-decoration: none;
  transition: border-color .15s ease;
}
#voting li a:hover { border-color: var(--gold); }

/* Trader prices & interactive filter pills */
.table-filter {
  display: flex; align-items: center; gap: 12px; margin: 8px 0 16px;
  font-family: var(--pixel); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ash);
}
.table-filter input {
  flex: 1; max-width: 440px; min-height: 44px; padding: 8px 14px;
  font: 400 1.05rem/1.4 var(--body); letter-spacing: normal; text-transform: none;
  color: var(--parchment); background: var(--stone); border: 1px solid var(--line); border-radius: 4px;
}
.table-filter input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.trader-controls { display: grid; gap: 10px; margin-bottom: 24px; }
.trader-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-btn {
  min-height: 36px; padding: 6px 13px; border-radius: 4px;
  background: var(--stone); border: 1px solid var(--line); color: var(--ash);
  font: 600 .84rem/1 var(--pixel); cursor: pointer; transition: border-color .14s ease, color .14s ease, background-color .14s ease;
}
.pill-btn:hover { border-color: var(--gold); color: var(--parchment); }
.pill-btn.is-active { background: #b82839; border-color: #e04d5e; color: #fff; }
#trader-prices h2 { margin: 28px 0 14px; color: var(--gold-hi); }
#trader-prices tr[hidden] { display: none; }
#trader-prices tbody tr:hover { background: rgba(255, 255, 255, .03); }

/* Discord & Footer */
.discord { border-top: 1px solid var(--line); background: var(--stone); padding-block: 44px; }
.discord h2 { font-size: 1.85rem; margin-bottom: 6px; }
.footer-inner { grid-template-columns: 1fr auto; gap: 24px !important; }
.footer-inner nav { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: start; }
.footer-inner nav a { padding-block: 8px; }
.disclaimer { grid-column: 1 / -1; font-size: .82rem; }

@media (max-width: 960px) and (min-width: 721px) {
  .bar .wrap { gap: 12px; }
  .nav { font-size: .8rem; gap: 4px 12px; }
}
@media (max-width: 820px) {
  .season .wrap, .art-strip, .update-previews { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bar .wrap { flex-wrap: wrap; gap: 10px; }
  .brand { margin-right: auto; }
  .bar .btn { margin-left: 0; }
  .header-discord { order: 2; }
  .menu-toggle:not([hidden]) { display: inline-flex; order: 3; min-width: 64px; justify-content: center; }
  .nav { order: 4; width: 100%; margin: 0; display: flex; flex-wrap: wrap; gap: 0; }
  .nav a { width: 50%; padding: 12px; border-top: 1px solid var(--line); }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  .hero .wrap { padding-block: 44px 48px; gap: 16px; }
  .join { width: 100%; }
  .ip { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-left: 12px; }
  .ip code { font-size: 1rem; }
  .races { grid-template-columns: 1fr; }
  .race.vampire { border-left: 0; border-top: 1px solid var(--line); }
  .feature-cards, .features-bento { grid-template-columns: 1fr; gap: 0; }
  .page-intro { padding-block: 36px 24px; }
  .section-head-row { align-items: start; flex-direction: column; gap: 6px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { gap: 4px 24px; }
  .gallery figure.wide { aspect-ratio: 16/9; }
  .gallery figcaption { font-size: .8rem; }
  .changelog article { padding: 18px 20px; }
}

/* Command quick-reference */
.command-search-wrap { margin-bottom: 12px; }
.command-input {
  width: 100%; max-width: 460px; min-height: 44px; padding: 10px 14px;
  font: 400 1.05rem/1.4 var(--body); color: var(--parchment);
  background: var(--stone); border: 1px solid var(--line); border-radius: 4px;
  transition: border-color .15s ease;
}
.command-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(233, 185, 122, .2); }
.command-pills, .creature-pills, .grimoire-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.command-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.command-card {
  background: var(--stone); border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .14s ease;
}
.command-card:hover { border-color: rgba(233, 185, 122, .42); }
.command-card[hidden], .school-group[hidden], .creature-card[hidden] { display: none !important; }
.cmd-head { display: flex; justify-content: space-between; align-items: center; }
.copy-cmd {
  cursor: pointer; font-family: var(--mono); color: var(--gold-hi); font-weight: 700;
  padding: 2px 7px; border-radius: 3px; background: rgba(38, 31, 50, .85);
  border: 1px solid rgba(233, 185, 122, .25); transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
.copy-cmd:hover { border-color: var(--gold-hi); background: rgba(206, 54, 72, .25); color: #fff; }
.cmd-badge {
  font-size: .72rem; font-family: var(--pixel); text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 3px; background: rgba(255, 255, 255, .05); color: var(--ash);
}
.cmd-desc { margin: 0; font-size: .98rem; color: var(--ash); line-height: 1.42; }

/* Grimoire */
.grimoire-tabs .pill-btn img { vertical-align: -2px; margin-right: 4px; }
.school-group { margin-top: 24px; display: grid; gap: 14px; }
.school-header { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.school-header h3 { margin: 0; font-size: 1.4rem; color: var(--gold-hi); }
.school-meta { margin: 2px 0 0; font-size: .95rem; color: var(--ash); }
.spells-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.spell-card {
  background: var(--stone); border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 5px;
  transition: border-color .14s ease;
}
.spell-card:hover { border-color: rgba(233, 185, 122, .4); }
.spell-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.spell-card-head h4 { margin: 0; font-family: var(--body); font-weight: 700; font-size: 1.08rem; color: #fff; }
.spell-req { font-family: var(--mono); font-size: .75rem; color: var(--gold); background: rgba(233, 185, 122, .12); padding: 1px 6px; border-radius: 3px; }
.spell-stats { display: flex; gap: 10px; font-size: .78rem; font-family: var(--mono); color: var(--ash); }
.spell-desc { margin: 0; font-size: .95rem; color: #ddd7e6; line-height: 1.38; }

/* Bestiary & Wild Creatures */
.bestiary-loot-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.loot-card { background: var(--stone); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; }
.loot-title { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.loot-title h3 { margin: 0; font-size: 1.2rem; color: var(--gold-hi); }
.loot-card p { margin: 0; font-size: .96rem; color: var(--ash); line-height: 1.48; }
.bestiary-study-callout {
  background: var(--stone); border-left: 3px solid var(--gold); border-radius: 0 4px 4px 0;
  padding: 10px 14px; margin-bottom: 16px; font-size: .98rem; color: var(--parchment);
}
.creatures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.creature-card {
  background: var(--stone); border: 1px solid var(--line); border-radius: 4px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .14s ease;
}
.creature-card:hover { border-color: rgba(233, 185, 122, .42); }
.creature-head { display: flex; justify-content: space-between; align-items: center; }
.creature-head h4 { margin: 0; font-family: var(--body); font-weight: 700; font-size: 1.12rem; color: #fff; }
.rarity-mark { font-family: var(--pixel); font-weight: 700; margin-right: 2px; }
.rarity-badge { font-size: .72rem; font-family: var(--pixel); font-weight: 600; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: .04em; }
.rarity-common { color: #c8ccd2; background: rgba(200, 204, 210, .14); border: 1px solid rgba(200, 204, 210, .3); }
.rarity-uncommon { color: #6fcf6a; background: rgba(111, 207, 106, .14); border: 1px solid rgba(111, 207, 106, .35); }
.rarity-rare { color: #5aa8f0; background: rgba(90, 168, 240, .14); border: 1px solid rgba(90, 168, 240, .35); }
.rarity-legendary { color: #f0b94a; background: rgba(240, 185, 74, .18); border: 1px solid rgba(240, 185, 74, .5); }
.creature-meta { display: flex; gap: 10px; font-size: .88rem; color: var(--ash); }
.creature-role { color: var(--gold); }
.creature-skill { margin: 0; font-size: .96rem; color: var(--parchment); line-height: 1.4; }
.creature-lore { margin: 0; font-size: .92rem; color: #9c94aa; font-style: italic; line-height: 1.38; }
.creature-shards { font-size: .8rem; font-family: var(--mono); color: var(--ash); padding-top: 4px; border-top: 1px dashed rgba(255, 255, 255, .08); }
.creature-shards b { color: var(--gold-hi); }

/* Guide / Wiki additions */
.guide-nav-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.guide-nav-pills .pill-btn { text-decoration: none; color: var(--ash); display: inline-flex; align-items: center; }
.guide-nav-pills .pill-btn:hover { color: #fff; border-color: var(--gold); }
.guide-callout {
  background: var(--stone); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 4px; padding: 14px 18px; margin-top: 18px;
}
.guide-callout p { margin: 0; color: var(--parchment); font-size: 1rem; }
.guide-callout a { color: var(--gold-hi); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.showcase-strip-banner {
  display: flex; justify-content: center; align-items: center; background: #14111b;
  border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; margin: 10px 0 18px;
}
.showcase-strip-banner img { max-width: 100%; height: auto; }
.items-grid, .relics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.wayfarer-card, .relic-card {
  background: var(--stone); border: 1px solid var(--line); border-radius: 4px;
  padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start;
  transition: border-color .14s ease;
}
.wayfarer-card:hover, .relic-card:hover { border-color: rgba(233, 185, 122, .42); }
.item-card-icon {
  flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: rgba(36, 31, 45, .8); border: 1px solid rgba(255, 255, 255, .08); border-radius: 4px;
}
.item-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item-card-head { display: flex; justify-content: space-between; align-items: center; }
.item-card-head h4 { margin: 0; font-family: var(--body); font-weight: 700; font-size: 1.08rem; color: #fff; }
.item-desc { margin: 0; font-size: .95rem; color: var(--ash); line-height: 1.4; }
.relic-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-family: var(--mono); color: var(--ash); }
.relic-type { color: var(--ash); }
.relic-enchants { margin: 2px 0 0; font-size: .82rem; font-family: var(--mono); color: var(--gold); line-height: 1.35; }
.item-lore { margin: 2px 0 0; font-size: .92rem; color: #9c94aa; font-style: italic; line-height: 1.35; }
.relic-theme-crimson { border-left: 3px solid #ea9292; }
.relic-theme-eclipse { border-left: 3px solid #7fd4e0; }
.relic-theme-sovereign { border-left: 3px solid #f0c75a; }


