:root {
  color-scheme: light;
  --paper: #f8faf7;
  --panel: #fff;
  --ink: #192d29;
  --quiet: #485a54;
  --line: #c9d5cc;
  --mint: #d6eee1;
  --accent: #ad3525;
  --display: "Archivo Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #2262ab; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); overflow-wrap: anywhere; }
header { background: var(--paper); border-bottom: 2px solid var(--ink); }
.navbar, .wordmark, .nav-link, .section-title, .play, .footer { display: flex; align-items: center; }
.navbar, .footer { justify-content: space-between; }
.navbar { height: 66px; }
.wordmark { gap: 7px; font: 900 23px var(--display); }
.wordmark img, .mascot, .empty img { image-rendering: pixelated; }
.nav-link { height: 100%; font-weight: 750; position: relative; }
.nav-link::before { content: ""; width: 7px; height: 7px; background: var(--accent); margin-right: 8px; }
.mast { background: var(--mint); border-bottom: 2px solid var(--ink); overflow: hidden; }
.mast-inner { min-height: 205px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mast h1 { font-size: 66px; line-height: 1.1; font-weight: 950; }
.mast p { margin-top: 13px; font-size: 17px; font-weight: 650; }
.mascot { width: 335px; height: auto; object-fit: contain; }
.catalog { padding-block: 38px 60px; }
.section-title { gap: 10px; margin-bottom: 20px; }
.section-title h2, .more h2 { font-size: 25px; line-height: 1.4; }
.section-title span { font-size: 14px; color: var(--quiet); }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.game { background: var(--panel); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px var(--ink); min-width: 0; }
.cover { display: block; border-bottom: 2px solid var(--ink); border-radius: 5px 5px 0 0; overflow: hidden; }
.cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body, .detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 24px; line-height: 1.3; }
.card-body h3 a:hover, .back:hover, .nav-link:hover { text-decoration: underline; }
.card-body p, .detail-head p, .more p { margin-top: 6px; color: var(--quiet); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.device { display: inline-block; font-size: 13px; margin-top: 10px; color: var(--quiet); }
.play { min-height: 44px; padding: 0 14px; gap: 7px; flex-shrink: 0; align-self: flex-start; color: white; background: var(--accent); border: 2px solid var(--ink); box-shadow: 2px 2px var(--ink); border-radius: 5px; font-weight: 750; }
.play:hover { background: #932719; }
.play:active { transform: translate(1px,1px); box-shadow: 1px 1px var(--ink); }
.play span:first-child { font-size: 12px; }
.empty { border-block: 1px solid var(--line); padding-block: 54px; display: grid; place-items: center; gap: 12px; }
.empty p { font-size: 16px; color: var(--quiet); }
.details { padding-block: 28px 56px; }
.back { display: inline-block; padding-block: 8px; font-size: 15px; font-weight: 650; }
.detail-head { margin-block: 18px 22px; align-items: center; }
.detail-head h1 { font-size: 40px; line-height: 1.2; }
.detail-head .play { align-self: center; }
.detail-picture { background: var(--mint); border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; }
.detail-picture img { margin: auto; width: 100%; height: auto; max-height: 58vh; object-fit: contain; }
.more section { padding-top: 28px; }
.more p { white-space: pre-line; max-width: 48em; }
.gallery { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.gallery a { max-width: 450px; }
.gallery img { border: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); }
.footer { padding-block: 22px; color: var(--quiet); font-size: 13px; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .navbar { height: 54px; }
  .wordmark { font-size: 20px; }
  .mast-inner { min-height: 152px; gap: 6px; }
  .mast h1 { font-size: 38px; }
  .mast p { font-size: 14px; margin-top: 6px; }
  .mascot { width: 42%; }
  .catalog { padding-block: 24px 40px; }
  .grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .section-title h2, .more h2 { font-size: 21px; }
  .card-body { padding: 15px; gap: 10px; }
  .card-body h3 { font-size: 21px; }
  .card-body p { font-size: 15px; }
  .detail-head { flex-wrap: wrap; }
  .detail-head h1 { font-size: 30px; }
}
