/* Willow & Root web client: an illustrated storybook for every screen, dark and light. */

:root {
  --bg: #101614;
  --bg-deep: #0b0f0e;
  --surface: #161e1b;
  --raised: #1e2824;
  --line: #2a3631;
  --text: #e8e2d0;
  --soft: #c9c2ae;
  --muted: #8e978c;
  --accent: #9fbfa6;
  --accent-strong: #b9d6be;
  --accent-ink: #0f1a14;
  --ember: #e0a35e;
  --foe: #e08a76;
  --ally: #9fbfa6;
  --hp: #84b77c;
  --hp-low: #e0745e;
  --shadow: 0 10px 30px rgb(0 0 0 / .35);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3eee1;
    --bg-deep: #ebe4d3;
    --surface: #faf7ee;
    --raised: #ece6d6;
    --line: #d8cfb9;
    --text: #2a2620;
    --soft: #4a443a;
    --muted: #7a7264;
    --accent: #3f6f52;
    --accent-strong: #2f5a40;
    --accent-ink: #f6f2e6;
    --ember: #a5601a;
    --foe: #a8402f;
    --ally: #3f6f52;
    --hp: #3d7d39;
    --hp-low: #b0442f;
    --shadow: 0 10px 26px rgb(60 45 20 / .14);
    color-scheme: light;
  }
}

/* The map's lettering: IM FELL English, cut from 17th-century English type (SIL OFL). */
@font-face { font-family: "Fell"; src: url("/fonts/fell-roman.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fell"; font-style: italic; src: url("/fonts/fell-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fell Caps"; src: url("/fonts/fell-caps.woff2") format("woff2"); font-display: swap; }
:root { --fell: "Fell", "IM Fell English", Georgia, serif; --fell-caps: "Fell Caps", "Fell", Georgia, serif; }

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  font-weight: 550;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 40px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .05s;
}
button:hover { border-color: var(--accent); }
button:active { transform: translateY(1px); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiet-button { background: transparent; color: var(--soft); }

/* ---- Top bar ---------------------------------------------------------------------------- */
.bar {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}
.place { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.title { font: 600 18px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.region-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moment { color: var(--soft); }
.moment::before { content: " · "; color: var(--muted); }
/* What is happening in this region: one quiet line of words, gone when nothing is. */
/* A row of its own under the bar, so a long title such as a shut route is read whole on a phone. */
.room-event { flex: 0 0 100%; color: var(--soft); font-size: 12px; font-style: italic; }
/* A phone has room for one: the moment, since the room card already names the region. */
@media (max-width: 480px) {
  .region-line:has(.moment:not([hidden])) #room-region { display: none; }
  .moment::before { content: none; }
}
.vitals {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--raised); border: 1px solid var(--line);
}
.hp-text { font: 600 13px var(--sans); font-variant-numeric: tabular-nums; color: var(--soft); }
.meter { width: 92px; height: 7px; background: color-mix(in srgb, var(--line) 80%, transparent); border-radius: 4px; overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; background: var(--hp); border-radius: 4px; transition: width .35s ease; }
.meter > span.low { background: var(--hp-low); }
.icon { min-width: 40px; padding: 8px 12px; font-size: 18px; line-height: 1; background: transparent; }
#toggle-panel { display: none; }

/* ---- Story -------------------------------------------------------------------------------- */
.layout { flex: 1; min-height: 0; display: flex; }
.story { flex: 1; min-width: 0; display: flex; flex-direction: column; }

#output {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 18px 8px;
  overscroll-behavior: contain;
}
#output > * { max-width: 760px; margin-left: auto; margin-right: auto; }
#new-below {
  align-self: center;
  flex: none;
  position: relative;
  z-index: 1;
  margin: -48px 8px 8px;
  background: var(--raised);
  color: var(--soft);
  border-color: var(--line);
}
.text {
  margin: 0 auto 6px;
  font: 13.5px/1.5 var(--mono);
  color: var(--soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.echo {
  margin: 14px auto 4px;
  font: 600 12px var(--sans);
  letter-spacing: .04em;
  color: var(--accent);
}
.echo::before { content: "› "; opacity: .7; }

/* A room, drawn as a card. */
.room {
  margin: 14px auto 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.return-card {
  margin: 14px auto 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.return-card h2 { margin: 0 0 8px; font: 600 22px/1.2 var(--serif); }
.return-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font: 17px/1.5 var(--serif); color: var(--text); }
.room figure { position: relative; margin: 0; aspect-ratio: 3 / 2; max-height: 340px; width: 100%; background: var(--bg-deep); cursor: zoom-in; }
.room figure.tall { max-height: none; cursor: zoom-out; }
.room img { display: block; width: 100%; height: 100%; object-fit: cover; }
.room figure::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, rgb(8 12 10 / .82), transparent);
  pointer-events: none;
}
.room figcaption { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; color: #f4efe0; }
.room .room-title { font: 600 24px/1.15 var(--serif); text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.room .room-region { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; margin-top: 4px; }
.room .body { padding: 16px 18px 18px; }
.room .plain-title { font: 600 22px/1.2 var(--serif); margin-bottom: 8px; }
.room .prose { font: 17px/1.62 var(--serif); color: var(--text); margin: 0 0 12px; }
.room .facts { display: grid; gap: 10px; margin-top: 4px; }
.room .fact { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 14px; color: var(--soft); }
.room .fact .label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.room .fact ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.room .fact-enemies .value { color: var(--foe); }

/* ---- Fight -------------------------------------------------------------------------------- */
.fight {
  margin: 0 12px 8px;
  padding: 12px 14px 10px;
  background: color-mix(in srgb, var(--foe) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--foe) 35%, var(--line));
  border-radius: var(--radius);
}
.fight > header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.fight-title { font: 600 15px var(--serif); color: var(--foe); }
.fight-round { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
#combatants { display: grid; gap: 7px; }
.combatant { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; align-items: center; font-size: 14px; }
.combatant .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.combatant.foe .who { color: var(--foe); }
.combatant.ally .who, .combatant.you .who { color: var(--ally); }
.combatant .conditions { color: var(--muted); font-size: 12px; font-weight: 400; }
.combatant .meter { width: 110px; }
#telegraphs { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
#telegraphs li { font: italic 15px/1.4 var(--serif); color: var(--ember); padding-left: 18px; position: relative; }
#telegraphs li::before { content: "◆"; position: absolute; left: 0; font-style: normal; font-size: 10px; top: 4px; }
.fight .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fight .actions button { flex: 1 1 auto; }
/* What the player has learned, as the same row of buttons (CL-009). */
#abilities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#abilities button { flex: 1 1 auto; display: flex; align-items: baseline; gap: 6px; }
#abilities .cost { font: 600 13px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
#abilities .why { font: italic 12px/1.3 var(--serif); color: var(--muted); }
#abilities button:disabled { cursor: default; color: var(--soft); }
#abilities button:disabled:hover { border-color: var(--line); transform: none; }
#fight-more { margin-top: 10px; }
#fight-more summary { cursor: pointer; font: italic 14px var(--serif); color: var(--muted); }
#fight-verbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#fight-verbs button { flex: 1 1 auto; }

/* ---- Exits and input ---------------------------------------------------------------------- */
.exits { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 12px; }
.exits button { min-width: 84px; text-transform: capitalize; background: var(--surface); }
.exits button .arrow { color: var(--accent); margin-right: 4px; }
.exits button.shut { color: var(--soft); border-style: dashed; }
.exits button.shut .arrow { color: inherit; }

/* Common commands: one tap each, scrolling sideways on narrow screens. */
.quick {
  display: flex; gap: 6px; padding: 0 12px 8px;
  overflow-x: auto; scrollbar-width: none; justify-content: center;
}
.quick::-webkit-scrollbar { display: none; }
.quick button {
  flex: none; min-height: 32px; padding: 4px 12px;
  font-size: 13px; background: transparent; color: var(--soft);
}
@media (max-width: 760px) { .quick { justify-content: flex-start; } }

.command {
  display: flex; gap: 8px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-top: 1px solid var(--line);
}
#entry {
  flex: 1; min-width: 0;
  font: 16px var(--sans); /* 16px keeps iOS from zooming in on focus */
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
}
#entry::placeholder { color: var(--muted); }
.send { min-width: 46px; padding: 0 14px; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-size: 16px; }

/* ---- Side panel --------------------------------------------------------------------------- */
.panel { width: 290px; flex: none; overflow-y: auto; background: var(--surface); border-left: 1px solid var(--line); padding: 18px; }
.panel h2 { margin: 0 0 8px; font: 700 11px var(--sans); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.panel section + section { margin-top: 22px; }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.panel li { display: flex; justify-content: space-between; gap: 8px; }
.panel li.quiet { display: block; }
.journal-line { margin: 0 0 6px; font-size: 14px; }
.panel .quest-list { list-style: none; padding: 0; margin: 0; font-size: 14px; gap: 10px; }
.panel .quest-list:not(:empty) { margin: 8px 0; }
.panel .quest-list li { display: block; }
.quest-step { color: var(--muted); }
.quest-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.quest-actions:not(:empty) { margin: 8px 0; }
.panel .journal-entries { margin-top: 8px; color: var(--muted); font-size: 13px; }
.village-confessions { display: grid; gap: 6px; }
.village-confessions:not(:empty) { margin-top: 8px; }
.village-confessions button { text-align: left; white-space: normal; }
.panel li .side { color: var(--muted); font-size: 12px; }
/* Item rows in Carrying and Worn (CL-008B): a row that names an item is a button, and the actions
   the game offers for it open below it when it is tapped. A row reads as the list row it was. */
.panel li.item-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.panel li.item-row > .item-line { width: 100%; justify-self: stretch; }
.item-line {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-weight: inherit; text-align: left; background: transparent; border: 0;
  border-radius: 0; padding: 0; min-height: 0;
}
.item-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.item-actions button { padding: 4px 12px; min-height: 32px; font-size: 13px; }
.ask-about { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; }
.ask-label { flex-basis: 100%; font-size: 12px; opacity: 0.7; }
.quiet { color: var(--muted); }
code { font-family: var(--mono); font-size: .9em; }

/* ---- Phones -------------------------------------------------------------------------------- */
@media (max-width: 760px) {
  body { font-size: 14px; }
  .bar { padding: 8px 12px; gap: 8px; }
  .title { font-size: 16px; }
  .meter { width: 54px; }
  .vitals { padding: 4px 10px; }
  #output { padding: 12px 10px 6px; }
  .text { font-size: 12.5px; }
  .room { margin: 10px 0 14px; border-radius: 12px; }
  .room figure { max-height: 240px; }
  .room .room-title { font-size: 21px; }
  .room .prose { font-size: 16px; }
  .room .fact { grid-template-columns: 1fr; gap: 4px; }
  .fight { margin: 0 8px 6px; }
  .combatant { grid-template-columns: minmax(0, 1fr) 80px; }
  .combatant .meter { width: 80px; }
  #toggle-panel { display: inline-block; }
  .panel {
    position: fixed; top: 58px; right: 0; bottom: auto;
    width: min(320px, 88vw); max-height: calc(100% - 70px);
    border: 1px solid var(--line); border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    box-shadow: var(--shadow);
    transform: translateX(105%); transition: transform .2s ease;
    z-index: 4;
  }
  .panel.open { transform: none; }
}

.closed {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  margin: 0 auto; max-width: 420px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--raised);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 5;
}
.closed p { margin: 0; }
/* ---- Map -------------------------------------------------------------------------------------- */
.link-button { min-height: 0; padding: 0 0 0 6px; border: 0; background: none; color: var(--accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.parchment {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 18% 22%, rgb(160 120 60 / .16), transparent 42%),
    radial-gradient(ellipse at 82% 76%, rgb(150 105 50 / .18), transparent 46%),
    radial-gradient(ellipse at 50% 50%, #f1e4c3 30%, #e3cfa2 100%);
}
.mini-map { width: 100%; height: 190px; display: block; border: 1px solid #b89d6c; border-radius: 10px; cursor: pointer; box-shadow: inset 0 0 24px rgb(110 75 30 / .35); }
.sheet {
  position: fixed; inset: 0; z-index: 6;
  display: flex; flex-direction: column;
  background: var(--bg);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.sheet > header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.map-wrap { position: relative; flex: 1; min-height: 0; display: flex; }
.map-wrap::after {
  /* A double ruled border, as on an old chart. */
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 2px solid rgb(90 62 32 / .7); outline: 1px solid rgb(90 62 32 / .45); outline-offset: -6px;
  box-shadow: inset 0 0 60px rgb(110 75 30 / .35);
}
.map-svg { flex: 1; min-height: 0; width: 100%; touch-action: none; cursor: grab; }
.map-svg:active { cursor: grabbing; }
.compass { position: absolute; right: 22px; bottom: 22px; width: 84px; height: 84px; pointer-events: none; opacity: .85; }
.map-hint { margin: 0; padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--muted); text-align: center; background: var(--surface); border-top: 1px solid var(--line); }
.map-tip {
  position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 1;
  padding: 8px 16px; border-radius: 6px; background: #f2e6c8; color: #4a3420; border: 1px solid #7b5d3c;
  box-shadow: 0 6px 18px rgb(60 40 15 / .35); font: italic 600 15px var(--serif); white-space: nowrap;
}
.map-path { fill: none; stroke: #6b4e30; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 7 5; }
.map-path.crossing { stroke: #4f7f9a; stroke-width: 2.6; stroke-dasharray: 1 8; }
.map-path.unexplored { stroke-width: 1.6; stroke-dasharray: 2 5; opacity: .75; }
.map-cloud-mark { fill: #7b5d3c; font: italic 20px var(--fell); text-anchor: middle; pointer-events: none; }
.map-halo { fill: none; stroke: #b8862b; stroke-width: 2.5; }
.map-ribbon { fill: #f6ecd2; stroke: #4a3420; stroke-width: 1; }
.map-name { fill: #3a2814; font: italic 12.5px var(--fell); text-anchor: middle; pointer-events: none; }
.map-room.here .map-name { fill: #8c2f1e; }
.map-region {
  fill: #4f3820; font: 19px var(--fell-caps); letter-spacing: .14em;
  pointer-events: none; opacity: .85;
  paint-order: stroke; stroke: rgb(241 228 195 / .65); stroke-width: 3px; stroke-linejoin: round;
}
.map-sketch { opacity: .62; mix-blend-mode: multiply; }
.map-here-ribbon { fill: #8c2f1e; stroke: #4a1a10; stroke-width: 1; }
.map-here-text { fill: #f6ecd2; font: italic 13px var(--fell); text-anchor: middle; pointer-events: none; }
.sheet .title { font-family: var(--fell); font-size: 22px; font-weight: 400; }
@media (max-width: 760px) { .compass { width: 64px; height: 64px; right: 16px; bottom: 16px; } }

/* Names and lists come from the game in lowercase ("healing herb", "wild boar"): start each entry
   with a capital, as a list in a book would, without changing the words. */
.panel li > span:first-child,
.item-line > span:first-child { display: inline-block; }
.panel li > span:first-child::first-letter,
.item-line > span:first-child::first-letter,
.combatant .who::first-letter,
.room .fact .value::first-letter,
.room .fact .value li::first-letter { text-transform: uppercase; }

/* ---- Sign in ---------------------------------------------------------------------------------- */
.signin {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto;
  display: grid; place-items: center; padding: 16px;
  background: linear-gradient(rgb(11 15 14 / .25), rgb(11 15 14 / .6)), url("/art/ferry-landing.webp") center / cover var(--bg-deep);
}
.signin-card {
  width: 100%; max-width: 360px; display: grid; gap: 14px; padding: 22px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
/* The ferry bell, cut from the same painting as the backdrop, in a ring like the map's medallions. */
.signin-emblem {
  justify-self: center; width: 84px; height: 84px; border-radius: 50%;
  background: url("/art/ferry-landing.webp") -293px -63px / 403px auto no-repeat;
  border: 2px solid #b8862b; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px #4a3420;
}
.signin-card h1 { margin: -4px 0 0; text-align: center; font: 400 30px var(--fell-caps); letter-spacing: .02em; color: var(--text); }
.signin-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.signin-tabs button { min-height: 40px; padding-inline: 6px; font-size: 14px; white-space: nowrap; }
.signin-tabs button[aria-pressed="true"] { background: var(--raised); border-color: var(--accent); color: var(--text); }
.signin-tabs button[aria-pressed="false"] { background: none; color: var(--muted); }
.signin-card label { display: grid; gap: 5px; color: var(--soft); font: 500 13px var(--sans); }
.signin-card input {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; font: 16px var(--sans);
  color: var(--text); background: var(--bg-deep); border: 1px solid var(--line); border-radius: 8px;
}
.signin-card input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.signin-error { margin: 0; color: var(--foe); font-size: 14px; }
.signin-submit { min-height: 46px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.signin-submit:disabled { opacity: .6; }
.signin-note { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* The terminal view (CL-010): the same story as plain text, with no panels and no pictures. */
.icon.view-toggle { font: 600 13px var(--mono); min-width: 36px; padding: 8px; }
body.terminal { background: var(--bg-deep); }
body.terminal .panel,
body.terminal #toggle-panel,
body.terminal #fight,
body.terminal #exits,
body.terminal #quick,
body.terminal .room figure img,
body.terminal .room figure::after { display: none; }
body.terminal #output,
body.terminal #output * { font-family: var(--mono); font-size: 14px; line-height: 1.45; letter-spacing: 0; }
body.terminal .room { background: none; border: 0; box-shadow: none; border-radius: 0; }
body.terminal .room .body { padding: 0; }
body.terminal .room figure { aspect-ratio: auto; max-height: none; background: none; cursor: default; }
body.terminal .room figcaption { position: static; color: var(--text); }
body.terminal .room .room-title { font-weight: 700; text-shadow: none; }
body.terminal .room .room-region { display: none; }
