:root {
  color-scheme: dark;
  --night: #101113;
  --text: #e6e4df;
  --muted: #aaa8a3;
  --line: #37383a;
  --paper: #d8d6cd;
  --rust: #b4776b;
  --focus: #e2bcb1;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.85; }
a { color: inherit; text-underline-offset: .3em; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; width: 100%; height: auto; }
::selection { background: var(--paper); color: var(--night); }
.content-width { width: min(960px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 24px; z-index: 10; padding: 8px 14px; color: var(--night); background: var(--paper); }
.skip-link:focus { top: 12px; }
.site-header { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 48px; border-bottom: 1px solid var(--line); }
.site-name { max-width: 100%; overflow-wrap: anywhere; font-family: var(--serif); font-size: 1rem; letter-spacing: .06em; text-decoration: none; }
.site-header nav { display: flex; gap: 28px; font-size: .875rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.entrance { position: relative; min-height: 660px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hall-scene { position: absolute; inset: 0 0 0 40%; overflow: hidden; z-index: -1; }
.hall-background { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.5); transform-origin: 50% 15%; filter: brightness(.88) saturate(.55); }
.hall-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--night), #10111330 35%, #10111308 80%), linear-gradient(0deg, #101113d9, transparent 38%); }
.entrance-copy { width: min(1280px, calc(100% - 144px)); margin-inline: auto; padding-top: 82px; padding-bottom: 86px; }
.genre { margin-bottom: 22px; color: var(--rust); font-size: .875rem; letter-spacing: .16em; }
h1 { font-family: var(--serif); font-size: clamp(3.5rem, 6.2vw, 5rem); font-weight: 500; letter-spacing: .08em; line-height: 1.4; text-shadow: 0 2px 16px #101113; }
.story { margin-top: 28px; font-family: var(--serif); font-size: 1.125rem; line-height: 2; text-shadow: 0 1px 8px #101113; }
.entrance-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.entrance-download, .entrance-play { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 21px; font-size: .875rem; text-decoration: none; }
.entrance-download { color: var(--night); background: var(--paper); border: 1px solid var(--paper); }
.entrance-download:hover { background: #f0eee6; }
.entrance-play { border: 1px solid #797976; background: #101113d9; }
.entrance-play:hover { border-color: var(--text); }
.release-note { margin-top: 15px; color: #bcbab3; font-size: .875rem; }
.downloads { padding-top: 66px; padding-bottom: 32px; }
h2 { font-family: var(--serif); font-weight: 500; font-size: 1.875rem; letter-spacing: .035em; line-height: 1.5; }
.download-intro { margin-top: 17px; color: var(--muted); }
.play-time { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.download-choices { margin-top: 30px; border-top: 1px solid var(--line); }
.download-choice { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.system-heading h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.5; }
.system-heading p { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.file-size { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.download-button, .save-link { display: inline-block; min-height: 48px; margin-top: 13px; padding: 11px 25px; border: 1px solid var(--paper); border-radius: 0; background: var(--paper); color: var(--night); text-align: center; text-decoration: none; font-size: .875rem; font-weight: 600; }
.download-button:hover:not(:disabled), .save-link:hover { background: #f0eee6; }
.download-button:disabled { color: var(--muted); background: #292a2d; border-color: #656564; }
.save-link { margin-left: 10px; }
[data-status] { margin-top: 11px; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
progress { display: block; width: 100%; height: 7px; margin-top: 11px; border: 0; border-radius: 0; accent-color: var(--paper); background: #292a2d; }
progress::-webkit-progress-bar { background: #292a2d; }
progress::-webkit-progress-value { background: var(--paper); }
progress::-moz-progress-bar { background: var(--paper); }
.retry-button { margin-top: 10px; padding: 8px 14px; color: var(--text); background: transparent; border: 1px solid #797976; font-size: .875rem; }
.retry-button:hover { background: #292a2d; }
.system-note { margin-top: 13px; color: var(--muted); font-size: .875rem; }
.save-instructions { margin-top: 23px; color: var(--muted); font-size: .875rem; }
.noscript-message { margin-top: 20px; padding: 14px; border: 1px solid var(--focus); }
.browser-trial { padding-top: 24px; padding-bottom: 38px; }
.browser-trial > p { margin-top: 14px; }
.more-information { padding-top: 6px; }
.plain-details { border-top: 1px solid var(--line); }
.plain-details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 4px; }
summary:hover { color: var(--focus); }
.guide-content { display: grid; grid-template-columns: .8fr 1.2fr; gap: 58px; padding: 8px 4px 30px; }
.guide-content h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 15px; }
.controls-list > div { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding-block: 7px; border-bottom: 1px solid var(--line); font-size: .875rem; }
.controls-list dd { color: var(--muted); }
kbd { padding: 2px 5px; border: 1px solid #656564; color: var(--text); background: #292a2d; font-family: var(--sans); font-size: .875rem; }
.build-notes ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .875rem; }
.build-notes li + li { margin-top: 10px; }
.scene-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 8px 4px 28px; }
.scene-grid img { border: 1px solid var(--line); }
.scene-grid figcaption { margin-top: 9px; color: var(--muted); font-size: .875rem; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding-top: 31px; padding-bottom: 36px; font-size: .875rem; color: var(--muted); }
.site-footer span { margin-left: 14px; }
@media (max-width: 900px) {
  .entrance-copy { width: calc(100% - 96px); }
  h1 { font-size: 3.5rem; }
  .story { font-size: 1rem; }
  .hall-scene { left: 28%; }
}
@media (max-width: 650px) {
  .content-width { width: calc(100% - 40px); }
  .site-header { padding: 17px 20px; gap: 14px; }
  .site-name { font-size: .875rem; letter-spacing: .025em; }
  .site-header nav { gap: 14px; font-size: .875rem; }
  .site-header nav a:last-child { display: none; }
  .entrance { min-height: 0; }
  .hall-scene { inset: 0 0 auto; height: 340px; }
  .hall-shade { background: linear-gradient(0deg, var(--night), #10111300 78%), linear-gradient(90deg, #10111355, transparent 75%); }
  .entrance-copy { width: calc(100% - 48px); padding-top: 205px; padding-bottom: 36px; }
  .genre { margin-bottom: 12px; color: #d6aaa0; }
  h1 { font-size: clamp(2.8rem, 12.8vw, 3.5rem); letter-spacing: .07em; }
  .story { margin-top: 22px; font-size: 1rem; line-height: 1.9; }
  .entrance-actions { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 23rem; margin-top: 24px; }
  .entrance-download, .entrance-play { padding-inline: 17px; }
  .release-note { margin-top: 12px; }
  .downloads { padding-top: 38px; padding-bottom: 25px; }
  h2 { font-size: 1.5rem; }
  .download-choice { grid-template-columns: 1fr; gap: 14px; padding-block: 23px; }
  .system-heading h3 { font-size: 1.375rem; }
  .system-heading p { margin-top: 3px; }
  .download-button, .save-link { padding-inline: 20px; }
  .save-link { margin-left: 6px; }
  .guide-content { grid-template-columns: 1fr; gap: 30px; padding-bottom: 24px; }
  .scene-grid { grid-template-columns: 1fr; gap: 22px; }
  .site-footer { flex-direction: column; gap: 12px; padding-top: 26px; padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
