:root {
  color-scheme: dark;
  --bg: #111217;
  --panel: #f5f1e7;
  --panel-ink: #191817;
  --muted: #aeb6c9;
  --line: rgba(255, 255, 255, 0.14);
  --orange: #ffb14a;
  --green: #76e06c;
  --cyan: #4cd8ff;
  --pink: #ff5faa;
  --white: #fffaf1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(255, 177, 74, 0.14), transparent 34rem),
    linear-gradient(180deg, #111217 0%, #171311 52%, #101217 100%);
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 18, 23, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #23252d;
  color: var(--orange);
  font-size: 0.8rem;
}

.nav {
  gap: 0.5rem;
}

.nav a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
  outline: none;
}

.hero {
  min-height: 560px;
  display: grid;
  align-items: center;
  padding: 5rem 5vw;
  background-image:
    linear-gradient(90deg, rgba(17, 18, 23, 0.96) 0%, rgba(17, 18, 23, 0.72) 42%, rgba(17, 18, 23, 0.14) 100%),
    url("./assets/catalog/arcade-hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero-copy {
  width: min(43rem, 100%);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: 4rem;
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: 2.35rem;
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.55rem;
  color: var(--panel-ink);
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-copy p:not(.eyebrow) {
  max-width: 35rem;
  margin-bottom: 1.6rem;
  color: #d9dfec;
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
}

.primary-action,
.ghost-action {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.15rem;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  background: var(--orange);
  color: #19120c;
}

.ghost-action {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #ffd27f;
  outline: none;
}

.ghost-action:hover,
.ghost-action:focus-visible {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.catalog {
  padding: 4.5rem 5vw 5rem;
}

.section-heading {
  width: min(72rem, 100%);
  margin: 0 auto 1.5rem;
}

.games-grid {
  width: min(72rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: var(--panel);
  color: var(--panel-ink);
  text-decoration: none;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.24);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-0.25rem);
  border-color: rgba(255, 177, 74, 0.75);
  box-shadow: 0 1.6rem 3.6rem rgba(0, 0, 0, 0.34);
  outline: none;
}

.game-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #22242a;
}

.card-body {
  min-height: 12.4rem;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.pill {
  width: fit-content;
  margin-bottom: 0.9rem;
  padding: 0.34rem 0.56rem;
  border-radius: 8px;
  background: #22242a;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-body p {
  margin-bottom: 1rem;
  color: #4a4d55;
  font-size: 0.96rem;
  line-height: 1.45;
}

.play-link {
  margin-top: auto;
  display: inline-flex;
  width: fit-content;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.8rem;
  border-radius: 8px;
  background: var(--panel-ink);
  color: var(--white);
  font-weight: 900;
}

.footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 5vw 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    justify-content: center;
  }

  .hero {
    min-height: 480px;
    padding-top: 3.4rem;
    padding-bottom: 3.4rem;
    background-image:
      linear-gradient(180deg, rgba(17, 18, 23, 0.94) 0%, rgba(17, 18, 23, 0.62) 66%, rgba(17, 18, 23, 0.25) 100%),
      url("./assets/catalog/arcade-hero.jpg");
    background-position: 58% center;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 1.04rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .card-body {
    min-height: 10.8rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
