:root {
  color-scheme: dark;
  --gold: #e6bd77;
  --cream: #fff0ce;
  --ink: #17363a;
  --paper: #edddba;
  --display: Rye, Georgia, serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--cream);
  background: #172b39;
  font: 400 16px/1.5 var(--body);
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  background: url(midway/entrance.webp) center/cover;
  z-index: -2;
}
body:not([data-room="entrance"]):after {
  content: "";
  position: fixed;
  inset: 0;
  background: #101e29a8;
  z-index: -1;
}
a {
  color: inherit;
}
button,
summary {
  cursor: pointer;
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  z-index: 12;
  left: 12px;
  top: 8px;
  padding: 10px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
}
:focus-visible {
  outline: 3px solid #efb254;
  outline-offset: 4px;
}
h1:focus,
h2:focus {
  outline: none;
}
.gate {
  display: grid;
  grid-template-rows: minmax(460px, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}
.stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.centerpiece {
  text-align: center;
  z-index: 1;
  padding: 24px 0 26px;
}
.centerpiece h1 {
  position: relative;
  margin: 0 auto -3px;
  width: min(760px, 62vw, 98svh);
  isolation: isolate;
}
.centerpiece h1 img {
  height: auto;
  width: 100%;
  filter: drop-shadow(0 9px 5px #10232a77);
}
.centerpiece h1:before,
.centerpiece h1:after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 3px;
  height: 65vh;
  bottom: 75%;
  background: repeating-linear-gradient(150deg, #71563b 0 3px, #c69e67 4px 6px);
  box-shadow: 1px 0 #514438;
}
.centerpiece h1:before {
  left: 19%;
}
.centerpiece h1:after {
  right: 19%;
}
.invitation {
  position: relative;
  display: grid;
  justify-items: center;
  isolation: isolate;
}
.invitation:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px -6% -20px;
  background: radial-gradient(
    ellipse,
    #142d33d9 0%,
    #172e34a6 40%,
    transparent 72%
  );
}
.invitation p {
  font: 500 clamp(16px, 1.35vw, 20px) / 1.48 var(--body);
  margin: 0 12px 18px;
  color: #fff4d9;
  text-shadow: 0 2px 3px #182a32;
}
.admit,
.guide-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  color: #412d23;
  background: linear-gradient(#ffe2a1, #edb963);
  border: 2px solid #88532e;
  border-radius: 6px;
  box-shadow:
    0 0 0 2px #edcd8d,
    0 5px 0 2px #72492e,
    0 8px 13px #1b282b99;
  text-decoration: none;
  font: 700 clamp(23px, 2.1vw, 31px) / 1.2 var(--cond);
  padding: 13px 26px;
  text-shadow: 0 1px #ffebc3;
  transition:
    transform 0.18s,
    filter 0.18s;
}
.admit:before,
.guide-play:before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed #9c6c3e;
  border-radius: 3px;
}
.admit i {
  font: normal 16px Georgia;
}
.admit kbd {
  font: 600 13px var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: 1px dashed #99713f;
  padding-left: 14px;
}
.admit:hover,
.guide-play:hover {
  filter: brightness(1.09);
  transform: translateY(-2px);
}
.invitation small,
.act-number,
.power-name,
.frame-top,
.sill {
  font: 700 13px/1.4 var(--cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.invitation small {
  margin-top: 16px;
  text-shadow: 0 1px 4px #172a2e;
}
.invitation small b {
  color: #eac382;
  margin: 0 8px;
}
.host {
  position: absolute;
  bottom: 3%;
  width: clamp(190px, 26vw, 410px);
  text-align: center;
  text-decoration: none;
  z-index: 2;
  display: grid;
  justify-items: center;
}
.host img {
  width: 100%;
  height: auto;
  filter: drop-shadow(2px 5px 0 #23323480);
  transition: transform 0.18s;
}
.host:hover img {
  transform: translateY(-5px) rotate(-2deg);
}
.host span {
  background: linear-gradient(#2e5656, #203e42);
  color: #ffe4a8;
  border: 3px double #cfa96c;
  box-shadow: 0 3px #5c4735;
  padding: 4px 17px;
  font: 600 clamp(13px, 1.1vw, 17px) var(--cond);
  letter-spacing: 0.04em;
  margin-top: -8px;
  transform: rotate(-3deg);
}
.host span b {
  color: #ceaa6c;
  font-size: 10px;
}
.fox {
  left: 2%;
}
.mage {
  right: 2%;
  width: clamp(180px, 24.5vw, 385px);
}
.mage span {
  transform: rotate(3deg);
}
.houselights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.houselights i {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffdf99;
  clip-path: polygon(
    50% 0,
    61% 38%,
    100% 50%,
    61% 61%,
    50% 100%,
    39% 61%,
    0 50%,
    39% 38%
  );
  animation: shine 4.8s ease-in-out infinite alternate;
}
.houselights i:nth-child(1) {
  left: 21%;
  top: 24%;
}
.houselights i:nth-child(2) {
  left: 75%;
  top: 32%;
  animation-delay: -2s;
}
.houselights i:nth-child(3) {
  left: 91%;
  top: 27%;
  animation-delay: -1s;
}
.houselights i:nth-child(4) {
  left: 11%;
  top: 42%;
  animation-delay: -3s;
}
.houselights i:nth-child(5) {
  left: 68%;
  top: 12%;
  animation-delay: -1s;
}
@keyframes shine {
  from {
    opacity: 0.18;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1.1);
  }
}
.counter {
  position: relative;
  background: linear-gradient(#314746e8, #162f34 88%), url(midway/stock.webp);
  border-top: 5px ridge #a68153;
  box-shadow: 0 -6px 32px #12282d6b;
  padding: 27px 22px 13px;
}
.counter:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  background: repeating-linear-gradient(
    115deg,
    #8c4741 0 20px,
    #d3b787 20px 40px
  );
  border-bottom: 2px solid #795a3e;
}
.passes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 830px;
  gap: 23px;
  margin: auto;
}
.pass,
.tickets a {
  position: relative;
  text-decoration: none;
  background: var(--paper) url(midway/stock.webp);
  color: var(--ink);
  border: 1px solid #b4905f;
  border-radius: 5px;
  box-shadow:
    0 4px #815f40,
    1px 7px 12px #101e2380;
  transition: transform 0.18s;
}
.pass {
  padding: 5px 6px 9px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.pass img,
.tickets img {
  width: 100%;
  height: auto;
}
.pass img {
  grid-column: 1/-1;
  max-height: 46px;
  object-fit: cover;
}
.pass span {
  font: 400 clamp(17px, 1.65vw, 24px) var(--display);
  padding: 4px 0 0 8px;
}
.pass > b {
  font: 700 22px var(--cond);
  color: var(--stripe);
  margin-right: 7px;
}
.pass:hover,
.tickets a:hover {
  transform: translateY(-4px) rotate(-0.4deg);
}
.sill {
  display: flex;
  justify-content: space-between;
  max-width: 830px;
  margin: 17px auto 0;
  color: #c4bb9e;
  font-size: 11px;
  letter-spacing: 0.09em;
}
.sill a {
  text-underline-offset: 3px;
}
.room {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 38px 22px;
}
.cabinet {
  width: min(1080px, 100%);
  padding: 18px clamp(20px, 3vw, 42px) 34px;
  position: relative;
  background: var(--ink) url(midway/stock.webp);
  border: 5px double #d2af79;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 4px #314c4c,
    0 8px #72543c,
    0 18px 48px #0c2029b3;
}
.room-head {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  border-bottom: 3px double #b0976c;
  padding: 0 0 15px;
  margin-bottom: 22px;
}
.room-head h2,
.map-sheet h3,
.act-copy h3,
.tickets a > span {
  font-family: var(--display);
  font-weight: 400;
}
.room-head h2 {
  font-size: clamp(25px, 3vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 4px 0;
}
.room-head img {
  justify-self: end;
}
.back {
  justify-self: start;
  padding: 5px 11px;
  border: 1px solid #af9361;
  border-radius: 4px;
  text-decoration: none;
  font: 600 18px var(--cond);
  color: var(--gold);
}
.back:hover,
.world-link:hover {
  color: #fff3cf;
}
.intro {
  text-align: center;
  color: #e5d8bc;
}
.tickets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.tickets a {
  padding: 6px 6px 14px;
  display: flex;
  flex-direction: column;
}
.tickets a > span {
  padding: 14px 7px 0;
  font-size: clamp(18px, 1.85vw, 25px);
  line-height: 1.2;
  color: var(--stripe);
}
.tickets p {
  font-size: 14px;
  line-height: 1.5;
  padding: 0 7px;
  margin: 8px 0 20px;
}
.tickets strong {
  margin: auto 7px 0;
  border-top: 1px dashed #a89472;
  padding-top: 9px;
  font: 700 17px var(--cond);
  color: var(--stripe);
}
.atlas-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 20px;
}
.map-sheet {
  position: relative;
  background: #e4d4b0 url(midway/stock.webp);
  color: #304543;
  align-self: stretch;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 4px double #a48b61;
  padding: 18px 0;
}
.map-sheet h3 {
  margin: 0;
  font-size: clamp(19px, 2.1vw, 29px);
}
.map-sheet p {
  font: 600 16px var(--cond);
  margin: 3px 0 14px;
}
.act-picker {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  background: url(midway/route-plate.webp) center/100% 100%;
  min-height: 195px;
}
.act-picker button {
  font: 700 clamp(12px, 1.15vw, 17px) / 1.1 var(--cond);
  color: #344846;
  background: none;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 3px;
}
.act-picker button:nth-child(5) {
  grid-column: 4;
  grid-row: 2;
}
.act-picker button:nth-child(6) {
  grid-column: 3;
  grid-row: 2;
}
.act-picker button:nth-child(7) {
  grid-column: 2;
  grid-row: 2;
}
.act-picker button:nth-child(8) {
  grid-column: 1;
  grid-row: 2;
}
.act-picker b {
  width: 28px;
  height: 28px;
  border: 3px double #987d51;
  border-radius: 50%;
  background: #f2dfae;
  display: grid;
  place-items: center;
  font-size: 17px;
  margin-bottom: 4px;
}
.act-picker span {
  padding: 3px 4px;
  background: #e7dabee8;
  border-radius: 3px;
}
.act-picker [aria-pressed="true"] b {
  background: #a54f3b;
  color: var(--cream);
  box-shadow: 0 0 0 3px #fff1cd;
}
.act-picker [aria-pressed="true"] span {
  background: #744537;
  color: #fff1cd;
}
.compass {
  font-size: 22px;
  color: #7a705a;
}
.act {
  border: 1px solid #907f60;
  background: #112e32;
}
.act-portrait {
  background: radial-gradient(
    ellipse at 50% 75%,
    var(--act-color),
    #1b393d 93%
  );
  height: 145px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #a78e65;
}
.act-portrait img {
  width: auto;
  height: 142px;
}
.act-copy {
  padding: 18px 20px;
}
.act-number,
.power-name {
  color: var(--gold);
  font-size: 12px;
}
.act-copy h3 {
  font-size: clamp(19px, 1.7vw, 26px);
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 8px 0;
}
.act-copy p {
  margin: 7px 0;
}
.act-copy p:not(.act-number) {
  font-size: 14px;
  line-height: 1.5;
}
.power-name {
  margin-right: 4px;
}
.world-link,
.game-card a {
  color: var(--gold);
  text-underline-offset: 3px;
  font: 700 17px var(--cond);
}
.world-link {
  display: inline-block;
  margin-top: 6px;
}
.handbook {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 25px;
}
.guide-intro {
  margin-top: 0;
  font-size: 17px;
}
.rules {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rules li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
}
.rules h3 {
  font: 700 21px var(--cond);
  margin: 0;
}
.rules p,
.controls p {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #dfdcc9;
}
.rules img {
  width: 40px;
  height: 40px;
}
.game-card {
  margin: 0;
  background: #193336;
  border: 3px double #af9667;
}
.frame-top,
.game-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
}
.frame-top {
  color: #dbbf89;
  font-size: 11px;
}
.game-card > video {
  display: block;
  background: #172b30;
  width: 100%;
  height: auto;
}
.game-card figcaption {
  font: 600 16px var(--cond);
}
.controls {
  margin-top: 15px;
  border-block: 1px solid #8b805f;
  padding: 11px 0;
}
.controls summary {
  font: 600 18px var(--cond);
  color: var(--gold);
}
.guide-play {
  font-size: 21px;
  margin-top: 23px;
  padding: 9px 24px;
}
@media (min-width: 1700px) {
  .gate {
    max-width: 2100px;
    margin: auto;
  }
  .host {
    bottom: 7%;
  }
}
@media (max-width: 850px) {
  .gate {
    grid-template-rows: minmax(424px, 1fr) auto;
  }
  .room {
    padding: 22px 13px;
  }
  .tickets {
    grid-template-columns: 1fr 1fr;
  }
  .pass span {
    font-size: 17px;
  }
  .host {
    width: 24vw;
  }
  .mage {
    width: 23vw;
  }
  .host span {
    padding: 3px 7px;
    font-size: 12px;
  }
  .atlas-layout,
  .handbook {
    grid-template-columns: 1fr;
  }
  .act {
    display: grid;
    grid-template-columns: 0.34fr 0.66fr;
  }
  .act-portrait {
    height: 100%;
    min-height: 148px;
  }
  .act-portrait img {
    height: auto;
    width: 100%;
    max-height: 195px;
    object-fit: contain;
  }
  .act-picker {
    min-height: 150px;
  }
  .map-sheet {
    padding: 10px 0;
  }
  .compass {
    display: none;
  }
  .game-card {
    max-width: 540px;
  }
  .map-sheet p {
    margin: 2px 0;
  }
  .act-copy {
    padding: 12px;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  body:before {
    background-image: url(midway/entrance-tall.webp);
  }
  .gate {
    grid-template-rows: minmax(448px, 1fr) auto;
  }
  .stage {
    align-items: start;
  }
  .centerpiece {
    padding: clamp(39px, 9svh, 78px) 0 0;
    width: 100%;
  }
  .centerpiece h1 {
    width: min(113%, 580px);
    margin-left: -6.5%;
  }
  .invitation p {
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 14px;
  }
  .admit {
    font-size: 24px;
    gap: 10px;
    padding: 11px 18px;
  }
  .admit kbd {
    display: none;
  }
  .admit i {
    font-size: 12px;
  }
  .invitation small {
    font-size: 10px;
    margin-top: 12px;
  }
  .host {
    bottom: 3%;
    width: min(30vw, 17svh);
    left: 3%;
  }
  .mage {
    left: auto;
    right: 3%;
    width: min(28vw, 16svh);
  }
  .host span {
    font-size: 10px;
    padding: 2px 6px;
    white-space: nowrap;
  }
  .counter {
    padding: 18px 12px 12px;
  }
  .passes {
    gap: 7px;
  }
  .pass {
    padding: 3px 3px 6px;
    display: block;
    text-align: center;
  }
  .pass img {
    height: 30px;
    margin-bottom: 5px;
  }
  .pass span {
    font-size: clamp(12px, 3.6vw, 18px);
    padding: 0;
  }
  .pass > b {
    display: none;
  }
  .sill {
    margin-top: 12px;
    font-size: 9px;
  }
  .room-head {
    gap: 4px;
  }
  .back span {
    display: none;
  }
  .back {
    font-size: 23px;
    padding: 0 12px;
  }
  .cabinet {
    padding: 12px 14px 21px;
  }
  .room-head h2 {
    font-size: 26px;
  }
  .act {
    display: block;
  }
  .act-portrait {
    height: 115px;
    min-height: 0;
  }
  .act-portrait img {
    height: 110px;
    width: auto;
  }
  .act-picker span {
    font-size: 12px;
  }
  .tickets {
    gap: 9px;
  }
  .tickets p {
    font-size: 13px;
  }
  .tickets strong {
    font-size: 15px;
  }
  .rules li {
    margin: 10px 0;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .gate {
    grid-template-rows: minmax(260px, 1fr) auto;
  }
  .centerpiece {
    padding: 2px;
  }
  .centerpiece h1 {
    width: min(400px, 72vh);
  }
  .invitation p {
    font-size: 12px;
    line-height: 1.3;
    margin: 0 0 8px;
  }
  .invitation p br {
    display: none;
  }
  .admit {
    font-size: 20px;
    padding: 6px 15px;
  }
  .invitation small {
    margin-top: 9px;
    font-size: 10px;
  }
  .host {
    width: min(20vw, 175px);
  }
  .counter {
    padding: 15px 16px 5px;
  }
  .passes {
    max-width: 690px;
    gap: 15px;
  }
  .pass img {
    height: 26px;
  }
  .pass span {
    font-size: 16px;
  }
  .pass {
    padding: 3px 4px;
  }
  .sill {
    margin-top: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:after,
  *:before {
    animation: none !important;
    transition: none !important;
  }
}

.host::before {
  content: "";
  position: absolute;
  inset: auto 8% 0.1%;
  z-index: -1;
  height: 22%;
  background: url(midway/footlights.webp) center bottom / 100% 100% no-repeat;
}
.act-portrait {
  background-position: center;
  background-size: cover;
}
body[data-room] .cabinet {
  animation: arrive 0.22s ease-out;
}
@keyframes arrive {
  from {
    transform: translateY(6px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-room] .cabinet {
    animation: none;
  }
}

.showtimes {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 14px;
  margin-top: 15px;
}
.showtimes #progress {
  margin: 0;
}
#watch-film {
  color: #ffe1a5;
  font: 700 16px var(--cond);
  text-underline-offset: 3px;
  white-space: nowrap;
  padding: 3px 2px;
}
#watch-film span {
  font-size: 0.78em;
}
#screening {
  margin: auto;
  padding: 0;
  width: min(920px, 94vw, calc((100dvh - 105px) * 1.6));
  max-height: 96dvh;
  color: var(--cream);
  background: #193638 url(midway/stock.webp);
  border: 3px double #c7a46a;
  border-radius: 6px;
  box-shadow: 0 17px 80px #07191cd9;
}
#screening::backdrop {
  background: #07171bed;
}
#screening video {
  display: block;
  width: 100%;
  height: auto;
  background: #112b31;
}
.screening-head,
#screening footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
}
.screening-head h2 {
  margin: 0;
  font: 400 clamp(17px, 3.2vw, 25px) var(--display);
  color: #f6e0b3;
}
.screening-head button {
  color: #fae7c2;
  font: 600 16px var(--cond);
  background: #28494c;
  border: 1px solid #a78c64;
  border-radius: 20px;
  padding: 5px 11px;
  cursor: pointer;
}
#screening footer {
  border-top: 1px solid #b29161;
  color: #dccba8;
  font: 600 15px var(--cond);
}
#screening footer a {
  color: #f5cf81;
  text-underline-offset: 3px;
}
@media (max-width: 480px) {
  .showtimes {
    margin-top: 10px;
    gap: 0 9px;
  }
  #watch-film {
    font-size: 14px;
  }
  .screening-head,
  #screening footer {
    padding: 8px 10px;
  }
}
