.games-page {
  caret-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.games-main {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.games-intro {
  margin-bottom: 22px;
}

.games-intro .learn-heading p {
  max-width: 28rem;
}

.games-daily {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 22px);
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: 24px;
  background: #fff6c8;
  border: 3px solid #fff;
  box-shadow: 0 8px 22px rgb(16 84 115 / 0.1);
}

.games-daily-trophy {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffe28a;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.08);
}

.games-daily-trophy svg {
  display: block;
}

.games-daily-copy {
  flex: 1 1 160px;
  min-width: 0;
}

.games-daily-copy h2 {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(20px, 2.2vw, 26px);
  color: #002b43;
  line-height: 1.1;
}

.games-daily-copy p {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #5a6f86;
}

.games-daily-progress {
  flex: 1 1 220px;
  min-width: min(100%, 220px);
}

.games-daily-goal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #234868;
}

.games-daily-goal-icon {
  flex: none;
  color: #3d8bfd;
  font-size: 16px;
}

.games-daily-track {
  height: 12px;
  border-radius: 100px;
  background: #d7ebf8;
  overflow: hidden;
}

.games-daily-fill {
  height: 100%;
  width: 60%;
  border-radius: inherit;
  background: linear-gradient(90deg, #49d07a, #2fbf66);
}

.games-daily-count {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #35577a;
}

.games-daily-reward {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
}

.games-daily-coins {
  display: flex;
  gap: 2px;
  font-size: 22px;
  line-height: 1;
}

.games-daily-amount {
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  font-weight: 800;
  color: #e2a61f;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 24px rgb(16 84 115 / 0.12);
  border: 2px solid rgb(255 255 255 / 0.9);
}

.game-card-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #d7ebf8;
}

.game-best-star {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.game-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
}

.game-card-body h3 {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  font-size: 20px;
  color: #002b43;
  line-height: 1.15;
}

.game-card-body p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #4f6a84;
  line-height: 1.35;
  flex: 1;
}

.game-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.game-best {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #35577a;
}

.game-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #3d8bfd;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 0 #2a6fd1;
}

.game-play:hover {
  filter: brightness(1.05);
}

.game-play:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2a6fd1;
}

.game-play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

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

@media (max-width: 560px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .games-daily {
    padding: 14px;
  }

  .games-daily-reward {
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
  }
}
