@font-face {
  font-family: Instrument;
  src: url(fonts/display.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(fonts/body.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(fonts/caption.ttf) format("truetype");
  font-display: swap;
}
:root {
  --paper: #f3f0e9;
  --ink: #222923;
  --mute: #5b615b;
  --rust: #873e2e;
  --hair: #c9c6ba;
  --display: Instrument, Georgia, serif;
  --sans: DM, Arial, sans-serif;
  --narrow: Barlow, Arial, sans-serif;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
}
button,
a,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  background: none;
  border: 0;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 3px solid #ce7443;
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:hover:not(:disabled) {
  filter: brightness(1.09);
}
[hidden] {
  display: none !important;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
i svg {
  width: 1.16em;
  height: 1.16em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.mast {
  padding: 0 clamp(20px, 4.4vw, 82px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mast {
  height: 76px;
  border-bottom: 1px solid var(--hair);
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.035em;
  line-height: 1;
}
.mast nav {
  display: flex;
  gap: 30px;
  align-items: center;
  height: 100%;
}
.mast nav a {
  font-size: 14px;
  text-decoration: none;
  align-content: center;
  height: 100%;
  position: relative;
}
.mast nav a:hover:after,
.mast nav a.nav-walk:after {
  content: "";
  position: absolute;
  bottom: 17px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rust);
}
.eyebrow {
  font: 600 14px/1.2 var(--narrow);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  display: flex;
  align-items: center;
  gap: 0.66em;
}
.rust {
  color: var(--rust);
}
.dot {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 100%;
}
.rule {
  width: 28px;
  height: 1px;
  background: currentColor;
}
.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 490px;
  height: min(65svh, 690px);
  background: #292d28;
  color: #faf5e9;
  display: flex;
  align-items: center;
}
.cover-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 76%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  z-index: -3;
}
.cover-film {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #242b27 2%,
      #242b27 19%,
      rgba(36, 43, 39, 0.98) 24%,
      rgba(36, 43, 39, 0.72) 33%,
      rgba(33, 40, 35, 0.19) 50%,
      transparent 64%
    ),
    linear-gradient(0deg, rgba(19, 22, 17, 0.5), transparent 22%);
  z-index: -1;
}
.cover-type {
  padding: 25px clamp(20px, 5vw, 90px) 48px;
  max-width: 730px;
}
.cover-kicker {
  color: #ead4a7;
}
.cover h1 {
  font: 400 clamp(74px, 7.4vw, 131px) / 0.9 var(--display);
  margin: 25px 0 19px;
  letter-spacing: -0.038em;
}
.dek {
  font: 400 clamp(16px, 1.25vw, 21px) / 1.48 var(--sans);
  max-width: 365px;
  margin: 0;
  color: #f2eee5;
  text-wrap: pretty;
}
.enter-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-size: 15px;
}
.primary {
  background: #f6f1e6;
  color: #242b27;
  padding: 0 20px;
  font-weight: 600;
}
.primary i svg {
  fill: currentColor;
  width: 0.8em;
}
.cover-place {
  position: absolute;
  bottom: 20px;
  right: clamp(18px, 3vw, 55px);
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 13px var(--sans);
  text-shadow: 0 1px 6px #111;
}
.detail-strip {
  display: flex;
  gap: clamp(20px, 3.6vw, 70px);
  align-items: center;
  padding: 17px clamp(20px, 5vw, 90px);
  border-bottom: 1px solid var(--hair);
  color: #454b44;
}
.detail-strip span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}
.detail-strip a {
  margin-left: auto;
  font-size: .875rem;
  text-underline-offset: .22em;
}
.detail-strip i {
  color: var(--rust);
}
body.walking {
  overflow: hidden;
}
.walking .mast,
.walking main,
.walking .detail-strip {
  display: none;
}
#player {
  --transport-height: 52px;
  --pad-left: max(16px, env(safe-area-inset-left));
  --pad-bottom: calc(var(--transport-height) + max(8px, env(safe-area-inset-bottom)) + 16px);
  position: fixed;
  inset: 0;
  z-index: 4;
  isolation: isolate;
  background: #242923;
  color: #fff9ea;
}
.scene,
#world,
#painted,
.vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#world {
  touch-action: none;
  display: block;
  outline: none;
  cursor: grab;
}
#world:active {
  cursor: grabbing;
}
#painted {
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
#painted-doorway {
  position: absolute;
  background-repeat: no-repeat;
}
#painted-tile {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  clip-path: polygon(2% 66%, 22% 39%, 60% 18%, 96% 5%, 94% 33%, 77% 58%, 30% 91%, 10% 94%);
}
#painted-shutter {
  position: absolute;
  background: #382f25;
  clip-path: polygon(7% 22%, 91% 4%, 92% 94%, 9% 94%);
}
#painted-shutter > span {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  transform-origin: right center;
}
#painted-strike {
  position: absolute;
  width: var(--cloud-size);
  height: calc(var(--cloud-size) * .67);
  background: radial-gradient(ellipse, #dfcdb1 4%, #cdba9eaa 31%, #bfad9488 48%, #b6a58900 73%);
  transform: translate(-50%, -50%);
}
#painted [data-gun] {
  position: absolute;
  width: clamp(3px, .55vw, 9px);
  aspect-ratio: 1.5;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, #fff7d8 10%, #ffd79b 32%, transparent 72%);
}
.scene:has(#painted:not([hidden])) {
  overflow: hidden;
  background-color: #2b2b26;
}
.scene:has(#painted:not([hidden]))::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: var(--painted-image) center / cover no-repeat;
  filter: blur(40px) brightness(.30) saturate(.55);
  pointer-events: none;
}
.vignette {
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #181c2237 0%,
    transparent 18%,
    transparent 77%,
    #151b1994 100%
  );
}
.player-top {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  top: max(16px, env(safe-area-inset-top));
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.top-tools {
  display: flex;
  gap: 6px;
}
.glass,
.playback .transport,
.move-pad button {
  color: #f8f3e5;
  background: #1f2725eb;
  border: 1px solid #e4dec14d;
}
.glass {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding-inline: 10px;
}
.glass,
.top-tools,
.player-top > button {
  pointer-events: auto;
}
.glass[aria-pressed="true"]#history {
  background: #eee7d5;
  color: #2a302a;
}
.glass[aria-pressed="false"]#sound {
  color: #cfbfa2;
}
.icon-only {
  width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.playback {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(780px, calc(100% - 32px));
}
.transport {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  min-height: 52px;
}
.transport button {
  height: 44px;
  flex-shrink: 0;
}
.timeline {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 10px;
}
.timeline input {
  flex: 1;
  min-width: 32px;
  accent-color: #e7c78a;
  cursor: pointer;
  min-height: 26px;
}
.transport #timer {
  font: 500 14px var(--sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.control-rule {
  height: 20px;
  border-left: 1px solid #ededde55;
}
.transport #guide {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
}
.transport #speed {
  min-width: 39px;
}
.transport button:hover,
.glass:hover {
  background-color: #4a5245;
}
.date-card,
#cue-toast {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.date-card {
  top: 20%;
  font: 400 clamp(32px, 4vw, 61px) var(--display);
  letter-spacing: -0.015em;
  color: white;
  text-shadow:
    0 2px 14px #121a17,
    0 1px 7px #121a17;
  max-width: 85%;
  width: max-content;
}
.date-card span {
  display: block;
  font: 600 14px var(--narrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 7px;
}
.date-card:not([hidden]) {
  animation: date-in 0.6s ease-out;
}
@keyframes date-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#cue-toast {
  bottom: calc(var(--transport-height) + 34px);
  background: #1b211edb;
  padding: 6px 12px;
  max-width: 90%;
  font-size: 14px;
}
#cue-toast:empty {
  display: none;
}
#sound-recovery {
  position: absolute;
  top: calc(max(16px, env(safe-area-inset-top)) + 52px);
  right: max(8px, env(safe-area-inset-right));
  gap: 10px;
  padding-block: 4px;
  font-size: 14px;
  z-index: 3;
}
#continue-muted {
  min-height: 34px;
  padding-inline: 9px;
  color: inherit;
  background: transparent;
  border: 1px solid #e4dec180;
}






#fallback-note {
  position: absolute;
  left: 16px;
  top: 72px;
  color: white;
  background: #1f2727cf;
  padding: 4px 9px;
  font-size: 12px;
}
.move-pad {
  position: absolute;
  left: var(--pad-left);
  bottom: var(--pad-bottom);
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 3px;
}
.move-pad [data-move="forward"] {
  grid-column: 2;
}
.move-pad [data-move="left"] {
  grid-column: 1;
}
.move-pad button {
  height: 44px;
  touch-action: none;
}
.move-pad button:active {
  background: #eee7d5;
  color: #242b27;
}
.end-card {
  color: var(--ink);
  background: var(--paper);
  max-width: 510px;
  padding: clamp(25px, 4vw, 55px);
}
#ending {
  max-width: min(510px, calc(100% - 36px));
  padding: clamp(25px, 4vw, 55px);
}
.end-card h2 {
  font: 48px/1.04 var(--display);
  margin: 12px 0;
}
.end-card p {
  font-size: 17px;
  line-height: 1.55;
}
.end-card .primary {
  background: var(--ink);
  color: white;
}
.end-exit {
  min-height: 46px;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 8px;
}
dialog {
  padding: 0;
  position: fixed;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  max-width: min(920px, 94vw);
  max-height: 90svh;
  width: max-content;
  box-shadow: 0 10px 65px #0005;
}
dialog::backdrop {
  background: #151b18c9;
}
.dialog-close {
  position: absolute;
  z-index: 3;
  right: 10px;
  top: 10px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #f4f1e9ef;
  color: var(--ink);
  border: 1px solid #bbb9a9;
}
.dialog-text {
  padding: 26px clamp(22px, 4vw, 50px);
  max-width: 660px;
}
.dialog-text h2 {
  font: 43px/1 var(--display);
  margin: 7px 0 12px;
}
.dialog-text p {
  line-height: 1.6;
}
.help-list {
  padding-left: 18px;
  line-height: 1.65;
}
.map-frame {
  position: relative;
}
.map-frame-interactive {
  background: #f6f5f0;
  width: min(920px, 94vw);
  max-height: none !important;
}
.map-iframe {
  width: 100%;
  height: min(560px, 64svh);
  border: 0;
  display: block;
}
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.map-frame img {
  width: 100%;
  display: block;
}
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 17px;
  height: 17px;
  border-radius: 100%;
  background: #923623;
  border: 3px solid #fff4df;
  box-shadow: 0 0 0 2px #5a2924;
}
.map-copy {
  padding: 15px 24px 20px;
  font-size: 14px;
  line-height: 1.5;
}
.map-copy b {
  font: 28px var(--display);
  display: block;
}
.map-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.map-key:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
}
@media (max-width: 820px) {
  .cover {
    height: 58svh;
    min-height: 470px;
  }
  .cover-art {
    width: 87%;
    object-position: 55% 50%;
  }
  .cover-film {
    background:
      linear-gradient(
        90deg,
        #232a26f5,
        #232a26db 23%,
        #232a2690 43%,
        transparent 72%
      ),
      linear-gradient(0deg, #20251f80, transparent 34%);
  }
  .detail-strip {
    gap: 16px;
    justify-content: space-between;
  }
  .detail-strip span {
    font-size: 12px;
  }
  .mast {
    height: 66px;
  }
  .mast nav {
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .mast {
    height: 62px;
  }
  .identity {
    font-size: 25px;
    gap: 8px;
  }
  .identity img {
    width: 28px;
    height: 28px;
  }
  .mast nav a {
    font-size: 13px;
  }
  .mast nav .nav-walk {
    display: none;
  }
  .cover {
    height: 76svh;
    min-height: 500px;
    max-height: 700px;
    align-items: flex-end;
  }
  .cover-art {
    width: 100%;
    height: 73%;
    object-position: 39% center;
  }
  .cover-film {
    background: linear-gradient(
      0deg,
      #242b27 3%,
      #242b27 16%,
      #242b27f5 31%,
      #242b2788 56%,
      transparent 82%
    );
  }
  .cover-type {
    padding: 28px 21px 44px;
  }
  .cover h1 {
    font-size: clamp(66px, 18vw, 97px);
    margin: 15px 0;
  }
  .cover-kicker {
    font-size: 12px;
  }
  .dek {
    font-size: 15px;
    max-width: 310px;
  }
  .enter-row {
    gap: 18px;
    margin-top: 19px;
    flex-wrap: wrap;
  }
  .primary {
    font-size: 14px;
  }
  .cover-place {
    bottom: 12px;
    right: auto;
    left: 22px;
    font-size: 11px;
  }
  .detail-strip {
    display: grid;
    grid-template-columns: auto auto;
    padding: 14px 20px;
    justify-content: start;
    gap: 9px 15px;
  }
  .detail-strip span:nth-child(3) { grid-column: 1/-1; }
  .detail-strip a { grid-column: 1/-1; margin-left: 0; padding-block: 6px; }
  #player {
    --transport-height: 90px;
  }
  .transport {
    display: grid;
    grid-template-columns: repeat(3, 44px) minmax(0, 1fr);
    gap: 0 4px;
    padding: 4px 8px;
  }
  .timeline {
    grid-column: 1 / -1;
    min-height: 36px;
  }
  .timeline input {
    min-height: 34px;
    margin: 0;
  }
  .transport #timer {
    font-size: 13px;
  }
  .transport #guide {
    justify-content: center;
    gap: 4px;
    padding: 0 2px;
    white-space: normal;
    line-height: 1.15;
  }
  .transport .control-rule {
    display: none;
  }
  .playback {
    width: calc(100% - 16px);
    bottom: max(8px, env(safe-area-inset-bottom));
  }
  .player-top {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    top: max(8px, env(safe-area-inset-top));
    gap: 4px;
  }
  .player-top .glass {
    min-width: 44px;
    padding-inline: 4px;
  }
  .top-tools .glass {
    flex-direction: column;
    gap: 1px;
    font-size: 13px;
  }

  .date-card {
    top: 38%;
  }
  .top-tools {
    gap: 4px;
  }
}
@media (max-height: 520px) and (orientation: landscape) {



  .playback {
    bottom: 7px;
  }

}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
.screening {
  display: block;
  aspect-ratio: 16 / 9;
  width: min(900px, 92vw);
  max-height: 67svh;
  background: #161a16;
}
.film-caption {
  min-height: 64px;
  padding: 12px 68px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
dialog[data-kind="film"] .dialog-close { top: auto; bottom: 10px; }
.film-caption span {
  font: 29px var(--display);
}
.film-caption a {
  font-size: 14px;
}
.film-sources {
  display: table;
}
.film-listening-note[hidden] + .film-caption .film-sources {
  display: none;
}
.film-stage {
  position: relative;
}
.film-prompt {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  pointer-events: none;
  color: var(--paper);
}
.film-status,
.film-prompt button {
  background: #1f2725f0;
  margin: 0;
  padding: 11px 18px;
}
.film-prompt button {
  min-height: 44px;
  pointer-events: auto;
  border: 1px solid #f3f0e9;
}
.dark {
  background: var(--ink);
  color: var(--paper);
}


.credits {
  max-width: 840px;
  margin: 0 auto;
  padding: 55px clamp(20px, 5vw, 55px) 80px;
}
.credits h1 {
  font: 64px/1 var(--display);
  letter-spacing: -0.04em;
  margin: 15px 0 35px;
}
.credits h2 {
  font: 32px/1.1 var(--display);
  margin: 32px 0 8px;
}
.credits p,
.credits li {
  font-size: 16px;
  line-height: 1.6;
}
.credits a {
  text-underline-offset: 3px;
}
@media (max-width: 600px) {
  .screening {
    width: 94vw;
  }
  .film-caption span {
    font-size: 24px;
  }
}
#day-dissolve {
  position: absolute;
  inset: 0;
  background: #201f1b;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 600px) {
  .cover-art {
    height: min(63%, 102vw);
    object-position: 27% center;
    mask-image: linear-gradient(to bottom, black 72%, transparent);
  }
}
.map-frame {
  max-height: 62svh;
  display: flex;
  justify-content: center;
  background: #d8bd80;
}
.map-frame img {
  width: auto;
  max-width: 100%;
  max-height: 62svh;
  height: auto;
  object-fit: contain;
}
.map-copy p {
  font-size: 14px;
  margin: 8px 0;
}
.map-zoom {
  display: block;
  color: var(--rust);
  padding: 5px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#place-labels {position:absolute;inset:0;pointer-events:none;overflow:hidden}
.landmark {position:absolute;left:0;top:0;color:#fffae8;background:#2b3028ed;padding:4px 8px;font:500 13px/1.2 var(--sans);white-space:nowrap;border-radius:2px}
.landmark.context-note {width:max-content;max-width:min(221px,62vw);white-space:normal;text-wrap:pretty;line-height:1.3}
.landmark:after {content:"";position:absolute;left:var(--stem-x,0);bottom:0;width:14px;border-top:1px solid #fff9e3;transform-origin:0 0;transform:rotate(45deg)}
.landmark.left-leader:after {transform:rotate(135deg)}
.landmark.trench-note:after {bottom:-34px;width:0;height:34px;border:0;border-left:1px solid #fff9e3;transform:none}
@media(max-width:620px){#map-open span{display:none} #map-open{min-width:44px;padding:0 9px}}

#walk-listening-toggle .short-listen { display: none; }
#walk-listening-toggle[aria-pressed="true"],
.film-listening-toggle[aria-pressed="true"] {
  background: #eee7d5;
  color: #2a302a;
}
#walk-listening-note {
  position: absolute;
  left: 50%;
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--transport-height) + 5px);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(calc(100% - 32px), 60ch);
  margin: 0;
  padding: 6px 12px;
  color: #faf5e9;
  background: #1f2725f0;
  font: 15px/1.35 var(--sans);
  text-align: center;
  pointer-events: none;
}
#walk-listening-note.above-action {
  top: calc(max(16px, env(safe-area-inset-top)) + 53px);
  bottom: auto;
}
#player:has(#walk-listening-note.above-action:not([hidden])) #fallback-note {
  top: auto;
  bottom: 80px;
}
#player:has(#walk-listening-note:not([hidden]):not(.above-action)) #cue-toast {
  bottom: calc(var(--transport-height) + 100px);
}
#player:has(#walk-listening-note:not([hidden]):not(.above-action)) {
  --pad-bottom: calc(var(--transport-height) + max(8px, env(safe-area-inset-bottom)) + 90px);
}

@media (max-width: 600px) {
  #player:has(.move-pad:not([hidden])) #cue-toast {
    left: calc(var(--pad-left) + 148px);
    right: max(12px, env(safe-area-inset-right));
    bottom: var(--pad-bottom);
    transform: none;
    font-size: 13px;
  }
}
.film-listening-toggle,
.film-history-toggle {
  border: 1px solid #8f897b;
  padding: 5px 10px;
  min-height: 44px;
  line-height: 1.15;
}
.film-history-toggle[aria-pressed="true"],
.film-listening-toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.film-listening-note {
  margin: 0;
  padding: 7px 14px;
  min-height: calc(2.7em + 14px);
  align-content: center;
  text-align: center;
  background: #242b27;
  color: #faf5e9;
  font: 15px/1.35 var(--sans);
}
@media (max-width: 620px) {
  #walk-listening-toggle { min-width: 38px; }
  #walk-listening-toggle .wide-listen { display: none; }
  #walk-listening-toggle .short-listen { display: block; }
  #walk-listening-note { font-size: 14px; bottom: calc(max(8px, env(safe-area-inset-bottom)) + var(--transport-height) + 5px); }
  .film-caption { flex-wrap: wrap; justify-content: flex-start; gap: 4px 13px; padding: 8px 58px 8px 12px; }
  .film-caption > div { flex-basis: 100%; }
  .film-listening-note { font-size: 14px; min-height: calc(4.05em + 14px); }
}
@media (max-height: 520px) and (orientation: landscape) {
  dialog:has(.film-listening-note:not([hidden])) .screening { max-height: 56svh; }
}

@media (max-width: 355px) {
  .film-listening-note { min-height: calc(5.4em + 14px); }
  .player-top #leave span { display: none; }
  .cover h1 { font-size: clamp(2.65rem, 16vw, 3.55rem); }
  .cover-kicker { color: #fff2d3; }
}

@media (max-height: 520px) and (orientation: landscape) {
  #walk-listening-note, #walk-listening-note.above-action {
    top: calc(max(16px, env(safe-area-inset-top)) + 50px);
    bottom: auto;
    left: max(12px, env(safe-area-inset-left));
    transform: none;
    max-width: min(28vw, 31ch);
    padding: 5px 8px;
    text-align: left;
    font-size: 13px;
  }
  #player:has(#walk-listening-note:not([hidden])) #fallback-note {
    top: auto;
    bottom: 69px;
  }
}

/* Let the cover fill the space between the masthead and chapter details. */
.chapter-page { min-height: 100svh; display: flex; flex-direction: column; }
.chapter-page > main { flex: 1; display: flex; }
.chapter-page.walking > main { display: none; }
.chapter-page .cover { flex: 1; height: auto; min-height: max(490px, 65svh); max-height: none; }
@media (max-width: 600px) {
  .chapter-page .cover { min-height: max(500px, 66svh); }
}

@media (max-width: 420px) and (max-height: 680px) and (orientation: portrait) {
  #player {
    --pad-top: calc(max(8px, env(safe-area-inset-top)) + 50px);
  }
  .move-pad {
    left: max(8px, env(safe-area-inset-left));
    top: var(--pad-top);
    bottom: auto;
    grid-template-columns: repeat(4, 44px);
  }
  .move-pad button[data-move] {
    grid-column: auto;
  }
  .move-pad button[data-move="left"] {
    order: -1;
  }
  #player:has(.move-pad:not([hidden])) #cue-toast {
    left: calc(max(8px, env(safe-area-inset-left)) + 193px);
    right: max(8px, env(safe-area-inset-right));
    top: var(--pad-top);
    bottom: auto;
    padding-inline: 6px;
    font-size: 12px;
  }
  #player:has(.move-pad:not([hidden])) #walk-listening-note {
    top: calc(var(--pad-top) + 50px);
    bottom: auto;
  }
  #player:has(.move-pad:not([hidden])):has(#walk-listening-note:not([hidden])) #cue-toast {
    clip-path: inset(50%);
  }
}
