:root {
  --font-game: "Thaleah Fat", "Segoe UI", system-ui, sans-serif;
  --ink: #080705;
  --coal: #14100d;
  --coal-2: #211a14;
  --brown-black: #17110d;
  --paper: #e1d0a7;
  --muted-paper: #baa982;
  --bone: #f0dfb6;
  --wax: #9e302b;
  --wax-bright: #c74a39;
  --brass: #c79a45;
  --moss: #60715d;
  --verdigris: #6ea58d;
  --fog: #b4b8a4;
  --line: rgba(225, 208, 167, 0.22);
  --shadow: rgba(0, 0, 0, 0.58);
  --max: 1180px;
}

@font-face {
  font-family: "Thaleah Fat";
  src:
    local("ThaleahFat"),
    local("Thaleah Fat"),
    url("assets/fonts/ThaleahFat_TTF.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(8, 7, 5, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  color: var(--bone);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted-paper);
  font-size: 0.95rem;
}

.topbar nav a {
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--bone);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  padding: 96px 32px 76px;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 7, 5, 0.54);
  box-shadow: inset 0 -160px 120px var(--ink), inset 0 120px 120px rgba(0, 0, 0, 0.45);
}

.hero-ministry::before {
  background-image: url("assets/images/UI_Background_Title_Dungeon.png");
}

.hero-map::before {
  background-image: url("assets/images/RunMap_CinderCrown_BG_Draft_v2_clean.png");
}

.hero-copy {
  width: min(760px, 100%);
  margin: 0 auto 0 max(0px, calc((100vw - var(--max)) / 2));
}

.hero-copy.wide {
  width: min(860px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.6rem;
  line-height: 0.96;
}

h2 {
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 1.08;
}

h3 {
  color: var(--bone);
  font-size: 1.08rem;
}

.lead {
  max-width: 720px;
  color: var(--paper);
  font-size: 1.25rem;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta-row.compact {
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 168px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--bone);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px var(--shadow);
}

.button.primary {
  background: var(--wax);
  border-color: rgba(255, 210, 180, 0.25);
}

.button.primary:hover {
  background: var(--wax-bright);
}

.button.secondary {
  background: rgba(20, 16, 13, 0.86);
}

.button.secondary:hover {
  border-color: var(--brass);
}

.fineprint {
  margin-top: 16px;
  color: var(--muted-paper);
  font-size: 0.94rem;
}

.hero-seal {
  position: absolute;
  right: max(32px, calc((100vw - var(--max)) / 2));
  bottom: 62px;
  width: min(320px, calc(100vw - 64px));
  padding: 18px;
  background: rgba(20, 16, 13, 0.82);
  border: 1px solid rgba(199, 154, 69, 0.46);
  border-radius: 8px;
  box-shadow: 0 18px 42px var(--shadow);
}

.hero-seal span,
.hero-seal small,
.label {
  display: block;
  color: var(--muted-paper);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hero-seal strong {
  display: block;
  margin: 8px 0;
  color: var(--bone);
  font-size: 1.15rem;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.brief,
.status-panel,
.systems-grid article,
.route-steps article,
.mockup-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 17, 13, 0.88);
  box-shadow: 0 16px 42px var(--shadow);
}

.brief {
  min-height: 230px;
  padding: 24px;
}

.number,
.route-steps span,
.tile-kicker {
  color: var(--verdigris);
  font-weight: 900;
  text-transform: uppercase;
}

.brief p,
.text-block p,
.route-steps p,
.systems-grid p,
.status-panel p,
.test-table span,
.mockup-tile span {
  color: var(--fog);
  line-height: 1.55;
}

.split-section,
.figure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}

.text-block {
  max-width: 600px;
}

.plain-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: var(--paper);
}

.asset-rack {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 12px;
  padding: 20px;
  background: rgba(8, 7, 5, 0.42);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.asset-rack img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 10px;
  background: rgba(225, 208, 167, 0.07);
  border: 1px solid rgba(225, 208, 167, 0.12);
  border-radius: 6px;
}

.download-band {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: #1d1510;
  border: 1px solid rgba(199, 154, 69, 0.42);
  border-radius: 8px;
  box-shadow: 0 18px 42px var(--shadow);
}

.download-band p {
  max-width: 680px;
  color: var(--fog);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 28px;
  color: var(--muted-paper);
  border-top: 1px solid var(--line);
}

.footer a {
  text-decoration: none;
}

.land-strip {
  width: min(var(--max), calc(100% - 48px));
  margin: -42px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 3;
}

.land-strip article {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brown-black);
  box-shadow: 0 18px 42px var(--shadow);
}

.land-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.land-strip div {
  padding: 18px;
}

.land-strip span {
  display: block;
  color: var(--brass);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.land-strip p {
  color: var(--fog);
  line-height: 1.5;
}

.route-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 26px;
}

.route-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.route-steps article {
  min-height: 150px;
  padding: 18px;
}

.portrait-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.portrait-grid figure {
  margin: 0;
  padding: 12px;
  background: rgba(225, 208, 167, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portrait-grid img {
  aspect-ratio: 1;
  object-fit: contain;
}

.portrait-grid figcaption {
  min-height: 42px;
  padding-top: 10px;
  color: var(--paper);
  font-size: 0.9rem;
  text-align: center;
}

.campaign-band {
  background: #172015;
}

.dossier {
  background:
    linear-gradient(rgba(8, 7, 5, 0.76), rgba(8, 7, 5, 0.92)),
    url("assets/images/UI_Background_Shop.png") center / cover fixed;
}

.dossier-hero {
  width: min(var(--max), calc(100% - 48px));
  min-height: 52vh;
  margin: 0 auto;
  padding: 92px 0 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
}

.dossier-title h1 {
  font-size: 4rem;
}

.dossier-actions {
  display: grid;
  gap: 12px;
}

.docket-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.status-panel {
  padding: 20px;
  min-height: 174px;
}

.status-panel strong {
  display: block;
  margin: 8px 0;
  color: var(--bone);
  font-size: 1.18rem;
}

.systems-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  align-items: start;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.systems-grid article {
  min-height: 260px;
  padding: 16px;
}

.systems-grid img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 16px;
}

.test-table-section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 72px;
}

.table-head {
  margin-bottom: 18px;
}

.test-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(20, 16, 13, 0.88);
}

.test-table [role="row"] {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 64px;
  border-top: 1px solid var(--line);
}

.test-table [role="row"]:first-child {
  border-top: 0;
}

.test-table span {
  display: flex;
  align-items: center;
  padding: 14px 18px;
}

.test-table span:first-child {
  color: var(--brass);
  font-weight: 800;
  background: rgba(158, 48, 43, 0.16);
}

.dossier-band {
  background: #20130f;
}

.index-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(rgba(8, 7, 5, 0.66), rgba(8, 7, 5, 0.92)),
    url("assets/images/UI_Background_Title_Mural.png") center / cover;
}

.mockup-index {
  width: min(900px, 100%);
}

.index-lead {
  color: var(--fog);
  font-size: 1.15rem;
}

.mockup-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.mockup-tile {
  min-height: 160px;
  padding: 22px;
  text-decoration: none;
}

.mockup-tile strong {
  display: block;
  margin: 10px 0;
  color: var(--bone);
  font-size: 1.3rem;
}

.command-board {
  min-height: 100vh;
  background:
    linear-gradient(rgba(8, 7, 5, 0.68), rgba(8, 7, 5, 0.86)),
    url("assets/images/UI_Background_Title_Dungeon.png") center / cover fixed;
}

.board-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 310px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
}

.board-nav,
.board-main,
.board-side article,
.board-bottom,
.case-cover,
.case-tabs,
.map-node,
.route-intel article,
.route-download {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 16, 13, 0.84);
  box-shadow: 0 18px 42px var(--shadow);
}

.board-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.board-nav a {
  text-decoration: none;
}

.board-nav a:not(.brand),
.board-nav span {
  color: var(--muted-paper);
  font-size: 0.94rem;
}

.board-main {
  display: grid;
  align-content: end;
  min-height: calc(100vh - 36px);
  padding: 38px;
  background:
    linear-gradient(rgba(20, 16, 13, 0.18), rgba(20, 16, 13, 0.86)),
    url("assets/images/RunMap_CinderCrown_BG_Draft_v2_clean.png") center / cover;
}

.board-main h1 {
  max-width: 820px;
  font-size: 4.2rem;
  overflow-wrap: anywhere;
}

.board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.board-side {
  display: grid;
  align-content: stretch;
  gap: 14px;
}

.board-side article {
  display: grid;
  align-content: end;
  min-height: 170px;
  padding: 18px;
}

.board-side strong {
  display: block;
  margin: 8px 0;
  color: var(--bone);
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.board-side p {
  margin-bottom: 0;
  color: var(--fog);
  line-height: 1.5;
}

.board-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px;
}

.board-bottom figure {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(225, 208, 167, 0.12);
  border-radius: 6px;
  background: rgba(225, 208, 167, 0.06);
}

.board-bottom img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.board-bottom figcaption {
  color: var(--paper);
  font-weight: 800;
}

.case-file {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(8, 7, 5, 0.72), rgba(8, 7, 5, 0.9)),
    url("assets/images/UI_Background_PreFight.png") center / cover fixed;
}

.case-shell {
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
}

.case-cover {
  display: grid;
  align-content: end;
  padding: 34px;
  background:
    linear-gradient(rgba(23, 17, 13, 0.36), rgba(23, 17, 13, 0.92)),
    url("assets/images/UI_Background_event_refined_SurvivableLie.png") center / cover;
}

.case-cover h1 {
  font-size: 3.6rem;
}

.case-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.case-tabs {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.case-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.tab-labels label {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-paper);
  background: rgba(8, 7, 5, 0.38);
  cursor: pointer;
  font-weight: 800;
}

#case-tab-brief:checked ~ .tab-labels label[for="case-tab-brief"],
#case-tab-loop:checked ~ .tab-labels label[for="case-tab-loop"],
#case-tab-test:checked ~ .tab-labels label[for="case-tab-test"],
#case-tab-legal:checked ~ .tab-labels label[for="case-tab-legal"] {
  color: var(--bone);
  border-color: rgba(199, 154, 69, 0.64);
  background: rgba(158, 48, 43, 0.34);
}

.tab-panels {
  min-height: calc(100% - 62px);
}

.tab-panel {
  display: none;
  min-height: 580px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 7, 5, 0.32);
}

#case-tab-brief:checked ~ .tab-panels .brief-panel,
#case-tab-loop:checked ~ .tab-panels .loop-panel,
#case-tab-test:checked ~ .tab-panels .test-panel,
#case-tab-legal:checked ~ .tab-panels .legal-panel {
  display: grid;
}

.brief-panel {
  grid-template-columns: 1fr 0.9fr;
  align-items: end;
  gap: 18px;
}

.brief-panel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tab-panel p,
.tab-panel li {
  color: var(--fog);
  line-height: 1.6;
}

.loop-panel ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: loop;
}

.loop-panel li {
  counter-increment: loop;
  min-height: 76px;
  padding: 18px 18px 18px 58px;
  position: relative;
  border: 1px solid rgba(225, 208, 167, 0.14);
  border-radius: 6px;
  background: rgba(225, 208, 167, 0.05);
}

.loop-panel li::before {
  content: counter(loop);
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--brass);
  font-weight: 900;
}

.case-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.case-checklist span {
  min-height: 120px;
  display: grid;
  align-content: end;
  padding: 18px;
  color: var(--paper);
  border: 1px solid rgba(225, 208, 167, 0.14);
  border-radius: 6px;
  background: rgba(158, 48, 43, 0.13);
  font-weight: 800;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.legal-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--bone);
  text-decoration: none;
}

.route-map-page {
  background: var(--ink);
}

.route-shell {
  min-height: 100vh;
  background:
    linear-gradient(rgba(8, 7, 5, 0.48), rgba(8, 7, 5, 0.94)),
    url("assets/images/RunMap_IronCensus_BG_Draft.png") center / cover fixed;
}

.route-header {
  position: fixed;
  inset: 18px 18px auto;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 7, 5, 0.78);
  backdrop-filter: blur(8px);
}

.route-header nav {
  display: flex;
  gap: 14px;
}

.route-header a {
  text-decoration: none;
}

.route-map-hero {
  position: relative;
  min-height: 100vh;
  padding: 110px 32px 150px;
}

.map-copy {
  position: absolute;
  left: max(32px, calc((100vw - var(--max)) / 2));
  bottom: 132px;
  width: min(560px, calc(100% - 64px));
}

.map-copy h1 {
  font-size: 3.9rem;
}

.map-node {
  position: absolute;
  width: 210px;
  min-height: 96px;
  display: grid;
  align-content: center;
  padding: 14px;
  text-decoration: none;
  background: rgba(20, 16, 13, 0.86);
}

.map-node span {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-node strong {
  color: var(--bone);
  font-size: 1.02rem;
}

.map-node:hover {
  border-color: rgba(199, 154, 69, 0.72);
  background: rgba(69, 25, 18, 0.92);
}

.node-fight {
  left: 18%;
  top: 24%;
}

.node-shop {
  right: 24%;
  top: 18%;
}

.node-event {
  right: 14%;
  bottom: 34%;
}

.node-boss {
  left: 44%;
  top: 42%;
}

.route-intel {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: 24px;
}

.route-intel article {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  min-height: 190px;
  padding: 18px;
}

.route-intel img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.route-intel p {
  color: var(--fog);
  line-height: 1.5;
}

.route-download {
  position: sticky;
  bottom: 18px;
  z-index: 10;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px;
}

.route-download h2 {
  margin-bottom: 0;
}

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

  .hero {
    min-height: 76vh;
  }

  .hero-seal {
    position: static;
    margin-top: 28px;
  }

  .brief-grid,
  .land-strip,
  .docket-grid,
  .systems-grid,
  .board-bottom,
  .route-intel {
    grid-template-columns: 1fr;
  }

  .split-section,
  .figure-row,
  .route-panel,
  .systems-section,
  .dossier-hero,
  .board-shell,
  .case-shell {
    grid-template-columns: 1fr;
  }

  .board-shell {
    grid-template-rows: auto;
  }

  .board-main {
    min-height: 540px;
  }

  .board-bottom {
    grid-column: auto;
  }

  .case-shell {
    min-height: auto;
  }

  .tab-panel {
    min-height: auto;
  }

  .brief-panel {
    grid-template-columns: 1fr;
  }

  .route-header {
    position: static;
    margin: 0 18px;
    transform: translateY(18px);
  }

  .route-map-hero {
    min-height: auto;
    display: grid;
    gap: 12px;
    padding: 54px 24px 34px;
  }

  .map-copy,
  .map-node {
    position: static;
    width: auto;
  }

  .portrait-grid,
  .route-steps,
  .mockup-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-band {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .topbar nav {
    gap: 12px;
  }

  .hero {
    padding: 72px 24px 52px;
  }

  h1,
  .dossier-title h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .section,
  .land-strip,
  .download-band,
  .docket-grid,
  .dossier-hero,
  .test-table-section,
  .route-intel,
  .route-download {
    width: min(100% - 32px, var(--max));
  }

  .portrait-grid,
  .route-steps,
  .mockup-links,
  .asset-rack,
  .case-checklist,
  .tab-labels {
    grid-template-columns: 1fr;
  }

  .board-shell,
  .case-file {
    padding: 16px;
  }

  .board-main,
  .case-cover,
  .case-tabs {
    padding: 20px;
  }

  .board-main h1,
  .case-cover h1,
  .map-copy h1 {
    font-size: 2.55rem;
  }

  .board-main h1 {
    font-size: 2.22rem;
  }

  .board-bottom figure,
  .route-intel article,
  .route-download {
    grid-template-columns: 1fr;
  }

  .route-download {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .test-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

/* Castle & Compliance Website V1 */

body.site-v1 {
  min-height: 100vh;
  overflow-x: hidden;
  background: #070605;
  color: var(--paper);
  font-family: var(--font-game);
  font-size: 1.14rem;
  line-height: 1.25;
  scroll-snap-type: y mandatory;
}

body.legal-page {
  font-family: var(--font-game);
  font-size: 1.18rem;
  line-height: 1.35;
}

.site-v1 .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 46px);
  background: rgba(8, 7, 5, 0.82);
  border-bottom: 1px solid rgba(225, 208, 167, 0.22);
  backdrop-filter: blur(12px);
}

.site-brand {
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.44rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  color: var(--muted-paper);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--bone);
  border-color: rgba(199, 154, 69, 0.45);
  background: rgba(158, 48, 43, 0.28);
}

.audio-toggle {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--muted-paper);
  background: rgba(20, 16, 13, 0.72);
  border: 1px solid rgba(225, 208, 167, 0.24);
  border-radius: 6px;
  cursor: pointer;
}

.audio-toggle:hover,
.audio-toggle:focus-visible {
  color: var(--bone);
  border-color: rgba(199, 154, 69, 0.58);
  background: rgba(158, 48, 43, 0.26);
  outline: 0;
}

.audio-icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.audio-icon path:not(:first-child) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audio-toggle .icon-muted,
.audio-toggle.is-muted .icon-sound {
  display: none;
}

.audio-toggle.is-muted .icon-muted {
  display: block;
}

.audio-toggle.is-muted {
  color: rgba(186, 169, 130, 0.68);
}

.menu-toggle {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: none;
  place-items: center;
  padding: 8px;
  color: var(--muted-paper);
  background: rgba(20, 16, 13, 0.72);
  border: 1px solid rgba(225, 208, 167, 0.24);
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--bone);
  border-color: rgba(199, 154, 69, 0.58);
  background: rgba(158, 48, 43, 0.26);
  outline: 0;
}

.snap-shell {
  width: 100%;
}

.page-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 92px clamp(18px, 5vw, 72px) 38px;
  isolation: isolate;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.page-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow:
    inset 0 118px 110px rgba(0, 0, 0, 0.5),
    inset 0 -120px 130px rgba(0, 0, 0, 0.54);
}

.section-label {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-lead {
  max-width: 680px;
  color: var(--paper);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.3;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-button {
  min-height: 58px;
  min-width: 198px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  color: var(--bone);
  border: 1px solid rgba(225, 208, 167, 0.25);
  border-radius: 6px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.46);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

button.site-button {
  cursor: pointer;
}

.site-button.primary {
  background: var(--wax);
}

.site-button.secondary {
  background: rgba(20, 16, 13, 0.86);
}

.site-button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.wanted-page {
  --wanted-top-group-left: 47.65%;
  --wanted-stage-height: max(100svh, 56.25vw);
  --wanted-top-visible-offset: 62px;
  --wanted-top-group-top: calc(var(--wanted-top-visible-offset) + (var(--wanted-stage-height) - 100svh) / 2);
  --wanted-top-group-width: min(79.56%, 100svw);
  --wanted-bottom-group-left: 47.38%;
  --wanted-bottom-group-bottom: 7.23%;
  --wanted-bottom-group-width: min(47.14%, 92svw);
  --wanted-top-copy-left: 50.24%;
  --wanted-top-copy-top: 8.94%;
  --wanted-top-copy-width: 91.79%;
  --wanted-top-copy-size: min(4.6cqw, 5.7svw);
  --wanted-bottom-copy-left: 50.1%;
  --wanted-bottom-copy-top: 4.49%;
  --wanted-bottom-copy-width: 69.83%;
  --wanted-bottom-copy-height: 71.9%;
  --wanted-bottom-wants-left: 14.8%;
  --wanted-bottom-wants-top: 50.4%;
  --wanted-bottom-wants-width: 43.2%;
  --wanted-bottom-wants-size: min(6.36cqw, 8.55svw);
  --wanted-bottom-you-left: 82.41%;
  --wanted-bottom-you-top: 51.37%;
  --wanted-bottom-you-width: 48.18%;
  --wanted-bottom-you-size: min(6.25cqw, 8.4svw);
  --wanted-fineprint-right: 10.44%;
  --wanted-fineprint-bottom: 35.13%;
  --wanted-fineprint-width: 31.99%;
  --wanted-fineprint-size: clamp(0.72rem, min(0.6cqw, 0.86svw), 0.96rem);
  padding: 0;
  background: #160f0a;
}

.wanted-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: max(100vw, 177.7778svh);
  height: var(--wanted-stage-height);
  container-type: size;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  translate: -50% -50%;
  visibility: hidden;
}

.wanted-stage.is-wanted-stage-loaded,
body.wanted-editor-active .wanted-stage {
  opacity: 1;
  visibility: visible;
}

.wanted-layer,
.wanted-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wanted-layer {
  display: block;
}

.wanted-layer img {
  object-fit: fill;
  object-position: center;
}

.wanted-bg {
  z-index: 0;
}

.wanted-bg img {
  filter: saturate(0.96) contrast(1.03);
}

.wanted-ribbon-group {
  position: absolute;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
  translate: -50% 0;
}

.wanted-top-group {
  left: var(--wanted-top-group-left);
  top: var(--wanted-top-group-top);
  width: var(--wanted-top-group-width);
  aspect-ratio: 1920 / 1080;
}

.wanted-bottom-group {
  left: var(--wanted-bottom-group-left);
  bottom: var(--wanted-bottom-group-bottom);
  width: var(--wanted-bottom-group-width);
  aspect-ratio: 1640 / 330;
}

.wanted-ribbon-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.wanted-ribbon-art img {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  pointer-events: none;
}

.wanted-top-ribbon-art {
  overflow: visible;
}

.wanted-top-ribbon-art img {
  left: 0;
  top: -1.2%;
  width: 100%;
  height: 124%;
}

.wanted-bottom-ribbon-art img {
  left: -8.5366%;
  top: -213.6364%;
  width: 117.0732%;
}

.wanted-ribbon-copy {
  position: absolute;
  z-index: 4;
  translate: -50% 0;
  color: #2b1508;
  font-family: var(--font-game);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.82;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(246, 211, 151, 0.5),
    0 -1px 0 rgba(83, 35, 12, 0.55),
    2px 2px 0 rgba(94, 43, 18, 0.22);
  text-transform: uppercase;
  white-space: nowrap;
}

.wanted-top-copy {
  left: var(--wanted-top-copy-left);
  top: var(--wanted-top-copy-top);
  width: var(--wanted-top-copy-width);
  translate: -50% -50%;
  font-size: var(--wanted-top-copy-size);
  line-height: 0.78;
}

.wanted-bottom-copy {
  left: var(--wanted-bottom-copy-left);
  top: var(--wanted-bottom-copy-top);
  width: var(--wanted-bottom-copy-width);
  height: var(--wanted-bottom-copy-height);
}

.wanted-bottom-heading {
  position: absolute;
  inset: 0;
  max-width: none;
  margin: 0;
  color: inherit;
  font-family: var(--font-game);
  line-height: 0.62;
}

.wanted-bottom-word {
  position: absolute;
  display: block;
  translate: -50% -50%;
  text-align: center;
}

.wanted-bottom-word-left {
  left: var(--wanted-bottom-wants-left);
  top: var(--wanted-bottom-wants-top);
  width: var(--wanted-bottom-wants-width);
  font-size: var(--wanted-bottom-wants-size);
}

.wanted-bottom-word-right {
  left: var(--wanted-bottom-you-left);
  top: var(--wanted-bottom-you-top);
  width: var(--wanted-bottom-you-width);
  font-size: var(--wanted-bottom-you-size);
}

.wanted-fineprint {
  position: absolute;
  top: auto;
  bottom: var(--wanted-fineprint-bottom);
  right: var(--wanted-fineprint-right);
  z-index: 4;
  width: var(--wanted-fineprint-width);
  margin: 0;
  color: #4a210b;
  font-family: var(--font-game);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: right;
  text-shadow:
    0 1px 0 rgba(246, 211, 151, 0.5),
    0 -1px 0 rgba(83, 35, 12, 0.55),
    2px 2px 0 rgba(94, 43, 18, 0.22);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  font-size: var(--wanted-fineprint-size);
}

.download-page {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 6vw, 80px);
  justify-items: stretch;
  background-color: #160f0a;
  background-image: linear-gradient(90deg, rgba(8, 7, 5, 0.78), rgba(8, 7, 5, 0.35));
  background-position: center;
  background-size: cover;
}

.download-page.is-section-background-loaded {
  --download-bg: url("assets/images/UI_Background_Title_Dungeon-768w.webp");
  background-image:
    linear-gradient(90deg, rgba(8, 7, 5, 0.78), rgba(8, 7, 5, 0.35)),
    var(--download-bg);
}

.download-copy {
  width: min(760px, 100%);
  justify-self: start;
}

.download-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(4.2rem, 10vw, 8.8rem);
  line-height: 0.86;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.approval-slip {
  align-self: end;
  padding: 22px;
  background: rgba(16, 10, 7, 0.82);
  border: 1px solid rgba(199, 154, 69, 0.48);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
}

.approval-slip span,
.approval-slip small {
  display: block;
  color: var(--muted-paper);
  font-size: 1.02rem;
  text-transform: uppercase;
}

.approval-slip strong {
  display: block;
  margin: 12px 0;
  color: var(--bone);
  font-size: 1.75rem;
  line-height: 1;
}

body.download-modal-open {
  overflow: hidden;
}

.download-modal[hidden] {
  display: none;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 46px);
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.76);
  backdrop-filter: blur(8px);
}

.download-modal-panel {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  padding: clamp(24px, 4vw, 38px);
  color: var(--paper);
  background: rgba(18, 12, 9, 0.96);
  border: 1px solid rgba(199, 154, 69, 0.48);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.68);
}

.download-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--bone);
  background: rgba(8, 7, 5, 0.62);
  border: 1px solid rgba(225, 208, 167, 0.25);
  border-radius: 6px;
  cursor: pointer;
}

.download-modal-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.4;
}

.download-modal-panel h2 {
  margin: 0 48px 22px 0;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 0.9;
}

.download-key-form,
.download-request-form {
  display: grid;
  gap: 10px;
}

.download-request-form {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(225, 208, 167, 0.16);
}

.download-request-form p {
  margin: 0 0 4px;
  color: var(--bone);
  font-size: 1.25rem;
  font-weight: 900;
}

.download-modal-panel label {
  color: var(--brass);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.download-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.download-modal-panel input {
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  color: var(--bone);
  background: rgba(8, 7, 5, 0.72);
  border: 1px solid rgba(225, 208, 167, 0.26);
  border-radius: 6px;
  font: inherit;
  font-size: 1.1rem;
}

.download-modal-panel input:focus-visible,
.download-modal-close:focus-visible,
.download-modal .site-button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.download-modal .site-button {
  min-width: 142px;
  box-shadow: none;
}

.download-modal-status {
  min-height: 22px;
  margin: 18px 0 0;
  color: var(--verdigris);
  font-weight: 900;
}

.quickview-page {
  background-color: #0b0907;
  background-image: linear-gradient(rgba(8, 7, 5, 0.78), rgba(8, 7, 5, 0.9));
  background-position: center;
  background-size: cover;
}

.quickview-page.is-section-background-loaded {
  --quickview-bg: url("assets/images/UI_Background_PreFight-768w.webp");
  background-image:
    linear-gradient(rgba(8, 7, 5, 0.78), rgba(8, 7, 5, 0.9)),
    var(--quickview-bg);
}

.quickview-grid {
  width: min(1560px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
  translate: 0 clamp(188px, calc(18vh + 80px), 256px);
}

.motion-card {
  min-width: 0;
}

.motion-card h3 {
  margin: 0 0 clamp(12px, 1.7vw, 22px);
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 5vw, 5.8rem);
  line-height: 0.9;
  text-align: center;
}

.motion-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b0907;
  border: 1px solid rgba(225, 208, 167, 0.2);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.54);
}

.content-page {
  background: #0c0b08;
}

.bureaucratia-map {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(0.94) brightness(0.72);
}

.bureaucratia-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 7, 5, 0.72), rgba(8, 7, 5, 0.28), rgba(8, 7, 5, 0.58));
}

.content-panel {
  width: min(1500px, calc(100vw - clamp(36px, 10vw, 144px)));
  display: grid;
  justify-items: center;
  text-align: center;
  translate: 0 clamp(168px, 20vh, 280px);
}

.content-feature-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(74svh, 820px);
  object-fit: contain;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.56));
}

@keyframes bureaucratia-map-drift {
  0% {
    transform: scale(1.13) translate3d(-2.8%, -2.2%, 0);
  }

  27% {
    transform: scale(1.16) translate3d(3.2%, -4.2%, 0);
  }

  55% {
    transform: scale(1.14) translate3d(2.4%, 3.4%, 0);
  }

  78% {
    transform: scale(1.17) translate3d(-3.8%, 2.5%, 0);
  }

  100% {
    transform: scale(1.15) translate3d(1.2%, -1.4%, 0);
  }
}

.mystery-page {
  background-color: #080705;
  background-image: linear-gradient(rgba(5, 4, 4, 0.5), rgba(5, 4, 4, 0.84));
  background-position: center;
  background-size: cover;
}

.mystery-page.is-section-background-loaded {
  --mystery-bg: url("assets/images/RunMap_CinderCrown_BG_Draft_v2_clean-480w.webp");
  background-image:
    linear-gradient(rgba(5, 4, 4, 0.5), rgba(5, 4, 4, 0.84)),
    var(--mystery-bg);
}

.auditor-seal {
  position: absolute;
  top: calc(44% + 30px);
  left: 50%;
  translate: -50% -50%;
  width: min(42vw, 430px);
  max-height: 60svh;
  object-fit: contain;
  opacity: 0.24;
  filter: drop-shadow(0 0 34px rgba(235, 43, 27, 0.24));
}

.mystery-copy {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  translate: 0 clamp(260px, 31vh, 380px);
}

.mystery-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.95;
}

.mystery-copy p:last-child {
  color: var(--bone);
  font-size: clamp(1.65rem, 2.6vw, 2.7rem);
  font-weight: 900;
}

.contact-page {
  background-color: #100b08;
  background-image: linear-gradient(rgba(8, 7, 5, 0.7), rgba(8, 7, 5, 0.88));
  background-position: center;
  background-size: cover;
}

.contact-page.is-section-background-loaded {
  --contact-bg: url("assets/images/UI_Background_Shop-640w.webp");
  background-image:
    linear-gradient(rgba(8, 7, 5, 0.7), rgba(8, 7, 5, 0.88)),
    var(--contact-bg);
}

@supports (background-image: image-set(url("assets/images/UI_Background_Title_Dungeon-768w.webp") type("image/webp"))) {
  .download-page.is-section-background-loaded {
    --download-bg: image-set(
      url("assets/images/UI_Background_Title_Dungeon-768w.avif") type("image/avif"),
      url("assets/images/UI_Background_Title_Dungeon-768w.webp") type("image/webp")
    );
  }

  .quickview-page.is-section-background-loaded {
    --quickview-bg: image-set(
      url("assets/images/UI_Background_PreFight-768w.avif") type("image/avif"),
      url("assets/images/UI_Background_PreFight-768w.webp") type("image/webp")
    );
  }

  .mystery-page.is-section-background-loaded {
    --mystery-bg: image-set(
      url("assets/images/RunMap_CinderCrown_BG_Draft_v2_clean-480w.avif") type("image/avif"),
      url("assets/images/RunMap_CinderCrown_BG_Draft_v2_clean-480w.webp") type("image/webp")
    );
  }

  .contact-page.is-section-background-loaded {
    --contact-bg: image-set(
      url("assets/images/UI_Background_Shop-640w.avif") type("image/avif"),
      url("assets/images/UI_Background_Shop-640w.webp") type("image/webp")
    );
  }
}

@media (min-width: 760px) {
  .mystery-page.is-section-background-loaded {
    --mystery-bg: url("assets/images/RunMap_CinderCrown_BG_Draft_v2_clean-841w.webp");
  }

  @supports (background-image: image-set(url("assets/images/RunMap_CinderCrown_BG_Draft_v2_clean-841w.webp") type("image/webp"))) {
    .mystery-page.is-section-background-loaded {
      --mystery-bg: image-set(
        url("assets/images/RunMap_CinderCrown_BG_Draft_v2_clean-841w.avif") type("image/avif"),
        url("assets/images/RunMap_CinderCrown_BG_Draft_v2_clean-841w.webp") type("image/webp")
      );
    }
  }
}

@media (min-width: 900px) {
  .download-page.is-section-background-loaded {
    --download-bg: url("assets/images/UI_Background_Title_Dungeon-1152w.webp");
  }

  .quickview-page.is-section-background-loaded {
    --quickview-bg: url("assets/images/UI_Background_PreFight-1152w.webp");
  }

  .contact-page.is-section-background-loaded {
    --contact-bg: url("assets/images/UI_Background_Shop-960w.webp");
  }

  @supports (background-image: image-set(url("assets/images/UI_Background_Title_Dungeon-1152w.webp") type("image/webp"))) {
    .download-page.is-section-background-loaded {
      --download-bg: image-set(
        url("assets/images/UI_Background_Title_Dungeon-1152w.avif") type("image/avif"),
        url("assets/images/UI_Background_Title_Dungeon-1152w.webp") type("image/webp")
      );
    }

    .quickview-page.is-section-background-loaded {
      --quickview-bg: image-set(
        url("assets/images/UI_Background_PreFight-1152w.avif") type("image/avif"),
        url("assets/images/UI_Background_PreFight-1152w.webp") type("image/webp")
      );
    }

    .contact-page.is-section-background-loaded {
      --contact-bg: image-set(
        url("assets/images/UI_Background_Shop-960w.avif") type("image/avif"),
        url("assets/images/UI_Background_Shop-960w.webp") type("image/webp")
      );
    }
  }
}

@media (min-width: 1300px) {
  .download-page.is-section-background-loaded {
    --download-bg: url("assets/images/UI_Background_Title_Dungeon-1536w.webp");
  }

  .quickview-page.is-section-background-loaded {
    --quickview-bg: url("assets/images/UI_Background_PreFight-1536w.webp");
  }

  .contact-page.is-section-background-loaded {
    --contact-bg: url("assets/images/UI_Background_Shop-1440w.webp");
  }

  @supports (background-image: image-set(url("assets/images/UI_Background_Title_Dungeon-1536w.webp") type("image/webp"))) {
    .download-page.is-section-background-loaded {
      --download-bg: image-set(
        url("assets/images/UI_Background_Title_Dungeon-1536w.avif") type("image/avif"),
        url("assets/images/UI_Background_Title_Dungeon-1536w.webp") type("image/webp")
      );
    }

    .quickview-page.is-section-background-loaded {
      --quickview-bg: image-set(
        url("assets/images/UI_Background_PreFight-1536w.avif") type("image/avif"),
        url("assets/images/UI_Background_PreFight-1536w.webp") type("image/webp")
      );
    }

    .contact-page.is-section-background-loaded {
      --contact-bg: image-set(
        url("assets/images/UI_Background_Shop-1440w.avif") type("image/avif"),
        url("assets/images/UI_Background_Shop-1440w.webp") type("image/webp")
      );
    }
  }
}

@media (min-width: 1700px) {
  .contact-page.is-section-background-loaded {
    --contact-bg: url("assets/images/UI_Background_Shop-1671w.webp");
  }

  @supports (background-image: image-set(url("assets/images/UI_Background_Shop-1671w.webp") type("image/webp"))) {
    .contact-page.is-section-background-loaded {
      --contact-bg: image-set(
        url("assets/images/UI_Background_Shop-1671w.avif") type("image/avif"),
        url("assets/images/UI_Background_Shop-1671w.webp") type("image/webp")
      );
    }
  }
}

.contact-card {
  width: min(760px, 100%);
  padding: clamp(24px, 5vw, 46px);
  background: rgba(18, 12, 9, 0.86);
  border: 1px solid rgba(199, 154, 69, 0.38);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.54);
}

.contact-card h2 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6rem);
}

.contact-card p {
  color: var(--fog);
  font-size: 1.28rem;
  line-height: 1.35;
}

.contact-mail {
  display: inline-block;
  margin-top: 18px;
  color: var(--bone);
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 24px;
}

.legal-actions .site-button {
  min-width: min(100%, 280px);
  min-height: 60px;
  font-size: 1.18rem;
}

.page-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 60;
  display: grid;
  gap: 12px;
  translate: 0 -50%;
}

.page-dots a {
  width: 12px;
  height: 12px;
  display: block;
  border: 1px solid rgba(240, 223, 182, 0.65);
  border-radius: 999px;
  background: rgba(8, 7, 5, 0.55);
  text-decoration: none;
}

.page-dots a.is-active {
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(199, 154, 69, 0.16);
}

body.wanted-editor-active {
  scroll-snap-type: none;
}

body.wanted-editor-active .site-header,
body.wanted-editor-active .page-dots {
  opacity: 0.24;
}

body.wanted-editor-active .wanted-ribbon-group,
body.wanted-editor-active .wanted-ribbon-copy,
body.wanted-editor-active .wanted-fineprint,
body.wanted-editor-active .wanted-stage {
  pointer-events: auto;
}

.wanted-editor-target {
  cursor: move;
  outline: 2px solid rgba(110, 165, 141, 0.55);
  outline-offset: 4px;
}

.wanted-editor-frame {
  position: fixed;
  z-index: 190;
  display: none;
  border: 2px solid var(--verdigris);
  box-shadow:
    0 0 0 1px rgba(8, 7, 5, 0.86),
    0 0 28px rgba(110, 165, 141, 0.34);
  pointer-events: none;
}

.wanted-editor-frame.is-visible {
  display: block;
}

.wanted-editor-frame::before {
  content: attr(data-label);
  position: absolute;
  left: -2px;
  bottom: calc(100% + 4px);
  min-width: max-content;
  padding: 4px 7px;
  color: #f7edce;
  background: rgba(8, 7, 5, 0.9);
  border: 1px solid rgba(110, 165, 141, 0.75);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.wanted-editor-handle {
  position: absolute;
  width: 13px;
  height: 13px;
  background: #f7edce;
  border: 2px solid var(--verdigris);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.48);
  pointer-events: auto;
}

.wanted-editor-handle[data-handle*="n"] {
  top: -8px;
}

.wanted-editor-handle[data-handle*="s"] {
  bottom: -8px;
}

.wanted-editor-handle[data-handle*="w"] {
  left: -8px;
}

.wanted-editor-handle[data-handle*="e"] {
  right: -8px;
}

.wanted-editor-handle[data-handle="n"],
.wanted-editor-handle[data-handle="s"] {
  left: 50%;
  translate: -50% 0;
  cursor: ns-resize;
}

.wanted-editor-handle[data-handle="e"],
.wanted-editor-handle[data-handle="w"] {
  top: 50%;
  translate: 0 -50%;
  cursor: ew-resize;
}

.wanted-editor-handle[data-handle="nw"],
.wanted-editor-handle[data-handle="se"] {
  cursor: nwse-resize;
}

.wanted-editor-handle[data-handle="ne"],
.wanted-editor-handle[data-handle="sw"] {
  cursor: nesw-resize;
}

.wanted-editor-panel {
  position: fixed;
  top: 88px;
  right: 12px;
  z-index: 210;
  width: min(360px, calc(100% - 24px));
  display: grid;
  gap: 10px;
  padding: 14px;
  color: var(--paper);
  background: rgba(12, 9, 7, 0.94);
  border: 1px solid rgba(199, 154, 69, 0.5);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.56);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
}

.wanted-editor-panel h2 {
  margin: 0;
  color: var(--bone);
  font-family: var(--font-game);
  font-size: 1.55rem;
  line-height: 1;
}

.wanted-editor-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted-paper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.wanted-editor-panel select,
.wanted-editor-panel textarea {
  width: 100%;
  color: var(--bone);
  background: rgba(8, 7, 5, 0.82);
  border: 1px solid rgba(225, 208, 167, 0.24);
  border-radius: 6px;
  font: inherit;
}

.wanted-editor-panel select {
  min-height: 34px;
  padding: 6px 8px;
}

.wanted-editor-panel textarea {
  min-height: 154px;
  padding: 9px;
  font-family: "Segoe UI Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
  resize: vertical;
}

.wanted-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wanted-editor-panel button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--bone);
  background: rgba(158, 48, 43, 0.46);
  border: 1px solid rgba(225, 208, 167, 0.24);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.wanted-editor-panel button:hover,
.wanted-editor-panel button:focus-visible {
  border-color: rgba(199, 154, 69, 0.72);
  outline: 0;
}

.wanted-editor-status {
  min-height: 18px;
  color: var(--verdigris);
  font-size: 12px;
  font-weight: 800;
}

body.site-v1 h1,
body.site-v1 h2,
body.site-v1 h3,
body.legal-page h1,
body.legal-page h2,
.site-brand,
.motion-card h3 {
  font-family: var(--font-game);
}

body.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(8, 7, 5, 0.76), rgba(8, 7, 5, 0.94)),
    url("assets/images/UI_Background_Title_Dungeon-1536w.webp") center / cover fixed,
    #080705;
}

@supports (background-image: image-set(url("assets/images/UI_Background_Title_Dungeon-1536w.webp") type("image/webp"))) {
  body.legal-page {
    background:
      linear-gradient(rgba(8, 7, 5, 0.76), rgba(8, 7, 5, 0.94)),
      image-set(
        url("assets/images/UI_Background_Title_Dungeon-1536w.avif") type("image/avif"),
        url("assets/images/UI_Background_Title_Dungeon-1536w.webp") type("image/webp")
      ) center / cover fixed,
      #080705;
  }
}

.legal-document {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.legal-document h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
}

.legal-document h2 {
  margin: 34px 0 10px;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
}

.legal-document p {
  color: var(--fog);
  font-size: 1.2rem;
  line-height: 1.45;
}

.legal-document a:not(.legal-back) {
  color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.legal-document a:not(.legal-back):hover,
.legal-document a:not(.legal-back):focus-visible {
  color: var(--bone);
}

.legal-document code {
  color: var(--bone);
  font-family: "Segoe UI Mono", Consolas, monospace;
  font-size: 0.82em;
}

.legal-document strong {
  color: var(--bone);
}

.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--bone);
  font-size: 1.15rem;
  font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
  body.site-v1 {
    scroll-snap-type: none;
  }

  .site-v1 *,
  .site-v1 *::before,
  .site-v1 *::after {
    scroll-behavior: auto !important;
  }

  .bureaucratia-map img {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 920px) {
  .site-v1 .site-header {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    min-height: 56px;
    padding: 8px clamp(10px, 3vw, 16px);
  }

  .site-brand {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
    overflow: hidden;
    font-size: clamp(1rem, 4.2vw, 1.24rem);
    text-overflow: ellipsis;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: clamp(10px, 3vw, 16px);
    right: clamp(10px, 3vw, 16px);
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 10px;
    background: rgba(8, 7, 5, 0.94);
    border: 1px solid rgba(225, 208, 167, 0.22);
    border-radius: 8px;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.58);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    visibility: hidden;
  }

  .site-v1 .site-header.is-menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a {
    min-height: 40px;
    justify-content: center;
    padding: 8px 9px;
    border-color: rgba(225, 208, 167, 0.16);
    border-radius: 6px;
    font-size: 0.92rem;
  }

  .audio-toggle {
    position: static;
    width: 38px;
    height: 38px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .download-page,
  .quickview-grid {
    grid-template-columns: 1fr;
  }

  .quickview-grid {
    translate: 0;
  }

  .approval-slip {
    align-self: auto;
    width: min(420px, 100%);
  }

  .motion-card video {
    max-height: none;
  }

  .auditor-seal {
    top: 50%;
    width: min(62vw, 360px);
  }

  .mystery-copy {
    translate: 0;
  }

  .page-dots {
    display: none;
  }
}

@media (max-width: 780px) {
  body.site-v1 {
    --mobile-page-height: 100dvh;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
  }

  .page-section {
    height: var(--mobile-page-height);
    min-height: var(--mobile-page-height);
    padding: 64px 14px 18px;
    overflow: hidden;
    scroll-snap-align: start;
  }

  .wanted-page {
    --wanted-stage-height: max(var(--mobile-page-height), 56.25vw);
    --wanted-top-group-left: 50%;
    --wanted-top-group-top: 62px;
    --wanted-top-group-width: min(92svw, 430px);
    --wanted-bottom-group-left: 50%;
    --wanted-bottom-group-bottom: clamp(14px, 3.8dvh, 34px);
    --wanted-bottom-group-width: min(94svw, 430px);
    --wanted-top-copy-left: 50.24%;
    --wanted-top-copy-top: 8.94%;
    --wanted-top-copy-width: 91.79%;
    --wanted-top-copy-size: clamp(0.92rem, 4.5svw, 1.25rem);
    --wanted-bottom-copy-left: 50.1%;
    --wanted-bottom-copy-top: 4.49%;
    --wanted-bottom-copy-width: 69.83%;
    --wanted-bottom-copy-height: 71.9%;
    --wanted-bottom-wants-left: 14.8%;
    --wanted-bottom-wants-top: 50.4%;
    --wanted-bottom-wants-width: 43.2%;
    --wanted-bottom-wants-size: clamp(1.26rem, 7.1svw, 1.85rem);
    --wanted-bottom-you-left: 82.41%;
    --wanted-bottom-you-top: 51.37%;
    --wanted-bottom-you-width: 48.18%;
    --wanted-bottom-you-size: clamp(1.22rem, 7svw, 1.8rem);
    --wanted-fineprint-right: 10.44%;
    --wanted-fineprint-bottom: 35.13%;
    --wanted-fineprint-width: 31.99%;
    --wanted-fineprint-size: clamp(0.68rem, 2.3svw, 0.82rem);
    min-height: var(--mobile-page-height);
    height: var(--mobile-page-height);
    padding: 0;
    overflow: hidden;
  }

  .wanted-top-group {
    aspect-ratio: 1920 / 1080;
  }

  .wanted-bottom-group {
    aspect-ratio: 1640 / 330;
  }

  .wanted-top-copy {
    line-height: 0.8;
  }

  .wanted-bottom-heading {
    line-height: 0.66;
  }

  .wanted-fineprint {
    top: auto;
  }

  .download-actions,
  .legal-actions {
    flex-direction: column;
  }

  .download-field-row {
    grid-template-columns: 1fr;
  }

  .site-button {
    min-width: 0;
    min-height: 48px;
    padding: 12px 18px;
    font-size: 1.05rem;
    width: 100%;
  }

  .download-page {
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
    align-items: stretch;
    gap: clamp(12px, 2.4dvh, 22px);
    padding: 68px 18px clamp(18px, 3dvh, 30px);
  }

  .download-copy {
    align-self: center;
    justify-self: center;
    width: min(480px, 100%);
    text-align: center;
    translate: 0 clamp(-40px, -4dvh, -18px);
  }

  .download-copy h2 {
    margin-bottom: 8px;
    font-size: clamp(3.3rem, 16vw, 5.4rem);
  }

  .section-lead {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
  }

  .download-actions {
    margin-top: 18px;
  }

  .approval-slip {
    align-self: end;
    justify-self: center;
    width: min(390px, 100%);
    padding: 16px;
    text-align: center;
  }

  .approval-slip span,
  .approval-slip small {
    font-size: 0.9rem;
  }

  .approval-slip strong {
    margin: 8px 0;
    font-size: 1.35rem;
  }

  .quickview-page {
    align-items: start;
    padding: 62px 10px 10px;
  }

  .quickview-grid {
    width: min(520px, 100%);
    height: calc(var(--mobile-page-height) - 72px);
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    place-self: start center;
    align-items: center;
    justify-items: center;
    gap: clamp(4px, 1svh, 8px);
  }

  .motion-card {
    min-height: 0;
    display: grid;
    align-content: center;
    justify-items: center;
  }

  .motion-card h3 {
    margin-bottom: clamp(2px, 0.7svh, 6px);
    font-size: clamp(1.8rem, 7.2vw, 2.45rem);
  }

  .motion-card video {
    width: min(94vw, 40dvh, 480px);
    max-height: 22dvh;
    margin-inline: auto;
  }

  .content-page {
    align-items: end;
    height: var(--mobile-page-height);
    min-height: var(--mobile-page-height);
    overflow: hidden;
    padding: 64px 12px 0;
  }

  .bureaucratia-map img {
    animation: bureaucratia-map-drift 46s ease-in-out infinite alternate;
    transform-origin: center;
    will-change: transform;
  }

  .content-panel {
    width: min(760px, calc(100vw - 8px));
    margin-bottom: clamp(34px, 7dvh, 72px);
    translate: 0;
  }

  .content-feature-image {
    width: 100%;
    max-height: min(50dvh, 430px);
  }

  .mystery-page {
    align-items: end;
    padding: 64px 18px 24px;
  }

  .auditor-seal {
    top: 50%;
    width: min(72vw, 340px);
    max-height: 42dvh;
  }

  .mystery-copy {
    align-self: end;
    max-width: 92vw;
    margin-bottom: clamp(30px, 6dvh, 58px);
  }

  .mystery-copy h2 {
    margin-bottom: 8px;
    font-size: clamp(2.5rem, 12vw, 4.6rem);
  }

  .mystery-copy p:last-child {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .contact-page {
    height: var(--mobile-page-height);
    min-height: var(--mobile-page-height);
    padding: 64px 14px 18px;
  }

  .contact-card {
    width: min(480px, 100%);
    max-height: calc(var(--mobile-page-height) - 86px);
    padding: clamp(18px, 5vw, 26px);
    text-align: center;
  }

  .contact-card h2 {
    margin-bottom: 10px;
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .contact-card p {
    font-size: 1.05rem;
  }

  .contact-mail {
    margin-top: 8px;
    font-size: clamp(1rem, 5vw, 1.55rem);
    white-space: nowrap;
  }

  .legal-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .legal-actions .site-button {
    min-height: 46px;
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .site-brand {
    font-size: clamp(0.9rem, 4vw, 1.02rem);
  }

  .site-v1 .site-header {
    padding-inline: 10px;
  }

  .site-nav {
    left: 10px;
    right: 10px;
    gap: 5px;
  }

  .site-nav a {
    font-size: 0.86rem;
  }

  .contact-card {
    padding: 18px;
  }
}
