/* ===========================
   Mae Adventures - Games Lobby
   =========================== */

/* --- Hero --- */
.games-hero {
  background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-green) 100%);
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.games-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.games-hero p {
  font-size: 1.1rem;
  color: var(--color-text);
}

/* --- Lobby --- */
.games-lobby {
  padding: 3rem 0 4rem;
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* --- Game Card --- */
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover,
.game-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- Thumbnail --- */
.game-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-yellow);
}

.game-thumb--pawsitively {
  background: var(--color-purple);
}

.game-thumb--math {
  background: #4FC3F7;
}

.game-thumb--nia {
  background: #6e9bff;
}

.game-thumb--bubbleworks {
  background: #1f3a5f;
}

.game-thumb--claw {
  background: var(--color-blue);
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

/* --- Game Info --- */
.game-info {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.tag--fun      { background: var(--color-yellow);  color: var(--color-text); }
.tag--mobile   { background: var(--color-green);   color: var(--color-text); }
.tag--desktop  { background: var(--color-blue);    color: var(--color-text); }
.tag--learning { background: var(--color-purple);  color: var(--color-text); }

.game-info h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.game-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-light);
  flex: 1;
  margin-bottom: 1.25rem;
}

.game-cta {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.game-card--soon {
  cursor: default;
  opacity: 0.88;
}

.game-card--soon:hover,
.game-card--soon:focus {
  transform: none;
  box-shadow: var(--shadow-card);
  outline: none;
}

.game-cta--soon {
  background: var(--color-yellow);
  color: var(--color-text);
}

/* --- More coming --- */
.games-more {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-light);
}

@media (max-width: 480px) {
  .game-cards {
    grid-template-columns: 1fr;
  }
}

/* --- Mae corner character --- */
.mae-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 170px;
  pointer-events: none;
}

@media (max-width: 600px) {
  .mae-corner {
    width: 110px;
  }
}
