@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Libre+Franklin:ital,wght@0,500;0,700;0,800;1,600&family=Rye&display=swap');

:root {
  --ink: #160d09;
  --ink-soft: #28150e;
  --paper: #f1dca8;
  --paper-bright: #fff1c9;
  --tobacco: #6b3b1e;
  --oxblood: #7e1519;
  --oxblood-dark: #310507;
  --brass: #d79c39;
  --brass-bright: #ffd980;
  --teal: #1f756e;
  --sky: #5699a0;
  --ground: 78px;
  --world-width: 12000px;
  --topbar-height: 64px;
  --shadow: 0 24px 60px rgba(20, 8, 3, .34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #0f0805;
  color: var(--paper);
  font-family: "Libre Franklin", Arial, sans-serif;
}

button,
a,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
.viewport:focus-visible {
  outline: 3px solid var(--brass-bright);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.opening {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 198, 91, .21), transparent 23%),
    #120604;
}

.opening__proscenium {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  border: clamp(14px, 2vw, 32px) solid #1c0d08;
  box-shadow:
    inset 0 0 0 6px #8e5d27,
    inset 0 0 0 12px #2c160d,
    inset 0 0 100px #000;
}

.opening__proscenium::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14vh;
  background:
    radial-gradient(ellipse at 50% -20%, #b7433d 0 24%, #641316 51%, #260607 74%);
  border-bottom: 10px solid #aa7633;
  box-shadow: 0 13px 28px #0009;
}

.curtain {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 53%;
  background:
    linear-gradient(90deg, #250204, #6f1115 8%, #a8282c 18%, #4b090c 29%, #971f24 42%, #360508 57%, #7e1519 70%, #260204 100%);
  background-size: 320px 100%;
  box-shadow: inset -28px 0 55px #0009;
  transition: transform 1.35s cubic-bezier(.78, 0, .19, 1);
}

.curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .25;
  background: linear-gradient(90deg, transparent 48%, #ffd27c 50%, transparent 52%);
  background-size: 74px 100%;
}

.curtain--left {
  left: 0;
}

.curtain--right {
  right: 0;
  transform: scaleX(-1);
}

.opening.is-opening .curtain--left {
  transform: translateX(-100%);
}

.opening.is-opening .curtain--right {
  transform: translateX(100%) scaleX(-1);
}

.opening__title {
  position: relative;
  z-index: 4;
  width: min(720px, calc(100vw - 44px));
  padding: 48px 34px 40px;
  text-align: center;
  background: #170a07e8;
  border: 1px solid #d69e47;
  box-shadow:
    0 0 0 8px #170a07,
    0 0 0 10px #7c4f23,
    0 30px 90px #000;
  transition: opacity .5s, transform .5s;
}

.opening.is-opening .opening__title {
  opacity: 0;
  transform: scale(.96);
}

.opening__title > span,
.opening__title > p {
  display: block;
  color: #d5ad67;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.opening__title h1 {
  margin: 18px 0 10px;
  color: #f6deb0;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(40px, 7vw, 86px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.02em;
  text-shadow: 0 4px 0 #6e1517, 0 9px 0 #1a0806;
}

.opening__title > p {
  margin: 20px auto 28px;
  letter-spacing: .08em;
  line-height: 1.7;
}

.brass-button {
  min-width: 280px;
  padding: 15px 24px 13px;
  cursor: pointer;
  border: 2px solid #ffde8a;
  border-radius: 2px;
  background:
    linear-gradient(#f5c960 0 12%, #b56b21 15% 22%, #e8ac43 27% 55%, #8b4a18 60% 67%, #d29434 70% 100%);
  color: #190b07;
  box-shadow: 0 6px 0 #4f260e, 0 15px 24px #0008;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform .16s, box-shadow .16s, filter .16s;
}

.brass-button:hover {
  filter: brightness(1.1) saturate(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #4f260e, 0 18px 28px #0008;
}

.brass-button:active,
.brass-button.is-pressed {
  transform: translateY(5px);
  box-shadow: 0 1px 0 #4f260e, 0 5px 10px #0007;
}

.brass-button span,
.brass-button small {
  display: block;
}

.studio-ident {
  position: fixed;
  z-index: 95;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  color: #edcf8a;
  background: #080503;
  letter-spacing: .18em;
  text-align: center;
  animation: ident-arrive 1.35s cubic-bezier(.16, .72, .18, 1) both;
}

.studio-ident::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 52%, #b66d242e, transparent 22%), linear-gradient(90deg, #000, transparent 28% 72%, #000);
  animation: ident-exposure 1.8s ease-in-out both;
}

.studio-ident__beam {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 42vw;
  height: 150%;
  transform: translateX(-50%) perspective(600px) rotateX(6deg);
  background: linear-gradient(90deg, transparent, #f2c87519 24% 76%, transparent);
  filter: blur(10px);
}

.studio-ident__mark {
  position: relative;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border: 2px solid #b88332;
  border-radius: 50%;
  box-shadow: 0 0 50px #bf742833, inset 0 0 34px #b9762724;
}

.studio-ident__mark::before,
.studio-ident__mark::after,
.studio-ident__mark i {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 6px solid #b88332;
  border-radius: 50%;
}

.studio-ident__mark::before { left: 22px; top: 25px; }
.studio-ident__mark::after { right: 22px; top: 25px; }
.studio-ident__mark i { left: 46px; bottom: 19px; }
.studio-ident__mark b { position: relative; z-index: 2; font: 800 27px/1 Georgia, serif; letter-spacing: .02em; }
.studio-ident > strong { position: relative; font: 700 clamp(25px, 3vw, 43px)/1.1 Georgia, serif; letter-spacing: .13em; }
.studio-ident > span { position: relative; margin-top: 12px; color: #a98855; font-size: 9px; }
.studio-ident > small { position: absolute; bottom: 7vh; color: #caa86a; font-size: 9px; letter-spacing: .22em; }

.studio-ident.is-leaving { animation: ident-leave .62s cubic-bezier(.55, 0, 1, .45) both; }

.brass-button small {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: .1em;
}

.countdown {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #d5d1c6;
  color: #111;
  animation: gate-weave .12s steps(2) infinite, exposure-flicker .31s steps(3) infinite;
}

.countdown.is-warming { animation: leader-warm .5s cubic-bezier(.2, .75, .2, 1) both, gate-weave .12s steps(2) infinite .5s, exposure-flicker .31s steps(3) infinite .5s; }

#filmDamage {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .78;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.countdown::before,
.countdown::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.countdown::before {
  inset: -18px;
  background: radial-gradient(ellipse, transparent 50%, #15110ca8 90%);
}

.countdown::after {
  top: -30%;
  bottom: -30%;
  width: 3px;
  left: 27%;
  background: #12110f;
  opacity: .42;
  box-shadow: 19vw 0 0 #fff8, 47vw 0 0 #15130f66;
  animation: scratches .78s steps(4) infinite;
}

.leader-frame {
  position: relative;
  width: min(66vmin, 650px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid #151515;
  border-radius: 50%;
}

.leader-frame__cross,
.leader-frame__cross::after {
  position: absolute;
  content: "";
  background: #111;
}

.leader-frame__cross {
  left: 50%;
  top: -10%;
  width: 3px;
  height: 120%;
}

.leader-frame__cross::after {
  left: -50vmin;
  top: 50%;
  width: 100vmin;
  height: 3px;
}

.leader-frame__ring {
  position: absolute;
  inset: 17%;
  border: 3px solid #1a1a1a;
  border-radius: 50%;
}

.leader-frame__sweep {
  position: absolute;
  left: 50%;
  top: 0;
  width: 50%;
  height: 50%;
  transform-origin: 0 100%;
  background: conic-gradient(from 180deg at 0 100%, #29292937 0 26deg, transparent 27deg);
  animation: leader-sweep .72s linear infinite;
}

.leader-frame strong {
  position: relative;
  z-index: 1;
  font-size: min(36vmin, 360px);
  line-height: .8;
  font-weight: 800;
  letter-spacing: -.04em;
  text-shadow: 4px 1px #7776;
}

.countdown > p {
  position: absolute;
  bottom: 3.5vh;
  z-index: 4;
  font-size: clamp(11px, 1.5vw, 18px);
  font-weight: 800;
  letter-spacing: .28em;
}

.countdown__loading {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 9vh;
  width: min(420px, 66vw);
  transform: translateX(-50%);
  text-align: center;
}

.countdown__loading b { display: block; margin-bottom: 9px; font-size: 10px; letter-spacing: .2em; }
.countdown__loading i { display: block; height: 3px; overflow: hidden; background: #17171735; }
.countdown__loading span { display: block; width: 0; height: 100%; background: #171717; transition: width .48s ease; }

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 26px;
  background: #160b07ee;
  border-bottom: 3px solid #b47d31;
  box-shadow: 0 8px 30px #0008;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  background: #5b3017;
}

.wordmark,
.topbar a,
.topbar button {
  color: #f1dbaa;
  text-decoration: none;
}

.wordmark {
  font-family: "Rye", Georgia, serif;
  font-size: 19px;
  letter-spacing: .06em;
}

.topbar nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.topbar nav button,
.topbar nav a {
  min-height: 36px;
  padding: 9px 13px;
  border: 1px solid #795126;
  background: #24120c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
}

.topbar nav button:hover,
.topbar nav a:hover {
  background: #3d1c11;
  border-color: #d19a43;
}

.premiere-progress {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bd9456;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.premiere-progress i {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid #8c6738;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #160b07;
}

.premiere-progress i::before,
.premiere-progress i::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid #8c6738;
  border-radius: 50%;
}

.premiere-progress i::before {
  left: 3px;
  top: 4px;
}

.premiere-progress i::after {
  right: 3px;
  bottom: 4px;
}

.premiere-progress i.is-complete {
  background: #e0aa45;
  border-color: #ffe19a;
  box-shadow: 0 0 18px #d99629, inset 0 0 0 4px #70400f;
}

.viewport {
  position: fixed;
  z-index: 1;
  left: 0;
  right: 0;
  top: var(--topbar-height);
  bottom: 0;
  overflow: hidden;
  background: #497c7d;
  touch-action: none;
}

.world {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--world-width);
  height: 100%;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  background:
    linear-gradient(180deg, #5ba1a5 0 57%, #b9753b 57% 68%, #78502f 68%);
}

.backdrop,
.backdrop__sky,
.backdrop__soundstage,
.backdrop__lamps,
.backdrop__cables,
.world-ground {
  position: absolute;
  pointer-events: none;
}

.backdrop {
  z-index: 0;
  inset: 0;
}

.backdrop__sky {
  inset: 0 0 42%;
  background:
    radial-gradient(ellipse at 10% 24%, #f5d89d 0 4%, transparent 4.4%),
    radial-gradient(ellipse at 21% 29%, #dbe3cc 0 6%, transparent 6.4%),
    linear-gradient(180deg, #4f919a, #a4bdad 78%, #deb77b);
}

.backdrop__soundstage {
  left: 2500px;
  right: 1200px;
  bottom: 33%;
  height: 270px;
  opacity: .55;
  background:
    linear-gradient(90deg, #493526 0 9%, transparent 9% 14%, #453326 14% 28%, transparent 28% 35%, #392a21 35% 63%, transparent 63% 68%, #463326 68% 100%);
  clip-path: polygon(0 27%, 9% 10%, 19% 27%, 28% 4%, 37% 30%, 49% 13%, 59% 28%, 70% 2%, 82% 25%, 92% 11%, 100% 28%, 100% 100%, 0 100%);
}

.backdrop__water-tower {
  position: absolute;
  left: 7350px;
  bottom: 43%;
  width: 220px;
  height: 180px;
  padding-top: 42px;
  color: #e2c589;
  background: #4a3022;
  border: 10px solid #2e1c15;
  border-radius: 50% 50% 18% 18%;
  text-align: center;
  font-family: "Rye", Georgia, serif;
  font-size: 24px;
  line-height: 1.05;
  transform: scale(.85);
  transform-origin: bottom;
  opacity: .8;
}

.backdrop__water-tower::before,
.backdrop__water-tower::after {
  content: "";
  position: absolute;
  top: 150px;
  width: 10px;
  height: 270px;
  background: #2e1c15;
}

.backdrop__water-tower::before {
  left: 50px;
  transform: rotate(10deg);
}

.backdrop__water-tower::after {
  right: 50px;
  transform: rotate(-10deg);
}

.backdrop__lamps {
  left: 0;
  right: 0;
  bottom: 38%;
  height: 160px;
  opacity: .45;
  background: radial-gradient(ellipse at center, #ffe6a4 0 10px, #2b1a12 11px 18px, transparent 19px);
  background-size: 760px 170px;
}

.backdrop__cables {
  left: 0;
  right: 0;
  top: 12%;
  height: 130px;
  border-top: 5px solid #23150e80;
  border-radius: 50%;
  transform: skewY(-1.7deg);
}

.world-ground {
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--ground);
  background:
    linear-gradient(180deg, #443022 0 8%, #a56b35 9% 18%, #38261b 19% 25%, #765034 26% 100%);
  border-top: 5px solid #d59b48;
  box-shadow: 0 -12px 30px #2b130a55;
}

.world-ground::after {
  content: "";
  position: absolute;
  inset: 24px 0 0;
  background-image: radial-gradient(circle, #271910 0 3px, transparent 4px);
  background-size: 72px 28px;
  opacity: .45;
}

.tutorial-set,
.wing-approach,
.premiere,
.backlot-gallery,
.playhouse,
.finale {
  position: absolute;
  z-index: 5;
  bottom: var(--ground);
}

.tutorial-set {
  left: 0;
  width: 1750px;
  height: calc(100% - var(--ground));
}

.tutorial-set::before {
  content: "SOUNDSTAGE  A";
  position: absolute;
  left: 75px;
  top: 70px;
  color: #39231875;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(74px, 9vw, 145px);
  letter-spacing: -.02em;
}

.tutorial-sign {
  position: absolute;
  color: #2a180e;
  background: #f0dba6;
  border: 7px solid #4b2c18;
  box-shadow: 12px 15px 26px #3a190b55;
  transform: rotate(-1deg);
}

.tutorial-sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 82px;
  background: #4b2c18;
}

.tutorial-sign span {
  display: block;
  margin-bottom: 12px;
  font-family: "Rye", Georgia, serif;
  font-size: 20px;
}

.tutorial-sign > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

kbd {
  display: inline-grid;
  min-width: 37px;
  min-height: 37px;
  place-items: center;
  padding: 4px 8px;
  color: #2d170e;
  background: #fff0c6;
  border: 2px solid #56331d;
  border-radius: 3px;
  box-shadow: 0 4px 0 #56331d;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.tutorial-sign em {
  font-family: Georgia, serif;
  font-size: 13px;
}

.tutorial-sign--move {
  left: 250px;
  bottom: 265px;
  width: 350px;
  padding: 18px 24px;
}

.tutorial-sign--jump {
  left: 775px;
  bottom: 400px;
  width: 350px;
  padding: 16px 22px;
  transform: rotate(1deg);
}

.studio-crate {
  position: absolute;
  display: grid;
  place-items: center;
  color: #ead39c;
  background:
    linear-gradient(135deg, transparent 0 43%, #2c190f 44% 48%, transparent 49% 52%, #2c190f 53% 57%, transparent 58%),
    #8d512b;
  border: 8px solid #382014;
  box-shadow:
    inset 0 0 0 4px #c37e3d,
    10px 12px 18px #33130966;
}

.studio-crate b {
  padding: 5px 8px;
  background: #2a1710d8;
  border: 1px solid #c79550;
  font-size: 11px;
  letter-spacing: .16em;
  transform: rotate(-2deg);
}

.tutorial-set [data-platform="tutorial-1"] {
  left: 600px;
  bottom: 0;
  width: 220px;
  height: 82px;
}

.tutorial-set [data-platform="tutorial-2"] {
  left: 900px;
  bottom: 0;
  width: 230px;
  height: 152px;
}

.tutorial-set [data-platform="tutorial-3"] {
  left: 1210px;
  bottom: 0;
  width: 245px;
  height: 228px;
}

.tutorial-set [data-platform="tutorial-4"] {
  left: 1490px;
  bottom: 0;
  width: 190px;
  height: 292px;
}

.film-reel {
  position: absolute;
  z-index: 12;
  width: 114px;
  height: 114px;
  border-radius: 50%;
  color: #3c210f;
  background:
    radial-gradient(circle, #2b170c 0 8%, #d39d3f 9% 15%, transparent 16%),
    radial-gradient(circle at 32% 31%, #2b170c 0 9%, transparent 10%),
    radial-gradient(circle at 68% 31%, #2b170c 0 9%, transparent 10%),
    radial-gradient(circle at 32% 69%, #2b170c 0 9%, transparent 10%),
    radial-gradient(circle at 68% 69%, #2b170c 0 9%, transparent 10%),
    radial-gradient(circle, #e2b153 0 56%, #6e3e18 57% 64%, #f1d47e 65% 70%, #2c170d 71%);
  border: 3px solid #ffe39c;
  box-shadow: 0 0 0 6px #4a2612, 0 10px 24px #321008aa, 0 0 26px #ffce61;
  animation: reel-float 1.5s ease-in-out infinite;
}

.film-reel span {
  position: absolute;
  left: 50%;
  top: 110%;
  width: max-content;
  max-width: 180px;
  padding: 5px 8px;
  transform: translateX(-50%);
  color: #f1dca8;
  background: #1d0f0a;
  border: 1px solid #d39a42;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.film-reel.is-collected {
  animation: reel-deliver .85s cubic-bezier(.2, .8, .2, 1) forwards;
  pointer-events: none;
}

.film-reel.dormant {
  filter: grayscale(.65) brightness(.65);
  box-shadow: 0 0 0 6px #4a2612, 0 10px 24px #321008aa;
  animation: none;
}

#harborReel {
  left: 1528px;
  bottom: 408px;
}

.projector-prop {
  position: absolute;
  z-index: 6;
  width: 220px;
  height: 120px;
  padding-top: 78px;
  color: #e8c87e;
  background: #29231d;
  border: 8px solid #50341d;
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.projector-prop i {
  position: absolute;
  left: 22px;
  top: -16px;
  width: 85px;
  height: 85px;
  border: 10px dotted #b38442;
  border-radius: 50%;
  background: #241912;
  box-shadow: 92px 8px 0 -8px #241912, 92px 8px 0 2px #b38442;
}

.projector-prop--harbor {
  left: 1510px;
  bottom: 0;
  transform: scale(.75);
  transform-origin: bottom left;
}

.studio-gate {
  position: absolute;
  z-index: 12;
  bottom: var(--ground);
  width: 120px;
  height: 310px;
  display: grid;
  place-items: center;
  color: #f3d89a;
  background:
    linear-gradient(90deg, #26150d 0 12px, #704120 13px 24px, #2d190e 25px 36px);
  border: 8px solid #311b10;
  box-shadow: -10px 0 30px #2b110788;
  transition: transform .9s cubic-bezier(.68, 0, .24, 1), opacity .5s;
}

.studio-gate span {
  padding: 12px 6px;
  writing-mode: vertical-rl;
  background: #1b0d08;
  border: 1px solid #d29940;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.studio-gate.is-open {
  transform: translateY(-330px) rotate(3deg);
  opacity: .45;
}

.studio-gate--harbor {
  left: 1742px;
}

.studio-gate--wing {
  left: 6900px;
}

.premiere {
  height: min(880px, calc(100% - var(--ground) - 26px));
  overflow: hidden;
  color: #f0d7a2;
  background: #1c0d08;
  border: 12px solid #3a2113;
  box-shadow: 0 0 0 5px #b07b31, 0 25px 60px #2b100999;
}

.premiere::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 70px #000;
}

.premiere--harbor {
  left: 1880px;
  width: 1960px;
}

.premiere--wing {
  left: 5030px;
  width: 1800px;
}

.premiere__marquee {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 0;
  height: 132px;
  padding: 18px 28px 14px;
  text-align: center;
  background:
    radial-gradient(circle at 20px 17px, #f9d581 0 4px, #865113 5px 7px, transparent 8px),
    linear-gradient(#29120c, #170905);
  background-size: 42px 100%, auto;
  border-bottom: 7px solid #bd8737;
}

.premiere__marquee span,
.premiere__marquee p {
  color: #dcb365;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.premiere__marquee h2 {
  margin: 5px 0 1px;
  color: #f4dcab;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(36px, 5vh, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .04em;
  text-shadow: 0 4px #7d1718, 0 8px #100503;
}

.premiere__marquee p {
  margin: 0;
  letter-spacing: .12em;
}

.premiere__media {
  position: absolute;
  z-index: 2;
  left: 42px;
  right: 42px;
  top: 152px;
  bottom: 68px;
  display: grid;
  gap: 24px;
  min-height: 0;
}

.premiere__media--harbor {
  grid-template-columns: 330px minmax(620px, 1fr) 330px;
}

.premiere__media--wing {
  grid-template-columns: 360px minmax(760px, 1fr);
}

.poster-frame,
.wing-poster,
.projector-screen {
  position: relative;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  background: #050303;
  border: 7px solid #b37d32;
  box-shadow: inset 0 0 0 4px #392012, 0 12px 30px #0008;
}

.poster-frame {
  display: grid;
  place-items: center;
}

.poster-frame img,
.wing-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070303;
}

.wing-poster {
  width: 100%;
  justify-self: center;
  background: #241007;
}

.wing-poster img { object-fit: cover; object-position: 50% 50%; background: none; }

.projector-screen {
  isolation: isolate;
}

.screen-wings {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #100906;
}

.screen-wings img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.42) saturate(.78) contrast(1.08);
  transform: scale(1.04);
}

.screen-wings img:first-child { object-position: 26% center; mask-image: linear-gradient(90deg, #000 55%, transparent 100%); }
.screen-wings img:last-child { object-position: 72% center; mask-image: linear-gradient(270deg, #000 55%, transparent 100%); }

.screen-wings::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, #0a050400 0 26px, #e9c37818 27px 31px), linear-gradient(90deg, #160b08aa, transparent 24% 76%, #160b08aa);
}

.projector-screen__video {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.projector-screen::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse, transparent 58%, #0007 100%);
}

.screen-playback {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  pointer-events: none;
  color: #f1d7a3;
  background: transparent;
  border: 0;
}

.screen-playback i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.85);
  border: 1px solid #e8bd6f;
  border-radius: 50%;
  background: #130b07d9;
  transition: opacity .2s, transform .2s;
}

.screen-playback i::before,
.screen-playback i::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 5px;
  height: 22px;
  background: currentColor;
}
.screen-playback i::before { left: 20px; }
.screen-playback i::after { right: 20px; }
.screen-playback span { position: absolute; left: 50%; bottom: 14px; opacity: 0; transform: translateX(-50%); font-size: 8px; font-weight: 800; letter-spacing: .16em; transition: opacity .2s; }
.premiere.is-open .screen-playback { pointer-events: auto; }
.projector-screen:hover .screen-playback i,
.projector-screen:hover .screen-playback span,
.projector-screen.is-paused .screen-playback i,
.projector-screen.is-paused .screen-playback span { opacity: 1; }
.projector-screen:hover .screen-playback i { transform: translate(-50%, -50%) scale(1); }
.projector-screen.is-paused .screen-playback i::before {
  left: 23px;
  top: 17px;
  width: 0;
  height: 0;
  background: transparent;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid currentColor;
}
.projector-screen.is-paused .screen-playback i::after { display: none; }

.stage-curtain {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: 52%;
  background:
    linear-gradient(90deg, #2c0305 0, #81171b 12%, #c03a3d 24%, #5b0c10 40%, #9d2024 58%, #320306 76%, #701216 100%);
  box-shadow: 0 0 35px #000;
  transition: transform 1.15s cubic-bezier(.76, 0, .2, 1);
}

.stage-curtain--left {
  left: 0;
}

.stage-curtain--right {
  right: 0;
  transform: scaleX(-1);
}

.premiere.is-open .stage-curtain--left {
  transform: translateX(-102%);
}

.premiere.is-open .stage-curtain--right {
  transform: translateX(102%) scaleX(-1);
}

.screen-status {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 36px;
  padding: 8px 14px;
  transform: translateX(-50%);
  background: #160b07e8;
  border: 1px solid #d19a44;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  transition: opacity .3s;
}

.premiere.is-ready .screen-status,
.premiere.is-open .screen-status {
  opacity: 0;
}

.premiere__action,
.premiere__details {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  cursor: pointer;
  background: #26140c;
  border: 2px solid #b47b31;
  box-shadow: 0 6px 16px #0009;
  color: #f2d8a4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.premiere__action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 18px 10px 8px;
}

.premiere__action:disabled {
  cursor: not-allowed;
  filter: grayscale(.6) brightness(.6);
}

.premiere__action:not(:disabled):hover,
.premiere__details:hover {
  background: #4d2515;
  border-color: #f0c56d;
}

.premiere__details {
  padding: 13px 20px;
}

.confetti {
  position: absolute;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti i {
  position: absolute;
  left: var(--left);
  top: 75%;
  width: 12px;
  height: 22px;
  background: var(--color);
  animation: confetti-burst 1.6s var(--delay) cubic-bezier(.19, .74, .35, 1) both;
}

.premiere.is-locked {
  filter: saturate(.58) brightness(.72);
}

.premiere.is-ready {
  filter: none;
}

.wing-approach {
  left: 3860px;
  width: 1160px;
  height: calc(100% - var(--ground));
}

.wing-approach::before {
  content: "WINGSTRIKE UNIT";
  position: absolute;
  left: 80px;
  top: 92px;
  color: #3e21136b;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 74px;
  letter-spacing: -.02em;
}

.wing-approach [data-platform="wing-1"] {
  left: 110px;
  bottom: 0;
  width: 220px;
  height: 92px;
}

.wing-approach [data-platform="wing-2"] {
  left: 445px;
  bottom: 0;
  width: 230px;
  height: 180px;
}

.wing-approach [data-platform="wing-3"] {
  left: 790px;
  bottom: 0;
  width: 240px;
  height: 268px;
}

#wingReel {
  left: 860px;
  bottom: 378px;
}

.projector-prop--wing {
  left: 990px;
  bottom: 0;
  transform: scale(.7);
  transform-origin: bottom left;
}

.set-dressing--propeller {
  position: absolute;
  left: 95px;
  bottom: 180px;
  width: 270px;
  height: 28px;
  border-radius: 60%;
  background: #342017;
  border: 5px solid #8c5931;
  transform: rotate(-12deg);
  opacity: .75;
}

.set-dressing--propeller::before {
  content: "";
  position: absolute;
  left: 116px;
  top: -124px;
  width: 28px;
  height: 270px;
  border-radius: 60%;
  background: #342017;
  border: 5px solid #8c5931;
}

.backlot-gallery {
  left: 7040px;
  width: 1820px;
  height: calc(100% - var(--ground));
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0 45%, #b77a44 45% 74%, #604329 74%);
  border-left: 12px solid #4a2816;
  border-right: 12px solid #4a2816;
}

.backlot-gallery__awning {
  position: absolute;
  z-index: 7;
  left: 0;
  right: 0;
  top: 0;
  height: 86px;
  padding-top: 27px;
  text-align: center;
  background:
    linear-gradient(90deg, #8e1b1f 0 9%, #ead8ad 9% 18%, #276a66 18% 27%, #ead8ad 27% 36%, #8e1b1f 36% 45%, #ead8ad 45% 54%, #276a66 54% 63%, #ead8ad 63% 72%, #8e1b1f 72% 81%, #ead8ad 81% 90%, #276a66 90% 100%);
  border-bottom: 9px solid #4a2c18;
  color: #1b0e09;
  font-family: "Rye", Georgia, serif;
  font-size: 18px;
  letter-spacing: .1em;
  box-shadow: 0 10px 25px #36170b55;
}

.painted-flat {
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 480px;
  height: 510px;
  border: 12px solid #593219;
  box-shadow: 16px 18px 0 #3d2417, 0 20px 40px #2a100977;
}

.painted-flat--city {
  left: 65px;
  background:
    linear-gradient(90deg, transparent 0 12%, #4e5561 12% 33%, transparent 33% 39%, #67705f 39% 65%, transparent 65% 72%, #3b4d54 72% 92%, transparent 92%),
    linear-gradient(#ddae6f 0 45%, #7d3a29 46% 100%);
  clip-path: polygon(0 26%, 12% 26%, 12% 13%, 33% 13%, 33% 34%, 39% 34%, 39% 3%, 65% 3%, 65% 23%, 72% 23%, 72% 10%, 92% 10%, 92% 29%, 100% 29%, 100% 100%, 0 100%);
}

.painted-flat--alley {
  right: 55px;
  background:
    radial-gradient(circle at 50% 35%, #e7b55d 0 10%, transparent 10.5%),
    linear-gradient(135deg, #274749 0 30%, #9c5b35 31% 62%, #3c2620 63%);
  clip-path: polygon(0 12%, 42% 12%, 42% 0, 100% 0, 100% 100%, 0 100%);
}

.popcorn-cart {
  position: absolute;
  z-index: 6;
  left: 820px;
  bottom: 0;
  width: 180px;
  height: 235px;
  padding-top: 76px;
  background: #f1dba8;
  border: 8px solid #3f2516;
  color: #802028;
  text-align: center;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 28px;
  line-height: .8;
  transform: rotate(-1deg);
}

.popcorn-cart::before,
.popcorn-cart::after {
  content: "";
  position: absolute;
  bottom: -36px;
  width: 58px;
  height: 58px;
  border: 12px solid #3d281c;
  border-radius: 50%;
  background: #a86b31;
}

.popcorn-cart::before {
  left: 6px;
}

.popcorn-cart::after {
  right: 6px;
}

.popcorn-cart i {
  position: absolute;
  left: 22px;
  top: 18px;
  width: 120px;
  height: 48px;
  background:
    radial-gradient(circle, #f7e0a7 0 7px, #b42127 8px 11px, transparent 12px);
  background-size: 28px 25px;
}

.gallery-billboard {
  position: absolute;
  z-index: 5;
  width: 520px;
  height: 360px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #180c08;
  border: 10px solid #2f1a10;
  box-shadow: 0 0 0 5px #b47d31, 14px 18px 35px #30120a99;
  text-align: left;
}

.gallery-billboard:hover {
  border-color: #5a2f18;
  box-shadow: 0 0 0 6px #e0a745, 16px 20px 42px #30120aaa;
}

.gallery-billboard img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-billboard > span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 22px 16px;
  background: linear-gradient(transparent, #100705 30%);
}

.gallery-billboard b,
.gallery-billboard small,
.gallery-billboard em {
  display: block;
}

.gallery-billboard b {
  color: #f3d9a4;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: .03em;
}

.gallery-billboard small,
.gallery-billboard em {
  margin-top: 4px;
  color: #d3a85d;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .12em;
}

.gallery-billboard em {
  opacity: 0;
  transition: opacity .2s;
}

.gallery-billboard:hover em {
  opacity: 1;
}

.gallery-billboard--taro {
  left: 45px;
  top: 118px;
}

.gallery-billboard--frog {
  right: 45px;
  top: 118px;
}

.playhouse {
  left: 8900px;
  width: 2000px;
  height: min(820px, calc(100% - var(--ground) - 24px));
  padding: 128px 60px 34px;
  background:
    radial-gradient(circle at 18px 18px, #ffda7d 0 5px, #7a4718 6px 8px, transparent 9px),
    linear-gradient(135deg, #24100b, #4c1d18 52%, #1a0b07);
  background-size: 42px 42px, auto;
  border: 13px solid #341c10;
  box-shadow: 0 0 0 5px #bd8432, 0 25px 60px #2b100999;
}

.playhouse header {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  height: 112px;
  padding: 18px 28px;
  text-align: center;
  background: #1a0b07ee;
  border-bottom: 6px solid #b87d30;
}

.playhouse header span {
  color: #d8a957;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .19em;
}

.playhouse header h2 {
  margin: 8px 0 0;
  font-family: "Rye", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
}

.play-poster {
  position: absolute;
  top: 142px;
  bottom: 44px;
  width: 22%;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #0d0604;
  border: 10px solid #3f2313;
  box-shadow: 0 0 0 5px #c48c39, 0 16px 38px #0008;
  transition: transform .22s, box-shadow .22s;
}

.play-poster:hover {
  transform: translateY(-8px) rotate(.5deg);
  box-shadow: 0 0 0 6px #f0bf5e, 0 24px 45px #0009;
}

.play-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.play-poster > span {
  position: absolute;
  left: 50%;
  bottom: 18px;
  min-width: 150px;
  padding: 10px 13px;
  transform: translateX(-50%);
  background: #1a0b07e8;
  border: 2px solid #e1a644;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.play-poster--bubble { left: 3%; }
.play-poster--crime { left: 27%; }
.play-poster--ascent { left: 51%; background: linear-gradient(#3d7f86, #b56a32); }
.play-poster--garden { left: 75%; background: linear-gradient(#1f4a38, #14110c); }

.finale {
  left: 11080px;
  width: 740px;
  height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  padding: 64px 40px 54px 54px;
  background: #1b0c08;
  border: 10px double #be8738;
  box-shadow: var(--shadow);
}

.finale__copy {
  position: relative;
  z-index: 2;
}

.finale span {
  color: #d2a151;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}

.finale h2 {
  margin: 22px 0 18px;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 41px;
  font-weight: 400;
  line-height: 1.03;
}

.finale p {
  max-width: 58ch;
  color: #dfc58f;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}

.finale .brass-button {
  display: block;
  margin: 28px 0 24px;
  min-width: 0;
  width: 100%;
}

.finale__copy > a {
  color: #f0bd62;
  font-weight: 800;
}

.finale__player-bay {
  align-self: end;
  height: 178px;
  border-left: 1px solid #9b6b31;
  border-bottom: 5px solid #b77f36;
  color: #a97937;
  text-align: center;
}

.finale__player-bay span {
  display: block;
  margin-top: 16px;
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: .13em;
}

.player {
  position: absolute;
  z-index: 20;
  left: 180px;
  bottom: var(--ground);
  width: 118px;
  height: 178px;
  pointer-events: none;
  transform-origin: 50% 100%;
}

.player img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 8px #2a0d0766);
}

.player.is-left img {
  transform: scaleX(-1);
}

.player.is-running {
  animation: player-bob .34s steps(2) infinite;
}

.player.is-jumping {
  transform: rotate(-3deg);
}

.player.is-landing {
  animation: player-land .2s ease-out;
}

.interaction-prompt {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px 12px 8px;
  transform: translateX(-50%);
  background: #180b07ef;
  border: 2px solid #d8a347;
  box-shadow: 0 12px 28px #0008;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.action-toast {
  position: fixed;
  z-index: 55;
  left: 50%;
  top: 94px;
  min-width: 280px;
  padding: 14px 20px;
  transform: translate(-50%, -20px);
  opacity: 0;
  pointer-events: none;
  background: #170a07ee;
  border: 2px solid #d39a40;
  box-shadow: 0 12px 40px #0009;
  color: #f2d9a5;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  transition: opacity .25s, transform .25s;
}

.action-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.touch-controls {
  position: fixed;
  z-index: 38;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: none;
  justify-content: space-between;
  pointer-events: none;
}

.touch-controls button {
  width: 58px;
  height: 58px;
  pointer-events: auto;
  border: 2px solid #c08a3c;
  border-radius: 50%;
  background: #1c0d08d9;
  color: #f1d9a6;
  font-size: 22px;
  font-weight: 800;
}

.touch-controls [data-hold="right"] {
  margin-right: auto;
  margin-left: 8px;
}

.touch-controls [data-tap="jump"] {
  margin-left: auto;
  margin-right: 8px;
}

dialog {
  color: #f1dab0;
}

dialog::backdrop {
  background: #0b0503d9;
  backdrop-filter: blur(4px);
}

.project-dialog,
.project-map {
  width: min(1500px, calc(100vw - 36px));
  max-width: none;
  height: min(900px, calc(100vh - 36px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  background: #160b07;
  border: 7px double #bc8435;
  box-shadow: 0 30px 90px #000;
}

.dialog-close {
  position: absolute;
  z-index: 20;
  right: 18px;
  top: 18px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  border: 2px solid #d6a14b;
  border-radius: 50%;
  background: #1b0d08de;
  color: #f1d9aa;
  font-size: 24px;
}

#projectContent {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.project-layout {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, .65fr);
}

.project-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #050302;
}

.project-media.has-ambient::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -7%;
  background-image: var(--media-backdrop);
  background-size: cover;
  background-position: center;
  filter: blur(16px) brightness(.45) saturate(.8);
  transform: scale(1.04);
}

.project-media.has-ambient::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #120906ad, transparent 34% 66%, #120906ad), repeating-linear-gradient(0deg, transparent 0 34px, #d7ad6013 35px 39px);
}

.project-media img,
.project-media video,
.project-media iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  border: 0;
}

.project-media.is-poster .project-asset { inset: 3.5% 22%; width: 56%; height: 93%; box-shadow: 0 16px 42px #000b; }

.reel-guide {
  position: fixed;
  z-index: 46;
  top: 116px;
  left: 24px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 10px;
  align-items: center;
  padding: 12px 15px;
  color: #f2d99f;
  background: #1b0d08ef;
  border: 2px solid #c08a39;
  box-shadow: 0 10px 30px #0009;
}

.reel-guide i { grid-row: 1 / 3; font-size: 28px; font-style: normal; animation: guide-nudge .65s ease-in-out infinite alternate; }
.reel-guide span { font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.reel-guide b { color: #c9a462; font-size: 9px; }
.film-reel.is-guiding { animation: reel-float .8s ease-in-out infinite, reel-guide-pulse .8s ease-in-out infinite alternate; }

@keyframes ident-arrive { from { opacity: 0; filter: blur(14px); } to { opacity: 1; filter: blur(0); } }
@keyframes ident-exposure { 0% { opacity: 0; } 45% { opacity: .45; } 100% { opacity: 1; } }
@keyframes ident-leave { to { opacity: 0; filter: blur(10px); transform: scale(1.025); } }
@keyframes leader-warm { from { opacity: 0; filter: brightness(.05); } to { opacity: 1; filter: brightness(1); } }
@keyframes guide-nudge { to { transform: translateX(-5px); } }
@keyframes reel-guide-pulse { to { box-shadow: 0 0 0 10px #f4c35d44, 0 0 52px #ffd36d; filter: brightness(1.25); } }

.project-media iframe {
  background: #fff;
}

.project-info {
  overflow: auto;
  padding: 84px 54px 48px;
  background:
    radial-gradient(circle at 15px 15px, #3c2016 0 2px, transparent 3px),
    #1b0d08;
  background-size: 36px 36px;
  border-left: 3px solid #9d6a2c;
}

.project-info > span {
  color: #d09b43;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.project-info h2 {
  margin: 14px 0 22px;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: .98;
}

.project-info p {
  color: #dfc698;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0;
  background: #6b451e;
  border: 1px solid #6b451e;
}

.project-facts div {
  padding: 14px;
  background: #190c08;
}

.project-facts small,
.project-facts b {
  display: block;
}

.project-facts small {
  margin-bottom: 5px;
  color: #b58a4a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-links a,
.project-links button {
  padding: 12px 15px;
  cursor: pointer;
  color: #f1d8a5;
  background: #31170e;
  border: 1px solid #ba8134;
  text-decoration: none;
  font-weight: 800;
}

.media-switcher {
  position: absolute;
  z-index: 5;
  left: 18px;
  top: 18px;
  display: flex;
  gap: 8px;
}

.media-switcher button {
  padding: 9px 12px;
  cursor: pointer;
  color: #f0d9aa;
  background: #170b07e8;
  border: 1px solid #ba8337;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.media-switcher button.is-active {
  color: #1b0d08;
  background: #e1ad50;
}

.gallery-nav {
  position: absolute;
  z-index: 6;
  left: 18px;
  right: 18px;
  top: 50%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.gallery-nav button {
  width: 52px;
  height: 52px;
  pointer-events: auto;
  cursor: pointer;
  color: #f4dca9;
  background: #170a07df;
  border: 2px solid #d09a44;
  font-size: 22px;
}

.gallery-counter {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 18px;
  padding: 8px 12px;
  transform: translateX(-50%);
  background: #170a07e8;
  border: 1px solid #c48b3a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.data-booth {
  margin-top: 32px;
  padding: 22px;
  background: #100806;
  border: 1px solid #845d2c;
}

.data-booth h3 {
  margin: 0 0 10px;
  font-family: "Rye", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.data-booth p {
  margin: 0 0 18px;
  font-size: 14px;
}

.edit-machine {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.edit-machine span,
.edit-machine b {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 8px;
  border: 1px solid #74502a;
  text-align: center;
  font-size: 9px;
  letter-spacing: .05em;
}

.edit-machine b {
  color: #25140b;
  background: #d6a34d;
}

.project-map {
  padding: 72px 42px 38px;
  overflow: auto;
}

.project-map header {
  margin-bottom: 28px;
}

.project-map header span {
  color: #d09b42;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.project-map header h2 {
  max-width: 850px;
  margin: 12px 0 0;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 400;
  line-height: 1;
}

#projectMapGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.map-project {
  min-height: 210px;
  padding: 22px;
  cursor: pointer;
  color: #f1d8a5;
  background: #25130d;
  border: 1px solid #8f632d;
  text-align: left;
}

.map-project:hover {
  background: #3a1b11;
  border-color: #e2aa4a;
}

.map-project span,
.map-project b,
.map-project small {
  display: block;
}

.map-project span {
  color: #c99949;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.map-project b {
  margin: 24px 0 9px;
  font-family: "Rye", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.map-project small {
  color: #d2b988;
  line-height: 1.5;
}

.feedback-toggle {
  position: fixed;
  z-index: 70;
  right: 18px;
  bottom: 18px;
  padding: 11px 15px;
  cursor: pointer;
  color: #241208;
  background: #e0ab4d;
  border: 2px solid #ffe09a;
  box-shadow: 0 7px 0 #63350f, 0 14px 28px #0008;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.feedback-toggle span {
  margin-right: 6px;
}

.feedback-panel {
  position: fixed;
  z-index: 80;
  right: 16px;
  top: 80px;
  bottom: 16px;
  width: min(390px, calc(100vw - 32px));
  padding: 20px;
  overflow: auto;
  color: #f1d9a8;
  background: #160b07f7;
  border: 3px double #c08835;
  box-shadow: 0 24px 70px #000b;
}

.feedback-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.feedback-panel header span,
.feedback-panel header strong {
  display: block;
}

.feedback-panel header span {
  color: #cf9a43;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.feedback-panel header strong {
  margin-top: 6px;
  font-family: "Rye", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.feedback-panel header button {
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: #f1d9a8;
  background: #28130c;
  border: 1px solid #b97f34;
  font-size: 20px;
}

.feedback-panel > p {
  color: #d8bf8c;
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
}

.selection-toggle,
#saveFeedback,
.feedback-panel footer button {
  cursor: pointer;
  color: #f2daa9;
  background: #31170e;
  border: 1px solid #b97f33;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.selection-toggle,
#saveFeedback {
  width: 100%;
  padding: 12px;
}

.selection-toggle.is-active {
  color: #241207;
  background: #e0aa4b;
}

.feedback-selection {
  margin: 15px 0 8px;
  padding: 12px;
  background: #0f0705;
  border: 1px solid #69451f;
}

.feedback-selection small,
.feedback-selection b {
  display: block;
}

.feedback-selection small {
  color: #b98943;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}

.feedback-selection b {
  margin-top: 4px;
  font-size: 13px;
}

#feedbackText {
  width: 100%;
  resize: vertical;
  padding: 12px;
  color: #1d0e08;
  background: #f0dba8;
  border: 2px solid #6f451e;
  line-height: 1.45;
}

#saveFeedback {
  margin-top: 8px;
}

#saveFeedback:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.feedback-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.feedback-note {
  padding: 11px;
  background: #211009;
  border: 1px solid #66431f;
}

.feedback-note b,
.feedback-note p {
  margin: 0;
}

.feedback-note b {
  color: #d8a64f;
  font-size: 10px;
}

.feedback-note p {
  margin-top: 6px;
  color: #e2c99a;
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1.4;
}

.feedback-note button {
  margin-top: 7px;
  padding: 0;
  cursor: pointer;
  color: #d58a70;
  background: none;
  border: 0;
  font-size: 9px;
  font-weight: 800;
}

.feedback-panel footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 7px;
}

.feedback-panel footer button {
  padding: 9px;
}

.feedback-selecting [data-feedback-label],
.feedback-selecting .premiere,
.feedback-selecting .play-poster,
.feedback-selecting .gallery-billboard,
.feedback-selecting .projector-screen {
  cursor: crosshair !important;
}

.feedback-selected {
  outline: 5px solid #ffcf62 !important;
  outline-offset: -5px;
  box-shadow: 0 0 0 9px #8a4b1888 !important;
}

.has-feedback::after {
  content: attr(data-feedback-count);
  position: absolute;
  z-index: 30;
  right: 8px;
  top: 8px;
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #2b1509;
  background: #ffca56;
  border: 2px solid #4b260f;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

@keyframes reel-float {
  50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes reel-deliver {
  0% { transform: scale(1) rotate(0); opacity: 1; }
  35% { transform: translate(120px, -120px) scale(.8) rotate(180deg); }
  100% { transform: translate(250px, 260px) scale(.18) rotate(720deg); opacity: 0; }
}

@keyframes confetti-burst {
  to {
    transform: translate(calc((var(--left) - 50%) * .65), -540px) rotate(840deg);
    opacity: 0;
  }
}

@keyframes player-bob {
  50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes player-land {
  50% { transform: scaleX(1.07) scaleY(.92); }
}

@keyframes leader-sweep {
  to { transform: rotate(360deg); }
}

@keyframes gate-weave {
  0% { transform: translate(0, 0); }
  33% { transform: translate(2px, -1px); }
  66% { transform: translate(-1px, 1px); }
}

@keyframes exposure-flicker {
  20% { filter: brightness(.89) contrast(1.08); }
  52% { filter: brightness(1.18) contrast(.96); }
  76% { filter: brightness(.78) contrast(1.18); }
}

@keyframes scratches {
  0% { transform: translateX(0) skewX(-2deg); }
  35% { transform: translateX(38vw) skewX(2deg); }
  67% { transform: translateX(-9vw); }
}

@media (max-width: 900px) {
  :root {
    --topbar-height: 56px;
  }

  .topbar {
    grid-template-columns: auto 1fr;
    padding: 0 12px;
  }

  .wordmark {
    font-size: 14px;
  }

  .premiere-progress {
    justify-self: end;
  }

  .premiere-progress > span,
  .premiere-progress > b {
    display: none;
  }

  .topbar nav {
    position: fixed;
    right: 10px;
    top: 65px;
    display: grid;
    gap: 4px;
  }

  .topbar nav button,
  .topbar nav a {
    min-height: 32px;
    padding: 7px 10px;
    background: #1b0d08e8;
  }

  .touch-controls {
    display: flex;
  }

  .feedback-toggle {
    right: 12px;
    bottom: 82px;
  }

  .premiere {
    height: calc(100% - 18px);
  }

  .project-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(50%, 1fr) auto;
    overflow: auto;
  }

  .project-media {
    min-height: 52vh;
  }

  .project-info {
    padding: 36px 24px;
    border-left: 0;
    border-top: 3px solid #9d6a2c;
  }

  #projectMapGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  :root {
    --ground: 96px;
  }

  .topbar {
    height: 54px;
  }

  .topbar nav {
    top: 62px;
    right: 6px;
    grid-template-columns: repeat(3, auto);
  }

  .topbar nav button,
  .topbar nav a {
    min-height: 28px;
    padding: 6px 7px;
    font-size: 8px;
  }

  .action-toast {
    top: 104px;
    min-width: 0;
    width: calc(100vw - 132px);
    padding: 10px 12px;
    font-size: 9px;
  }

  .tutorial-sign--move {
    left: 70px;
  }

  .tutorial-sign--jump {
    left: 470px;
  }

  .tutorial-sign {
    transform: scale(.82);
    transform-origin: top left;
  }

  .touch-controls {
    bottom: 10px;
  }

  .touch-controls button {
    width: 54px;
    height: 54px;
  }

  .opening__title {
    padding: 38px 18px 32px;
  }

  .opening__title h1 {
    font-size: 46px;
  }

  .brass-button {
    min-width: 240px;
  }

  .project-dialog,
  .project-map {
    width: 100vw;
    height: 100dvh;
    border-width: 3px;
  }

  .project-map {
    padding: 70px 18px 24px;
  }

  #projectMapGrid {
    grid-template-columns: 1fr;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }

  .feedback-panel {
    left: 10px;
    right: 10px;
    top: 66px;
    bottom: 10px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
