:root {
  color-scheme: light;
  --bg: #f5f8fc;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --line: rgba(30, 41, 59, 0.14);
  --text: #111827;
  --muted: #617089;
  --orange: #f97316;
  --cyan: #0891b2;
  --green: #16a34a;
  --navy: #162238;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.12), transparent 32%),
    linear-gradient(225deg, rgba(249, 115, 22, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #edf5fb 52%, #f7f9fd 100%);
  font-family: "Inter", system-ui, sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.brand,
.nav-links a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Orbitron", "Inter", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(8, 145, 178, 0.26);
  background: linear-gradient(135deg, #facc15, #38bdf8);
  color: var(--navy);
  font-family: "Audiowide", "Orbitron", sans-serif;
  font-size: 1.2rem;
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--orange);
}

.hero {
  display: grid;
  align-items: end;
  min-height: clamp(310px, 42vh, 450px);
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.12);
}

.hero-content {
  width: min(780px, 100%);
}

.kicker {
  margin: 0 0 10px;
  color: var(--orange);
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Audiowide", "Orbitron", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.92;
  text-shadow:
    0 3px 0 rgba(8, 145, 178, 0.12),
    0 14px 30px rgba(15, 23, 42, 0.14);
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.hero-copy {
  width: min(560px, 100%);
  margin: 24px 0 0;
  color: #344156;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.62;
}

.games-section {
  padding: 52px 0 36px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 18px;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(8, 145, 178, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(249, 115, 22, 0.1), transparent 64%),
    var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
}

.game-link {
  display: grid;
  min-height: 430px;
  text-decoration: none;
}

.game-art {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 28px 22px 12px;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.16), rgba(255, 255, 255, 0.55) 45%, rgba(249, 115, 22, 0.14)),
    #e8f2f8;
}

.game-art img {
  width: min(430px, 100%);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.24));
}

.game-info {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 24px;
}

.game-title {
  font-family: "Audiowide", "Orbitron", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.game-description {
  color: #445269;
  line-height: 1.55;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-meta span {
  border: 1px solid rgba(8, 145, 178, 0.16);
  color: #263449;
  background: rgba(8, 145, 178, 0.07);
  padding: 7px 9px;
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-width: 134px;
  min-height: 42px;
  margin-top: 4px;
  color: #ffffff;
  background: var(--orange);
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.24);
}

.game-card:hover {
  border-color: rgba(249, 115, 22, 0.52);
}

.game-card:hover .play-button {
  filter: brightness(1.08);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  color: rgba(17, 24, 39, 0.58);
  font-size: 0.78rem;
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 14px;
  }

  .topbar,
  .section-head,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 340px;
    padding: 52px 0 44px;
  }

  .game-link {
    min-height: 0;
  }

  .game-art {
    min-height: 178px;
  }
}
