:root {
  color-scheme: dark;
  --ground: #080b0c;
  --ink: #e4e5df;
  --muted: #b4bfbe;
  --line: #374345;
  --accent: #eea28e;
  font: 100%/1.85 system-ui, sans-serif;
  background: var(--ground);
  color: var(--ink);
}

* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h2, h3 { line-height: 1.35; text-wrap: balance; }
h2 { font-size: clamp(1.65rem, 1.2rem + 2vw, 3rem); }
p { text-wrap: pretty; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }

.header {
  display: flex;
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .7rem;
}
.header a, .header summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.header nav { display: flex; gap: clamp(.65rem, 2.5vw, 2.5rem); }
.publisher { font-weight: 800; letter-spacing: .13em; }
.languages { position: relative; }
.languages summary { cursor: pointer; border: 1px solid var(--line); padding: .3rem .8rem; }
.languages summary::after { content: "▾"; margin-inline-start: .6rem; }
.languages > div {
  position: absolute;
  inset: calc(100% + .35rem) 0 auto auto;
  width: 16rem;
  max-height: 65dvh;
  overflow: auto;
  background: #13191a;
  border: 1px solid var(--line);
}
.languages a { padding-inline: .85rem; }
.languages [aria-current], .languages a:hover { background: #273335; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(390px, 44vw, 640px);
  overflow: hidden;
  background: #000;
}
.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, var(--ground), transparent 38%);
}
.hero-content { padding-block: 1.25rem 2.25rem; }
.hero h1 { width: min(640px, 67%); margin: 0 auto -1rem; }
.hero h1 img { filter: drop-shadow(0 6px 18px #000); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.stores a {
  display: grid;
  justify-items: center;
  align-content: center;
  flex: 1 1 9rem;
  max-width: 12rem;
  min-height: 65px;
  padding: .6rem;
  border: 1px solid #8a9997;
  background: #101617;
  line-height: 1.45;
  text-decoration: none;
}
.stores a:hover { border-color: var(--accent); background: #202728; }
.stores span { color: var(--muted); font-size: .875rem; }

.story, .features, .gallery, .purchase { padding-block: clamp(2.5rem, 6vw, 5rem); }
.story { display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem; border-block: 1px solid var(--line); }
.story p { font-size: clamp(1.05rem, .95rem + .55vw, 1.35rem); }
.story p + p { margin-top: .8rem; }
.phrase { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
:lang(ja) { line-break: strict; }
.trailer { padding-top: clamp(2.5rem, 6vw, 5rem); }
.trailer iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); background: #000; }
.trailer h2, .gallery h2, .features h2 { margin-bottom: 1.5rem; }
.trailer > a { display: inline-block; margin-top: .7rem; }
.features > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.features article { border-top: 1px solid var(--line); padding-top: 1rem; }
.features p { color: var(--muted); margin-top: .65rem; }
.gallery { border-top: 1px solid var(--line); }
.gallery > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.gallery a:first-child { grid-column: 1/-1; }
.gallery a { display: block; outline-offset: 3px; }
.gallery img { aspect-ratio: 16/9; border: 1px solid var(--line); }
.gallery a:hover img { border-color: var(--accent); }
.purchase { border-block: 1px solid var(--line); }
.footer { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: 2rem; color: var(--muted); }
.footer small { width: 100%; }

@media (max-width: 760px) {
  .header { flex-wrap: wrap; }
  .header nav { order: 1; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); font-size: .85rem; }
  .hero h1 { width: min(520px, 100%); margin-bottom: .5rem; }
  .hero-scene { object-fit: contain; object-position: center 22%; }
  .hero::after { background: linear-gradient(0deg, var(--ground) 10%, transparent 72%); }
  .story, .features > div { grid-template-columns: 1fr; gap: 1.15rem; }
}
@media (max-width: 430px) {
  .wrap { width: calc(100% - 2rem); }
  .stores a { flex-basis: 7.5rem; }
  .gallery > div { grid-template-columns: 1fr; }
}
