/* Supporting pages share the same reading measure, pigments and type as the game folio. */
.page {
  --page-line: #4a4940;
  --page-ink: #f6efe0;
  --page-muted: #c9bead;
  --page-accent: #f0c68a;
  min-height: 58vh;
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(4rem, 9vw, 8rem);
  background: #1a2121 url(../img/scenes/lobby-vellum.webp) 0 0 / 360px;
  background-blend-mode: luminosity;
  color: var(--page-ink);
  font-family: var(--body);
  overflow-wrap: anywhere;
}

.page > .wrap {
  max-width: 56rem;
}

.page .prose,
.page .sub,
.page .note,
.page .doclist {
  max-width: 47rem;
}

.page h1 {
  margin: 0 0 1.2rem;
  font: 600 clamp(3.15rem, 7.1vw, 6.1rem) / .97 var(--folio);
  letter-spacing: -.035em;
  color: var(--page-ink);
  text-wrap: balance;
  hyphens: auto;
}

.page .sub {
  margin: 0 0 2.2rem;
  color: var(--page-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  line-height: 1.6;
}

.page .prose h2 {
  margin: clamp(2.25rem, 5vw, 3.5rem) 0 .85rem;
  font: 650 clamp(1.95rem, 3.1vw, 2.65rem) / 1.05 var(--folio);
  letter-spacing: -.025em;
  color: var(--page-ink);
  text-wrap: balance;
}

.page .prose p,
.page .prose li,
.page .prose td,
.page .prose th {
  line-height: 1.65;
}

.page .prose p {
  margin: 0 0 1rem;
}

.page .prose .sub {
  margin-bottom: 2.2rem;
}

.page .prose ul,
.page .prose ol {
  margin: 1rem 0;
  padding-inline-start: 1.5rem;
}

.page .prose li {
  margin-block: .4rem;
  padding-inline-start: .15rem;
}

.page .prose li::marker {
  color: var(--page-accent);
}

.page a:not(.btn) {
  color: var(--page-accent);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}

.page a:not(.btn):hover {
  color: #ffdfab;
}

.page :is(a, summary):focus-visible {
  outline: 2px solid var(--page-accent);
  outline-offset: 4px;
}

.page .note {
  margin: 1.45rem 0;
  padding: 1rem 1.2rem;
  border-inline-start: 2px solid #ba965e;
  background: transparent;
  color: #f0e5d2;
  line-height: 1.65;
}

.page .note.warn {
  border-color: #d99b72;
  background: transparent;
}

.draft {
  padding: .65rem 1.2rem;
  border-bottom: 1px solid #735a40;
  background: #30261f;
  color: #f1d5ab;
  font: 500 .88rem / 1.55 var(--body);
  text-align: center;
}

.page .prose table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: .94rem;
  hyphens: auto;
}

.page .prose th,
.page .prose td {
  padding: .8rem .7rem;
  border-bottom: 1px solid var(--page-line);
  text-align: start;
  vertical-align: top;
}

.page .prose th {
  color: var(--page-accent);
  font-weight: 600;
}

.page .prose :is(th, td):first-child {
  padding-inline-start: 0;
}

.page .prose :is(th, td):last-child {
  padding-inline-end: 0;
}

.page .peoples {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  color: var(--page-muted);
}

.page .peoples span {
  padding-block: .3rem;
  border-bottom: 1px solid var(--page-line);
}

.page > .index-layout { max-width: 72rem; }
.index-intro { min-width: 0; }
.index-intro .sub { margin-bottom: 0; }
.document-index, .support-page .faq { margin-top: 2rem; }
.page .faq h2, .page .contact-guide h2 { margin-top: 0; }

.doclist {
  --index-rule: #665b48;
  padding: 0;
  margin: 0;
  list-style: none;
  border-block-start: 1px solid var(--index-rule);
}
.doclist li { border-block-end: 1px solid var(--page-line); }
.page .doclist a {
  position: relative;
  display: block;
  padding: 1.08rem 2.4rem 1.05rem 0;
  color: var(--page-ink);
  font: 600 clamp(1.75rem, 3vw, 2.3rem)/1.05 var(--folio);
  letter-spacing: -.025em;
  text-decoration: none;
}
.doclist small {
  display: block;
  margin-top: .37rem;
  font: 400 .92rem/1.5 var(--body);
  letter-spacing: 0;
  color: var(--page-muted);
}
.doclist svg {
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  inset-inline-end: .3rem;
  top: calc(50% - .675rem);
  color: var(--page-accent);
}

.page .faq details { border-block-end: 1px solid var(--page-line); }
.page .faq details:first-of-type { border-block-start: 1px solid var(--page-line); }
.faq summary, .contents summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 1rem 2.2rem 1rem 0;
}
.faq summary::-webkit-details-marker, .contents summary::-webkit-details-marker { display: none; }
.faq summary {
  color: var(--page-ink);
  font: 600 clamp(1.48rem, 2.4vw, 1.82rem)/1.12 var(--folio);
}
.faq summary::after, .faq summary::before, .contents summary::after, .contents summary::before {
  content: "";
  position: absolute;
  right: .45rem;
  top: 50%;
  width: .8rem;
  height: 1.5px;
  background: var(--page-accent);
}
.faq summary::before, .contents summary::before { transform: rotate(90deg); }
.faq details[open] summary::before, .contents[open] summary::before { transform: rotate(0); }
.page .faq details[open] summary, .page .faq summary:hover { color: var(--page-accent); }
.page .faq .ans { padding: 0 clamp(0rem, 2vw, 2rem) 1.15rem 0; color: var(--page-muted); }
.page .faq .ans p:last-child { margin-bottom: 0; }
.page .contact-guide { margin-block-start: 2.2rem; }
.page .contact-guide .note { padding: 0; margin: 0 0 1rem; border: 0; color: var(--page-muted); }

.page .document-back, .page .document-end {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  min-height: 44px;
  font: 500 .9rem/1.35 var(--body);
  text-decoration: none;
}
.document-back { margin-block: -.55rem 1.1rem; }
.document-end { margin-top: 1.35rem; border-block-start: 1px solid var(--page-line); }
.document-back svg, .document-end svg { width: 1.15rem; height: 1.15rem; }
.document-end svg { transform: rotate(90deg); }
.page .contents {
  max-width: 39rem;
  border-block: 1px solid #71634b;
  margin: .65rem 0 2.5rem;
}
.contents, .reading-page h2[id] { scroll-margin-top: 16px; }
.contents summary { display: block; color: var(--page-accent); font-weight: 550; }
.page .contents ol {
  list-style: decimal-leading-zero;
  margin: 0;
  padding: 0 0 1rem 1.85rem;
}
.page .contents li { padding-inline-start: .3rem; margin: 0; }
.page .contents li::marker { font-size: .76em; font-variant-numeric: tabular-nums; }
.page .contents a { display: block; padding-block: .58rem; min-height: 44px; text-decoration-color: #74654d; }
.page .privacy-data tbody th { color: var(--page-ink); font-weight: 500; }
.privacy-data .data-label { display: none; }
.page.lost-page {
  background: linear-gradient(90deg,#0c1417ef 12%,#0c1417c4 54%,#0c141744),
              #121a1b url(../img/scenes/bridge.webp) 66% 53% / cover;
}
.lost-page .wrap { max-width: 72rem; }
.lost-page h1 { max-width: 10em; }

@media (min-width: 960px) {
  .index-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0,.74fr) minmax(0,1fr);
    gap: 2.8rem clamp(3rem, 6.5vw, 6.75rem);
  }
  .document-index, .support-page .faq { margin-top: 0; }
  .index-layout .index-details { grid-column: 2; }
  .index-details h2 { margin-top: 0; }
  .support-page .faq { grid-area: 1/2/3/3; }
  .support-page .contact-guide { grid-area: 2/1; margin: 0; }
  .index-layout h1 { font-size: clamp(4.3rem, 6.4vw, 5.7rem); }
}
@media (max-width: 640px) {
  .page.reading-page { padding-top: 1.45rem; }
  .reading-page h1 { font-size: clamp(2.6rem, 10.5vw, 3.8rem); line-height: 1; }
  .reading-page .prose :is(p, li) { line-height: 1.58; }
  .privacy-data, .privacy-data tbody, .privacy-data tr { display: block; }
  .privacy-data thead {
    position: absolute;
    overflow: hidden;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    white-space: nowrap;
  }
  .privacy-data tbody tr { border-block-start: 1px solid var(--page-line); padding-block: .9rem; }
  .privacy-data tbody tr:last-child { border-block-end: 1px solid var(--page-line); }
  .page .prose .privacy-data tbody :is(td, th) {
    display: block;
    border: 0;
    padding: 0;
    line-height: 1.5;
  }
  .page .prose .privacy-data tbody th { margin-bottom: .65rem; font-size: 1rem; }
  .page .prose .privacy-data td + td { margin-top: .5rem; }
  .privacy-data .data-label {
    display: inline;
    margin-right: .45em;
    color: var(--page-accent);
    font-size: .84rem;
    font-weight: 600;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .faq summary::before, .contents summary::before, .doclist svg { transition: transform .18s ease-out; }
  .doclist a:is(:hover,:focus-visible) svg { transform: translateX(2px); }
}
.page .btns {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.page.release-page { padding-top: 0; }
.release {
  position: relative;
  display: grid;
  isolation: isolate;
  align-items: center;
  min-height: clamp(360px, 36vw, 570px);
  background: #101718;
  overflow: hidden;
}
.release-art, .release::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.release-art { background: url(../img/scenes/vasilisa.webp) 65% 39% / cover; }
.release::after {
  content: "";
  background: linear-gradient(90deg, #0b1216df, #11181d86 39%, transparent 66%),
              linear-gradient(0deg, #0c10175e, transparent 32%);
}
.release-copy { padding-block: clamp(42px, 5.7vw, 90px); }
.release-copy h1 {
  max-width: 9.2em;
  font: 600 clamp(4.4rem, 7.7vw, 7.7rem)/.91 var(--folio);
  letter-spacing: -.052em;
}
.release-copy .sub {
  max-width: min(35%, 32rem);
  margin-bottom: 24px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  color: #e6dfd2;
}
.release-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 30px; }
.release-status {
  display: inline-flex; align-items: center; gap: 11px;
  color: #f5d69e; font-weight: 550; line-height: 1.3;
}
.release-status::before {
  content: ""; width: 13px; height: 13px; transform: rotate(45deg);
  border: 1px solid #d1a668; background: #dbb57a;
  box-shadow: inset 0 0 0 3px #302b25;
}
.page a.release-heroes { display: none; }
.release-links:has(.release-status) a.release-heroes {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  color: #f7edda; font-size: .9rem; text-decoration-thickness: 1px;
  text-underline-offset: .36em;
}
.release-heroes svg { width: 19px; height: 19px; }
.release-copy .device-note { max-width: 40ch; margin-top: 16px; color: #e1d4c2; }
.page > .release-guide {
  max-width: 1320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 8vw, 125px);
  margin-top: clamp(52px, 6.7vw, 105px);
}
.release-guide .prose { min-width: 0; }
.release-guide .prose h2 { margin: 0 0 22px; }
.release-guide .prose h3 { font: 650 1.35rem/1.25 var(--folio); }
.release-guide .official ul { margin-block: .6rem 1.3rem; }
.release-guide .prose p, .release-guide .prose li { color: var(--page-muted); }
.install-size { display: flex; flex-wrap: wrap; column-gap: 26px; row-gap: 16px; margin: 26px 0 22px; }
.install-size div { display: flex; flex-direction: column-reverse; }
.install-size div + div { padding-left: 25px; border-inline-start: 1px solid #6e624e; }
.install-size dt { font: 500 .78rem/1.35 var(--body); color: var(--page-muted); }
.install-size dd { margin: 0 0 5px; font: 600 clamp(32px, 4.1vw, 60px)/.95 var(--folio); letter-spacing: -.025em; color: #e9c88f; }
.install-size small { font-size: .46em; letter-spacing: 0; }
@media (prefers-reduced-motion: no-preference) {
  .release-heroes svg { transition: transform .2s ease-out; }
  .release-heroes:is(:hover,:focus-visible) svg { transform: translateX(3px); }
}
.page .device-note,
.page .btns:empty,
.page .device-note:empty,
.page .hidden {
  display: none;
}

html[data-device="desktop"] .release-copy:has(.btns a) [data-for="desktop"]:not(:empty),
html[data-device="ios"] .release-copy:has(.btns a) [data-for="ios"]:not(:empty) {
  display: block;
}

@media (max-width: 760px) {
  .page > .release-guide { grid-template-columns: minmax(0,1fr); gap: 34px; margin-top: 37px; }
  .release-guide .official { border-top: 1px solid var(--page-line); padding-top: 28px; }
  .release-copy .sub { max-width: min(58%, 28rem); }
}
@media (max-width: 640px) {
  .release { min-height: auto; }
  .release-art { height: clamp(210px, 60vw, 328px); background-position: 80% 35%; }
  .release::after {
    height: clamp(211px, 60.4vw, 330px);
    background: linear-gradient(0deg, #101718, #101718d6 10%, transparent 54%);
  }
  .release-copy { padding-block: clamp(160px, 48vw, 256px) 25px; }
  .release-copy h1 { font-size: clamp(59px, 14vw, 77px); margin-bottom: 13px; }
  .release-copy .sub { max-width: 39ch; margin-bottom: 12px; }
  .release-links { column-gap: 24px; }
  .page .prose table {
    font-size: .89rem;
  }

  .page .prose td,
  .page .prose th {
    padding: .65rem .35rem;
  }
}
