:root {
  --bg-main: #fcf6eb;
  --bg-soft: #ffe8c7;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: #fffefb;
  --text-primary: #1f2430;
  --text-muted: #5a6375;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --accent: #f59e0b;
  --ring: rgba(15, 118, 110, 0.22);
  --shadow: 0 12px 34px rgba(34, 36, 38, 0.14);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: radial-gradient(circle at 20% 10%, #fff7e4 0%, var(--bg-main) 55%),
    linear-gradient(135deg, #fef3d8 0%, #f4f9ff 100%);
  line-height: 1.5;
  overflow-x: hidden;
}
.page-bg {
  position: fixed; inset: 0; z-index: -1;
  background-image: radial-gradient(at 20% 20%, rgba(245, 158, 11, 0.2) 0px, transparent 52%),
    radial-gradient(at 82% 16%, rgba(15, 118, 110, 0.24) 0px, transparent 48%),
    radial-gradient(at 72% 86%, rgba(31, 36, 48, 0.14) 0px, transparent 42%);
  pointer-events: none;
}
.wrapper { width: min(1120px, 92vw); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, #14b8a6 100%); color: #ffffff;
  font-family: "Space Grotesk", sans-serif; font-size: 0.95rem; font-weight: 700;
  box-shadow: 0 10px 16px rgba(15, 118, 110, 0.28);
}
.brand-text { font-weight: 800; letter-spacing: 0.2px; }
.chip {
  border: 0; border-radius: 999px; padding: 10px 14px; background: rgba(255, 255, 255, 0.86);
  color: var(--brand-strong); font-weight: 700; box-shadow: 0 8px 18px rgba(14, 20, 22, 0.09);
}
.hero { padding: 20px 0 14px; }
.hero-copy { margin-top: 24px; max-width: 760px; animation: rise 580ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.kicker {
  display: inline-block; margin: 0; padding: 5px 12px; border-radius: 999px;
  background: rgba(15, 118, 110, 0.14); color: var(--brand-strong); font-weight: 700;
  font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.8px;
}
.hero-copy h1 {
  margin: 14px 0 8px; font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.05rem); line-height: 1.12; letter-spacing: -0.7px;
}
.hero-copy p { margin: 0; color: var(--text-muted); max-width: 64ch; }
.section-heading { margin: 22px 0 16px; animation: rise 640ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.section-heading h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.section-heading p { margin: 2px 0 0; color: var(--text-muted); }
.games-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 26px; }
.game-card { opacity: 0; transform: translateY(18px) scale(0.985); animation: cardIn 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.game-link {
  display: grid; gap: 0; text-decoration: none; background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72); border-radius: var(--radius-xl); overflow: hidden;
  min-height: 100%; box-shadow: var(--shadow); transition: transform 0.26s ease, box-shadow 0.26s ease;
  backdrop-filter: blur(8px);
}
.game-link:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(25, 31, 43, 0.19); }
.game-link:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.thumb-wrap { aspect-ratio: 16 / 10; background: linear-gradient(120deg, #dbeafe, #fde68a); }
.game-thumb { width: 100%; height: 100%; display: block; object-fit: cover; }
.game-meta { padding: 12px 12px 14px; display: grid; gap: 4px; }
.game-title { margin: 0; color: var(--text-primary); font-size: 1rem; line-height: 1.24; }
.game-tagline { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.launch-pill {
  margin-top: 8px; justify-self: start; border-radius: 999px; padding: 6px 10px; font-size: 0.74rem;
  font-weight: 800; letter-spacing: 0.5px; color: #ffffff;
  background: linear-gradient(110deg, var(--brand) 0%, #0891b2 100%); text-transform: uppercase;
}
@media (max-width: 980px) { .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .wrapper { width: min(100%, 94vw); }
  .hero { padding-top: 16px; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-link { border-radius: var(--radius-lg); }
}
@media (max-width: 460px) {
  .topbar { margin-top: 12px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text { font-size: 0.94rem; }
  .chip { padding: 8px 11px; font-size: 0.78rem; }
  .hero-copy h1 { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .games-grid { grid-template-columns: 1fr; gap: 11px; }
  .game-link { grid-template-columns: 116px 1fr; align-items: stretch; }
  .thumb-wrap { aspect-ratio: auto; min-height: 100%; }
  .game-meta { padding: 10px 10px 11px; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardIn { to { opacity: 1; transform: translateY(0) scale(1); } }

.game-thumb { object-position: top; }
/* keep the screenshot thumbnail from widening the card past its grid column */
.game-link { grid-template-columns: minmax(0, 1fr); }
.thumb-wrap { overflow: hidden; }
@media (max-width: 460px) { .game-link { grid-template-columns: 116px minmax(0, 1fr); } }
