:root {
  color-scheme: light;
  --ink: #161f29;
  --steel: #425568;
  --surface: #fff;
  --background: #f1f3f5;
  --line: #c7d0d8;
  --yellow: #ffdc7c;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
a:focus-visible { outline: 3px solid #2363b2; outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.hero {
  background: var(--ink);
  color: var(--surface);
  border-bottom: 5px solid var(--yellow);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .84fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: center;
  padding-block: 40px;
}
h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5.6vw, 4.45rem);
  font-weight: 850;
  line-height: 1.12;
}
.hero p {
  margin: 18px 0 24px;
  color: #dbe3eb;
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.65;
}
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px 21px 2px 2px;
}
nav { display: flex; flex-wrap: wrap; gap: 8px; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid #647686;
  border-radius: 4px;
  color: var(--surface);
  font-size: .89rem;
  font-weight: 650;
  text-decoration: none;
}
nav a:hover { border-color: var(--yellow); color: var(--yellow); }
nav a:focus-visible { outline-color: var(--yellow); }
main { padding-block: 12px 62px; }
section { scroll-margin-top: 18px; }
h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 37px 0 15px;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}
h2::after { content: ""; background: var(--line); height: 1px; flex: 1; }
.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.games li { min-width: 0; }
.game {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: stretch;
  height: 100%;
  min-height: 115px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.game:hover { border-color: var(--steel); background: #f8fafc; }
.game > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 4px 0 0 4px;
  object-fit: cover;
  background: #c4d1db;
}
.game-copy { align-self: center; padding: 12px 12px 12px 13px; }
.game-copy strong { display: block; margin-bottom: 3px; font-size: 1rem; }
.game-copy span { display: block; color: var(--steel); font-size: .88rem; line-height: 1.55; }
@media (max-width: 910px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); }
  .hero-layout { grid-template-columns: 1fr; gap: 19px; padding-block: 27px 18px; }
  .hero p { margin: 10px 0 15px; }
  .hero-image { aspect-ratio: 2.55 / 1; object-position: center 54%; }
  nav { gap: 6px; }
  nav a { min-height: 44px; padding-inline: 8px; font-size: .83rem; }
  .games { grid-template-columns: 1fr; gap: 9px; }
  .game { grid-template-columns: 105px minmax(0, 1fr); min-height: 92px; }
  h2 { margin-top: 25px; }
}
