:root {
  color-scheme: dark;
  --page: #171613;
  --panel: #211f1a;
  --ink: #eee9dd;
  --muted: #b8b1a2;
  --accent: #d5b277;
  --border: #e6dcc21c;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.7; }
::selection { background: var(--accent); color: var(--page); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-header, main, footer { width: min(100% - 48px, 880px); margin-inline: auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 20px; font-weight: 650; }
.brand svg { color: var(--accent); width: 28px; height: 28px; }
.header-note { color: var(--muted); font-size: 13px; }
main { padding-top: 44px; }
.list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 650; line-height: 1.4; margin: 0; text-wrap: balance; }
.list-heading > span { flex-shrink: 0; color: var(--muted); font-size: 13px; }
.game-list { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
.game-entry { display: grid; grid-template-columns: 168px 1fr; gap: 36px; padding: 24px; border-radius: 16px; background: var(--panel); }
.game-art { display: block; overflow: hidden; border-radius: 8px; background: #0b0c0b; aspect-ratio: 3 / 4; }
.game-art img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.game-info { align-self: center; min-width: 0; }
.game-info h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; font-size: 26px; line-height: 1.5; font-weight: 650; margin: 0 0 8px; }
.game-info h2 span { font-size: 17px; font-weight: 400; color: var(--accent); }
.game-type { margin: 0; font-size: 13px; color: var(--muted); }
.game-description { color: var(--muted); margin: 14px 0 24px; }
.play-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 40px; min-height: 46px; padding: 10px 18px; background: var(--accent); color: #211b12; border-radius: 8px; font-weight: 650; }
.play-link svg { width: 20px; height: 20px; }
.play-link:hover { background: #e5c994; }
.save-help { margin-top: 40px; max-width: 70ch; }
.save-help h2 { font-size: 16px; font-weight: 650; margin: 0 0 10px; }
.save-help p { font-size: 13px; color: var(--muted); margin: 6px 0; }
footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-block: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .site-header, main, footer { width: calc(100% - 32px); }
  .site-header { min-height: 72px; }
  .header-note { display: none; }
  main { padding-top: 32px; }
  .list-heading { gap: 12px; margin-bottom: 20px; }
  h1 { font-size: 23px; }
  .game-entry { grid-template-columns: 104px 1fr; padding: 16px; gap: 18px; }
  .game-info h2 { display: block; font-size: 22px; margin-bottom: 6px; }
  .game-info h2 span { display: block; font-size: 15px; }
  .game-type { font-size: 12px; }
  .game-description { grid-column: 1 / -1; display: none; }
  .play-link { margin-top: 14px; gap: 20px; padding-inline: 14px; font-size: 14px; }
  .save-help { margin-top: 32px; }
  footer { margin-top: 36px; }
}
