:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17233f;
  background: #f3f0e8;
}

* { box-sizing: border-box; }

body.endapps-games-page {
  min-height: 100vh;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 4rem);
  background:
    linear-gradient(90deg, #c84b3d 0 0.6rem, transparent 0.6rem),
    #f3f0e8;
}

.endapps-games {
  width: min(70rem, 100%);
  margin: 0 auto;
}

.endapps-games__header {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.endapps-games__home-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #17233f;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.endapps-games__home-link:focus-visible {
  outline: 0.2rem solid #0b6b52;
  outline-offset: 0.2rem;
}

.endapps-games__eyebrow {
  margin: 0 0 0.5rem;
  color: #9b382f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.endapps-games h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 0.95;
}

.endapps-games__header > p:last-child {
  max-width: 40rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.endapps-games__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.endapps-games__card,
.endapps-games__empty {
  height: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #17233f;
  border-radius: 0.4rem;
  background: #fffdf7;
  box-shadow: 0.32rem 0.32rem 0 #17233f;
}

.endapps-games__card h2,
.endapps-games__empty h2 { margin-top: 0; }

.endapps-games__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.endapps-games__artwork {
  flex: 0 1 12rem;
  min-width: 0;
}

.naija99-compass-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.endapps-games__card-content {
  flex: 1 1 18rem;
  min-width: 0;
}

.endapps-games__card p { line-height: 1.55; }

.endapps-games__card a {
  display: inline-block;
  min-height: 2.75rem;
  margin-top: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid #17233f;
  border-radius: 0.25rem;
  color: #17233f;
  background: #f3b53f;
  font-weight: 800;
  text-decoration: none;
}

.endapps-games__card a:focus-visible {
  outline: 0.2rem solid #0b6b52;
  outline-offset: 0.2rem;
}
