:root {
  --night: #080b10;
  --night-soft: #101722;
  --panel: rgba(12, 17, 25, 0.86);
  --panel-strong: rgba(8, 11, 16, 0.94);
  --paper: #e8d2a1;
  --paper-soft: #f4e6c3;
  --ink: #f9edcf;
  --ink-muted: #c9b995;
  --coal: #17130f;
  --gold: #d6a73a;
  --gold-soft: #ffe29a;
  --ember: #be4830;
  --cyan: #4fb6c5;
  --forest: #2f6c4f;
  --violet: #7060b8;
  --line: rgba(255, 226, 154, 0.22);
  --line-strong: rgba(255, 226, 154, 0.48);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.38);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(rgba(255, 226, 154, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 226, 154, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #07090d 0%, #101722 42%, #241a10 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

figure {
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: 5rem;
}

h2 {
  margin-bottom: 18px;
  font-size: 3rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

p {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1220px, calc(100% - 32px));
  min-height: 70px;
  padding-top: var(--safe-top);
  transform: translateX(-50%);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: calc(8px + var(--safe-top)) -10px 8px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.78);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
}

.brand__sigil {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 800;
}

.brand__name,
.nav-links a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav-links a {
  padding: 10px 11px;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 226, 154, 0.12);
}

.hero {
  position: relative;
  min-height: 880px;
  overflow: hidden;
  background: #05070a;
}

.hero__backdrop,
.hero__scrim {
  position: absolute;
  inset: 0;
}

.hero__backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__scrim {
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.9), rgba(5, 7, 10, 0.56) 46%, rgba(5, 7, 10, 0.2)),
    linear-gradient(180deg, rgba(5, 7, 10, 0.7), rgba(5, 7, 10, 0.12) 45%, rgba(5, 7, 10, 0.88) 100%);
}

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  gap: 44px;
  align-items: end;
  width: min(1220px, calc(100% - 32px));
  min-height: 880px;
  margin: 0 auto;
  padding: 160px 0 96px;
}

.hero__tagline {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--gold-soft);
  font-size: 1.45rem;
  font-weight: 900;
}

.release-note {
  display: inline-flex;
  max-width: 680px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 226, 154, 0.34);
  border-radius: 6px;
  background: rgba(8, 11, 16, 0.72);
  color: var(--paper-soft);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

.hero__lede {
  max-width: 710px;
  margin-bottom: 28px;
  color: rgba(249, 237, 207, 0.88);
  font-size: 1.13rem;
}

.hero__lede--compact {
  max-width: 760px;
  margin-top: -12px;
  font-size: 1rem;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__actions,
.online-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.button--primary {
  border-color: rgba(255, 226, 154, 0.36);
  background: linear-gradient(180deg, #e0b449, #a86f20);
  color: #130c04;
  box-shadow: 0 14px 32px rgba(168, 111, 32, 0.26);
}

.button--ghost {
  border-color: rgba(249, 237, 207, 0.42);
  background: rgba(249, 237, 207, 0.12);
  color: var(--ink);
}

.button--quiet {
  border-color: rgba(79, 182, 197, 0.42);
  background: rgba(79, 182, 197, 0.12);
  color: #d8f7fb;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.command-panel {
  align-self: end;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.command-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.command-panel__bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: rgba(255, 226, 154, 0.16);
}

.command-panel__bar span {
  display: grid;
  min-height: 44px;
  place-items: center;
  background: rgba(8, 11, 16, 0.9);
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 800;
  text-align: center;
}

.origin-section,
.assets-section,
.playable-section,
.fog-section,
.signals-section,
.glossary-section,
.loop-section,
.combat-section,
.screens-section,
.online-section {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.origin-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 38px;
  padding: 88px 0 52px;
}

.legend-section {
  margin: 24px 0 0;
  padding: 76px 0;
  border-top: 1px solid rgba(214, 167, 58, 0.36);
  border-bottom: 1px solid rgba(214, 167, 58, 0.26);
  background:
    linear-gradient(rgba(69, 42, 22, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 42, 22, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #f0dfb8 0%, #d7b673 54%, #8d5d2f 100%);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow:
    inset 0 32px 80px rgba(32, 18, 8, 0.42),
    inset 0 -28px 70px rgba(32, 18, 8, 0.3);
}

.legend-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: start;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.legend-section h2 {
  color: #2e1b10;
}

.legend-section .eyebrow {
  color: #6f421d;
}

.legend-section__copy p {
  color: #4f3320;
  font-size: 1.05rem;
}

.legend-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.legend-gallery figure {
  overflow: hidden;
  border: 1px solid rgba(46, 27, 16, 0.28);
  border-radius: 8px;
  background: #21140c;
  box-shadow: 0 18px 38px rgba(46, 27, 16, 0.26);
}

.legend-gallery__wide {
  grid-column: 1 / -1;
}

.legend-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.legend-gallery figure:not(.legend-gallery__wide) img {
  aspect-ratio: 4 / 3;
}

.legend-gallery figcaption {
  min-height: 58px;
  margin: 0;
  padding: 12px 14px;
  color: #ead8ad;
  font-size: 0.9rem;
  line-height: 1.42;
}

.mechanic-strip {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mechanic-strip article {
  min-height: 146px;
  padding: 18px;
  border: 1px solid rgba(46, 27, 16, 0.26);
  border-radius: 8px;
  background: rgba(255, 249, 232, 0.46);
}

.mechanic-strip strong {
  display: block;
  margin-bottom: 10px;
  color: #2e1b10;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.2;
}

.mechanic-strip span {
  display: block;
  color: #50341f;
  font-size: 0.94rem;
  line-height: 1.48;
}

.assets-section {
  padding: 82px 0 56px;
}

.asset-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 28px;
}

.asset-showcase figure,
.asset-manual-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.72);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.26);
}

.asset-showcase img,
.asset-manual-grid img {
  width: 100%;
  object-fit: cover;
}

.asset-showcase__feature img {
  height: 100%;
  min-height: 520px;
}

.asset-showcase figcaption,
.asset-manual-grid figcaption {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 14px 16px;
  color: var(--ink-muted);
  line-height: 1.46;
}

.asset-showcase figcaption strong,
.asset-manual-grid figcaption strong {
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 1.08rem;
}

.asset-showcase figcaption span {
  display: block;
}

.asset-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.asset-showcase__grid img {
  aspect-ratio: 16 / 10;
}

.spell-strip {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.spell-strip article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(79, 182, 197, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(79, 182, 197, 0.13), transparent 52%),
    rgba(8, 11, 16, 0.72);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.spell-strip img {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.32));
}

.spell-strip strong,
.spell-strip span {
  display: block;
}

.spell-strip strong {
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 1rem;
}

.spell-strip span {
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.asset-manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.asset-manual-grid img {
  aspect-ratio: 16 / 9;
}

.section-copy {
  max-width: 760px;
}

.section-copy--wide {
  max-width: 920px;
  margin-bottom: 32px;
}

.answer-grid,
.minute-list,
.signal-grid,
.glossary-grid,
.combat-row,
.screen-grid {
  display: grid;
  gap: 12px;
}

.answer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: end;
}

.answer-grid article,
.signal-grid article,
.loop-list li,
.minute-list li,
.glossary-grid article,
.combat-row article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 226, 154, 0.08), rgba(255, 226, 154, 0.025)),
    var(--panel);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.answer-grid article {
  min-height: 168px;
  padding: 20px;
}

.answer-grid strong,
.combat-row strong,
.loop-list strong,
.minute-list strong,
.glossary-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.2;
}

.answer-grid span,
.combat-row span,
.loop-list span,
.minute-list span,
.glossary-grid span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.playable-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 44px;
  align-items: center;
  padding: 70px 0 78px;
}

.playable-section__copy p {
  font-size: 1.02rem;
}

.minute-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.minute-list li {
  min-height: 150px;
  padding: 16px;
}

.minute-list .minute-list__number {
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
}

.minute-list strong {
  font-size: 1.08rem;
}

.minute-list span:not(.minute-list__number) {
  font-size: 0.9rem;
}

.playable-shot {
  overflow: hidden;
  border: 1px solid rgba(79, 182, 197, 0.42);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.playable-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.playable-shot figcaption {
  margin: 0;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.fog-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  padding: 82px 0;
}

.fog-section__image {
  overflow: hidden;
  border: 1px solid rgba(79, 182, 197, 0.42);
  border-radius: 8px;
  background: #031019;
  box-shadow: var(--shadow);
}

.fog-section__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.fog-section__copy p {
  font-size: 1.04rem;
}

.signals-section,
.glossary-section,
.combat-section,
.screens-section {
  padding: 72px 0;
}

.signal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-grid article {
  min-height: 270px;
  padding: 20px;
}

.signal-grid__number {
  display: block;
  margin-bottom: 34px;
  color: var(--gold-soft);
  font-size: 0.88rem;
  font-weight: 900;
}

.signal-grid p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.glossary-section {
  padding-top: 42px;
}

.glossary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glossary-grid article {
  min-height: 168px;
  padding: 20px;
}

.glossary-grid strong {
  color: var(--gold-soft);
}

.loop-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: center;
  padding: 78px 0;
}

.loop-section__media {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0b1118;
  box-shadow: var(--shadow);
}

.loop-section__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.loop-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.loop-list li {
  padding: 18px 20px;
}

.combat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.combat-row article {
  min-height: 150px;
  padding: 22px;
}

.screen-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screen-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.screen-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.screen-grid figcaption {
  min-height: 70px;
  margin: 0;
  padding: 14px 16px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.online-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 80px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(79, 182, 197, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(12, 17, 25, 0.98), rgba(15, 34, 31, 0.94));
  box-shadow: var(--shadow);
}

.online-section h2,
.online-section p {
  margin-bottom: 0;
}

.online-section__actions {
  justify-content: flex-end;
}

.online-section__actions span {
  display: block;
  max-width: 300px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.site-footer {
  display: grid;
  min-height: 86px;
  place-items: center;
  padding: 0 16px calc(16px + var(--safe-bottom));
  border-top: 1px solid rgba(255, 226, 154, 0.12);
  background: rgba(5, 7, 10, 0.94);
}

.site-footer p {
  margin: 0;
  color: rgba(249, 237, 207, 0.68);
  font-size: 0.9rem;
}

.manual-body {
  background:
    linear-gradient(rgba(255, 226, 154, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 226, 154, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, #07090d 0%, #121927 46%, #21170d 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

.manual-body .site-header::before {
  background: rgba(8, 11, 16, 0.94);
}

.manual-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 136px 0 80px;
}

.manual-document {
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 17, 25, 0.96), rgba(15, 19, 24, 0.94)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.manual-document h1 {
  font-size: 4rem;
}

.manual-document h2 {
  margin-top: 46px;
  font-size: 2rem;
}

.manual-document h3 {
  margin-top: 34px;
}

.manual-document h1,
.manual-document h2,
.manual-document h3 {
  scroll-margin-top: 96px;
}

.manual-document section {
  scroll-margin-top: 96px;
}

.manual-lede {
  max-width: 760px;
  color: var(--paper-soft);
  font-size: 1.14rem;
}

.manual-figure {
  overflow: hidden;
  margin: 20px 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #091018;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.manual-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.manual-figure figcaption {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.manual-document li,
.manual-document td,
.manual-document th {
  color: var(--ink-muted);
  line-height: 1.55;
}

.manual-document li + li {
  margin-top: 8px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.guide-steps li,
.scenario-strip article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(249, 237, 207, 0.07);
}

.guide-steps li {
  min-height: 132px;
  padding: 16px;
}

.guide-steps strong,
.guide-steps span {
  display: block;
}

.guide-steps strong {
  margin-bottom: 8px;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.guide-steps span {
  color: var(--ink-muted);
  line-height: 1.5;
}

.scenario-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.scenario-strip article {
  min-height: 214px;
  padding: 16px;
}

.scenario-strip article > span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 42px;
  place-items: center;
  border: 1px solid rgba(79, 182, 197, 0.56);
  border-radius: 50%;
  color: #d8f7fb;
  font-weight: 900;
}

.scenario-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 1.08rem;
}

.scenario-strip p {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.48;
}

.manual-document table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.manual-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.manual-document th,
.manual-document td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 226, 154, 0.14);
  text-align: left;
  vertical-align: top;
}

.manual-document th {
  color: var(--paper-soft);
  background: rgba(255, 226, 154, 0.12);
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.manual-grid--resources {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.manual-grid article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(249, 237, 207, 0.08);
}

.manual-grid strong,
.manual-grid span {
  display: block;
}

.manual-grid strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--paper-soft);
}

.manual-grid span {
  color: var(--ink-muted);
  line-height: 1.5;
}

.catalog-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.catalog-grid--factions,
.catalog-grid--heroes,
.catalog-grid--towns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-grid--roster,
.catalog-grid--actions,
.catalog-grid--items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 226, 154, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent, var(--gold)) 18%, transparent), transparent 44%),
    rgba(249, 237, 207, 0.07);
}

.catalog-note {
  max-width: 780px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 226, 154, 0.16);
  border-radius: 8px;
  background: rgba(249, 237, 207, 0.06);
  color: rgba(249, 237, 207, 0.82);
  font-size: 0.94rem;
}

.catalog-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--card-accent, var(--gold));
}

.catalog-card__top,
.action-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.catalog-sigil {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--gold)) 72%, white 12%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), transparent 38%),
    color-mix(in srgb, var(--card-accent, var(--gold)) 26%, #080b10);
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.catalog-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.32));
}

.catalog-kicker {
  color: color-mix(in srgb, var(--card-accent, var(--gold)) 48%, var(--paper-soft));
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.catalog-card h4 {
  margin: 16px 0 6px;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 1.34rem;
  line-height: 1.12;
}

.catalog-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.52;
}

.catalog-card__subtitle {
  color: color-mix(in srgb, var(--card-accent, var(--gold)) 36%, var(--ink-muted));
  font-weight: 800;
}

.catalog-card__meta {
  margin-top: 14px;
}

.catalog-card__meta strong {
  display: block;
  margin-bottom: 7px;
  color: var(--paper-soft);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.catalog-card__meta--quiet strong {
  color: color-mix(in srgb, var(--card-accent, var(--gold)) 40%, var(--ink-muted));
}

.manual-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.manual-pill-row span,
.action-card__footer > span,
.catalog-more {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(255, 226, 154, 0.16);
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.34);
  color: rgba(249, 237, 207, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.resource-token {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 226, 154, 0.18);
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.38);
  color: rgba(249, 237, 207, 0.9);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.1;
}

.resource-token strong {
  margin: 0;
  color: var(--paper-soft);
  font-size: 0.86rem;
  line-height: 1;
}

.resource-token span {
  margin: 0;
}

.resource-token__icon {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.32));
}

.resource-token--gold {
  border-color: rgba(255, 226, 154, 0.32);
  background: rgba(214, 167, 58, 0.14);
}

.resource-token--wood {
  border-color: rgba(102, 151, 95, 0.35);
  background: rgba(47, 108, 79, 0.18);
}

.resource-token--stone {
  border-color: rgba(188, 194, 191, 0.25);
  background: rgba(126, 132, 129, 0.14);
}

.resource-token--mana,
.resource-token--action {
  border-color: rgba(79, 182, 197, 0.34);
  background: rgba(79, 182, 197, 0.13);
}

.cost-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cost-stack {
  display: grid;
  gap: 8px;
}

.labeled-cost {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 226, 154, 0.12);
  border-radius: 7px;
  background: rgba(8, 11, 16, 0.25);
}

.labeled-cost > span {
  color: rgba(249, 237, 207, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0;
}

.hero-stat-grid span {
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: 6px 4px;
  border: 1px solid rgba(255, 226, 154, 0.14);
  border-radius: 6px;
  background: rgba(8, 11, 16, 0.34);
  color: rgba(201, 185, 149, 0.86);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.hero-stat-grid em {
  color: var(--paper-soft);
  font-style: normal;
  line-height: 1;
}

.hero-stat-grid strong {
  margin-bottom: 3px;
  color: var(--paper-soft);
  font-size: 1rem;
  line-height: 1;
}

.action-card,
.roster-card {
  --card-accent: var(--cyan);
}

.action-card--claim_action,
.roster-card--pressure_strike {
  --card-accent: var(--ember);
}

.action-card--temporal_action,
.action-card--world_op_action,
.roster-card--rhythm_strike,
.roster-card--surge_strike {
  --card-accent: var(--violet);
}

.action-card--fog_action,
.action-card--mobility_action,
.roster-card--rally_strike,
.roster-card--expose_strike {
  --card-accent: var(--cyan);
}

.roster-card--guarded_strike,
.roster-card--pierce_strike,
.roster-card--basic_strike {
  --card-accent: var(--gold);
}

.action-card__footer {
  justify-content: flex-start;
  margin-top: 14px;
}

.action-card__footer .cost-badges {
  flex: 1 1 100%;
}

.town-card__read {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 4px;
}

.town-card__read span {
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 226, 154, 0.14);
  border-radius: 7px;
  background: rgba(8, 11, 16, 0.28);
  color: rgba(201, 185, 149, 0.86);
  font-size: 0.74rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.town-card__read strong {
  color: var(--paper-soft);
  font-size: 1.1rem;
  line-height: 1;
}

.item-card--travel {
  --card-accent: var(--forest);
}

.item-card--portal,
.item-card--fog {
  --card-accent: var(--cyan);
}

.item-card--combat {
  --card-accent: var(--ember);
}

.item-card--economy {
  --card-accent: var(--gold);
}

.item-card--world,
.item-card--passive {
  --card-accent: var(--violet);
}

.manual-card--accent {
  border-top: 3px solid var(--card-accent, var(--gold));
}

.manual-card--veilwalker_guild {
  --card-accent: #06b6d4;
}

.manual-card--order_of_chronos {
  --card-accent: #a855f7;
}

.manual-card--human_kingdom {
  --card-accent: #4169e1;
}

.manual-card--undead_legion {
  --card-accent: #4b0082;
}

.manual-card em {
  display: block;
  margin-top: 12px;
  color: rgba(255, 226, 154, 0.74);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.45;
}

.manual-document td strong,
.manual-document td span {
  display: block;
}

.manual-document td strong {
  color: var(--paper-soft);
}

.manual-document td span {
  margin-top: 4px;
  color: rgba(201, 185, 149, 0.82);
  font-size: 0.88rem;
}

.manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.screenshot-callouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.screenshot-callouts figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.68);
}

.screenshot-callouts img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.screenshot-callouts figcaption {
  min-height: 94px;
  margin: 0;
  padding: 14px 16px;
  color: var(--ink-muted);
  line-height: 1.48;
}

.screenshot-callouts figcaption strong {
  color: var(--paper-soft);
}

.faq-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.faq-list details {
  padding: 14px 16px;
}

.faq-list summary,
.reference-catalog summary,
.catalog-section summary,
.catalog-subsection summary {
  cursor: pointer;
  color: var(--paper-soft);
  font-weight: 900;
}

.faq-list p {
  margin: 10px 0 0;
}

.reference-catalog {
  margin-top: 18px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.36);
}

.catalog-section,
.catalog-subsection {
  border-bottom: 1px solid rgba(255, 226, 154, 0.12);
}

.catalog-section:last-child,
.catalog-subsection:last-child {
  border-bottom: 0;
}

.catalog-section > summary,
.catalog-subsection > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}

.catalog-subsection {
  margin-top: 12px;
  padding: 0 0 12px;
}

.catalog-subsection > summary {
  min-height: 42px;
  padding: 0;
  color: color-mix(in srgb, var(--gold) 44%, var(--paper-soft));
}

.catalog-section > p,
.catalog-section > .catalog-grid,
.catalog-subsection > .catalog-grid {
  margin-right: 8px;
  margin-left: 8px;
}

.catalog-section > p {
  max-width: 780px;
}

.catalog-subsection small {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 226, 154, 0.18);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.74rem;
}

@media (max-width: 1120px) {
  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero,
  .hero__content {
    min-height: 820px;
  }

  .hero__content,
  .origin-section,
  .asset-showcase,
  .legend-section__inner,
  .playable-section,
  .fog-section,
  .loop-section,
  .online-section {
    grid-template-columns: 1fr;
  }

  .command-panel {
    max-width: 680px;
  }

  .answer-grid,
  .asset-showcase__grid,
  .spell-strip,
  .mechanic-strip,
  .signal-grid,
  .glossary-grid,
  .combat-row,
  .screen-grid,
  .scenario-strip,
  .catalog-grid--roster,
  .catalog-grid--actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .online-section__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    width: min(100% - 24px, 1220px);
  }

  .site-header::before {
    left: -6px;
    right: -6px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .hero__content {
    min-height: 760px;
  }

  .hero__content {
    padding-top: 118px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero__tagline {
    font-size: 1.16rem;
  }

  .hero__lede {
    font-size: 1rem;
  }

  .hero__actions,
  .online-section__actions {
    display: grid;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .command-panel__bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .command-panel__bar span {
    min-height: 40px;
    padding: 0 4px;
    font-size: 0.74rem;
  }

  .origin-section,
  .assets-section,
  .legend-section,
  .playable-section,
  .fog-section,
  .signals-section,
  .glossary-section,
  .loop-section,
  .combat-section,
  .screens-section {
    padding: 48px 0;
  }

  .answer-grid,
  .asset-showcase,
  .asset-showcase__grid,
  .spell-strip,
  .asset-manual-grid,
  .mechanic-strip,
  .minute-list,
  .signal-grid,
  .glossary-grid,
  .guide-steps,
  .scenario-strip,
  .screenshot-callouts,
  .combat-row,
  .screen-grid,
  .catalog-grid--factions,
  .catalog-grid--heroes,
  .catalog-grid--roster,
  .catalog-grid--actions {
    grid-template-columns: 1fr;
  }

  .answer-grid article,
  .mechanic-strip article,
  .signal-grid article,
  .glossary-grid article,
  .guide-steps li,
  .scenario-strip article,
  .minute-list li,
  .combat-row article {
    min-height: 0;
  }

  .scenario-strip article > span {
    margin-bottom: 18px;
  }

  .fog-section__image img {
    aspect-ratio: 4 / 3;
  }

  .asset-showcase__feature img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .playable-shot img {
    aspect-ratio: 4 / 3;
  }

  .online-section {
    padding: 22px;
  }

  .manual-page {
    padding-top: 112px;
  }

  .manual-document {
    padding: 22px;
  }

  .manual-document h1 {
    font-size: 3rem;
  }

  .manual-document h1,
  .manual-document h2,
  .manual-document h3,
  .manual-document section {
    scroll-margin-top: 0;
  }

  .manual-grid {
    grid-template-columns: 1fr;
  }

  .hero-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .legend-section {
    padding: 48px 0;
  }

  .legend-gallery {
    grid-template-columns: 1fr;
  }

  .legend-gallery__wide {
    grid-column: auto;
  }
}
