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

* { box-sizing: border-box; }
body.endapps-games-page { min-height: 100vh; margin: 0; padding: clamp(1.25rem, 4vw, 3rem); }
.endapps-games { width: min(58rem, 100%); margin: 0 auto; }
.endapps-games__header { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

.endapps-games__home-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-bottom: 1.75rem;
  color: #425c55;
  font-size: 0.9rem;
  font-weight: 600;
  text-underline-offset: 0.25em;
}

.endapps-games__eyebrow {
  margin: 0 0 0.65rem;
  color: #426a58;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.endapps-games h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.endapps-games__header > p:last-child {
  max-width: 38rem;
  margin: 0.9rem 0 0;
  color: #586761;
  font-size: 1rem;
  line-height: 1.6;
}

.endapps-games__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.endapps-games__list > li { min-width: 0; }
.endapps-games__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dce3da;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 0.35rem 1.4rem #20392a08;
}

.endapps-games__artwork { aspect-ratio: 1; overflow: hidden; background: #dcebdd; }
.endapps-games__artwork img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
}

.endapps-games__card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.endapps-games__card h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.endapps-games__card p { margin: 0.75rem 0 1.5rem; color: #586761; line-height: 1.65; }
.endapps-games__card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  margin-top: auto;
  padding: 0.7rem 1.1rem;
  border: 1px solid #205640;
  border-radius: 0.55rem;
  color: #fff;
  background: #205640;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}
.endapps-games__card a:hover { background: #163f2e; }
.endapps-games a:focus-visible { outline: 3px solid #b46b0b; outline-offset: 4px; }
.endapps-games__empty { padding: 2rem; border: 1px solid #dce3da; border-radius: 1rem; background: #fff; }
.endapps-games__empty h2 { margin-top: 0; }

@media (max-width: 39rem) {
  .endapps-games__list { grid-template-columns: minmax(0, 1fr); }
  .endapps-games__home-link { margin-bottom: 1.25rem; }
}
