/* A quiet pixel game menu, drawn over the existing night sky. */
:root {
  --text: #edf1fa;
  --muted: #b2bfd5;
  --line: #455874;
  --accent: #edd9a1;
  --blue: #a8d6e3;
  --surface: #152033;
  --hover: #1d2d43;
  --frame-cut: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
}
html { scrollbar-color: #7388ab #121b2a; scroll-padding-top: 32px; }
body { color: var(--text); }
::selection { color: #121b2a; background: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
svg { image-rendering: pixelated; }
.site-wrap { width: min(1120px, calc(100% - 80px)); }
.site-header { min-height: 112px; border-bottom: 2px solid var(--line); position: relative; }
.site-header::after { content: ""; width: 8px; height: 8px; position: absolute; right: 0; bottom: -5px; background: var(--accent); }
.brand h1 { font: inherit; }
.club-panels h3 { margin: 0; font-weight: 400; }
.brand { font-size: 32px; gap: 14px; }
.brand svg { width: 40px; height: 40px; color: var(--accent); }
.site-header nav { gap: 8px; }
.site-header nav a { min-width: 72px; padding: 8px 14px; text-align: center; border: 1px solid transparent; }
.site-header nav a:hover { border-color: var(--line); background: var(--surface); color: var(--accent); }
.site-header nav a:focus-visible { color: var(--accent); }
.site-header nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent); background: #1b293b; }
.club-panels { min-height: calc(100svh - 220px); padding: 48px 0 56px; }
[data-club-panel][hidden] { display: none; }
[data-club-panel] > .section-heading { margin-bottom: 28px; }
#members .member-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px 0; border-top: 2px solid var(--line); border-bottom: 1px solid var(--line); }
#members .member-list > div { padding: 0; margin: 0; }
#members .member-list dt { font-size: 28px; }
#members .member-list dd { margin-top: 12px; }
#members .club-data { border: 0; margin-top: 12px; max-width: 600px; }
#records .record-list { border-top: 2px solid var(--line); }
#records .record-list li { min-height: 88px; align-items: center; }
#records .record-list strong { font-size: 26px; }
#records .record-list li { padding: 0; }
.record-list a { width: 100%; min-height: 88px; display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 24px; padding: 16px 0; }
.record-list a svg { width: 20px; height: 20px; color: var(--muted); }
.record-list a:hover strong,.record-list a:hover svg { color: var(--accent); }
.record-detail { max-width: 880px; min-height: calc(100svh - 220px); padding: 40px 0 64px; }
.record-back { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--muted); font-size: 18px; margin-bottom: 32px; }
.record-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.record-back:hover { color: var(--accent); }
.record-detail h1 { color: var(--accent); font-size: 48px; line-height: 1.3; }
.record-gallery { margin-top: 40px; }
.record-empty { display: grid; place-items: center; min-height: 280px; border: 1px solid var(--line); color: var(--muted); background: #152033; }
.record-empty svg { width: 40px; height: 40px; color: #7e94b4; }
.record-gallery figure { margin: 28px 0 0; }
.record-gallery img { width: 100%; height: auto; image-rendering: auto; }
.record-gallery figcaption { margin-top: 12px; color: var(--muted); font-size: 18px; }
.section-heading { margin-bottom: 24px; }
.section-heading h1, .club-panels .section-heading h2 { font-size: 40px; line-height: 1.2; color: var(--accent); }
.section-heading h2 { font-size: 28px; line-height: 1.35; }
.games > .section-heading { align-items: center; gap: 24px; }
.moon-info { color: var(--muted); font-size: 18px; gap: 12px; }
.moon-icon { width: 24px; height: 24px; }
.game-menu { position: relative; padding: 8px; background: var(--line); clip-path: var(--frame-cut); }
.game-menu::before { content: ""; position: absolute; inset: 2px; background: #111c2d; clip-path: var(--frame-cut); }
.game-menu .game-row { position: relative; min-height: 132px; padding: 24px 28px; gap: 24px; border-bottom: 1px solid #35465e; }
.game-menu .game-row:last-child { border-bottom: 0; }
.game-menu .game-row:focus-visible { outline-offset: -3px; }
.game-menu .game-icon { width: 48px; height: 48px; }
.game-menu .game-text strong { font-size: 32px; line-height: 1.4; }
.game-menu .game-text > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: 18px; }
.edition { font-style: normal; color: var(--blue); }
.expanded .edition { color: #d2bce7; }
.edition::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 9px 3px 0; background: currentColor; }
.row-arrow { width: 32px; height: 24px; padding: 0; color: #96abc6; display: flex; align-items: center; justify-content: center; transition: transform 160ms ease-out; }
.row-arrow svg { width: 20px; height: 20px; }
.game-row:hover .row-arrow { color: var(--accent); transform: translateX(4px); }
.game-row:hover .game-text strong { color: var(--accent); }
.game-row:active { background: #24354b; }
.experiments { margin-top: 28px; }
.game-group.experiments h2 { color: var(--muted); font-size: 20px; margin: 0 0 12px; }
.experiment-links { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.experiment-links .game-row { min-height: 112px; border-bottom: 0; padding: 18px 20px; gap: 14px; }
.experiment-links .game-row + .game-row { border-left: 1px solid var(--line); }
.experiment-links .game-icon { width: 32px; height: 32px; }
.experiment-links .game-text strong { font-size: 20px; line-height: 1.4; }
.experiment-links .game-text > span { font-size: 16px; margin-top: 4px; }
.experiment-links .row-arrow { width: 16px; }
.experiment-links .row-arrow svg { width: 16px; height: 16px; }
.heading-icon { color: var(--accent); }
.record-list li { padding: 16px 0; gap: 4px 16px; border-bottom: 1px solid #2f3e54; }
.record-list li:last-child { border-bottom: 0; }
.record-list strong { color: #d9e2ef; }
.record-list span { font-size: 18px; }
.member-list > div { padding-top: 8px; }
.member-list > div + div { margin-top: 20px; }
.member-list dt { color: #d2bce7; }
.member-list > div + div dt { color: var(--blue); }
.member-list dd { font-size: 18px; margin-top: 4px; }
.member-list dd span { color: var(--muted); }
.member-dots i { background: #d2bce7; }
.member-dots i + i { background: var(--blue); }
.club-data { margin-top: 28px; padding-top: 20px; font-size: 18px; gap: 8px; border-top-style: dashed; }
.club-data dt { min-width: 36px; }
.status-dot { background: #a8d6bd; }
.site-footer { padding-top: 24px; font-size: 18px; }
.site-footer a { display: inline-flex; gap: 12px; align-items: center; min-height: 40px; }
.site-footer svg { width: 16px; height: 16px; }
.site-footer a:hover { color: var(--accent); }

/* The entrance reads like a title screen; the sky remains the main artwork. */
body.entrance { justify-content: center; }
.entrance-content { margin: 0; padding: 72px 24px 120px; width: min(760px, 100%); text-align: center; }
.club-mark { width: 64px; height: 64px; color: var(--accent); margin-bottom: 32px; }
.entrance h1 { font-size: 72px; line-height: 1.25; text-wrap: balance; }
.english-title { color: var(--muted); font-size: 20px; letter-spacing: 2px; margin-top: 16px; }
.title-rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 28px auto 0; width: 144px; }
.title-rule::before,.title-rule::after { content: ""; height: 2px; background: #68758e; flex: 1; }
.title-rule span { display: block; width: 6px; height: 6px; background: var(--accent); }
.enter-link { margin-top: 44px; padding: 16px 32px; min-width: 248px; min-height: 64px; justify-content: center; gap: 20px; color: #182234; background: var(--accent); border: 0; clip-path: var(--frame-cut); font-size: 24px; transition: background-color 160ms ease-out; }
.enter-link svg { width: 20px; height: 20px; color: #182234; }
.enter-link:hover { color: #182234; background: #f7e8bf; }
.enter-link:focus-visible { outline: none; background: #c6e9f2; box-shadow: inset 0 0 0 4px #6288a2; }
.enter-link:active { background: #dac185; }
.entrance-footer { left: max(40px, calc((100vw - 1120px) / 2)); right: max(40px, calc((100vw - 1120px) / 2)); bottom: 28px; padding-top: 20px; border-top: 1px solid #455874; align-items: center; gap: 24px; }
.entrance-footer p { font-size: 18px; max-width: 650px; line-height: 1.7; }
.entrance-footer .moon-info { font-size: 18px; }

@media (max-width: 1000px) {
  .site-wrap { width: calc(100% - 48px); }
  .experiment-links .game-row { padding: 16px 12px; gap: 8px; }
  .experiment-links .game-icon { width: 24px; height: 24px; }
  .experiment-links .row-arrow { display: none; }
}
@media (max-width: 720px) {
  .club-panels { min-height: calc(100svh - 260px); padding: 32px 0 40px; }
  [data-club-panel] > .section-heading { margin-bottom: 24px; }
  #members .member-list { grid-template-columns: 1fr; gap: 28px; padding: 24px 0; }
  #members .member-list dt { font-size: 24px; }
  #members .member-list dd { margin-top: 6px; }
  #records .record-list li { align-items: flex-start; justify-content: center; }
  #records .record-list strong { font-size: 24px; }
  .record-list a { grid-template-columns: minmax(0,1fr) 20px; gap: 4px 16px; }
  .record-list a strong { grid-column: 1; }
  .record-list a svg { grid-column: 2; grid-row: 1; }
  .record-detail { padding: 24px 0 40px; }
  .record-detail h1 { font-size: 36px; }
  .record-back { margin-bottom: 24px; }
  .record-gallery { margin-top: 36px; }
  .site-wrap { width: calc(100% - 40px); }
  .site-header { padding: 24px 0 16px; gap: 20px; }
  .brand { font-size: 28px; gap: 12px; }
  .brand svg { width: 32px; height: 32px; }
  .site-header nav { width: 100%; gap: 12px; }
  .site-header nav a { padding: 8px 16px; border-color: #35465e; min-height: 44px; }
  .games > .section-heading { flex-wrap: wrap; gap: 16px; }
  .section-heading h1, .club-panels .section-heading h2 { font-size: 32px; }
  .moon-info { font-size: 16px; gap: 8px; }
  .moon-icon { width: 20px; height: 20px; }
  .game-menu { padding: 6px; }
  .game-menu .game-row { min-height: 116px; padding: 20px 12px; gap: 12px; }
  .game-menu .game-icon { width: 32px; height: 32px; }
  .game-menu .game-text strong { font-size: 24px; }
  .game-menu .game-text > span { display: block; font-size: 16px; line-height: 1.65; }
  .edition { display: block; }
  .edition::before { width: 4px; height: 4px; margin: 0 8px 3px 0; }
  .game-menu .row-arrow { width: 16px; }
  .game-menu .row-arrow svg { width: 16px; height: 16px; }
  .experiments { margin-top: 28px; }
  .experiment-links { grid-template-columns: 1fr; }
  .experiment-links .game-row { min-height: 88px; padding: 16px 8px; gap: 16px; }
  .experiment-links .game-row + .game-row { border-left: 0; border-top: 1px solid #35465e; }
  .experiment-links .game-icon { width: 32px; height: 32px; }
  .experiment-links .row-arrow { display: flex; }
  .record-list li { padding: 12px 0; }
  .record-list span,.member-list dd,.club-data { font-size: 18px; }
  .site-footer { font-size: 16px; gap: 12px; }
  .entrance-content { padding: 64px 20px 56px; }
  .club-mark { width: 48px; height: 48px; margin-bottom: 28px; }
  .entrance h1 { font-size: clamp(36px, 10.25vw, 52px); }
  .english-title { font-size: 16px; letter-spacing: 1px; margin-top: 12px; }
  .title-rule { margin-top: 24px; width: 112px; }
  .enter-link { margin-top: 36px; min-width: 228px; min-height: 60px; font-size: 24px; }
  .entrance-footer { position: relative; left: auto; right: auto; bottom: auto; margin: 0 24px; padding: 20px 0 28px; align-items: flex-start; gap: 16px; }
  .entrance-footer p { font-size: 16px; }
  .entrance-footer .moon-info { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-row:hover .row-arrow { transform: none; }
}
