:root {
  color-scheme: dark;
  --ink: #071018;
  --ink-soft: #0d1d29;
  --panel: rgba(8, 21, 31, 0.82);
  --panel-solid: #102230;
  --line: rgba(198, 236, 255, 0.22);
  --text: #f4fbff;
  --muted: #a9c2d2;
  --snow: #dff8ff;
  --cyan: #66dbff;
  --gold: #d5ac58;
  --red: #df3e2f;
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: var(--ink);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 12px 32px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(4, 10, 16, 0.8), rgba(4, 10, 16, 0.22));
  transition: background-color 160ms ease, border-color 160ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 13, 20, 0.94);
  border-color: var(--line);
}

.brand img {
  width: 188px;
  height: auto;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--snow);
}

.global-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
}

.global-nav a:hover,
.global-nav a:focus-visible {
  background: rgba(102, 219, 255, 0.14);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 25, 36, 0.72);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--snow);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(4, 10, 16, 0.12) 0%, rgba(4, 10, 16, 0.34) 46%, rgba(4, 10, 16, 0.88) 100%),
    linear-gradient(to right, rgba(4, 10, 16, 0.92) 0%, rgba(4, 10, 16, 0.36) 56%, rgba(4, 10, 16, 0.58) 100%);
}

.hero-content {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 130px 28px 54px;
}

.eyebrow,
.label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.hero-logo {
  width: min(620px, 88vw);
  margin: 0 0 18px -10px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.48));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 48px;
  line-height: 1.18;
  font-weight: 800;
}

h2 {
  margin-bottom: 14px;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 34px;
  line-height: 1.26;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 24px;
  color: #e8f7ff;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-weight: 700;
}

.button-primary {
  background: #eaf9ff;
  color: #071018;
  border-color: #eaf9ff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--cyan);
  outline: none;
}

.button-disabled {
  color: var(--muted);
  background: rgba(10, 25, 36, 0.72);
  cursor: default;
}

.hero-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.hero-status div {
  padding: 14px 16px;
  background: rgba(7, 18, 28, 0.78);
}

.hero-status dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.hero-status dd {
  margin: 0;
  font-weight: 700;
}

.section {
  scroll-margin-top: 82px;
  padding: 88px 28px;
}

.section-head {
  width: min(100%, var(--max));
  margin: 0 auto 36px;
}

.section-head p:not(.eyebrow) {
  width: min(660px, 100%);
  color: var(--muted);
}

.pv-section,
.character-section,
.status-section {
  background: #08131c;
}

.feature-section,
.screenshot-section {
  background: #0c1b27;
}

.pv-layout {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.featured-video,
.pv-list,
.status-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.featured-video a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #02070b;
}

.featured-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-pill {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--ink);
  background: #eaf9ff;
  font-weight: 800;
}

.video-caption {
  padding: 24px;
}

.video-caption p:last-child,
.feature-grid p,
.character-card p,
.status-panel p {
  color: var(--muted);
}

.pv-list {
  display: grid;
}

.pv-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.pv-list a:last-child {
  border-bottom: 0;
}

.pv-list a:hover,
.pv-list a:focus-visible {
  background: rgba(102, 219, 255, 0.1);
  outline: none;
}

.pv-list span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.pv-list strong {
  font-size: 17px;
}

.feature-grid,
.character-grid,
.shot-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 18, 28, 0.72);
}

.character-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.character-card {
  display: grid;
  grid-template-rows: 210px auto;
  gap: 18px;
  min-height: 390px;
  padding: 18px;
  border: 1px solid rgba(198, 236, 255, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(to bottom, rgba(13, 29, 41, 0.92), rgba(8, 18, 28, 0.92));
}

.sprite-frame {
  width: 148px;
  height: 185px;
  align-self: end;
  justify-self: center;
  background-image: var(--sprite);
  background-repeat: no-repeat;
  background-size: 400% 500%;
  background-position: 0 100%;
  image-rendering: auto;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
}

.character-card h3 {
  color: var(--text);
}

.character-card span {
  display: inline-flex;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid var(--accent);
  color: var(--snow);
  font-size: 13px;
  font-weight: 700;
}

.shot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(7, 18, 28, 0.82);
}

figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot-stamp {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(234, 249, 255, 0.7);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(234, 249, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

figcaption {
  padding: 14px 16px;
  color: var(--snow);
  font-weight: 700;
}

.status-panel {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 30px;
}

.status-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.status-panel li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.status-panel li:last-child {
  border-bottom: 0;
}

.status-panel span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 36px 32px;
  border-top: 1px solid var(--line);
  background: #050d14;
}

.site-footer img {
  width: 210px;
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--snow);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
  outline: none;
}

.site-footer span {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    padding: 10px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .global-nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 13, 20, 0.98);
  }

  .global-nav.is-open {
    display: flex;
  }

  .hero-content {
    padding-top: 110px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .pv-layout,
  .status-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .character-grid,
  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .brand img {
    width: 156px;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-content {
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 34px;
  }

  .hero-logo {
    width: 100%;
  }

  h1 {
    font-size: 30px;
  }

  .hero-status {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 18px;
  }

  .feature-grid,
  .character-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .character-card {
    grid-template-columns: 138px 1fr;
    grid-template-rows: auto;
    min-height: 230px;
    align-items: center;
  }

  .sprite-frame {
    width: 128px;
    height: 160px;
  }

  .status-panel {
    padding: 20px;
  }

  .status-panel li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    margin-top: 22px;
  }
}
