.dialogue-aside {
  color: #ecc69f;
  font-style: italic;
}

.paged-text {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  width: 100%;
  gap: 8px;
}
.paged-text__body {
  flex: 1 1 0;
  position: relative;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.paged-text .paged-text__copy {
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  margin: 0;
  font: 400 16px/1.45 system-ui, sans-serif;
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.paged-text .paged-text__measure {
  position: absolute;
  inset: 0 0 auto;
  height: auto;
  max-height: none;
  visibility: hidden;
  pointer-events: none;
}
.paged-text__navigation {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.paged-text__navigation button {
  box-sizing: border-box;
  min-height: 40px;
  min-width: 76px;
  padding: 6px 8px;
  font: 400 15px/1.2 system-ui, sans-serif;
}
.paged-text__navigation span { font: 400 13px/1.2 system-ui, sans-serif; color: #cbb99d; }
.paged-text__navigation button:disabled { opacity: .45; }
.paged-text button:focus-visible { outline: 2px solid #ffd18b; outline-offset: -3px; }

.world-map-pin {
  position: absolute;
  width: .65rem;
  height: .65rem;
  box-sizing: border-box;
  border: 2px solid #fff1c0;
  border-radius: 50%;
  background: #8b3422;
  box-shadow: 0 0 0 1px #402316;
  transform: translate(-50%, -50%);
}
.world-map-pin__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .35rem);
  transform: translateX(-50%);
  padding: .1rem .4rem;
  border: 1px solid #d8b373;
  border-radius: .2rem;
  background: #382418;
  color: #fff0cd;
  white-space: nowrap;
  font: 600 .875rem/1.3 Georgia, serif;
}
.recoverable-image:not(.recoverable-image--loaded) + .world-map-pin { visibility: hidden; }

.recoverable-image { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.recoverable-image > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.recoverable-image__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #d7c1a3; background: #241a15; font: 14px/1.3 Arial, sans-serif; }
.recoverable-image__fallback { box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; width: 100%; min-height: 44px; padding: 6px 10px; background: #241a15; color: #e9d5b9; font: 14px/1.3 Arial, sans-serif; }
.recoverable-image--failed { height: auto; }
.recoverable-image__fallback button, .recoverable-image__fallback a { flex: 0 0 auto; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 10px; border: 1px solid #b28b61; border-radius: 3px; background: #3b281e; color: #ffe6bd; font: 14px Arial, sans-serif; text-decoration: none; cursor: pointer; }
.recoverable-image__fallback button:focus-visible, .recoverable-image__fallback a:focus-visible { outline: 2px solid #ffd188; outline-offset: 2px; }

.adventure-map { width: min(100%, 52rem); }.adventure-map__canvas { position: relative; }.adventure-map__canvas img { display: block; width: 100%; height: auto; }.adventure-map__marker { position: absolute; display: inline-flex; gap: .25rem; align-items: center; box-sizing: border-box; padding: .15rem .35rem; background: rgba(255,255,255,.88); border: 1px solid #54232a; font-size: clamp(.7rem, 2.5vw, .9rem); overflow-wrap: anywhere; }.adventure-map__marker--middle { transform: translateY(-50%); }.adventure-map__marker--right { flex-direction: row-reverse; }.adventure-map__marker--player { font-weight: bold; }.adventure-map__marker--objective { border-style: dashed; }
.adventure-map__zoom { display: flex; align-items: center; gap: .65rem; margin: .4rem 0 .8rem; }
.adventure-map__zoom button { min-width: 2.25rem; min-height: 2.25rem; font-size: 1.35rem; }
.adventure-map__scope { font-size: .88rem; line-height: 1.4; }
.adventure-map__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 2px solid #fff4d7;
  border-radius: 50%;
  background: #352b21;
  color: #fff4d7;
  font: bold .8rem/1 system-ui, sans-serif;
  box-shadow: 0 1px 3px #382b19aa;
}
.adventure-map__pin--player { background: #7c2d23; outline: 2px solid #7c2d23; }
.adventure-map__art { height: auto; }
.adventure-map__canvas .adventure-map__art img { height: auto; }
.adventure-map__art:not(.recoverable-image--loaded) + .adventure-map__markers { visibility: hidden; }

.player-entry { max-width: 60rem; margin: 0 auto; padding: 1rem; overflow-wrap: anywhere; }
.player-entry .adventure-catalogue { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; list-style: none; padding: 0; }
.player-entry article { border: 1px solid currentColor; border-radius: .5rem; padding: 1rem; height: 100%; box-sizing: border-box; }
.player-entry button { min-height: 44px; max-width: 100%; padding: .6rem 1rem; font: inherit; white-space: normal; overflow-wrap: anywhere; }
.player-entry summary { min-height: 44px; box-sizing: border-box; padding: .6rem 0; cursor: pointer; }
.player-entry button:focus-visible, .player-entry summary:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

.App {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  height: auto;
  font-size: 1rem;
}

.content {
  text-align: center;
}

button {
  display: block;
  margin: 10px auto;
  padding: 10px 20px;
  font-size: 1em;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

.game-shell--travelling { height:100dvh; display:grid; grid-template-rows:auto minmax(0,1fr); overflow:hidden; }
.game-shell--travelling .App { min-height:0; width:100%; margin:0; padding:0; max-width:none; box-sizing:border-box; display:grid; }
.desktop-journey { height:100%; min-height:0; display:grid; }
.desktop-journey .phone-journey { grid-row:auto; box-sizing:border-box; width:100%; max-width:1000px; margin:0 auto; }
.desktop-journey .phone-journey__viewport { width:min(100%,calc(100dvh - 250px),600px); }

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.adventure-catalogue {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.adventure-catalogue article {
  max-width: 38rem;
  padding: 1rem;
  border: 1px solid currentColor;
  border-radius: 0.5rem;
}

.App {
  min-height: calc(100vh - 3.25rem);
  box-sizing: border-box;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1.5rem, 6vw, 4rem) 1rem;
}

.game-shell { background: #120e0e; }

.game-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3.25rem;
  box-sizing: border-box;
  padding: 0.35rem clamp(1rem, 4vw, 2rem);
  background: rgba(20, 14, 13, .97);
  border-bottom: 1px solid rgba(197, 111, 67, .4);
  color: #f1dfc3;
}
.game-toolbar__home { margin: 0; padding: .45rem .7rem; border: 0; background: transparent; color: inherit; font-size: .9rem; cursor: pointer; }

.audio-settings { display: flex; flex-direction: column; align-items: flex-end; font-size: 0.875rem; }
.audio-settings audio { display: none; }
.game-toolbar .audio-settings__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.game-toolbar .audio-settings__trigger:hover,
.game-toolbar .audio-settings__trigger[aria-expanded='true'] {
  border-color: rgba(236, 172, 112, .6);
  background: #563022;
}
.audio-settings__panel {
  width: min(15rem, calc(100vw - 2rem));
  margin-top: 0.5rem;
  box-sizing: border-box;
  padding: 0.5rem;
  border: 1px solid rgba(236, 172, 112, .6);
  border-radius: 0.4rem;
  background: #271b19;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.game-toolbar .audio-settings__panel button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.5rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.game-toolbar .audio-settings__panel button:hover { background: #563022; }
.game-toolbar .audio-settings__panel button:disabled { cursor: default; opacity: 0.55; }
.audio-settings__panel p { margin: 0.4rem 0.5rem; font-size: 0.8rem; }
.game-toolbar button:focus-visible { outline: 2px solid #ffc779; outline-offset: 2px; }

.demo-prologue { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid rgba(193, 118, 78, .55); background: linear-gradient(150deg, #33211c, #1e1716); box-shadow: 0 22px 50px rgba(0, 0, 0, .35); text-align: center; }
.demo-prologue__eyebrow { color: #e6aa6f; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.demo-prologue h1 { color: #f5e4ca; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
.demo-prologue p { line-height: 1.6; }
.demo-prologue button { margin-top: 2rem; padding: .85rem 1.7rem; }

.adventure-question {
  width: min(100%, 54rem);
  min-width: 0;
  margin: 0 auto 2.25rem;
  color: #f4e4c9;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 400;
  line-height: 1.22;
  overflow-wrap: anywhere;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .55);
}

.local-ending-summary,
.journey-record,
.demo-prologue {
  width: min(100%, 42rem);
  min-width: 0;
  box-sizing: border-box;
}
.journey-record { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(13rem, 1fr); gap: 1.25rem; width: min(100%, 72rem); margin: 3rem auto 0; align-items: start; font-family: Georgia, 'Times New Roman', serif; font-size: 1rem; line-height: 1.55; }
.journey-record > section,
.journey-record > figure { min-width: 0; margin: 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid rgba(193, 118, 78, .43); background: rgba(38, 26, 23, .96); box-shadow: 0 16px 36px rgba(0, 0, 0, .24); }
.journey-record figcaption { margin-bottom: 1.25rem; font-size: 1.55rem; line-height: 1.2; }
.journey-record h2 { margin: 0 0 1.25rem; font-size: 1.55rem; line-height: 1.2; }
.journey-record ul { margin: 0; padding: 0; list-style: none; }
.journey-record li { position: relative; margin: 0; padding: 0 0 1.35rem 1.5rem; border-left: 1px solid #865741; }
.journey-record li:last-child { padding-bottom: 0; border-left-color: transparent; }
.journey-record li::before { content: ''; position: absolute; left: -.34rem; top: .4rem; width: .6rem; height: .6rem; border-radius: 50%; background: #dc8150; }
.journey-record li strong { display: block; color: #e9a66e; font: 700 .75rem Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.journey-record li p { margin: .3rem 0 0; font-size: 1rem; overflow-wrap: break-word; }
.journey-record > section > p:last-child { margin-bottom: 0; color: #bca48e; font-size: .84rem; }
.journey-record [aria-label='Your travelled route'] li { padding-bottom: .7rem; }
.journey-record [aria-label='Your travelled route'] li:last-child { padding-bottom: 0; }
.travelled-route__list { display: grid; gap: .7rem; list-style: none; margin: 0; padding: 0; }
.journey-record .travelled-route__list li { padding-bottom: .7rem; }

.journey-record { overflow-wrap: anywhere; }

.local-ending-summary pre {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
  font-family: Arial, sans-serif;
  font-size: .95rem;
  line-height: 1.6;
}
.local-ending-summary { margin: 1.5rem auto 0; padding: clamp(1.2rem, 3vw, 2rem); background: rgba(38, 26, 23, .96); border: 1px solid rgba(193, 118, 78, .43); }
.local-ending-summary h2 { margin-top: 0; font-size: 1.55rem; }
.local-ending-summary button { margin-left: 0; }

.App[data-skin='bof'] .adventure-map { box-sizing: border-box; width: min(100%, 54rem); margin: 1.5rem auto 0; padding: clamp(.75rem, 2vw, 1rem); border: 1px solid rgba(193, 118, 78, .43); background: #251a17; box-shadow: 0 16px 36px rgba(0, 0, 0, .24); }
.App[data-skin='bof'] .adventure-map h2 { margin: .2rem .25rem 1rem; color: #e7ba86; font-size: 1.35rem; font-weight: 400; }
.App[data-skin='bof'] .adventure-map__canvas { overflow: hidden; }
.App[data-skin='bof'] .adventure-map__canvas img { filter: sepia(.6) saturate(.8) brightness(.7) contrast(1.12); }
.App[data-skin='bof'] .adventure-map__marker { border-color: #d4a06d; background: #291b18; color: #f8e4c5; box-shadow: 0 3px 12px rgba(0, 0, 0, .45); }

.adventure-choices { width: min(100%, 42rem); min-width: 0; box-sizing: border-box; }
.adventure-choices__prompt { margin: 0 0 1rem; color: #e3a36d; font: 700 .72rem Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.adventure-choices__list { display: grid; gap: 0.75rem; }
.adventure-choices__list { animation: choices-appear 220ms ease-out both; }
.server-run-choices--leaving .adventure-choices__list { animation: none; opacity: 0; transform: translateY(.25rem); transition: opacity 160ms ease-in, transform 160ms ease-in; }
@keyframes choices-appear { from { opacity: 0; transform: translateY(.4rem); } to { opacity: 1; transform: translateY(0); } }
.adventure-choice { display: flex; width: 100%; min-width: 0; min-height: 4rem; box-sizing: border-box; align-items: center; gap: 0.9rem; margin: 0; padding: 0.9rem 1rem; border: 1px solid #7f6942; border-radius: 0.75rem; background: #f8f2e4; color: #2d2418; box-shadow: 0 2px 0 #7f6942; overflow-wrap: anywhere; text-align: left; transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.adventure-choice:hover { background: #efe1bd; box-shadow: 0 4px 0 #7f6942; transform: translateY(-2px); }
.adventure-choice:active { box-shadow: 0 1px 0 #7f6942; transform: translateY(1px); }
.adventure-choice:focus-visible { outline: 3px solid #d9b76f; outline-offset: 3px; }
.adventure-choice__number { display: inline-grid; width: 2rem; height: 2rem; flex: 0 0 2rem; place-items: center; border: 1px solid #7f6942; border-radius: 50%; background: #2d2418; color: #f8f2e4; font-weight: bold; }
.adventure-choice__action { display: inline-flex; min-width: 5.5rem; align-items: center; gap: .3rem; color: #69401e; font: 700 .7rem Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.adventure-choice__action-icon { width: 1.35rem; height: 1.35rem; flex: 0 0 1.35rem; }
.adventure-choice__label { min-width: 0; flex: 1; }
.adventure-choice__travel { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .3rem; color: #69401e; font: 700 .68rem Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.App[data-skin='bof'] .adventure-choice__travel { color: #f5c88c; }
.App[data-skin='bof'] .adventure-choice__action { color: #f5c88c; }
.adventure-choice__travel-icon { display: inline-grid; width: 1.35rem; height: 1.35rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .9rem; }
.server-run-sheet { display: flex; flex-wrap: wrap; gap: .7rem; margin: .8rem 0 1.1rem; }
.server-run-sheet__panel { flex: 1 1 14rem; min-width: 0; padding: .65rem .8rem; border: 1px solid #7f6942; border-radius: .6rem; background: #2d2418; color: #f8f2e4; font: .85rem Arial, sans-serif; }
.server-run-sheet__panel summary { cursor: pointer; color: #f5c88c; font-weight: 700; }
.server-run-sheet__panel p { margin: .7rem 0; }
.server-run-sheet__panel ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.server-run-sheet__facts, .server-run-sheet__abilities { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: .4rem; margin: .6rem 0; }
.server-run-sheet__facts div, .server-run-sheet__abilities div { display: flex; justify-content: space-between; gap: .3rem; }
.server-run-sheet dt { color: #d9b76f; }
.server-run-sheet dd { margin: 0; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.choice-feedback { max-width: 42rem; margin: 0 auto 1rem; color: #e3a36d; font-size: 1rem; }
.rule-result-trace { width: min(100%, 42rem); margin: 0 auto 1rem; text-align: left; }
.rule-result-trace__summary { margin: 0; }
.rule-result-trace__details { margin-top: 0.5rem; border: 1px solid #7f6942; border-radius: 0.5rem; padding: 0.65rem 0.85rem; }
.rule-result-trace__details summary { cursor: pointer; font-weight: 600; }
.rule-result-trace__details dl { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: 0.35rem 0.75rem; margin: 0.75rem 0 0; }
.rule-result-trace__details dt { font-weight: 600; }
.rule-result-trace__details dd { margin: 0; }
.visual-review-label { font-size: 0.9rem; letter-spacing: 0.06em; margin: 0 auto 1rem; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .adventure-choices__list { animation: none; }
  .server-run-choices--leaving .adventure-choices__list { transition: none; transform: none; }
  .adventure-choice { transition: none; }
  .adventure-choice:hover, .adventure-choice:active { transform: none; }
}
@media (max-width: 680px) { .journey-record { grid-template-columns: 1fr; margin-top: 2rem; } .App { padding-inline: 1rem; } }

.game-scene {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(21rem, .9fr);
  width: min(100%, 76rem);
  overflow: hidden;
  border: 1px solid #8c563a;
  background: #241916;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .43);
}
.game-scene__story {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1.4rem, 3.3vw, 3rem);
}
.game-scene__chapter {
  margin: 0 0 1rem;
  color: #dca16c;
  font: 700 .72rem Arial, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.game-scene .adventure-question {
  width: auto;
  margin: 0 0 1.7rem;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.28;
  text-align: left;
}
.adventure-question__lead, .adventure-question__detail { display: block; }
.adventure-question__full { display: contents; }
.adventure-question__phone { display: none; }
@media (max-width: 600px) {
  .game-scene--phone-brief .adventure-question__full { display: none; }
  .game-scene--phone-brief .adventure-question__phone { display: block; white-space: pre-line; }
  .game-scene--phone-brief .adventure-question { font-size: 1.08rem; line-height: 1.38; }
  .game-scene--phone-brief .choice-feedback {
    margin-bottom: .55rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .game-scene--phone-brief .adventure-choices__prompt { display: none; }
  .game-scene--phone-brief .adventure-choices__list { gap: .4rem; }
  .game-scene--phone-brief .adventure-choices__list > button.adventure-choice {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding-block: .45rem;
  }
  .game-scene--phone-brief .adventure-choice__action > span { display: none; }
  .game-scene--phone-brief .local-skill-check { margin-bottom: .65rem; padding: .55rem; }
  .game-scene--phone-brief .local-skill-check p { margin-bottom: .4rem; }
  .App[data-skin='bof'] .game-scene.game-scene--phone-brief > section[aria-label='Scene media'] {
    height: clamp(3.75rem, 12svh, 6rem);
  }
}
.adventure-question__detail { white-space: pre-line; }
.adventure-question__dialogue {
  display: block;
  font: 400 clamp(1rem, 1.4vw, 1.2rem)/1.5 system-ui, sans-serif;
  white-space: pre-wrap;
}
.roadside-talk__trigger { margin-block: .5rem; }
.roadside-talk { width: min(100%, 48rem); box-sizing: border-box; margin-inline: auto; padding: clamp(1rem, 3vw, 2rem); }
.game-scene--conversation { overflow: clip; }
.game-scene--conversation .conversation-speaker {
  position: sticky;
  top: 3.25rem;
  z-index: 1;
  padding: .35rem 0;
  margin-bottom: .75rem;
  background: #241916;
}
.roadside-talk__reply { white-space: pre-wrap; }
.roadside-talk .adventure-choice { margin-block: .2rem; }
@media (min-width: 900px) {
  .roadside-talk .adventure-choices__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.roadside-talk__latest p,
.roadside-talk__history p { margin: .4rem 0 .6rem; }
.roadside-talk__history { margin-bottom: .6rem; }
.roadside-talk__history summary {
  box-sizing: border-box;
  min-height: 44px;
  padding: .65rem .5rem;
  cursor: pointer;
}
.roadside-talk__history ol {
  max-height: min(14rem, 36svh);
  overflow-y: auto;
  margin: 0;
  padding: .15rem .55rem .25rem 1.85rem;
}
.adventure-question__lead { font-size: 1em; }
.adventure-question__detail { margin-top: 1rem; color: #e8d9c7; font: 400 clamp(1rem, 1.35vw, 1.15rem)/1.6 Arial, sans-serif; }
.story-reference { display: inline; padding: 0; border: 0; background: none; color: #f5d494; font: inherit; line-height: inherit; text-align: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: .15em; cursor: pointer; }
.story-reference:hover { color: #fff0c9; text-decoration-style: solid; }
.story-reference:focus-visible { outline: 2px solid #f5d494; outline-offset: 3px; }
.story-reference-panel__description { margin: 0; padding: 1.25rem; color: #f1dfc9; font-size: 1rem; line-height: 1.6; }
.story-reference-panel .story-reference-panel__heading h2 { color: #271912; }
.story-reference-panel__heading button { grid-column: 2; grid-row: 1 / 3; align-self: start; display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; font: 1.5rem/1 Arial, sans-serif; }
.local-skill-check { margin: 0 0 1.5rem; padding: 1rem; border: 1px solid #a97550; background: #35251f; }
.local-skill-check p { margin: 0 0 .9rem; color: #f1dfc9; font: .9rem/1.45 Arial, sans-serif; }
.local-skill-check .adventure-choice { min-height: 3rem; cursor: pointer; }
.game-scene .adventure-choices { width: 100%; margin-top: auto; }
.game-scene .choice-feedback { margin: 0 0 1rem; }
.game-scene--text-only { grid-template-columns: 1fr; }
.game-scene--text-only .game-scene__story { width: 100%; max-width: 48rem; min-height: clamp(24rem, 38vw, 34rem); box-sizing: border-box; margin-inline: auto; }
.server-run-location, .server-run-time { margin: 0 0 1rem; color: #dca16c; font: 700 .82rem Arial, sans-serif; }
.server-run-resources { width: min(100%, 42rem); margin: 0 0 1.5rem; color: #f1dfc9; }
.server-run-resources > p { margin: 0 0 .5rem; color: #dca16c; font: 700 .72rem Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.server-run-resources dl { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; }
.server-run-resources dl > div { display: flex; gap: .5rem; }
.server-run-resources dt { text-transform: capitalize; }
.server-run-resources dd { margin: 0; font-weight: 700; }
@media (min-width: 821px) {
  .game-scene--text-only.game-scene--choice-aligned .game-scene__story {
    position: relative;
    max-width: none;
    padding-right: calc(max(21rem, 45%) + clamp(1.4rem, 3.3vw, 3rem));
  }
  .game-scene--text-only.game-scene--choice-aligned .adventure-choices {
    position: absolute;
    right: clamp(1.4rem, 3.3vw, 3rem);
    bottom: clamp(1.4rem, 3.3vw, 3rem);
    width: calc(max(21rem, 45%) - 2 * clamp(1.4rem, 3.3vw, 3rem));
    margin: 0;
  }
}

/* Player references use the same parchment, ink and knotwork vocabulary as the scene. */
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.4rem minmax(19rem, 26rem);
  grid-template-areas: 'main nav panel';
  gap: clamp(.75rem, 1.5vw, 1.5rem);
  align-items: start;
  width: min(100%, 96rem);
  margin: 0 auto;
}
.player-layout__main[data-scene-transition='idle'] { opacity: 1; transition: opacity var(--scene-transition-in, 96ms) ease-out; }
.player-layout__main[data-scene-transition='leaving'] { opacity: 0; transition: opacity var(--scene-transition-out, 64ms) ease-in; pointer-events: none; }
.player-layout__main[data-scene-transition='entering'] { opacity: 0; transition: none; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .player-layout__main { transition: none !important; } }
.player-layout:not(.player-layout--reference-open) { grid-template-columns: minmax(0, 1fr) 5.4rem; grid-template-areas: 'main nav'; }
.player-layout__main { grid-area: main; min-width: 0; width: 100%; }
.player-layout__main .game-scene { width: 100%; }
.player-reference-nav {
  grid-area: nav;
  position: sticky;
  top: 4rem;
  display: grid;
  gap: .6rem;
  padding: .6rem;
  border: 1px solid #956b4b;
  background: #34231d;
  box-shadow: 0 14px 35px rgba(0,0,0,.35);
}
.player-reference-nav button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .2rem;
  width: 100%;
  min-height: 4.2rem;
  margin: 0;
  padding: .5rem .2rem;
  border: 1px solid transparent;
  border-radius: .2rem;
  background: transparent;
  color: #efdcbd;
  font: 700 .7rem Arial, sans-serif;
  letter-spacing: .03em;
  cursor: pointer;
}
.player-reference-nav button:hover, .player-reference-nav button[aria-expanded='true'] {
  border-color: #d9af77;
  background: #62402b;
}
.player-reference-nav button[aria-expanded='true'] {
  color: #fff8e9;
  box-shadow: inset 0 0 0 2px #e8b86d;
}
.player-reference-nav button[aria-expanded='true']::after {
  content: 'ACTIVE';
  padding: .12rem .35rem;
  border-radius: 2rem;
  background: #e8b86d;
  color: #25170f;
  font-size: .56rem;
  line-height: 1.2;
  letter-spacing: .08em;
}
.player-reference-nav button:focus-visible, .player-reference-panel button:focus-visible {
  outline: 3px solid #ffd68d;
  outline-offset: 2px;
}
.player-reference-nav svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.player-reference-nav__new {
  display: block;
  padding: .1rem .3rem;
  border-radius: 2rem;
  background: #e8b86d;
  color: #25170f;
  font-size: .6rem;
  line-height: 1.2;
  text-transform: uppercase;
}
.player-reference-panel {
  grid-area: panel;
  min-width: 0;
  max-height: calc(100vh - 7rem);
  overflow: auto;
  border: 1px solid #956b4b;
  background: linear-gradient(150deg, #463026, #211714 70%);
  box-shadow: 0 20px 45px rgba(0,0,0,.38);
  animation: reference-panel-enter 180ms ease-out;
}
@keyframes reference-panel-enter { from { opacity: 0; transform: translateX(.7rem); } to { opacity: 1; transform: translateX(0); } }
.player-reference-panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .1rem .5rem;
  padding: .75rem 1rem;
  border-bottom: 3px solid #812e2e;
  background: #c5a77c;
  color: #271912;
}
.player-reference-panel__header p { grid-column: 1 / -1; margin: 0; font: 700 .65rem Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.player-reference-panel__header h2 { margin: 0; font-size: 1.55rem; font-weight: 400; }
.player-reference-panel__header button { min-width: 44px; min-height: 44px; margin: 0; padding: .4rem .6rem; border: 1px solid #6d3a28; background: #39241c; color: #fff0d8; font-size: .8rem; cursor: pointer; }
.player-reference-panel__empty { margin: 0; padding: 1rem; color: #f0dcc1; line-height: 1.5; }
.player-reference-panel .adventure-map { width: 100%; margin: 0; border: 0; box-shadow: none; }
.player-reference-panel .adventure-map > h2, .player-reference-panel #player-journal-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.player-reference-panel .adventure-map--travel {
  display: grid;
  grid-template-columns: minmax(0, 27rem) minmax(0, 25rem);
  gap: .55rem 1rem;
  justify-content: center;
  align-items: start;
}
.adventure-map--travel > :not(.adventure-map__canvas):not(.adventure-map__fallback):not(.adventure-map__travel-choices) { grid-column: 1 / -1; }
.adventure-map__travel-choices { grid-column: 2; }
.roadside-map-travel { display: grid; gap: .5rem; }
.roadside-map-travel h3, .roadside-map-travel p { margin: 0; }
.roadside-map-travel p { color: #e0c5a5; }
.roadside-map-travel .adventure-choice { margin: 0; min-height: 44px; padding: .55rem .75rem; font-size: 1rem; text-align: left; }
.roadside-map-travel__number { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-right: .45rem; border: 1px solid #f1c382; border-radius: 50%; font: 12px system-ui, sans-serif; }
.player-reference-panel .journey-record { display: grid; grid-template-columns: 1fr; gap: 1rem; width: 100%; margin: 0; padding: 1rem; box-sizing: border-box; }
.player-reference-panel .journey-record > section, .player-reference-panel .journey-record > figure { padding: 1rem; }
@media (max-width: 1400px) {
  .player-layout, .player-layout:not(.player-layout--reference-open) { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'main' 'nav' 'panel'; }
  .player-reference-nav { position: static; display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; }
  .player-reference-nav button { min-width: 5.3rem; }
  .player-reference-panel { max-height: none; }
}
@media (min-width: 961px) and (max-width: 1400px) {
  .player-layout--story-reference-open { grid-template-columns: minmax(0, 1fr) 5.4rem minmax(16rem, 23rem); grid-template-areas: 'main nav panel'; }
  .player-layout--story-reference-open .player-reference-nav { position: sticky; display: grid; width: auto; }
}
/* The roadside preview keeps the same reference order on phone and desktop. */
@media (min-width: 721px) {
  .player-layout.player-layout--roadside {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'nav' 'main';
  }
  .player-layout--roadside.player-layout--reference-open {
    grid-template-areas: 'nav' 'panel';
  }
  .player-layout--roadside.player-layout--story-reference-open {
    grid-template-areas: 'nav' 'panel' 'main';
  }
  .App.App--roadside-reference-open[data-skin='bof'] { min-height: calc(100dvh - 3.25rem); }
  .player-layout--roadside #player-reference-panel {
    /* Leave room for both toolbars and the page padding. */
    max-height: max(16rem, calc(100dvh - 9rem - 2 * clamp(1.5rem, 6vw, 4rem)));
  }
  .player-layout--roadside #player-reference-panel.player-reference-panel--case {
    justify-self: center;
    box-sizing: border-box;
    width: min(100%, 44rem);
    height: 32rem;
    max-height: max(20rem, calc(100dvh - 9rem - 2 * clamp(1.5rem, 6vw, 4rem)));
    overflow: hidden;
  }
  .player-reference-panel--case .case-journal__close,
  .player-reference-panel--case .paged-text__navigation button { margin: 0; }
  .player-layout--roadside #player-reference-panel .player-reference-panel__header {
    position: sticky;
    top: 0;
    z-index: 1;
  }
  .player-layout--roadside .player-reference-nav {
    position: static;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: .4rem;
    width: auto;
    min-width: 0;
    padding: .35rem;
  }
  .player-layout--roadside .player-reference-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-width: 0;
    min-height: 2.75rem;
    padding: .35rem .25rem;
    font-size: .85rem;
  }
  .player-layout--roadside .player-reference-nav svg { width: 1.4rem; height: 1.4rem; flex-shrink: 0; }
  .player-layout--roadside .player-reference-nav button[aria-expanded='true']::after { content: none; }
}
@media (min-width: 1080px) {
  .player-layout--roadside.player-layout--story-reference-open {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 26rem);
    grid-template-areas: 'nav nav' 'main panel';
  }
}
@media (max-width: 520px) {
  .adventure-choice { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: .8rem; row-gap: .4rem; }
  .adventure-choice__number { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
  .adventure-choice__action, .adventure-choice__label, .adventure-choice__travel { grid-column: 2; min-width: 0; }
  .adventure-choice__travel { grid-row: auto; }
  .player-layout--reference-open { grid-template-areas: 'nav' 'panel'; }
  .player-layout--reference-open .player-layout__main { display: none; }
  .player-reference-nav { width: 100%; box-sizing: border-box; justify-content: center; }
  .player-reference-nav button { min-width: 4.2rem; min-height: 3.5rem; }
  .player-reference-panel { min-height: calc(100dvh - 13rem); }
  .player-layout--story-reference-open { grid-template-areas: 'main' 'nav' 'panel'; }
  .player-layout--story-reference-open .player-layout__main { display: block; }
  .player-layout--story-reference-open .story-reference-panel { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .player-reference-panel { animation: none; } }
@media (max-width: 600px) {
  .game-toolbar { flex-wrap: wrap; gap: .25rem .5rem; }
  .local-ending-summary { padding-inline: min(1.2rem, 5vw); overflow-wrap: anywhere; }
  .local-ending-summary button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 820px) {
  .game-scene { grid-template-columns: 1fr; }
  .game-scene__story { min-height: 26rem; box-sizing: border-box; padding: clamp(1.25rem, 5vw, 2rem); }
  .game-scene--text-only .game-scene__story { min-height: 26rem; }
  .game-scene .adventure-question { font-size: clamp(1.45rem, 5vw, 2rem); }
}

.server-scene__illustration {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
@media (max-width: 820px) {
  .server-scene--illustrated .server-scene__illustration { height: clamp(4.5rem, 17svh, 10rem); }
  .server-scene--illustrated .game-scene__story { min-height: 0; padding: .8rem 1rem; }
  .server-scene--illustrated .adventure-question { margin-bottom: .5rem; font-size: 1.125rem; }
}

@media (max-width: 820px) and (min-height: 640px) {
  .server-scene--illustrated .server-scene__illustration { height: clamp(9rem, 25svh, 15rem); }
}
.server-scene__summary { margin: .5rem 0; }
.server-scene__summary summary { cursor: pointer; }
@media (max-width: 600px) {
  .game-shell--illustrated-server .game-toolbar { flex-wrap: nowrap; min-height: 2.75rem; }
  .game-shell--illustrated-server .game-toolbar button { margin: 0; padding: .35rem .6rem; }
  .game-shell--illustrated-server .App { padding: .4rem; min-height: calc(100svh - 2.75rem); }
  .game-shell--illustrated-server .player-layout { gap: .4rem; }
  .server-scene--illustrated .game-scene__story { padding: .6rem .8rem; }
  .server-scene--illustrated .choice-feedback, .server-scene--illustrated .server-run-location,
  .server-scene--illustrated .server-run-time { margin-bottom: .35rem; }
  .server-scene--illustrated .adventure-choices__list { gap: .3rem; }
  .server-scene--illustrated .adventure-choices__prompt { margin: .4rem 0; }
  .server-scene--illustrated .adventure-choice { display: flex; min-height: 44px; padding: .35rem .55rem; gap: .5rem; }
  .server-scene--illustrated .adventure-choice__number, .server-scene--illustrated .adventure-choice__action { display: none; }
  .server-scene--illustrated .adventure-choice__label { font-size: 1rem; }
  .server-scene--illustrated .adventure-choices > p { margin: .3rem 0; }
  .game-shell--illustrated-server .player-reference-nav { padding: .2rem; }
  .game-shell--illustrated-server .player-reference-nav button { flex-direction: row; min-height: 44px; padding: .2rem .6rem; }
}

.earned-question-mark { color: #e5bd79; font: bold .8em Georgia, serif; white-space: nowrap; }
[data-question-arrival] { position: relative; }
.phone-choices__items > button:active, .roadside-talk .adventure-choice:active {
  box-shadow: inset 0 2px 3px #160f0ac2;
}
@media (prefers-reduced-motion: no-preference) {
  [data-question-arrival]::after {
    content: ''; position: absolute; inset: 2px auto 2px 0; width: 2px; pointer-events: none;
    background: #f3d18b; transform-origin: top; animation: earned-question-stroke .65s ease-out both;
  }
  @keyframes earned-question-stroke {
    from { transform: scaleY(0); opacity: 0; }
    45% { opacity: 1; }
    to { transform: scaleY(1); opacity: 0; }
  }
  .recoverable-image--loaded img[src$="/old-master-room.jpg"] { animation: room-daylight 1.8s ease-out; }
  @keyframes room-daylight { from { filter: brightness(.96) sepia(.045); } to { filter: none; } }
}

.player-layout--roadside #player-reference-panel:has(.road-atlas) { width: min(100%, 62rem); justify-self: center; }
.player-layout--roadside #player-reference-panel:has(.road-atlas) .player-reference-panel__header {
  padding: .35rem 1rem; background: #30251d; color: #f4dfb9; border-bottom: 1px solid #725537;
}
.road-atlas .adventure-map { max-width: none; margin: 0; padding: .65rem 1rem 1rem; }
.road-atlas .atlas-tools { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.atlas-scales { display: inline-flex; border-bottom: 1px solid #816442; }
.road-atlas .atlas-tools button, .atlas-key summary, .road-atlas .atlas-link {
  margin: 0; padding: .45rem .65rem; min-height: 44px; color: #e8cfa2; font: 1rem Georgia,serif;
  border: 0; background: transparent; cursor: pointer; box-shadow: none;
}
.road-atlas .atlas-tools button[aria-pressed=true] { color: #ffe6b5; box-shadow: inset 0 -3px #dcb66e; }
.atlas-key { position: relative; }
.atlas-key summary { align-content: center; }
.atlas-key[open] ul { position: absolute; z-index: 5; right: 0; width: min(23rem,65vw); background: #30251d;
  border: 1px solid #80633f; padding: 1rem 1rem 1rem 2rem; margin: 0; color: #f2e1c5; }
.road-atlas .adventure-map--travel { grid-template-columns: minmax(0, 1.35fr) minmax(14rem,1fr); gap: .7rem 1.25rem; }
.road-atlas .adventure-map__canvas { width: min(100%, max(15rem, calc(100dvh - 18rem))); margin-inline: auto; }
.road-atlas .roadside-map-travel { gap: .65rem; align-content: start; }
.road-atlas .roadside-map-travel h3 { font: 1.6rem/1.12 Georgia,serif; color: #f5dfbd; }
.road-atlas .atlas-depart { background: #754a2c; color: #fff0d7; border: 1px solid #cda065; min-height: 44px;
  margin: .25rem 0 0; padding: .6rem 1.2rem; font: bold 1rem Georgia,serif; justify-self: start; cursor: pointer; }
.road-atlas .atlas-link { text-align: left; text-decoration: underline; text-underline-offset: .23em; justify-self: start; padding-inline: 0; }

@media (min-width: 721px) {
  .player-layout--roadside #player-reference-panel:has(.road-atlas) { position: relative; padding: 0; }
  .player-layout--roadside #player-reference-panel:has(.road-atlas) .player-reference-panel__header {
    position: absolute; top: .65rem; right: 1rem; background: transparent; border: 0; margin: 0; padding: 0;
  }
  .player-reference-panel:has(.road-atlas) .player-reference-panel__header h2 {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .player-reference-panel .road-atlas .adventure-map { width: 100%; max-width: none; margin: 0; box-sizing: border-box; }
  .road-atlas .atlas-tools { padding-right: 7.5rem; }
  .player-reference-panel .road-atlas .adventure-map__canvas { max-width: max(12rem, calc(100dvh - 23rem)); }
  #player-reference-panel .road-atlas .atlas-depart { background: #84552e; border-color: #dfb674; }
  #player-reference-panel .road-atlas .atlas-link { background: transparent; }
  .player-layout--roadside #player-reference-panel:has(.road-atlas .map-place-detail) .player-reference-panel__header { position: static; }
}

:root {
  --app-colour-ink: #2f241d;
  --app-colour-paper: #f5efdf;
  --app-colour-panel: rgba(255, 255, 255, 0.78);
  --app-colour-border: rgba(91, 58, 41, 0.42);
  --app-colour-focus: #5b3a29;
  --app-font-body: Georgia, 'Times New Roman', serif;
  --app-font-display: Georgia, 'Times New Roman', serif;
  --app-space-panel: clamp(1rem, 4vw, 1.5rem);
  --app-radius-panel: 10px;
}

.App[data-skin='bof'] {
  --app-colour-ink: #f1dfc3;
  --app-colour-paper: #211817;
  --app-colour-panel: rgba(38, 26, 23, 0.96);
  --app-colour-border: rgba(193, 118, 78, 0.55);
  --app-colour-focus: #ffc779;
  --app-colour-accent: #bd5437;
  --app-font-body: Georgia, 'Times New Roman', serif;
  --app-font-display: Georgia, 'Times New Roman', serif;
  --app-space-panel: clamp(1rem, 4vw, 1.6rem);
  --app-radius-panel: 6px;
  background:
    radial-gradient(ellipse 45% 20% at 50% 10%, rgba(136, 49, 25, .31), transparent 80%),
    radial-gradient(ellipse 80% 55% at 50% 105%, rgba(74, 30, 23, .55), transparent 75%),
    repeating-linear-gradient(115deg, transparent 0 11px, rgba(255, 216, 148, .018) 12px 13px),
    #120e0e;
  color: var(--app-colour-ink);
  min-height: 100vh;
}

.App[data-skin='bof'] section[aria-label='Scene media'] {
  min-width: 0;
  margin: 0;
  background: #181312;
}

.App[data-skin='bof'] .game-scene > section[aria-label='Scene media'] {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  min-height: clamp(24rem, 38vw, 34rem);
  overflow: hidden;
}

.App[data-skin='bof'] .game-scene > section[aria-label='Scene media'] img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
}

.App[data-skin='bof'] h1,
.App[data-skin='bof'] h2,
.App[data-skin='bof'] .demo-prologue__eyebrow {
  font-family: var(--app-font-display);
}

.App[data-skin='bof'] button {
  background: #32211d;
  border-color: var(--app-colour-accent);
  border-radius: 2px;
  color: var(--app-colour-ink);
  font-family: var(--app-font-body);
}

.App[data-skin='bof'] .adventure-choice {
  background: linear-gradient(110deg, #402720, #2b1d1b);
  border: 1px solid #8f5039;
  box-shadow: inset 3px 0 #b64c2e, 0 6px 18px rgba(0, 0, 0, .16);
}

.App[data-skin='bof'] .adventure-choice:hover {
  background: linear-gradient(110deg, #693925, #3b241d);
  box-shadow: inset 3px 0 #f1a762, 0 10px 24px rgba(0, 0, 0, .27);
}

.App[data-skin='bof'] .adventure-choice__number {
  background: #8d2e23;
  border-color: #d18d5c;
  color: #ffe5be;
}

.App[data-skin='bof'] section[aria-label='Scene media'] img {
  display: block;
  height: 100%;
  min-height: 27rem;
  max-height: 39rem;
  width: 100%;
  object-fit: cover;
}

.App[data-skin='bof'] .demo-prologue section[aria-label='Scene media'] img {
  height: auto;
  min-height: 0;
}

.App[data-skin='bof'] section[aria-label='Scene media'] audio {
  display: block;
  max-width: 100%;
  width: 100%;
}

.App[data-skin='bof'] button:hover {
  background: #743a2b;
  color: #fff2da;
}

.App[data-skin='bof'] button:focus-visible,
.App[data-skin='bof'] :focus-visible {
  outline-color: var(--app-colour-focus);
}

@media (max-width: 820px) {
  .App[data-skin='bof'] .game-scene > section[aria-label='Scene media'] {
    height: clamp(12rem, 42vw, 24rem);
    min-height: 0;
  }
  .App[data-skin='bof'] section[aria-label='Scene media'] img {
    height: clamp(12rem, 42vw, 24rem);
    min-height: 0;
  }
}


/* The roadside reading surface uses original paper grain and printed red rules. */
.App[data-skin='bof']:has(.player-layout--roadside) {
  background: radial-gradient(ellipse at top, #3d3d3d, #252525 78%);
}
.player-layout--roadside .game-scene,
.roadside-phone__main:not([data-battle-ground]):has(> .phone-scene, > .phone-talk) {
  color: #24251f;
  background: linear-gradient(110deg, #a8813821, transparent 18% 82%, #ab89381a),
    url(91e412d631a53ae67cc4.png) repeat #eee2c4;
  border-color: #897956;
  box-shadow: inset 0 3px #854238, inset 0 -1px #998257;
}
.App[data-skin='bof'] .player-layout--roadside .player-reference-nav,
.roadside-phone .roadside-phone__nav,
.roadside-phone .roadside-phone__toolbar { background: #292929; border-color: #83775e; }
.App[data-skin='bof'] .player-layout--roadside .player-reference-nav button {
  color: #f8edd1; background: #343434; border-color: #756e58;
}
.App[data-skin='bof'] .player-layout--roadside .player-reference-nav button:is(:hover,[aria-expanded=true]) {
  background: #573431; border-color: #ccb581;
}
.player-layout--roadside .game-scene :is(.adventure-question,.adventure-question__detail),
.roadside-phone .phone-scene .paged-text__copy,
.roadside-phone .phone-talk .paged-text__copy { color: #24251f; }
.player-layout--roadside .game-scene :is(.choice-feedback,.game-scene__chapter,.adventure-choices__prompt),
.roadside-phone :is(.phone-scene,.phone-talk) .phone-eyebrow { color: #762f2b; }
.player-layout--roadside .game-scene__chapter {
  display: flex; align-items: center; gap: .8rem;
}
.player-layout--roadside .game-scene__chapter::after {
  content: ''; width: 3.4rem; border-top: 3px double #9b6253;
}
.player-layout--roadside .game-scene .dialogue-aside,
.roadside-phone :is(.phone-scene,.phone-talk) .dialogue-aside { color: #514333; }
.player-layout--roadside .game-scene--conversation .conversation-speaker { background: #eee2c4; color: #24251f; }
.App[data-skin='bof'] .player-layout--roadside .game-scene .story-reference { background: transparent; color: #762f2b; }
.App[data-skin='bof'] .player-layout--roadside .game-scene .adventure-choice,
.roadside-phone :is(.phone-scene,.phone-talk) .phone-choices__items button {
  background: #f6edd6; color: #292820; border-color: #958465;
  box-shadow: inset 3px 0 #873c34;
}
.App[data-skin='bof'] .player-layout--roadside .game-scene .adventure-choice:hover,
.roadside-phone :is(.phone-scene,.phone-talk) .phone-choices__items button:hover { background: #e6d6af; color: #24251f; }
.App[data-skin='bof'] .player-layout--roadside .game-scene :is(.adventure-choice__action,.adventure-choice__travel),
.roadside-phone :is(.phone-scene,.phone-talk) .phone-choices__items .choice-new { color: #782f29; }
.App[data-skin='bof'] .player-layout--roadside .game-scene .adventure-choice__number {
  background: #78352f; border-color: #78352f; color: #fff4dc;
}
.roadside-phone :is(.phone-scene,.phone-talk) button { color: #fff2dc; }
.App[data-skin='bof'] .player-layout--roadside .game-scene :focus-visible,
.roadside-phone :is(.phone-scene,.phone-talk) button:focus-visible { outline: 3px solid #1e5863; outline-offset: -3px; }

.starting-cards { box-sizing:border-box; max-width:38rem; margin:0 auto; padding:clamp(1rem,5vw,2.5rem); color:#26251f; background:#eee2c4 url(91e412d631a53ae67cc4.png); }
.starting-cards h1 { font-family:var(--app-font-display),serif; line-height:1.1; }
.starting-cards fieldset { margin:1.3rem 0; padding:0; border:0; }
.starting-cards legend { font-weight:bold; }
.starting-cards label { display:flex; gap:.75rem; align-items:center; border-bottom:1px solid #988263; padding:.9rem .3rem; line-height:1.4; cursor:pointer; }
.starting-cards button { min-height:44px; margin:.25rem .5rem .25rem 0; padding:0 1rem; }

.social-warning { display: block; margin-top: .25em; font-size: .85em; font-weight: 400; font-style: italic; line-height: 1.3; }

