:root {
  --purple: #755391;
  --muted: #82778c;
  --line: #e0d7e3;
  --paper: #fffdf8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #32293e;
  background: #faf6ed radial-gradient(#dfd5df 0.7px, transparent 0.7px);
  background-size: 20px 20px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  font-size: 16px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #b59bd8;
  outline-offset: 3px;
}
input,
select {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #dcd1e4;
  border-radius: 9px;
  background: #fffdfa;
  padding: 11px 12px;
  color: #382a45;
  width: 100%;
}
label {
  font-size: 13px;
  font-weight: 650;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  border: 0;
}
button,
a {
  color: inherit;
}
.site-header {
  min-height: 82px;
  padding: 18px max(24px, calc((100vw - 1060px) / 2));
  background: #fffcf7;
  border-bottom: 1px solid #e6dfe8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.3px;
}
.brand span {
  font-size: 11px;
  font-weight: 500;
  color: #94829d;
  letter-spacing: 0.2px;
}
#menu {
  position: relative;
}
#menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  padding: 9px 13px;
  border: 1px solid #e5d9ec;
  border-radius: 9px;
  background: #f7f0fb;
  font-weight: 650;
  color: #78599a;
  white-space: nowrap;
}
#menu summary::-webkit-details-marker {
  display: none;
}
#menu summary span {
  margin-left: 12px;
}
#menu nav {
  position: absolute;
  right: 0;
  top: 48px;
  z-index: 10;
  width: 265px;
  padding: 8px;
  background: #fffdf9;
  border: 1px solid #e3d7ea;
  border-radius: 12px;
  box-shadow: 0 15px 40px #4d33531c;
}
#menu nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  background: none;
  border-radius: 7px;
  font-size: 13px;
  color: #665372;
}
#menu nav button:hover {
  background: #eee5f7;
}
main {
  max-width: 880px;
  padding: 46px 26px 65px;
  margin: auto;
  min-height: calc(100vh - 151px);
}
.welcome {
  max-width: 670px;
  margin: 20px auto;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #9475ac;
  margin: 0 0 17px;
}
h1 {
  font:
    normal clamp(36px, 5.5vw, 58px)/1.12 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
  outline: none;
}
h1 em {
  color: #79579a;
  font-weight: 400;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  line-height: 1.35;
  margin: 0 0 16px;
}
h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
.lead {
  font:
    20px/1.55 Georgia,
    serif;
  color: #645272;
  margin: 0 0 15px;
}
.welcome-note {
  font-size: 14px;
  color: #8b7b92;
  max-width: 560px;
  margin: 0 0 28px;
}
.setup {
  background: #fffdf8;
  border: 1px solid #e5dce8;
  border-radius: 17px;
  padding: 25px;
  display: grid;
  gap: 20px;
  box-shadow: 0 4px 20px #6b516805;
}
.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.name-fields:has([hidden]) {
  grid-template-columns: 1fr;
}
.setup-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.check {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
  color: #7c678a;
  font-weight: 500;
}
.check input {
  width: auto;
  accent-color: #79579a;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 19px;
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
  min-height: 44px;
}
.primary {
  background: #79559e;
  color: #fff;
}
.secondary {
  background: #fffcf8;
  border-color: #dacde4;
  color: #78599a;
}
.small {
  padding: 8px 13px;
  font-size: 12px;
  min-height: 38px;
}
.text-button {
  background: none;
  color: #87669e;
  font-size: 12px;
  padding: 8px 0;
  text-align: left;
}
.fine {
  font-size: 11px;
  color: #94819d;
  margin: 0;
  line-height: 1.7;
}
.session-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 17px;
}
.session-meta .eyebrow {
  margin: 0;
}
.session-meta > span:last-child {
  font-size: 10px;
  color: #a08da8;
  white-space: nowrap;
}
.party {
  display: flex;
  gap: 12px;
  margin-bottom: 34px;
}
.hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 14px 17px;
  background: #fffdf8;
  border: 1px solid #e4dbe8;
  border-radius: 12px;
  flex: 1;
  min-width: 0;
}
.hero-card > div:first-child {
  min-width: 0;
}
.hero-card strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.hero-card span {
  display: block;
  font-size: 10px;
  color: #92819e;
  margin-top: 3px;
}
.health {
  text-align: right;
  flex-shrink: 0;
}
.health strong {
  font-size: 21px;
  color: #78549c;
  line-height: 1.1;
}
.health small {
  font-size: 11px;
  color: #a492ad;
  font-weight: 400;
}
.story h1 {
  font-size: clamp(33px, 5vw, 47px);
}
.audio-controls {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
  margin: 0 0 15px;
}
.audio-controls > span {
  color: #a190a9;
  font-size: 11px;
}
.transcript-toggle {
  margin-bottom: 18px;
}
.transcript {
  font:
    19px/1.85 Georgia,
    serif;
  color: #5b4c66;
  max-width: 750px;
}
.transcript p {
  margin: 0 0 20px;
}
.choices {
  border-top: 1px solid #e2d9e6;
  padding-top: 25px;
  margin-top: 32px;
}
.choices h2 {
  font-size: 15px;
  margin-bottom: 15px;
}
.choice {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 16px;
  width: 100%;
  padding: 17px 19px;
  background: #fffdf8;
  border: 1px solid #dfd4e6;
  border-radius: 11px;
  margin-bottom: 11px;
  transition:
    background 0.15s,
    border-color 0.15s;
  color: #4d3b5e;
}
.choice:hover {
  background: #f3edf8;
  border-color: #cbb7dd;
}
.choice kbd {
  font: 600 12px system-ui;
  background: #f0e8f6;
  color: #936faf;
  border-radius: 6px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.choice strong {
  font-size: 14px;
  display: block;
}
.choice small {
  font-size: 11px;
  color: #96819f;
  display: block;
  margin-top: 3px;
}
.choice-arrow {
  margin-left: auto;
  color: #a385b7;
}
.session-tools {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid #e4dce8;
  margin-top: 30px;
  padding-top: 14px;
}
.session-tools > span {
  font-size: 10px;
  color: #a895ae;
  margin-left: auto;
}
.combat {
  margin-top: 30px;
  background: #fffdf8;
  border: 1px solid #dfd3e7;
  border-radius: 16px;
  padding: 24px;
}
.combat-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.combat-heading .eyebrow {
  margin-bottom: 6px;
}
.combat-heading h2 {
  margin: 0;
}
.combat > p {
  font-size: 13px;
  color: #8b7695;
}
.enemy-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 21px 0;
}
.enemy-card {
  padding: 17px;
  background: #f4eef7;
  border: 1px solid #e4d7eb;
  border-radius: 11px;
  flex: 1;
  min-width: 180px;
}
.enemy-card h3 {
  font-size: 14px;
}
.enemy-card dl {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.enemy-card dt {
  font-size: 10px;
  color: #97829f;
}
.enemy-card dd {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  color: #78559a;
}
.result-disclosure {
  margin-top: 22px;
  border-top: 1px solid #e7ddec;
  padding-top: 16px;
}
.result-disclosure > summary {
  cursor: pointer;
  font-weight: 650;
  color: #79559e;
  font-size: 14px;
}
.result-disclosure form {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}
.health-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
fieldset {
  border: 1px solid #e5dbe9;
  border-radius: 10px;
  padding: 14px;
}
legend {
  font-size: 12px;
  color: #8b7598;
  padding: 0 6px;
}
fieldset .fine {
  margin-top: 10px;
}
#notice {
  max-width: 828px;
  margin: 0 auto 25px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #eee5f8;
  border: 1px solid #ddceeb;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#notice.error {
  background: #fff0e8;
  border-color: #e4c4b3;
  color: #8b4937;
}
.ending {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #ddd0e8;
  border-radius: 12px;
  background: #fffdf8;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.ending > p {
  flex-basis: 100%;
  color: #8a7497;
  font-size: 13px;
  margin: 0 0 5px;
}
dialog {
  border: 1px solid #ddd0e7;
  border-radius: 17px;
  background: #fffcf7;
  color: #4c3b5b;
  padding: 24px;
  max-width: 650px;
  width: calc(100% - 36px);
  max-height: 85dvh;
  overflow-y: auto;
  box-shadow: 0 20px 90px #25133025;
}
dialog::backdrop {
  background: #37244055;
  backdrop-filter: blur(2px);
}
.dialog-header {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}
.dialog-header h2 {
  font:
    normal 29px/1.2 Georgia,
    serif;
}
.icon-button {
  background: #f0e7f7;
  color: #8e6ba7;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
#panel-body > p {
  font-size: 13px;
  color: #8b7697;
}
#panel-body .hero-card {
  margin: 12px 0;
}
#panel-body .button {
  margin: 10px 8px 0 0;
}
#panel-body form {
  display: grid;
  gap: 16px;
}
.voice-card {
  padding: 16px 0;
  border-bottom: 1px solid #e4d9e9;
}
.voice-card p {
  margin: 5px 0 0 24px;
  font-size: 12px;
  color: #94819e;
}
.voice-card .check {
  font-size: 15px;
}
.rules {
  font-size: 13px;
  color: #76617f;
}
.rules ol {
  padding-left: 22px;
}
.rules li {
  padding: 5px 0;
}
.inventory {
  list-style: none;
  padding: 0;
  font-size: 14px;
}
.inventory li {
  padding: 10px 0;
  border-bottom: 1px solid #e8dfec;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.inventory li span {
  font-size: 11px;
  color: #a08aa8;
  text-align: right;
}
.map-list {
  list-style: none;
  padding: 15px 0;
  margin: 0;
}
.map-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 12px;
  margin-left: 8px;
  position: relative;
  font-size: 13px;
}
.map-list li + li:before {
  content: "";
  position: absolute;
  left: 18px;
  top: -5px;
  height: 25px;
  border-left: 1px dashed #c6afd6;
}
.map-dot {
  color: #b5a0c4;
  width: 14px;
}
.map-list .current {
  background: #eee4f7;
  border-radius: 9px;
  color: #77519a;
}
.map-list strong {
  font-size: 10px;
  margin-left: 10px;
}
.panel-actions {
  margin-top: 20px;
}
.error-copy {
  color: #9b4f3d !important;
}
#print-sheet {
  display: none;
}
footer {
  border-top: 1px solid #e6dde9;
  background: #fffdf8;
  padding: 19px max(24px, calc((100vw - 1060px) / 2));
  font-size: 10px;
  color: #a28baa;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
#voice-preview-status {
  font-size: 12px;
  color: #8c6fa1;
}
@media (max-width: 600px) {
  .site-header {
    min-height: 70px;
    padding: 15px 18px;
    gap: 10px;
  }
  .brand {
    font-size: 13px;
    display: block;
  }
  .brand span {
    display: block;
    font-size: 9px;
    letter-spacing: 0;
    margin-top: 2px;
  }
  #menu summary {
    font-size: 11px;
    padding: 9px;
  }
  #menu nav {
    width: 245px;
    max-width: calc(100vw - 36px);
  }
  main {
    padding: 30px 18px 40px;
  }
  .welcome {
    margin: 5px auto;
  }
  h1 {
    font-size: 43px;
  }
  .lead {
    font-size: 18px;
  }
  .welcome-note {
    font-size: 13px;
  }
  .setup {
    padding: 19px;
  }
  .name-fields {
    grid-template-columns: 1fr;
  }
  .party {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 29px;
  }
  .hero-card {
    padding: 11px 14px;
  }
  .session-meta {
    align-items: start;
    gap: 12px;
  }
  .session-meta > span:last-child {
    font-size: 9px;
  }
  .session-meta .eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  .story h1 {
    font-size: 36px;
  }
  .transcript {
    font-size: 18px;
    line-height: 1.75;
  }
  .choice {
    padding: 15px 13px;
    gap: 11px;
  }
  .choice strong {
    font-size: 13px;
  }
  .choice small {
    font-size: 10px;
  }
  .session-tools {
    gap: 15px;
  }
  .session-tools > span {
    flex-basis: 100%;
    margin-left: 0;
  }
  .combat {
    padding: 18px;
  }
  .combat-heading {
    display: block;
  }
  .combat-heading .text-button {
    margin-top: 8px;
  }
  .enemy-card {
    min-width: 160px;
  }
  .health-inputs {
    grid-template-columns: 1fr;
  }
  .audio-controls {
    gap: 13px;
  }
  .audio-controls > span {
    flex-basis: 100%;
  }
  dialog {
    padding: 20px;
  }
  .dialog-header h2 {
    font-size: 26px;
  }
  footer {
    padding: 16px 18px;
    flex-wrap: wrap;
  }
  #notice {
    margin: 0 18px 20px;
  }
  .inventory li {
    display: block;
  }
  .inventory li span {
    display: block;
    text-align: left;
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }
  body {
    background: white !important;
    color: black;
    font-size: 11pt;
  }
  body > header,
  body > main,
  body > footer,
  #notice,
  dialog {
    display: none !important;
  }
  #print-sheet {
    display: block !important;
  }
  #print-sheet h1 {
    font-size: 25pt;
    letter-spacing: 0;
  }
  #print-sheet h2 {
    font-size: 15pt;
  }
  .paper-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8mm;
    margin-bottom: 8mm;
  }
  .paper-cards article {
    border: 1px solid black;
    padding: 6mm;
    break-inside: avoid;
  }
  .paper-cards h2 {
    margin: 0 0 4mm;
  }
  .paper-cards p {
    font-size: 10pt;
  }
  .health-boxes {
    font-size: 16pt !important;
    letter-spacing: 1pt;
  }
  .rules {
    font-size: 10pt;
    color: black;
    line-height: 1.45;
  }
  .rules p {
    margin: 3mm 0;
  }
  .gm-sheet {
    break-before: page;
  }
  .gm-sheet h3 {
    margin-top: 8mm;
  }
}

/* Adventure library; the play screen remains focused on narration and choices. */
.library-intro {
  max-width: 680px;
  margin-bottom: 32px;
}
.library-intro h1 {
  margin-bottom: 20px;
}
.library-intro h1 em {
  color: var(--purple);
  font-weight: 400;
}
.library-intro > p:last-child {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.7;
}
.adventure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}
.adventure-card {
  max-width: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 10px 28px #30263706;
}
.adventure-card > img {
  width: 100%;
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.adventure-card-body {
  padding: 26px;
}
.adventure-card h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1.2;
  margin: 14px 0;
}
.adventure-card-body > p:not(.eyebrow) {
  line-height: 1.7;
  color: var(--muted);
}
.adventure-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.saved-run {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #ede5f4;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.saved-run span {
  color: var(--muted);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.unavailable {
  padding: 24px;
}
.welcome > #back-to-library {
  margin-bottom: 24px;
}
.map-scroll {
  overflow: auto;
}
.map-graph {
  display: block;
  width: 100%;
  min-width: 280px;
  max-height: 530px;
}
.map-graph line {
  stroke: #bcaaca;
  stroke-width: 3;
}
.map-graph rect {
  fill: #fffdf8;
  stroke: #d9ccdf;
  stroke-width: 2;
}
.map-graph text {
  font-family: system-ui, sans-serif;
  fill: #40344f;
  font-size: 16px;
}
.map-graph .current rect {
  fill: #eae0f3;
  stroke: #9475ad;
}
.map-graph .map-here {
  font-size: 12px;
  fill: #755391;
}
.map-connections {
  font-size: 13px;
  line-height: 1.7;
  padding-left: 20px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .adventure-card-body {
    padding: 20px;
  }
  .adventure-card h2 {
    font-size: 27px;
  }
  .adventure-card-actions {
    flex-direction: column;
  }
  .adventure-card-actions .button {
    width: 100%;
  }
  .adventure-grid {
    gap: 20px;
  }
  .library-intro {
    margin-bottom: 24px;
  }
}

/* Pip Adventures: a storybook library, with a quiet paper surface during play. */
:root {
  --purple: #664778;
  --muted: #716476;
  --line: #ddcfbd;
  --paper: #fffcf5;
  --gold: #a87d3d;
  --ink: #392e40;
}
body {
  color: var(--ink);
  background-color: #faf5e9;
  background-image: radial-gradient(#d9cdd7 0.7px, transparent 0.7px);
}
.site-header {
  background: #fffcf5f5;
  border-bottom-color: var(--line);
}
.brand {
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  flex: 0 0 auto;
}
.brand .brand-copy {
  display: block;
  color: var(--ink);
  letter-spacing: 0;
}
.brand-copy strong {
  display: block;
  font:
    600 21px/1.25 Georgia,
    serif;
}
.brand-copy small {
  display: block;
  margin-top: 4px;
  color: #7a6486;
  font: 600 10px/1.4 system-ui;
  letter-spacing: 0.8px;
}
#menu summary {
  border-color: #d9c8dc;
  background: #f4ebf6;
  color: #624270;
}
#menu nav {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: 0 14px 40px #49304720;
}
#menu nav button {
  color: #594363;
}
#menu nav button:disabled {
  opacity: 0.55;
}
body[data-stage="picker"] main {
  max-width: 1170px;
  padding-top: 54px;
}
.library-hero {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 38px;
  align-items: center;
  margin-bottom: 44px;
}
.library-intro {
  margin: 0;
  max-width: none;
}
.library-intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #816136;
  letter-spacing: 1.8px;
}
.library-intro .eyebrow span {
  font-size: 18px;
  font-weight: 400;
}
.library-intro h1 {
  font-size: clamp(42px, 5.5vw, 67px);
  line-height: 1.06;
  margin: 0 0 23px;
  letter-spacing: -2px;
}
.library-intro .lead {
  font-size: 23px;
  color: #594361;
}
.library-intro .welcome-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 26px;
}
.library-jump {
  gap: 25px;
}
.library-art {
  margin: 0;
  position: relative;
}
.library-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.35;
  object-fit: cover;
  object-position: center;
  border-radius: 150px 150px 12px 12px;
  border: 1px solid #b2925b;
  padding: 5px;
  background: #e9d5aa;
  box-shadow: 0 15px 38px #5d3b401c;
}
.library-art figcaption {
  text-align: center;
  font:
    italic 14px/1.6 Georgia,
    serif;
  color: #7d6349;
  margin-top: 14px;
}
.adventure-ritual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  padding: 25px 0;
  margin: 0 0 54px;
  border-block: 1px solid var(--line);
}
.adventure-ritual li {
  display: flex;
  align-items: center;
  gap: 13px;
}
.ritual-number {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #cdb48b;
  border-radius: 50%;
  flex-shrink: 0;
  font:
    15px Georgia,
    serif;
  color: #846035;
  background: #f7efdf;
}
.adventure-ritual strong {
  display: block;
  font-size: 13px;
  color: #5a4167;
}
.adventure-ritual div > span {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 4px;
}
.adventure-shelf {
  scroll-margin-top: 25px;
}
.shelf-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 24px;
}
.shelf-heading .eyebrow {
  font-size: 9px;
  color: #886739;
  margin-bottom: 10px;
}
.shelf-heading h2 {
  font:
    normal 34px/1.2 Georgia,
    serif;
  margin: 0;
}
.shelf-heading > p {
  max-width: 230px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 3px;
}
.adventure-card {
  border-radius: 12px;
  border-color: #d5c1a5;
  box-shadow: 0 8px 24px #5d3b400b;
  position: relative;
}
.adventure-card > img {
  aspect-ratio: 1.8;
  border-bottom: 3px solid #b78d51;
}
.adventure-card-body {
  padding: 26px 29px 28px;
}
.adventure-card .adventure-facts {
  color: #82613b;
  font-size: 9px;
  letter-spacing: 1.1px;
}
.adventure-card h2 {
  font-size: 32px;
  color: #44314e;
}
.adventure-card-body > p:not(.eyebrow) {
  font-size: 14px;
}
.saved-run {
  background: #f0e7f2;
  border-left: 3px solid #9c7aad;
  border-radius: 3px 8px 8px 3px;
  padding: 12px 14px;
  font-size: 12px;
}
.primary {
  background: linear-gradient(145deg, #79548f, #5b3c70);
  border: 1px solid #68477b;
  box-shadow:
    inset 0 1px #b997c5,
    0 3px 7px #51375f16;
}
.primary:hover {
  background: #58386d;
}
.secondary {
  color: #654674;
  border-color: #cdbbd4;
  background: #fffaf2;
}
.button {
  border-radius: 7px;
}
.eyebrow {
  color: #81608f;
}
.welcome {
  padding-top: 4px;
}
.setup,
.combat,
.ending {
  border-color: #d7c4a8;
  border-radius: 11px;
  background: var(--paper);
  box-shadow: 0 8px 24px #5d3b4008;
}
.hero-card {
  border-color: #d9c9b5;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: inset 3px 0 #bd9a60;
}
.hero-card span,
.fine,
.audio-controls > span,
.session-meta > span:last-child,
.session-tools > span {
  color: #76647d;
}
.health strong {
  color: #68447d;
}
.health small {
  color: #7b6b82;
}
.story {
  border-top: 1px solid #d6c09d;
  padding-top: 27px;
}
.story .eyebrow {
  color: #876436;
  font-size: 9px;
}
.story h1 {
  color: #49334f;
}
.transcript {
  color: #56455b;
}
.choices {
  border-top-color: #d6c09d;
}
.choices h2 {
  font:
    normal 23px/1.3 Georgia,
    serif;
  color: #5d426b;
}
.choice {
  border-color: #d8c9b7;
  border-radius: 7px;
  background: var(--paper);
  padding-block: 18px;
  box-shadow: 0 2px 5px #5d3b4004;
}
.choice:hover {
  background: #f4edf6;
  border-color: #b897c3;
}
.choice kbd {
  background: #efe3f2;
  border: 1px solid #d7bfdf;
  border-radius: 50%;
  color: #69477c;
  width: 32px;
  height: 32px;
}
.choice-arrow {
  color: #876436;
}
dialog {
  border-color: #cfbfa9;
  background: var(--paper);
  border-radius: 12px;
}
footer {
  border-color: var(--line);
  color: #7b687f;
  background: #fffcf5;
}
@media (max-width: 850px) {
  .library-hero {
    gap: 25px;
    grid-template-columns: 1fr 1fr;
  }
  .library-intro h1 {
    font-size: 48px;
  }
  .library-intro .lead {
    font-size: 20px;
  }
  .library-art img {
    aspect-ratio: 1;
    border-top-left-radius: 110px;
    border-top-right-radius: 110px;
  }
  .adventure-ritual {
    gap: 15px;
  }
  .adventure-ritual li {
    align-items: start;
    gap: 9px;
  }
}
@media (max-width: 600px) {
  .site-header {
    gap: 10px;
  }
  .brand {
    display: flex;
    gap: 9px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-copy strong {
    font-size: 16px;
    line-height: 1.1;
  }
  .brand-copy small {
    font-size: 9px;
    letter-spacing: 0.5px;
    margin-top: 5px;
  }
  .brand span {
    margin-top: 0;
  }
  body[data-stage="picker"] main {
    padding-top: 28px;
  }
  .library-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
  }
  .library-intro h1 {
    font-size: clamp(41px, 10vw, 57px);
    letter-spacing: -1.5px;
    margin-bottom: 18px;
  }
  .library-intro .lead {
    font-size: 21px;
  }
  .library-intro .welcome-note {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .library-art img {
    aspect-ratio: 1.9;
    border-radius: 70px 70px 8px 8px;
    padding: 3px;
  }
  .library-art figcaption {
    font-size: 13px;
    margin-top: 9px;
  }
  .adventure-ritual {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
    padding-block: 22px;
  }
  .adventure-ritual li {
    align-items: center;
    gap: 13px;
  }
  .adventure-ritual div > span {
    font-size: 12px;
  }
  .shelf-heading {
    display: block;
    margin-bottom: 20px;
  }
  .shelf-heading h2 {
    font-size: 30px;
  }
  .shelf-heading > p {
    max-width: none;
    margin-top: 12px;
  }
  .adventure-card-body {
    padding: 21px;
  }
  .adventure-card h2 {
    font-size: 29px;
  }
  .adventure-card > img {
    aspect-ratio: 1.6;
  }
  .story {
    padding-top: 23px;
  }
  .story h1 {
    font-size: 34px;
  }
}
