@font-face {
  font-family: 'Baloo 2';
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/baloo2.woff2) format('woff2');
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 48px 24px;
  background: #fff;
  color: #1d1a17;
  font-family: 'Baloo 2', 'Comic Sans MS', system-ui, sans-serif;
}

header { text-align: center; margin-bottom: 48px; }
.logo {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0;
  font-size: clamp(2rem, 9vw, 4.5rem); font-weight: 800; line-height: 1;
  letter-spacing: -0.02em;
}
.logo img { width: 0.8em; height: 0.8em; }
.tagline { margin: 8px 0 0; font-size: 1.25rem; color: #555; }

.tiles {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
  max-width: 1260px; margin: 0 auto;
}
.game { width: min(100%, 400px); color: inherit; text-decoration: none; }
.tile {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  border: 4px solid #1d1a17; border-radius: 18px; overflow: hidden;
  transition: transform 0.15s;
}
.game:hover .tile { transform: translateY(-4px) rotate(-1deg); }
.blurb { margin: 12px 4px 4px; font-size: 1.05rem; line-height: 1.35; color: #444; }
.meta { display: flex; gap: 14px; margin: 0 4px; font-size: 0.95rem; color: #777; }
.meta b { margin-left: auto; color: #2a5634; font-size: 1.05rem; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px; text-align: center; line-height: 1.05;
  font-size: 3rem; font-weight: 800; color: #fff;
  text-shadow: 0 3px 0 #2a5634, 0 0 18px rgba(0, 0, 0, 0.45);
  -webkit-text-stroke: 2px #2a5634; paint-order: stroke fill;
}

/* Product page */
.bar { max-width: 1180px; margin: -24px auto 32px; }
.mini-logo {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1.5rem; font-weight: 800; color: inherit; text-decoration: none;
}
.product {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 24px 48px; max-width: 1180px; margin: 0 auto;
}
.gallery #shot { width: 100%; height: auto; display: block; border: 3px solid #1d1a17; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; border: 3px solid transparent; background: none; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: #1d1a17; }
.thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

.buy { grid-row: span 2; }
.buy h1 { font-size: 2.6rem; line-height: 1.05; margin: 0 0 6px; }
.pitch { font-size: 1.2rem; color: #555; margin: 0 0 16px; }
.price { font-size: 2rem; font-weight: 800; margin: 0 0 12px; color: #2a5634; }
.btn {
  display: block; text-align: center; padding: 14px;
  background: #3d7a4a; color: #fff; font-size: 1.25rem; font-weight: 800;
  text-decoration: none; border: 3px solid #1d1a17; box-shadow: 4px 4px 0 #1d1a17;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #1d1a17; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #1d1a17; }
.note { margin: 10px 0 28px; color: #666; font-size: 0.95rem; text-align: center; }
.buy h2, .about-game h2 { font-size: 1.4rem; margin: 28px 0 8px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; color: #444; }

.about-game { max-width: 720px; font-size: 1.1rem; line-height: 1.55; }
.about-game h2:first-child { margin-top: 0; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .buy { grid-row: auto; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
}
