@font-face {
  font-family: "Knockbacks Display";
  src: url("assets/knockbacks-display.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/DM-Sans-Latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #102e2c;
  --night: #0b211f;
  --gold: #e4b971;
  --ivory: #faf2df;
  --paper: #eee8d9;
  --red: #ff7975;
  --display: "Knockbacks Display", "Arial Black", sans-serif;
  --gutter: clamp(1.25rem, 4.6vw, 6rem);
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ivory);
  background: var(--night);
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.cover { min-height: 100svh; display: flex; flex-direction: column; }
.wrap { width: min(100%, 132rem); margin-inline: auto; padding-inline: var(--gutter); }

.masthead { background: var(--ink); border-bottom: 1px solid #c9ab702b; }
.masthead-inner { min-height: clamp(3.8rem, 6vw, 5.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: clamp(.5rem, .8vw, .9rem); }
.brand img { display: block; height: auto; mix-blend-mode: lighten; }
.emblem { width: clamp(1.9rem, 2.7vw, 2.7rem); }
.wordmark { width: clamp(8.8rem, 11vw, 12.5rem); }
.sound { display: inline-flex; gap: .65rem; align-items: center; min-height: 44px; padding: .55rem .25rem .55rem .7rem; color: #e9dcc0; font-size: .875rem; font-weight: 600; }
.sound:hover { color: white; }
.sound-bars { display: inline-flex; gap: 2px; height: 18px; align-items: center; color: var(--gold); }
.sound-bars i { width: 2px; height: 5px; background: currentColor; }
.sound-bars i:nth-child(2), .sound-bars i:nth-child(4) { height: 10px; }
.sound-bars i:nth-child(3) { height: 15px; }
.has-sound.motion-enabled .sound-bars i { animation: sound-level .76s ease-in-out alternate infinite; }
.has-sound .sound-bars i:nth-child(2n) { animation-delay: -.53s; }
.has-sound .sound-bars i:nth-child(3) { animation-delay: -.19s; }
@keyframes sound-level { to { transform: scaleY(.4); } }

.poster { position: relative; isolation: isolate; background: var(--night); }
.poster::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #0b211fe6 0%, #0b211fe3 30%, #0b211fd1 55%, #0b211ff2 100%),
    linear-gradient(0deg, #0b211f 0%, transparent 42%),
    var(--cottage-image, url("assets/house-at-dawn.webp")) center 54% / cover;
}
.poster-inner {
  display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.68fr);
  align-items: center; gap: clamp(1.5rem, 4vw, 5rem);
  padding-block: clamp(2.4rem, 5.7vh, 5rem);
}
.poster-copy { min-width: 0; }
.genre { display: flex; gap: .7rem; align-items: center; color: #e0c99d; font-weight: 650; font-size: clamp(.75rem, .9vw, .9rem); line-height: 1.45; letter-spacing: .13em; text-transform: uppercase; }
.genre::before { content: ""; width: 1.9rem; height: 1px; flex: none; background: var(--gold); }
.story-line { margin-top: clamp(.85rem, 1.6vw, 1.7rem); text-wrap: balance; }
.story-line strong { display: block; color: var(--gold); font: 900 clamp(2.15rem, 3.45vw, 4.8rem)/1.04 var(--display); text-transform: uppercase; letter-spacing: -.035em; }
.story-line span { display: block; max-width: 19ch; margin-top: .42rem; color: var(--ivory); font-size: clamp(1.55rem, 2.35vw, 3rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 650; }
.tagline { margin-top: 1rem; color: #ddcfb6; font-size: clamp(.94rem, 1.1vw, 1.15rem); }
.tagline strong { color: var(--ivory); }
.launch-alert { max-width: 26rem; margin: clamp(1.25rem, 2.5vw, 2.25rem) 0 0; }
.signup-feedback strong, .signup-feedback span { display: block; }
.signup-feedback strong { color: var(--gold); font-size: 1.05rem; }
.signup-feedback span { margin-top: .3rem; }
.list-page nav { margin-top: 2rem; }
.list-page form label, .list-page form input[type=email] { display: block; margin-bottom: .65rem; }
.list-page form input[type=email] { width: min(100%, 22rem); min-height: 44px; padding: .6rem; font: inherit; }
.launch-alert label { display: block; margin-bottom: .65rem; color: var(--ivory); font-size: 1rem; font-weight: 600; }
.signup-inputs { display: flex; gap: .35rem; padding: .25rem; background: var(--ink); border: 1px solid #8a917d; border-radius: 5px; }
.signup-inputs input { min-width: 0; flex: 1; padding: .65rem .5rem; border: 0; color: var(--ivory); background: transparent; font-size: 1rem; }
.signup-inputs input::placeholder { color: #c3c9b9; }
.signup-inputs button { min-height: 44px; padding: .65rem .9rem; border-radius: 2px; background: var(--red); color: #231b19; font-weight: 800; white-space: nowrap; }
.signup-inputs button:hover { background: #ff9992; }
.signup-inputs button:disabled { opacity: .72; cursor: progress; }
.signup-inputs :focus-visible { outline-offset: 0; }
.signup-feedback { font-size: .9rem; line-height: 1.45; color: var(--ivory); }
.signup-feedback:not(:empty) { margin-top: .6rem; }
.signup-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.signup-note { margin-top: .55rem; color: #d5d5c6; font-size: .8125rem; line-height: 1.5; }
.signup-note a, .list-page a { color: var(--gold); text-underline-offset: .18em; }
.list-page { max-width: 43rem; margin: 0 auto; padding: clamp(2rem, 9vh, 6rem) var(--gutter); font-size: 1rem; line-height: 1.6; }
.list-page h1 { margin: 1.7rem 0 1rem; font: 900 clamp(1.75rem, 5vw, 2.75rem)/1.1 var(--display); }
.list-page h2 { margin: 1.6rem 0 .4rem; font-size: 1.125rem; }
.list-page p + p, .list-page form { margin-top: 1rem; }
.list-page button { padding: .65rem 1rem; min-height: 44px; background: var(--gold); color: var(--night); font-weight: 700; border-radius: 3px; }
.platforms { margin-top: .9rem; color: #e0c99d; font-size: .8125rem; }
.platforms strong { font-weight: 650; }
.instagram-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--gold); font-size: .9375rem; font-weight: 650; text-decoration: none; }
.instagram-link span { text-decoration: underline; text-underline-offset: .2em; }
.instagram-link:hover { color: var(--ivory); }
.instagram-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.cinema { position: relative; min-width: 0; }
.cinema::before, .cinema::after { content: ""; pointer-events: none; position: absolute; width: 1.4rem; height: 1.4rem; border: solid #b69d6b; }
.cinema::before { top: -5px; left: -5px; border-width: 1px 0 0 1px; }
.cinema::after { bottom: -5px; right: -5px; border-width: 0 1px 1px 0; }
.player { background: #091713; border: 1px solid #cbb58542; box-shadow: 0 14px 45px -22px #000; }
#trailer { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #0b211f; }
.transport { display: flex; align-items: center; gap: clamp(.38rem, .9vw, 1rem); padding-inline: .45rem; color: #e3d5b9; background: #122725; border-top: 1px solid #e7ce9c19; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; }
.icon-button:hover { color: var(--gold); }
.icon-button svg { width: 17px; height: 17px; }
.motion svg { fill: currentColor; width: 14px; height: 14px; }
.pause-icon, .is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: block; }
.time, .stamp { font-variant-numeric: tabular-nums; }
.time { font-size: .8125rem; letter-spacing: .03em; }
.scrub { --played: 0%; flex: 1; min-width: 1rem; height: 44px; margin: 0 .15rem; appearance: none; background: transparent; cursor: pointer; }
.scrub::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--gold) var(--played), #54615a var(--played)); }
.scrub::-moz-range-track { height: 3px; border-radius: 2px; background: #54615a; }
.scrub::-moz-range-progress { background: var(--gold); height: 3px; }
.scrub::-webkit-slider-thumb { appearance: none; width: 8px; height: 8px; border-radius: 50%; background: #f2d08d; margin-top: -2.5px; }
.scrub::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #f2d08d; }
.player:fullscreen { display: flex; flex-direction: column; background: #000; border: 0; }
.player:fullscreen video { flex: 1; height: 0; min-height: 0; }
.player:fullscreen .transport { flex: none; }
.transport .sound { width: 44px; flex: none; justify-content: center; padding: 0; }
.transport .sound-label { display: none; }

.chapters { background: var(--paper); color: #1c3530; border-top: 3px solid #cba769; padding-block: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1.4rem, 3vw, 3.4rem); }
#scene-heading { display: flex; align-items: center; gap: 1.35rem; margin-bottom: 1rem; font: 900 clamp(1.05rem, 1.55vw, 1.65rem)/1 var(--display); letter-spacing: .015em; text-transform: uppercase; }
#scene-heading::after { content: ""; flex: 1; height: 1px; background: #b8b39f; }
.stills { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem, 2vw, 2.2rem); }
.chapter { min-width: 0; padding: 0; text-align: left; color: inherit; }
.still { position: relative; display: block; overflow: hidden; aspect-ratio: 3.65 / 1; background: #233b35; }
.still img, .rain { display: block; width: 100%; height: 100%; }
.still img { object-fit: cover; }
.scenery img { object-position: center 76%; }
.awakening img { object-position: center 53%; }
.boot img { object-position: center 67%; }
.rain { position: absolute; inset: 0; pointer-events: none; }
.legend { display: flex; align-items: center; gap: .6rem; padding: .7rem 0 .2rem; }
.legend::before { content: ""; width: 0; height: 0; border: solid transparent; border-width: 4px 0 4px 6px; border-left-color: #3c594c; opacity: 0; }
.chapter:hover .legend::before, .chapter[aria-current="true"] .legend::before { opacity: 1; }
.chapter-title { font-size: clamp(.95rem, 1.18vw, 1.24rem); font-weight: 700; }
.stamp { margin-left: auto; color: #4b584d; font-size: .8125rem; }
.chapter:hover .chapter-title { text-decoration: underline; text-underline-offset: .22em; }
.chapter:focus-visible { outline-color: #295444; }
@media (min-width: 901px) {
  .poster { flex: 1; display: grid; align-items: center; }
}
@media (min-width: 901px) and (min-aspect-ratio: 3/2) {
  .masthead-inner { min-height: clamp(3.6rem, 8svh, 5.25rem); }
  .poster-inner { padding-block: clamp(1.4rem, 3.4svh, 2.5rem); }
  .chapters { padding-block: clamp(1rem, 2.15svh, 1.8rem); }
  .still { aspect-ratio: auto; height: clamp(5.3rem, 12svh, 9rem); }
}
@media (min-width: 1150px) and (min-aspect-ratio: 1.85/1) {
  .cinema { width: min(100%, max(36rem, (90svh - 15.8rem) * 16 / 9)); justify-self: end; }
  .chapters .wrap { display: grid; grid-template-columns: minmax(9rem, .44fr) minmax(0, 3fr); align-items: center; gap: 2vw; }
  #scene-heading { margin: 0; max-width: 8ch; line-height: 1.05; }
  #scene-heading::after { display: none; }
  .chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: .85rem; }
  .still { height: auto; aspect-ratio: 2 / 1; }
  .legend { display: grid; grid-template-columns: .4rem 1fr; column-gap: .4rem; row-gap: .3rem; padding: 0; }
  .stamp { grid-column: 2; margin: 0; }
}
@media (max-width: 1040px) and (min-width: 901px) {
  .poster-inner { grid-template-columns: minmax(0, .83fr) minmax(0, 1.5fr); }
}
@media (max-width: 900px) {
  .poster { --cottage-image: url("assets/house-poster.webp"); }
  .story-line span { margin-inline: auto; }
  .chapters { flex: 1; }
  .poster-inner { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding-block: 1.5rem 1.7rem; }
  .cinema { grid-row: 1; }
  .poster-copy { text-align: center; }
  .genre { justify-content: center; font-size: .75rem; }
  .genre::before { display: none; }
  .story-line { margin-top: .65rem; }
  .tagline { margin-top: .65rem; }
  .launch-alert { margin: 1.25rem auto 0; }
  .transport { gap: .28rem; padding-inline: .15rem; }
  .stills { gap: .85rem; }
  .still { aspect-ratio: 1.8/1; }
  .legend { gap: .3rem; flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .poster-inner { padding-top: 1.1rem; gap: 1.25rem; }
  .stills { display: flex; flex-direction: column; gap: 0; }
  .chapter { display: grid; grid-template-columns: 5.9rem minmax(0,1fr); gap: .9rem; align-items: center; padding: .55rem 0; }
  .chapter + .chapter { border-top: 1px solid #2c392a25; }
  .still { aspect-ratio: 1.95 / 1; }
  .legend { gap: .4rem; padding: 0; }
  #scene-heading { margin-bottom: .45rem; }
}
@media (orientation: landscape) and (min-width: 540px) and (max-width: 1040px) and (max-height: 520px) {
  .masthead-inner { min-height: 44px; }
  .poster-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(.8rem, 2vw, 1.2rem); padding-block: 1rem; }
  .cinema { grid-column: 2; grid-row: 1; align-self: start; }
  .poster-copy { grid-column: 1; grid-row: 1; text-align: left; }
  .genre { justify-content: start; letter-spacing: .07em; }
  .story-line strong { font-size: clamp(1.5rem, 3.8vw, 2rem); }
  .story-line span { margin: .2rem 0 0; font-size: clamp(1.15rem, 2.6vw, 1.45rem); }
  .launch-alert { margin: .8rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .has-sound.motion-enabled .sound-bars i { animation: none; }
}
@media (forced-colors: active) {
  .signup-inputs button { border: 1px solid ButtonText; }
  .scrub { appearance: auto; }
}
.game-name { background: #102e2c; color: #f6f2e7; padding-block: .85rem; font-size: .875rem; }
.game-name summary { width: fit-content; cursor: pointer; }
.game-name p { max-width: 58ch; margin: .65rem 0 0; }
.game-name a { color: inherit; }
