/* Sınıf sayfasındaki "Eğitsel Oyunlar" bölümü (scripts/build-landing.mjs merkezi kayıttan üretir) */
.games {
  margin: 0 0 28px;
}
.games h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--title);
}
.games__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 14px;
}
.game {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow), inset 0 0 0 3px var(--orange);
}
.game__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #fff4dc;
}
.game__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}
.game h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: #c8432f;
}
.game p {
  margin: 0;
}
.game__meta {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-soft);
}
.game__desc {
  font-size: 0.95rem;
}
.game__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  /* Bölüm/ilerleme satırı ve Oyna düğmesi kartın dibine iner; yan yana kartlarda düğmeler hizalı kalır */
  margin-top: auto;
}
.game__chip {
  padding: 2px 12px;
  border-radius: 999px;
  background: #ffe1dc;
  font-size: 0.85rem;
  font-weight: 800;
  color: #c8432f;
}
.game__progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}
.game__bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.game__bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--leaf);
}
.game__stars {
  font-weight: 900;
  color: var(--yellow-dark);
}
.game__stars > span {
  color: var(--text);
}
.game__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 4px;
  border-radius: 999px;
  background: #2f8ff0;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 0 #1d6fc2;
}
.game__play::before {
  content: "▶";
  margin-right: 10px;
  font-size: 0.95em;
}
.game__play:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #1d6fc2;
}
.game--soon {
  box-shadow: var(--shadow);
}
.game--soon .game__cover {
  filter: grayscale(0.7);
  opacity: 0.7;
}
.game__soon {
  font-weight: 800;
  color: var(--text-soft);
}
/* Tek oyun varken geniş, yatay kart */
@media (min-width: 720px) {
  .games__list:has(> .game:only-child) {
    grid-template-columns: 1fr;
  }
  .game:only-child {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .game:only-child .game__cover {
    height: 100%;
    object-fit: cover;
  }
  .game:only-child .game__body {
    justify-content: center;
    padding: 20px 24px;
  }
  .game:only-child .game__foot {
    margin-top: 0;
  }
}
