.game-hero{
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  text-align: center;
}
.game-hero-title{
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.game-hero-sub{
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

.game-body{
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

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

.game-card{
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.game-card.is-disabled{
  opacity: 0.72;
}

.game-card-badge{
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--red);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.game-card-badge.is-construction{
  background: var(--yellow);
}

.game-card-body{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-card-title{
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.game-card-title-jp{
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.game-card-desc{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Level buttons -- one small round button per level a game offers (e.g.
   Matching: B1, B2), so picking a level happens right on this card instead
   of jumping into a hardcoded default. Guests get the same buttons, just
   pointed at guest play links instead of the waves picker -- see
   js/games-auth.js renderLevelButtons(). */
.game-card-levels{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.game-card-level-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}
.game-card-level-btn:hover{
  opacity: 0.88;
  transform: translateY(-2px);
}
.game-card.is-disabled .game-card-level-btn{
  background: var(--muted);
  pointer-events: none;
}

@media (max-width: 700px){
  .game-hero{ padding: 40px 20px 24px; }
  .game-body{ padding: 0 20px 56px; }
  .game-grid{ grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* --- Account gate (shared login/guest entry before game selection) --- */

.game-gate{
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px 48px;
  text-align: center;
}
.game-gate-sub{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.game-guest-note{
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 20px;
}
.game-guest-note a{
  color: var(--blue);
  font-weight: 600;
}
