.game-page {
  --game-dark: #101612;
  --game-paper: #e9e7dc;
  --game-dim: #b6bbb3;
  --game-line: #343c35;
}
.game {
  background: var(--game-dark);
  color: var(--game-paper);
}
.game figure, .game-copy { min-width: 0; }
.game [id] { scroll-margin-block-start: 20px; }

.game-hero {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  background: #101210;
}
.game-film, .game-world img, .dance-drawing img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.game-film { background: #0e100f; }
.game-film:focus-visible { outline: 2px solid #edc648; outline-offset: 3px; }
.film-player { position: relative; }
.hero-player { grid-area: 1 / 1; width: 100%; }
.film-toggle {
  position: absolute;
  inset: clamp(8px, 1.3vw, 18px) clamp(8px, 1.3vw, 18px) auto auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 90px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #84887d;
  border-radius: 100px;
  background: #121513eb;
  color: #f5f2e7;
}
.film-toggle::before {
  content: "";
  width: 0;
  height: 0;
  border-block: 4px solid transparent;
  border-left: 7px solid currentColor;
}
.film-toggle.is-playing::before {
  box-sizing: border-box;
  width: 8px;
  height: 9px;
  border: 0;
  border-inline: 3px solid currentColor;
}
@media (hover:hover) {
  .film-toggle:hover { background: #292e28; border-color: var(--game-paper); }
}
.game-hero .hero-film {
  max-height: 92svh;
  aspect-ratio: 8 / 5;
}
.game-hero-copy {
  grid-area: 1 / 1;
  position: relative;
  justify-self: start;
  pointer-events: none;
  width: min(42%, 640px);
  margin-left: max(var(--gutter), calc((100% - 1430px) / 2));
}
.game-kicker { color: #d3d2c8; text-transform: uppercase; }
.game-hero h1 { margin: clamp(14px, 2.2vw, 34px) 0 0; }
.game-wordmark { display: block; width: 100%; height: auto; }
.game-refrain {
  margin-block: clamp(10px, 1.8vw, 27px) 4px;
  font-size: clamp(24px, 2.9vw, 46px);
  line-height: 1.13;
  letter-spacing: -.04em;
}
.game-anchor {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .9em;
  pointer-events: auto;
}
.game-hero .game-anchor { margin-top: clamp(9px, 2vw, 30px); }
.game-anchor span { font-size: 1.45em; }

.game-paper {
  color: #1b251e;
  background: var(--game-paper);
  color-scheme: light;
}
.game-layout {
  width: 100%;
  max-width: 1630px;
  margin-inline: auto;
  padding: clamp(68px, 8.5vw, 138px) var(--gutter);
}
.game-split, .game-credits {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
  align-items: center;
  gap: clamp(28px, 7vw, 112px);
}
.game h2 {
  text-wrap: balance;
}
.game-copy p {
  max-width: 42ch;
  color: var(--game-dim);
}
.game-copy h2 + p { margin-top: clamp(20px, 2vw, 32px); }
.game-paper .game-copy p { color: #465047; }
.game-world img { aspect-ratio: 1736 / 1024; }
.wolf-film { aspect-ratio: 4 / 3; }
.game-dance, .game-gull { border-top: 1px solid var(--game-line); }
.dance-sequence {
  display: grid;
  grid-template-columns: minmax(0,.949fr) minmax(0,1fr);
  gap: clamp(20px, 3vw, 48px);
  width: min(100%, 94svh, 960px);
  margin: clamp(28px, 3.8vw, 54px) auto 0;
}
.dance-drawing img { aspect-ratio: 1872 / 3508; }
.dance-scene .game-film { aspect-ratio: 9 / 16; }
.dancer-study {
  width: min(100%, 86svh, 810px);
  margin: clamp(36px, 5vw, 80px) auto 0;
}
.dancer-study .game-film { aspect-ratio: 10 / 7; }
.game figcaption {
  margin-top: 12px;
  color: var(--game-dim);
}
.game-gull { grid-template-columns: minmax(0,1.26fr) minmax(0,.74fr); }
.game-gull .game-copy { grid-area: 1 / 2; }
.game-gull figure { grid-area: 1 / 1; }
.gull-film { aspect-ratio: 4 / 3; }
.game-credits { align-items: start; grid-template-columns: 1fr 1fr; }
.game-credits .game-anchor { margin-top: clamp(17px, 2vw, 32px); }

@media (prefers-reduced-motion:no-preference) {
  .game-wordmark { animation: deinde-title 1.35s .35s ease-out backwards; }
  @keyframes deinde-title { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width:760px) {
  .game-hero { display: flex; flex-direction: column; padding-top: 34px; }
  .game-hero-copy {
    order: -1;
    align-self: stretch;
    width: auto;
    margin: 0 var(--gutter);
  }
  .game-hero h1 { margin-top: 14px; max-width: 385px; }
  .game-wordmark { max-width: min(76vw, 365px); }
  .game-refrain { margin-top: 8px; }
  .game-hero .game-anchor { margin-top: 4px; }
  .game-hero .hero-film {
    width: 100%;
    max-height: none;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: 79% 50%;
  }
  .game-split, .game-credits, .dance-sequence, .game-gull { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .game-layout { padding-block: 59px; }
  .game-gull .game-copy, .game-gull figure { grid-area: auto; }
  .game-copy h2 + p { margin-top: 15px; }
  .dance-sequence { width: min(100%, 48svh, 380px); gap: 32px; }
  .game-credits { gap: 20px; }
  .game figcaption { margin-top: 8px; }
}
