:root {
  --ink: #33291f;
  --red: #a63924;
  --paper: #fff9e9;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #176aa2; outline-offset: 5px; }
.catalog {
  width: min(100%, 1240px);
  margin: auto;
  padding: 8px clamp(18px, 4.5vw, 64px) clamp(32px, 5.5vw, 78px);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 48px;
  font-size: .8rem;
  font-weight: 700;
  text-underline-offset: .22em;
}
h1 { margin: 20px 0 22px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -.055em; }
.games { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px, 2.2vw, 28px); }
.game {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fffdf5;
  box-shadow: 3px 4px 0 var(--ink);
  text-decoration: none;
}
.game img { width: 100%; height: auto; aspect-ratio: 1.9; object-fit: cover; display: block; border-bottom: 1px solid var(--ink); }
.details { flex: 1; display: flex; flex-direction: column; padding: clamp(16px, 1.8vw, 23px); }
h2 { margin: 0; font-size: clamp(1.15rem, 1.95vw, 1.66rem); line-height: 1.35; letter-spacing: -.05em; }
.details p { margin: 8px 0 18px; font-size: .9rem; line-height: 1.7; }
.action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: var(--red); font-size: .95rem; font-weight: 800; }
.action b { font-family: system-ui, sans-serif; font-size: 1.25rem; line-height: 1; }
.game:hover .action, .game:focus-visible .action { text-decoration: underline; text-underline-offset: .22em; }
@media (max-width: 760px) {
  .catalog { max-width: 620px; }
  .games { grid-template-columns: 1fr; gap: 18px; }
  .game { display: grid; grid-template-columns: 40% 1fr; align-items: stretch; }
  .game img { height: 100%; border: 0; border-right: 1px solid var(--ink); }
  .details { padding: 14px; }
  h2 { font-size: clamp(1.05rem, 4vw, 1.45rem); }
  .details p { margin: 6px 0 10px; font-size: .82rem; line-height: 1.55; }
}
@media (max-width: 440px) {
  .catalog { padding-inline: 13px; }
  .game { grid-template-columns: 1fr; }
  .game img { height: auto; aspect-ratio: 2.15; border: 0; border-bottom: 1px solid var(--ink); }
}
