:root {
  --bg: #f3e9d2;
  --ink: #1d1a17;
  --muted: #6f655a;
  --accent: #d9452b;
  --display: "Dela Gothic One", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --logo: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.site-header,
main,
footer {
  width: min(880px, calc(100% - 32px));
  margin-inline: auto;
}
.site-header {
  padding-block: 56px 40px;
}
.site-header h1 {
  margin: 0;
  font: 900 clamp(32px, 7vw, 48px) / 1.1 var(--logo);
  letter-spacing: 0.02em;
}
.site-header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
main {
  flex: 1;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.game-card {
  display: block;
  border: 3px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
  transition:
    transform 120ms,
    box-shadow 120ms;
}
.game-card:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 7px 7px 0 var(--ink);
}
.game-card:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}
.game-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 3px solid var(--ink);
}
.game-card h2 {
  margin: 0;
  padding: 14px 16px 16px;
  font: 400 20px / 1.3 var(--display);
}
footer {
  padding-block: 64px 32px;
  color: var(--muted);
  font-size: 12px;
}
.fallback {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
}
.loading {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 560px) {
  .site-header {
    padding-block: 40px 28px;
  }
  .game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .game-card {
    transition: none;
  }
}
