:root {
  --bg: #0a0b0d;
  --surface: #121418;
  --line: #262a31;
  --text: #e8e6e1;
  --muted: #9a9ca3;
  --accent: #a8232b;
  --accent-hover: #c22d36;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.4; margin: 0; }

p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  z-index: 10;
}
.skip:focus { left: 8px; }

.wrap { width: min(100% - 40px, 960px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 720px); margin-inline: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; gap: 20px; }
.site-nav a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
  padding: 8px 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 28px 20px 20px; text-align: center; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/rain.svg");
  animation: rain 1.6s linear infinite;
  pointer-events: none;
}
.hero > * { position: relative; }
.hero img { width: 112px; height: 112px; margin: 0 auto 14px; }
.hero h1 { margin: 0; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 14px; }
.quick a { font-size: 14px; padding: 6px 2px; text-underline-offset: 4px; }
.quick a:hover { color: var(--muted); }

@keyframes rain {
  from { background-position: 0 0; }
  to { background-position: -24px 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
}

/* Sections */
.section { padding: 28px 0; }
.section-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Game cards */
.games { display: grid; gap: 28px; }
.game { background: var(--surface); border: 1px solid var(--line); }
.game img { width: 100%; aspect-ratio: 25 / 9; object-fit: cover; }
.game-body { padding: 18px 20px 20px; }
.game-body h3 { font-size: 22px; }
.game-meta { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.game-body p { font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Link list */
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .2s;
}
.links a:hover { background: var(--surface); }
.links strong { display: block; font-weight: 600; }
.links small { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }
.links .arrow { color: var(--muted); flex: none; }

/* Inner pages */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(28px, 6vw, 40px); }
.page-head p { color: var(--muted); margin: 8px 0 0; }
.banner { width: 100%; aspect-ratio: 25 / 9; object-fit: cover; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose h3 { font-size: 17px; margin: 24px 0 6px; }
.prose ul { padding-left: 1.3em; }
.prose a { text-underline-offset: 3px; }

.spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 20px 0 0; font-size: 15px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }

.shots { display: grid; gap: 12px; margin-top: 12px; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--muted); font-size: 14px; }

.note { color: var(--muted); font-size: 13px; }
.notice { border: 1px solid var(--accent); padding: 10px 14px; font-size: 14px; }

/* Footer */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.site-footer a { text-decoration: none; padding: 4px 0; }
.site-footer a:hover { color: var(--text); }

@media (min-width: 720px) {
  .hero { padding: 72px 0 60px; }
  .hero img { width: 140px; height: 140px; }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .site-nav { gap: 28px; }
}
