@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/fonts/BarlowSemiCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/fonts/BarlowSemiCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --navy: #002d40;
  --navy-deep: #00202e;
  --cream: #feeedd;
  --muted: #9fbcc8;
  --line: rgba(254, 238, 221, 0.14);
  --font: "Barlow Semi Condensed", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--navy); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.55;
  background: radial-gradient(120% 80% at 50% 0%, #013a52 0%, var(--navy) 55%, var(--navy-deep) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--cream); text-decoration-color: rgba(254, 238, 221, 0.4); text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--cream); }

/* Hero */
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 0 40px;
}

.logo {
  width: min(260px, 58vw);
  animation: bob 6s ease-in-out infinite;
}

h1 {
  margin: 28px 0 0;
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 3.2vw, 1.35rem);
}

/* Games */
.games { padding: 24px 0 96px; }

h2 {
  margin: 0 0 24px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.game {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.game img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

h3 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
}

.game-text p { margin: 12px 0 22px; max-width: 34ch; }

.badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

/* Phones: stack the game card */
@media (max-width: 720px) {
  .hero { min-height: 70vh; }
  .game { grid-template-columns: 1fr; gap: 24px; }
  .game img { max-width: 420px; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .logo { animation: none; }
}
