@font-face {
  font-family: "SH4 Menu";
  src: url("assets/sh4-menu.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "STIX Two Text";
  src: url("assets/stix-two-text.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --black: #090a0c;
  --ground: #101113;
  --text: #c2c5c9;
  --white: #eeeef0;
  --muted: #a2a6ac;
  --line: #383b40;
  --focus: #d6e2f1;
  --menu: "SH4 Menu", "STIX Two Text", Georgia, serif;
  --reading: "STIX Two Text", Georgia, "Times New Roman", serif;
  color-scheme: dark;
  scrollbar-color: #686b71 #141517;
}
*, *::after, *::before { box-sizing: border-box; }
html { scroll-padding-block-start: 18px; background: var(--black); }
body { background: var(--ground); color: var(--text); margin: 0; font: 400 18px/1.55 var(--reading); font-synthesis: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4, .menu, .menu-heading, .thumbnails span { color: var(--white); font-family: var(--menu); font-style: normal; font-weight: 400; }
h1 { font-size: clamp(31px,3.25vw,45px); line-height: 1.22; }
h2 { font-size: clamp(24px,2.15vw,30px); line-height: 1.27; }
h3 { font-size: 21px; line-height: 1.35; }
p + p { margin-top: 14px; }
a { color: #e1e3e6; text-underline-offset: .22em; text-decoration-color: #7c8086; }
a:hover, summary:hover { color: white; text-decoration-color: #f5f6f7; }
a, summary { cursor: pointer; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
main:focus { outline: none; }
img { display: block; max-width: 100%; }
::selection { background: #c9ccd1; color: #111214; }
.wrap { width: min(1150px, calc(100% - clamp(38px,10vw,150px))); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: -80px; left: 12px; padding: 9px 18px; background: var(--white); color: var(--black); }
.skip:focus { top: 10px; }
.mast { background: var(--black); }
.banner { isolation: isolate; overflow: hidden; position: relative; display: grid; place-items: center; height: clamp(295px,28vw,420px); background: #090a0b; }
.banner::before, .banner::after, .banner-photo { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.banner::before { content: ""; background: center 49% / cover url("assets/interior.webp"); filter: grayscale(1) contrast(1.18) brightness(.53); opacity: .68; }
.banner-photo { inset: 0 -2% 0 33%; mask-image: linear-gradient(90deg,transparent,black 24%); }
.banner-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 51% 47%; filter: grayscale(1) contrast(1.11) brightness(1.31); }
.banner::after { content: ""; background: linear-gradient(0deg,#08090b 0%,rgba(8,9,11,.23) 21%,transparent 63%,rgba(8,9,11,.29)), linear-gradient(90deg,rgba(7,8,10,.73),rgba(8,9,11,.24) 34%,rgba(7,8,10,.05) 74%,rgba(8,9,11,.48)); }
.identity { display: block; width: min(46%,610px); margin-right: 19%; line-height: 0; }
.title-logo { width: 100%; height: auto; opacity: .94; filter: drop-shadow(0 2px 7px #000); }
.inner-page .banner { height: clamp(165px,16vw,230px); }
.inner-page .identity { width: min(32%,390px); }
.top-nav { background: #0a0b0c; border-block: 1px solid #303236; }
.menu { min-height: 54px; display: flex; justify-content: center; align-items: stretch; column-gap: clamp(10px,3vw,55px); }
.menu a { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px 12px; color: #b0b2b7; font-size: 19px; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.menu a:hover, .menu a[aria-current] { color: #fff; text-shadow: 0 0 7px #d7d9de55; }
.menu a[aria-current]::after { position: absolute; content: ""; bottom: 0; left: 12px; right: 12px; height: 2px; background: #c9ccd0; }
.menu .discord-shortcut { padding-inline: 12px; }
.discord-shortcut img { opacity: .78; }
.discord-shortcut:hover img, .discord-shortcut:focus-visible img { opacity: 1; }
.content { padding-block: clamp(34px,4.4vw,66px) clamp(50px,6vw,94px); }
.overview, .about-opening, .release { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(0,.84fr); gap: clamp(36px,5.3vw,88px); align-items: start; }
.overview h2, .about-opening h2, .release h2, .ai-note h2, .faq h2 { margin-bottom: 16px; }
.overview figure { margin-top: 2px; }
.overview p, .about-opening p, .release p, .ai-note p, .page-heading p { max-width: 66ch; }
figure img, .thumbnails img { background: #17181a; border: 1px solid #46494d; width: 100%; height: auto; object-fit: cover; }
figcaption { color: var(--muted); font-size: 14px; line-height: 1.4; padding-top: 8px; }
.room-shot img { aspect-ratio: 1.63; filter: grayscale(1) contrast(1.07) brightness(1.15); }
.about-opening figure img, .release figure img { filter: grayscale(1) brightness(1.12); }
.page-links { display: flex; flex-wrap: wrap; gap: 5px 22px; margin-top: 17px; }
.page-links a { display: inline-flex; min-height: 34px; align-items: center; font-size: 16px; }
.home-index, .about-tools, .ai-note, .faq { border-top: 1px solid var(--line); margin-top: clamp(34px,3.9vw,58px); padding-top: clamp(23px,2.7vw,40px); }
.home-index h2, .about-tools h2 { margin-bottom: 21px; }
.thumbnails { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(15px,2.3vw,36px); }
.thumbnails a { text-decoration: none; }
.thumbnails img { aspect-ratio: 1.95; filter: grayscale(.92) brightness(1.1); }
.thumbnails span { display: inline-block; margin-top: 9px; font-size: 21px; line-height: 1.3; }
.thumbnails a:hover img { border-color: #c2c6ca; filter: grayscale(.65) brightness(1.18); }
.thumbnails a:hover span { text-decoration: underline; text-underline-offset: .23em; }
.page-heading { border-bottom: 1px solid var(--line); margin-bottom: 30px; padding-bottom: 20px; }
.page-heading p { margin-top: 12px; }
.archive-layout { display: grid; grid-template-columns: minmax(147px,190px) minmax(0,1fr); gap: clamp(33px,4.5vw,72px); }
.chapter-nav { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; border-right: 1px solid var(--line); padding: 5px 17px 5px 5px; }
.menu-heading { font-size: 20px; margin-bottom: 7px; }
.chapter-nav a { display: block; padding: 5px 0; color: #bcbfc4; font-size: 16px; }
.chapter-nav a:hover { color: white; }
.feature-chapter + .feature-chapter { margin-top: 33px; padding-top: 30px; border-top: 1px solid var(--line); }
.feature-chapter h2 { margin-bottom: 20px; }
.chapter-intro, #subway-second-visit { max-width: 66ch; margin-bottom: 22px; }
#hellish-water-prison { max-width: 66ch; }
.feature-entries + .feature-entries { margin-top: 22px; }
.feature-lead, .feature-entries { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px clamp(24px,2.7vw,40px); align-items: start; }
.feature-lead { margin-bottom: 22px; }
.lead-copy .feature-item + .feature-item { margin-top: 20px; }
.feature-item h3, .feature-item h4 { margin-bottom: 6px; font-size: 19px; line-height: 1.35; }
.boss-group > h3 { margin-bottom: 14px; }
.boss-group + .boss-group { margin-top: 26px; }
.upcoming-fights > p { margin-bottom: 8px; font-size: 17px; }
.planned-fight { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; border-top: 1px solid var(--line); padding-block: 6px; }
.planned-fight h4 { font-size: 18px; line-height: 1.35; }
.planned-fight p { color: var(--muted); font-size: 15px; }
.discord-callout { max-width: 56ch; margin-top: 14px; padding: 14px 16px; background: #17191c; border-block: 1px solid var(--line); }
.discord-callout p { font-size: 17px; }
.discord-callout a { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; font: 18px/1.3 var(--menu); }
.discord-callout a img { flex: none; }
.discord-callout small { display: block; color: var(--muted); font-size: 14px; }
.feature-quote { margin: 16px 0 0; padding: 10px 14px; border-left: 2px solid #747982; background: #141619; }
.feature-quote blockquote { margin: 0; }
.feature-quote figcaption { padding-top: 6px; }
h3 + .feature-quote { margin-top: 0; margin-bottom: 10px; }
.feature-item p, .upcoming-list { font-size: 17px; }
.feature-item .feature-source { margin-top: 9px; color: var(--muted); font-size: 16px; }
.feature-item .shot { margin-top: 14px; }
.shot img { aspect-ratio: 1.8; filter: saturate(.63) contrast(1.03); }
#classic .shot img { aspect-ratio: auto; }
@media (min-width: 961px) {
  :is(#classic, #menus-and-hud) .feature-lead .shot { grid-column: 2; grid-row: 1 / span 2; }
}
#final-boss .shot img { object-position: 59% center; }
#eileen .shot img { object-position: 70% center; }
.upcoming-list { margin: 0; padding-left: 1.25em; }
.upcoming-list li + li { margin-top: 7px; }
.tool-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(25px,3.8vw,62px); }
.tool-columns h3 { margin-bottom: 8px; }
.tool-columns p { font-size: 17px; }
.community { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(28px,5vw,76px); margin-top: clamp(34px,3.9vw,58px); padding-top: clamp(23px,2.7vw,40px); border-top: 1px solid var(--line); }
.community section { scroll-margin-top: 16px; }
.community section:focus-visible { outline: 1px solid var(--focus); outline-offset: 6px; }
.community h2 { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.community h2 img { flex: none; }
.community p { max-width: 60ch; }
.community .link-status { color: var(--muted); font-size: 16px; margin-top: 12px; }
.credits { margin-top: 35px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 19px; padding: 13px 0; color: var(--white); list-style: none; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 18px/1 var(--reading); color: #b3b8be; }
details[open] > summary::after { content: "−"; }
details p { max-width: 75ch; margin-top: 0; margin-bottom: 15px; }
.faq { max-width: 790px; }
.footer { border-top: 1px solid #303236; background: #0a0b0c; color: #96999f; }
.footer .wrap { padding-block: 23px 29px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 25px; font-size: 14px; }
.footer p:first-child { font: 17px/1.35 var(--menu); color: #c3c5ca; }
.footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 20px; margin-left: auto; }
.footer a { color: #b8bac0; }
@media (min-width: 1700px) {
  .banner-photo { inset-inline: 31% 4%; mask-image: linear-gradient(90deg,transparent,black 20%,black 84%,transparent); }
}
@media (max-width: 960px) {
  .archive-layout { grid-template-columns: 155px minmax(0,1fr); gap: 30px; }
  .feature-lead, .feature-entries { grid-template-columns: 1fr; gap: 18px; }
  .feature-lead .shot, .feature-item .shot { max-width: 570px; }
  .overview, .about-opening, .release { gap: 32px; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 38px); }
  .banner { height: clamp(215px,46vw,310px); }
  .inner-page .banner { height: 145px; }
  .banner-photo { inset-inline: 2% -5%; mask-image: linear-gradient(90deg,transparent,black 23%); }
  .banner-photo img { object-position: 52% 36%; }
  .banner::after { background: linear-gradient(0deg,#08090b 1%,rgba(8,9,11,.69) 26%,transparent 77%),linear-gradient(90deg,rgba(8,9,11,.5),transparent 84%); }
  .identity, .inner-page .identity { width: min(75%,395px); margin: 0; align-self: end; margin-bottom: 28px; }
  .inner-page .identity { width: min(57%,300px); margin-bottom: 20px; }
  .menu { width: calc(100% - 22px); min-height: 48px; column-gap: 2px; justify-content: space-evenly; }
  .menu a { font-size: 15.5px; padding-inline: 5px; }
  .menu a[aria-current]::after { left: 4px; right: 4px; }
  .menu .optional { display: none; }
  .menu .discord-shortcut { min-width: 30px; padding-inline: 3px; }
  .discord-shortcut img { width: 19px; height: 19px; }
  .content { padding-top: 29px; }
  .overview, .about-opening, .release, .tool-columns { grid-template-columns: 1fr; gap: 22px; }
  .room-shot, .about-opening figure, .release figure { max-width: 530px; }
  .room-shot img { aspect-ratio: 1.79; }
  .thumbnails { grid-template-columns: 1fr; gap: 15px; }
  .thumbnails a { display: flex; align-items: center; gap: 14px; }
  .thumbnails img { width: 38%; max-width: 175px; }
  .thumbnails span { margin-top: 0; font-size: 20px; }
  .community { grid-template-columns: 1fr; gap: 23px; }
  .community section + section { border-top: 1px solid var(--line); padding-top: 23px; }
  .archive-layout { display: block; }
  .chapter-nav { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 13px; margin-bottom: 23px; }
  .menu-heading { grid-column: 1 / -1; margin-bottom: 3px; }
  .chapter-nav a { min-height: 34px; line-height: 1.35; }
  .page-heading { margin-bottom: 22px; }
  .about-tools, .home-index, .ai-note, .faq { margin-top: 29px; }
  .footer .wrap { display: block; }
  .footer p + p { margin: 4px 0; }
  .footer a { display: inline-flex; padding-block: 5px; }
}
@media (max-width: 389px) {
  .menu { width: calc(100% - 8px); column-gap: 0; }
  .menu a { font-size: 13px; padding-inline: 2px; }
}
@media (forced-colors: active) {
  :root { scrollbar-color: auto; }
  .banner { forced-color-adjust: none; }
  .menu a[aria-current] { outline: 1px solid LinkText; }
}
