@font-face {
  font-family: "Fusion Pixel";
  src: url("fonts/fusion-pixel.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}
:root {
  color-scheme: dark;
  --ground: #151b25;
  --surface: #1c2330;
  --text: #e8edf4;
  --muted: #a1afc2;
  --line: #313b4d;
  --accent: #c8c7e4;
  --blue: #a1aecf;
  --hover: #222b3b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; scrollbar-color: #59677f #151b25; scrollbar-width: thin; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: "Fusion Pixel", "Microsoft YaHei", sans-serif; font-size: 20px; font-weight: 400; line-height: 1.6; }
a { color: inherit; text-decoration: none; text-underline-offset: 6px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { color: #151b25; background: var(--accent); }
img { display: block; max-width: 100%; image-rendering: pixelated; }
svg { flex: none; shape-rendering: crispEdges; }
h1,h2,p,figure,dl,dd { margin: 0; }
h1,h2,strong,dt { font-weight: 400; }
button,a { -webkit-tap-highlight-color: transparent; }
section { scroll-margin-top: 24px; }
.skip-link { position: absolute; z-index: 5; top: 8px; left: 8px; background: var(--text); color: var(--ground); padding: 8px 16px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-wrap { width: min(1184px, calc(100% - 80px)); margin: auto; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 16px; font-size: 30px; line-height: 1.2; }
.brand svg { width: 40px; height: 40px; }
.site-header nav { display: flex; gap: 32px; color: var(--muted); }
.site-header nav a { padding: 8px 0; }
.site-header nav a:hover,.site-footer a:hover { color: var(--text); }
.opening { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: start; padding-top: 44px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.section-heading h1,.section-heading h2 { font-size: 30px; line-height: 1.4; }
.game-group h2 { color: var(--muted); font-size: 20px; margin: 20px 0 4px; }
.game-row { display: flex; align-items: center; gap: 16px; padding: 14px 8px; border-bottom: 1px solid var(--line); min-height: 84px; transition: background-color 140ms ease-out; }
.game-row:hover { background: var(--hover); }
.game-icon { width: 40px; height: 40px; }
.game-text { min-width: 0; flex: 1; }
.game-text strong,.game-text>span { display: block; }
.game-text strong { font-size: 20px; color: var(--text); }
.game-text>span { font-size: 20px; line-height: 1.5; color: var(--muted); }
.row-arrow { color: var(--muted); padding-right: 8px; }
.game-row:hover .row-arrow { color: var(--accent); }
.experiments { margin-top: 26px; }
.club-window { padding-top: 2px; }
.club-window figure { position: relative; }
.window-bottom { margin-top: 12px; display: flex; justify-content: center; color: var(--muted); }
.moon-info { display: flex; align-items: center; gap: 10px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 20px; }
.moon-icon { width: 24px; height: 24px; image-rendering: pixelated; flex: none; }
.archive-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 64px; padding: 72px 0; }
.archive-grid .section-heading { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.heading-icon { width: 24px; height: 24px; color: var(--muted); }
.record-list { list-style: none; margin: 0; padding: 0; }
.record-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 14px 0; }
.record-list span { color: var(--muted); }
.member-dots { display: flex; gap: 8px; }
.member-dots i { width: 8px; height: 8px; background: #a699bb; }
.member-dots i+i { background: #9eabc5; }
.member-list>div+div { margin-top: 24px; }
.member-list dd { display: flex; flex-wrap: wrap; gap: 0 16px; color: var(--muted); }
.member-list dd span { color: var(--blue); }
.club-data { display: grid; gap: 4px; padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); color: var(--muted); }
.club-data>div { display: flex; gap: 24px; }
.club-data dt { color: var(--muted); }
.club-data dd { color: var(--text); }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #a9b5cf; vertical-align: middle; margin-right: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer a { color: var(--text); }

.paired-portrait { position: relative; min-height: 480px; overflow: hidden; }
.paired-portrait::before { content: ""; position: absolute; inset: auto 12% 24px; height: 24px; background: #202936; }
.portrait-figures { --sprite-scale: 4; position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); display: flex; align-items: end; gap: 12px; }
.portrait-sprite {
  --source-width: 96; --source-height: 112;
  --crop-x: 34; --crop-y: 14; --crop-width: 29; --crop-height: 90;
  position: relative; display: block; flex: none; overflow: hidden;
  width: calc(var(--crop-width) * var(--sprite-scale) * 1px);
  height: calc(var(--crop-height) * var(--sprite-scale) * 1px);
}
.portrait-sprite.renko { --crop-width: 27; }
.portrait-sprite img {
  position: absolute; max-width: none; object-fit: fill;
  width: calc(var(--source-width) * var(--sprite-scale) * 1px);
  height: calc(var(--source-height) * var(--sprite-scale) * 1px);
  left: calc(var(--crop-x) * var(--sprite-scale) * -1px);
  top: calc(var(--crop-y) * var(--sprite-scale) * -1px);
  image-rendering: pixelated;
}
.entrance { min-height: 100svh; display: flex; align-items: center; overflow-x: hidden; position: relative; background: #161e2b; }
.entrance-ground { position: absolute; inset: auto 0 0; height: 26%; background: #192330; border-top: 1px solid #202b3d; }
.entrance .paired-portrait { position: absolute; width: min(48vw, 620px); right: 4vw; bottom: 120px; background: transparent; }
.entrance .paired-portrait::before { display: none; }
.entrance .portrait-figures { --sprite-scale: 5; bottom: 0; }
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.entrance-content { z-index: 1; position: relative; margin-left: max(8vw, calc((100vw - 1184px) / 2)); padding: 80px 32px 160px 0; }
.club-mark { width: 64px; height: 64px; margin-bottom: 24px; }
.entrance h1 { font-size: 60px; line-height: 1.2; }
.english-title { color: var(--muted); font-size: 20px; margin-top: 16px; }
.enter-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 64px; font-size: 20px; padding: 16px 0; color: var(--text); border-bottom: 1px solid var(--accent); }
.enter-link svg { width: 16px; height: 16px; color: var(--accent); }
.enter-link:hover { color: var(--accent); }
.entrance-footer { z-index: 1; position: absolute; bottom: 32px; left: max(8vw, calc((100vw - 1184px) / 2)); right: 5vw; display: flex; justify-content: space-between; align-items: end; gap: 28px; font-size: 20px; color: var(--muted); }
.entrance-footer p { max-width: 530px; }
.entrance-footer .moon-info { white-space: nowrap; color: var(--muted); }
body.leaving .entrance-content { opacity: .4; transition: opacity 180ms ease-out; }

@media (max-width: 1000px) {
  .site-wrap { width: calc(100% - 48px); }
  .opening,.archive-grid { gap: 36px; }
  .opening { grid-template-columns: 1fr 1fr; }
  .game-row { gap: 12px; }
  .game-icon { width: 32px; height: 32px; }
  .portrait-figures { --sprite-scale: 3; }
  .entrance .portrait-figures { --sprite-scale: 4; }
}
@media (max-width: 720px) {
  .site-wrap { width: calc(100% - 40px); }
  .site-header { min-height: auto; padding: 28px 0 20px; align-items: start; flex-direction: column; gap: 20px; }
  .brand { font-size: 30px; gap: 12px; }
  .brand svg { width: 32px; height: 32px; }
  .site-header nav { gap: 32px; }
  .opening { grid-template-columns: 1fr; padding-top: 28px; gap: 36px; }
  .section-heading { margin-bottom: 16px; }
  .section-heading h1,.section-heading h2 { font-size: 30px; }
  .game-row { padding: 14px 0; min-height: 88px; }
  .game-icon { width: 32px; height: 32px; }
  .game-text>span { line-height: 1.5; }
  .row-arrow { padding-right: 0; }
  .paired-portrait { min-height: 348px; }
  .window-bottom { margin-top: 16px; }
  .archive-grid { grid-template-columns: 1fr; gap: 48px; padding: 48px 0; }
  .record-list li { flex-direction: column; padding: 12px 0; }
  .club-data>div { gap: 20px; }
  .entrance { display: block; }
  .entrance-ground { display: none; }
  .entrance .paired-portrait { position: relative; width: 100%; right: auto; bottom: auto; min-height: 348px; }
  .entrance .paired-portrait::before { display: block; height: 24px; inset: auto 0 0; }
  .portrait-figures,.entrance .portrait-figures { --sprite-scale: 3; bottom: 24px; gap: 8px; }
  .entrance-content { margin: 0; padding: 28px; }
  .club-mark { width: 32px; height: 32px; margin-bottom: 16px; }
  .entrance h1 { font-size: 40px; }
  .english-title { margin-top: 12px; }
  .enter-link { margin-top: 24px; }
  .entrance-footer { position: relative; left: auto; right: auto; bottom: auto; padding: 8px 28px 28px; flex-direction: column; align-items: start; gap: 20px; }
  .entrance-footer .moon-info { padding: 0; background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}
