:root {
  --bg: #0b080b;
  --bg-deep: #070507;
  --panel: #151015;
  --panel-raised: #1b1419;
  --line: #34252c;
  --line-bright: #5a3942;
  --text: #f2e9e5;
  --muted: #b8a8a7;
  --accent: #c32d4b;
  --accent-dark: #7f172d;
  --gold: #c8a86b;
  --plum: #79566f;
  --ok: #6cc28b;
  --off: #e0646f;
  --radius: 4px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(105, 25, 43, .16), transparent 28rem),
    radial-gradient(circle at 88% 32%, rgba(70, 42, 67, .14), transparent 32rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 34rem);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image: repeating-linear-gradient(115deg, transparent 0 7px, rgba(255,255,255,.016) 7px 8px);
}

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #d8b4fe; outline-offset: 3px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* --- header ------------------------------------------------------------- */

header.site {
  border-bottom: 1px solid rgba(200, 168, 107, .16);
  margin-bottom: 48px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 6, 9, .9);
  backdrop-filter: blur(18px);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .025em;
}

.brand::before {
  content: 'M';
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 16px;
  transform: rotate(45deg);
  line-height: 1;
}

.brand::before { text-shadow: 0 0 16px rgba(200, 168, 107, .42); }

nav.site {
  display: flex;
  gap: 20px;
  margin-left: auto;
  flex-wrap: wrap;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  letter-spacing: .025em;
}
.menu-toggle { display: none; min-height: 44px; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 14px; font: inherit; margin-left: auto; }

nav.site a:hover,
nav.site a[aria-current="page"] { color: var(--text); }

nav.site a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.tagline {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 16px;
}

.hero-copy { max-width: 700px; margin: 0 0 32px; font-size: 17px; }
.hero-copy strong { color: var(--text); }

/* --- join box ----------------------------------------------------------- */

.join {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 40px;
}

.join-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

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

.join-host {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 600;
  word-break: break-all;
}

button.copy {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

button.copy:hover { color: var(--text); border-color: var(--accent); }

/* --- status ------------------------------------------------------------- */

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.status[data-state="online"] .dot { background: var(--ok); }
.status[data-state="offline"] .dot { background: var(--off); }
.status[data-state="online"] strong { color: var(--text); }

/* --- generic content ---------------------------------------------------- */

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
}

h3 { font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; margin: 28px 0 8px; }

p, li { color: #c9c5d6; }

/* Numbered rules: the title leads, the explanation follows. */
ol li + li { margin-top: 14px; }
li strong { color: var(--text); }

a { color: var(--accent); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  box-shadow: 0 14px 38px rgba(0,0,0,.12);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.card:hover { border-color: var(--line-bright); background: var(--panel-raised); transform: translateY(-2px); }

.card strong { display: block; color: var(--text); margin-bottom: 4px; }
.card strong { overflow-wrap: anywhere; }
.card span { color: var(--muted); font-size: 14px; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

.note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}

.note.warn { border-left-color: var(--off); }
.note p { margin: 0; }
.note p + p { margin-top: 10px; }

.note-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.note.warn .note-label { color: var(--off); }

/* --- character wiki ----------------------------------------------------- */

.card.player .roster {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}

/* The quote on a character card. Clamped so one long line can't make a card
   twice the height of the ones beside it. */
.cards .card span:first-of-type {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pill {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

/* Judgement's threat scale, coldest to hottest. */
.pill.threat-negligible { color: #7dd3a0; border-color: #2c5341; }
.pill.threat-low        { color: #cbd47f; border-color: #4e5330; }
.pill.threat-standard   { color: #f0b46b; border-color: #5f4526; }
.pill.threat-high       { color: #f59e6b; border-color: #6a3d22; }
.pill.threat-priority   { color: #fca5a5; border-color: #6b2f2f; background: rgba(248, 113, 113, 0.09); }
/* Not a rung on the scale, so it reads as neutral rather than hot or cold. */
.pill.threat-variable   { color: #c4a5f7; border-color: #46325f; }

/* Short fields as chips; long ones fall to .detail below. */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 4px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 15px;
  color: #c9c5d6;
}

.stat b {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2px;
}

.stat.threat-negligible { border-color: #2c5341; }
.stat.threat-low        { border-color: #4e5330; }
.stat.threat-standard   { border-color: #5f4526; }
.stat.threat-high       { border-color: #6a3d22; }
.stat.threat-priority   { border-color: #6b2f2f; }
.stat.threat-variable   { border-color: #46325f; }

.detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 12px 0;
}

.detail b {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 5px;
}

.detail p { margin: 0; }

/* --- spoilers ----------------------------------------------------------- */

/* Content the player hid behind Discord spoiler bars. Concealed until clicked
   or focused, so publishing the sheet doesn't publish the twist. */
.spoiler {
  background: var(--text);
  color: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.spoiler * { visibility: hidden; }

.spoiler:hover { background: var(--muted); }

.spoiler:focus,
.spoiler.revealed {
  background: var(--panel);
  color: inherit;
}

.spoiler:focus *,
.spoiler.revealed * { visibility: visible; }

/* --- changelog ---------------------------------------------------------- */

.views {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 8px;
}

.views button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 15px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.views button:hover { color: var(--text); border-color: var(--accent); }

.views button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.view-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 8px;
}

.release {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.release strong { color: var(--text); }

.scroller { overflow-x: auto; margin: 16px 0 24px; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 15px;
}

th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 8px 14px 8px 0;
  vertical-align: bottom;
}

td {
  color: #c9c5d6;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px 10px 0;
  vertical-align: top;
}

th:last-child, td:last-child { padding-right: 0; }
td strong { color: var(--text); }
td code { white-space: nowrap; }

details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 12px 0;
}

details[open] { padding-bottom: 20px; }
summary { cursor: pointer; color: var(--text); font-weight: 600; }
summary:hover { color: var(--accent); }
details > *:not(summary) { margin-top: 14px; }

/* --- forms -------------------------------------------------------------- */

form.appeal { max-width: 560px; }

label {
  display: block;
  margin: 20px 0 6px;
  font-size: 14px;
  color: var(--muted);
}

input, textarea, select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 13px;
  font: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { min-height: 140px; resize: vertical; }

button.submit {
  margin-top: 24px;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 12px 26px;
  cursor: pointer;
}

button.submit:hover { filter: brightness(1.1); }
button:disabled { opacity: .65; cursor: wait; }
.field-count { display: block; text-align: right; color: var(--muted); font-size: 12px; margin-top: 4px; }

.status-page { max-width: 760px !important; }
.status-page > .section-kicker { display: block; margin-bottom: 12px; }
.status-lookup-panel { margin: 32px 0; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.status-lookup { padding: 26px; }
.status-lookup label { margin-top: 0; }
.status-lookup-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.status-lookup-row input { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.status-lookup-row .primary-button { white-space: nowrap; }
.status-lookup .view-note { margin-top: 10px; }
.appeal-status-result { border-top: 1px solid var(--line); padding: 26px; background: linear-gradient(135deg, rgba(195,45,75,.08), transparent); }
.appeal-status-result[data-state="error"] { background: rgba(224,100,111,.06); }
.status-result-label { color: var(--gold); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.appeal-status-result h2 { margin: 8px 0 8px; font-size: 32px; }
.appeal-status-result p { margin: 0; }
.appeal-status-result .view-note { margin-top: 16px; }

.breadcrumbs { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.breadcrumbs a { color: var(--muted); }
.page-actions, .pager { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.secondary-button { min-height: 44px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 8px; padding: 9px 14px; font: inherit; cursor: pointer; text-decoration: none; }
.primary-button { min-height: 44px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.primary-button:hover { filter: brightness(1.1); }

/* --- Phase 1: atmospheric homepage ------------------------------------- */

.home header.site { margin-bottom: 0; }
.home-main { padding-bottom: 24px; overflow-x: clip; }
.home-main > section { position: relative; }
body:not(.home) main.wrap { max-width: 860px; }

.home-hero {
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 82px;
  isolation: isolate;
}

.home-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(64vw, 680px);
  aspect-ratio: 1;
  right: -13%;
  top: 2%;
  border: 1px solid rgba(200, 168, 107, .16);
  border-radius: 50%;
  box-shadow: inset 0 0 100px rgba(195, 45, 75, .06), 0 0 0 50px rgba(200,168,107,.018), 0 0 0 51px rgba(200,168,107,.06);
}

.home-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: 7%;
  top: 21%;
  width: 190px;
  height: 330px;
  border: 1px solid rgba(195, 45, 75, .22);
  border-top-left-radius: 110px;
  border-top-right-radius: 110px;
  background: linear-gradient(180deg, rgba(195,45,75,.07), transparent 75%);
  box-shadow: 0 0 80px rgba(195,45,75,.08);
}

.hero-kicker, .section-kicker, .fate-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
}

.hero-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.hero-kicker span { width: 36px; height: 1px; background: var(--accent); }

.home-hero h1 {
  max-width: 720px;
  margin: 0 0 20px;
  font-size: clamp(58px, 10vw, 112px);
  line-height: .76;
  font-weight: 500;
  letter-spacing: -.055em;
}

.home-hero h1 span, .home-hero h1 em { display: block; }
.home-hero h1 em { color: var(--accent); font-size: .53em; font-weight: 400; margin: .32em 0 0 1.65em; letter-spacing: .06em; }
.home-hero .tagline { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: clamp(20px, 3vw, 27px); font-style: italic; margin-bottom: 18px; }
.home-hero .hero-copy { max-width: 650px; color: #d4c8c4; font-size: 17px; line-height: 1.75; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }
.hero-actions .primary-button, .hero-actions .secondary-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 0; }
.hero-facts li { min-width: 185px; padding: 0 26px; border-left: 1px solid var(--line); }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.hero-facts span { color: var(--muted); font-size: 12px; margin-top: 2px; }

.home-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(33,22,28,.94), rgba(17,12,16,.96));
  box-shadow: var(--shadow);
  margin: 28px 0 118px;
}

.join-feature { margin: 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; padding: 34px; }
.join-feature .section-kicker { display: block; margin-bottom: 28px; }
.join-feature .join-label { color: var(--muted); }
.join-feature .join-host { font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 4vw, 31px); color: var(--text); }
.join-feature button.copy { border-color: var(--line-bright); color: var(--text); padding: 8px 13px; }
.join-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.join-meta span { border: 1px solid var(--line); color: var(--muted); padding: 4px 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.entry-callout { padding: 34px; align-self: center; }
.entry-callout h2 { margin: 10px 0 14px; font-size: clamp(25px, 4vw, 34px); line-height: 1.2; }
.entry-callout p { margin: 0 0 20px; }
.text-link { color: var(--text); text-underline-offset: 5px; text-decoration-color: var(--accent); font-weight: 700; }
.text-link span { color: var(--accent); margin-left: 6px; }

.story-section, .path-section, .explore-section { margin-bottom: 118px; }
.section-heading { max-width: 650px; margin-bottom: 34px; }
.section-heading.compact { margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; margin: 10px 0 14px; }
.section-heading p { font-size: 17px; margin: 0; }

.fate-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.fate-card { position: relative; min-height: 330px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--panel); }
.fate-card + .fate-card { border-left: 1px solid var(--line); }
.fate-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 100% 0, var(--fate-glow), transparent 58%); opacity: .7; }
.fate-card.vampire { --fate-glow: rgba(181, 32, 61, .32); }
.fate-card.werewolf { --fate-glow: rgba(121, 86, 111, .32); }
.fate-card.human { --fate-glow: rgba(200, 168, 107, .26); }
.fate-number { color: rgba(242,233,229,.16); font: italic 42px/1 Georgia, serif; }
.fate-card h3 { color: var(--text); font-size: 30px; margin: 5px 0 8px; }
.fate-card p { margin: 0; font-size: 14px; }

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; counter-reset: none; padding: 0; margin: 0; }
.step-grid li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line-bright); }
.step-grid li + li { margin: 0; }
.step-grid li > span { color: var(--accent); font: 18px/1 Georgia, serif; padding-top: 4px; }
.step-grid strong { display: block; color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.step-grid p { margin: 6px 0 0; font-size: 14px; }

.feature-cards { grid-template-columns: repeat(4, 1fr); }
.feature-cards .card { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; padding-top: 60px; }
.feature-cards .card-index { position: absolute; top: 20px; left: 20px; color: var(--accent); font-family: Georgia, "Times New Roman", serif; }
.feature-cards .card strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }

.home footer.site { background: rgba(7,5,7,.7); }

.character-tools { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 22px 0; }
.character-tools .tool-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; }
.character-tools label { margin: 0 0 4px; }
.character-results { margin-top: 18px; }
.active-filter { color: var(--muted); font-size: 14px; }
.threat-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.timeline { list-style: none; padding: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 20px 22px; }
.timeline li::before { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); left: -6px; top: 8px; }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  header.site { margin-bottom: 32px; }
  header.site .wrap { flex-wrap: nowrap; }
  .menu-toggle { display: block; }
  nav.site { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; margin: 0; }
  nav.site.open { display: grid; }
  nav.site a { border-bottom: 1px solid var(--line); }
  .brand { font-size: 15px; gap: 8px; white-space: nowrap; }
  .brand::before { width: 30px; height: 30px; font-size: 14px; }
  header.site .wrap { gap: 12px; }
  .character-tools .tool-grid { grid-template-columns: 1fr; }
  .status-lookup-row { grid-template-columns: 1fr; }
  .card.player .roster { max-height: 4.5em; overflow: hidden; }
  .home-hero { min-height: auto; padding: 76px 0 64px; }
  .home-hero::before { width: 420px; right: -55%; top: 8%; }
  .home-hero::after { display: none; }
  .home-hero h1 { font-size: clamp(52px, 17vw, 76px); }
  .home-hero h1 em { margin-left: .8em; }
  .hero-facts { display: grid; gap: 16px; }
  .hero-facts li, .hero-facts li:first-child { border-left: 1px solid var(--line); padding-left: 14px; }
  .home-entry { grid-template-columns: 1fr; margin-bottom: 82px; }
  .join-feature { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 22px; }
  .entry-callout { padding: 26px 22px; }
  .story-section, .path-section, .explore-section { margin-bottom: 82px; }
  .fate-grid, .step-grid { grid-template-columns: 1fr; }
  .fate-card { min-height: 240px; }
  .fate-card + .fate-card { border-left: 0; border-top: 1px solid var(--line); }
  .feature-cards { grid-template-columns: 1fr; }
  .feature-cards .card { min-height: 150px; }
}

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