@font-face {
  font-family: "Baloo 2";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/baloo-2-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Baloo 2";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/baloo-2-latin-800-normal.woff2") format("woff2");
}

:root {
  --bg: #071526;
  --fg: #f4f1ea;
  --muted: #a9bdd1;
  --accent: #ffc94a;
  --accent-dark: #c7861a;
  --card: #10325a;
  --card-edge: #1f4f82;
  font-family: "Baloo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  color: var(--fg);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #15375e 0%, #0a1f38 45%, var(--bg) 100%) fixed;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

header {
  text-align: center;
  margin-bottom: 28px;
}
h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent);
  text-shadow: 0 3px 0 #7a4a06, 0 0 24px rgba(255, 201, 74, 0.35);
}
header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  justify-content: center;
  gap: 20px;
}

.game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 18px 22px 22px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #154172, var(--card));
  border: 2px solid var(--card-edge);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s, border-color 0.12s;
}
.game:hover,
.game:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  outline: none;
}
.game img {
  width: 100%;
  height: auto;
}
.game h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}
.game p {
  margin: 0;
  color: var(--muted);
}
.game .meta {
  font-size: 15px;
  flex: 1;
}
.play {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  padding: 8px 36px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffd978, var(--accent));
  color: #3a2300;
  box-shadow: 0 6px 0 var(--accent-dark), 0 10px 20px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .game {
    transition: none;
  }
}
