#loading {
  --cream: #fff3da;
  --mint: #a4ead7;
  position: fixed; inset: 0; z-index: 10; isolation: isolate; overflow: hidden;
  color: var(--cream); background: linear-gradient(125deg,#152837,#875868 55%,#e69669);
  font-family: system-ui, sans-serif;
}
#loading[hidden], #loading [hidden] { display: none; }
#loading button, #loading summary { cursor: pointer; }
#loading :is(button,summary):focus-visible { outline: 3px solid #a4ead7; outline-offset: 3px; }
.poster, .poster-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.poster { object-fit: cover; object-position: 64% center; }
.poster:not([src]) { visibility: hidden; }
.poster-shade {
  background: linear-gradient(90deg, #12142399 0, #18152842 32%, transparent 58%),
              linear-gradient(0deg,#111522ee,transparent 24%,transparent 80%,#17152673);
}
.edition, .art-caption { position: absolute; left: 4.5%; right: 4.5%; display: flex; align-items: center; }
.edition { top: 4.2%; justify-content: space-between; }
.club, .imprint, .plate, .plate-count, .archive-head p, #print small, .archive-grid small {
  text-transform: uppercase; font: 800 10px/1.35 system-ui, sans-serif; letter-spacing: .15em;
}
.club { display: flex; align-items: center; gap: .8em; text-shadow: 0 1px 5px #111; }
.switch-mark { width: 24px; height: 24px; display: inline-block; transform: skew(-9deg);
  background: linear-gradient(90deg,transparent 45%,#20212a 45% 55%,transparent 55%),
              linear-gradient(transparent 45%,#20212a 45% 55%,transparent 55%),#ffe0ae; }
.outline-button, .poster-nav button, #archive button, #print button {
  color: inherit; background: transparent; border: 0; font: 700 14px/1.2 system-ui,sans-serif;
}
.edition .outline-button { border: 1px solid #fff4d59e; border-radius: 3px; padding: 9px 14px; background: #101724aa; }
.edition .outline-button span { margin-right: 5px; font-size: 16px; }
.cover { position: absolute; left: 6%; bottom: 17%; max-width: 90vw; }
.cover h1 { margin: 0; }
.game-wordmark { display: block; width: min(33vw,53vh,480px); height: auto; }
.load-status, .title-menu { width: clamp(245px,23vw,370px); }
.load-status { margin-top: 21px; }
.load-status p, .title-menu summary { font-size: 13px; font-weight: 720; }
.load-status .bar { height: 4px; background: #ffffff55; }
.load-status .bar i { display: block; height: 100%; width: 0; background: var(--mint); transition: width .25s; }
.title-menu .mode-buttons { display: grid; justify-content: stretch; gap: 7px; margin: 20px 0 12px; }
.title-menu .mode-buttons button { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
  min-height: 39px; color: #25232d; background: var(--cream); border: 1px solid var(--cream); border-radius: 2px; font: 800 15px/1.2 system-ui; }
.title-menu .mode-buttons button + button { color: var(--cream); background: #17212cd9; border-color: #fff3da80; }
.title-menu .mode-buttons button:hover, .edition button:hover { color: #192733; background: var(--mint); }
.title-menu .mode-buttons kbd { font: 700 10px/1 system-ui; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.title-menu .mode-buttons button:disabled { opacity: .55; cursor: default; }
.title-menu summary { width: fit-content; color: #fff2df; text-shadow: 0 2px 5px #121421; }
.guide { position: absolute; z-index: 2; bottom: 1.65em; width: min(390px,78vw); box-sizing: border-box;
  background: #17212afc; padding: 15px 20px; max-height: 50vh; overflow: auto; border: 1px solid #ffdeb780; }
.guide h2 { text-transform: uppercase; font-size: 12px; color: #ffbd9d; letter-spacing: .08em; margin: 9px 0 5px; }
.guide p, .guide table { font-size: 13px; line-height: 1.5; margin: 0 0 6px; }
.art-caption { bottom: 3.2%; border-top: 1px solid #fff2d66b; padding-top: 12px; gap: 20px; }
.imprint { margin-right: auto; font-size: 9px; color: #fae9d8; }
.poster-label { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.plate, #print small { color: #ffe0af; }
.art-caption h2 { font-size: clamp(15px,1.65vw,27px); line-height: 1.08; letter-spacing: -.03em; margin: 2px 0 0; }
.poster-nav, .print-nav { display: flex; align-items: center; gap: 8px; }
.poster-nav { flex: none; align-self: flex-end; }
.poster-nav button, #print button, #archive #close-archive {
  display: grid; place-items: center; min-width: 32px; height: 34px; border: 1px solid #ffebcf99; border-radius: 2px;
  background: #141d2999; font-size: 19px;
}
.poster-nav button:hover, #print button:hover, #archive #close-archive:hover { background: #38454e; }
.poster-nav #pause-posters { min-width: 26px; font-size: 13px; border-color: transparent; }
.plate-count { width: 10ch; white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
#archive, #print { box-sizing: border-box; border: 1px solid #a99c83; padding: 0; background: #18212b; color: var(--cream);
  box-shadow: 0 24px 100px #10121bcc; }
#archive::backdrop, #print::backdrop { background: #101520d1; }
#archive[open] { width: min(960px,94vw); height: min(790px,90dvh); display: flex; flex-direction: column; }
.archive-head, #print footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 22px; }
.archive-head h2, #print h2 { margin: 2px 0 0; font-size: clamp(23px,3vw,39px); line-height: 1.05; letter-spacing: -.055em; }
.archive-head h2 { font-weight: 950; font-style: italic; text-transform: uppercase; }
.archive-head p { margin: 0; color: #ffcd9d; }
.archive-tabs { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 0 22px; border-bottom: 1px solid #fffae43a; }
#archive .archive-tabs button { padding: 8px 0; font-size: 13px; border-bottom: 3px solid transparent; }
#archive .archive-tabs button[aria-pressed=true] { border-color: var(--mint); color: var(--mint); }
.cast-filter { margin: 10px 22px 0; font-size: 13px; }
.cast-filter select { margin-left: 6px; max-width: 65%; padding: 4px 8px; font: inherit; color-scheme: dark; }
.archive-grid { padding: 16px 22px 22px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill,minmax(205px,1fr));
  align-content: start; gap: 18px 14px; }
#archive .archive-grid button { display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 0; }
.archive-grid img { width: 100%; aspect-ratio: 1.65; object-fit: cover; background: #292e3b; }
.archive-grid.cast-grid img { aspect-ratio: 16 / 9; object-fit: contain; }
.archive-grid.cover-grid img { aspect-ratio: 2 / 3; object-fit: contain; background: #11121c; }
.archive-grid button:hover img { outline: 2px solid var(--mint); }
.archive-grid small { margin: 7px 0 3px; color: #e4c9a8; font-size: 8px; }
.archive-grid strong { font-size: 15px; }
#print[open] { width: min(1150px,96vw); height: min(850px,93dvh); display: flex; flex-direction: column; }
#print > img { display: block; width: 100%; min-height: 0; flex: 1; object-fit: contain; background: #0c1016; }
#print #close-print { position: absolute; top: 12px; right: 12px; }
#print h2 { font-size: clamp(18px,2.4vw,30px); }
@media (max-width: 680px) {
  .edition { top: 3%; }
  .cover { left: 6%; bottom: 16%; }
  .poster { object-position: 69% center; }
  .poster-shade { background: linear-gradient(0deg,#111422f5, #17182894 34%, transparent 65%),linear-gradient(180deg,#12152085,transparent 18%); }
  .art-caption { gap: 7px; justify-content: space-between; }
  .imprint { display: none; }
  .poster-label { text-align: left; }
  .plate { font-size: 8px; }
  .poster-nav { gap: 4px; }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 8px; padding: 12px; }
  .archive-head, #print footer { padding: 12px; }
  .archive-tabs { padding: 0 12px; gap: 8px; }
}
@media (max-height: 510px) {
  .cover { bottom: 18%; }
  .game-wordmark { width: min(31vw,41vh); }
  .title-menu .mode-buttons { display: flex; width: max-content; margin: 8px 0 4px; }
  .title-menu .mode-buttons button { min-height: 31px; padding: 6px 9px; gap: 8px; font-size: 12px; }
  .art-caption { padding-top: 5px; bottom: 2%; }
}
@media (orientation: portrait) and (max-width: 680px) and (min-height: 600px) {
  #loading { background: linear-gradient(165deg,#17232d 40%,#282636 82%,#19252c); }
  .edition { top: 12px; }
  .poster { top: 60px; height: min(56.25vw,35dvh); object-fit: contain; object-position: center; }
  .poster-shade { background: none; }
  .cover { top: calc(72px + min(56.25vw,35dvh)); bottom: auto; }
  .game-wordmark { width: min(65vw,35dvh); }
  .title-menu .mode-buttons { margin-top: 12px; }
}
.opening-cover { display: none; }
#loading[data-cover] {
  background: linear-gradient(90deg, #1619259c, #191a2ae3 43%, #191925 72%),
              url('art/cover/five-crew-square.webp') left 14% / 175% auto no-repeat, #171924;
}
#loading[data-cover] .opening-cover {
  position: absolute; display: block; top: 3%; bottom: 3%; left: 36%; right: 3%;
}
.opening-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
#loading[data-cover] .poster-shade { display: none; }
#loading[data-cover] .cover { left: 5%; bottom: 21%; max-width: 30%; }
#loading[data-cover] .cover h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#loading[data-cover] .title-menu, #loading[data-cover] .load-status { width: min(29vw,350px); }
#loading[data-cover] .imprint { display: none; }
#loading[data-cover] .poster-label { margin-right: auto; text-align: left; }
.archive-grid.cover-grid {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
}
.archive-grid.cover-grid img { aspect-ratio: auto; height: min(51vw, 55dvh, 455px); }
@media (orientation: portrait) {
  #loading[data-cover] { background: linear-gradient(160deg,#211f2a,#302832 62%,#161d27); }
  #loading[data-cover] .opening-cover { top: 54px; bottom: 132px; left: 2%; right: 2%; }
  #loading[data-cover] .cover { top: auto; bottom: 56px; left: 5%; right: 5%; max-width: none; }
  #loading[data-cover] .title-menu, #loading[data-cover] .load-status { width: 100%; }
  #loading[data-cover] .title-menu .mode-buttons { display: grid; width: auto; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 8px; }
  #loading[data-cover] .title-menu .mode-buttons button { padding: 9px; gap: 4px; font-size: 14px; }
  #loading[data-cover] .title-menu .mode-buttons kbd { display: none; }
  .art-caption { bottom: 8px; padding-top: 6px; }
  #loading[data-cover] .art-caption h2 { font-size: 14px; }
}
@media (orientation: landscape) and (max-height: 510px) {
  #loading[data-cover] .cover { bottom: 28%; }
  #loading[data-cover] .title-menu .mode-buttons { display: grid; width: 100%; }
}
