/* Mobile-only overlay for the Gentle games panel. Does not change other Mindhame views. */
@media (max-width: 720px) {
  .games-hero,
  .games-card,
  .game-session,
  .game-session-top,
  .challenge-panel {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .games-hero {
    overflow-x: hidden;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .games-card {
    width: 100% !important;
    padding: 22px 14px !important;
  }

  .games-heading,
  .game-session-heading,
  .category-intro {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100%;
  }

  .games-heading > div:first-child,
  .game-session-heading > div,
  .games-heading h1,
  .game-session-heading h2 {
    max-width: 100% !important;
  }

  .games-heading h1,
  .game-session-heading h2 {
    font-size: clamp(1.45rem, 7.4vw, 2.15rem) !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
  }

  .games-heading .intro,
  .game-session-heading p,
  .category-intro p,
  .games-evidence-note,
  .adult-game-card p,
  .adult-game-card h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
  }

  .evidence-chip {
    width: 100% !important;
    min-width: 0 !important;
  }

  .game-category-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    width: 100%;
  }

  .game-category-tabs button {
    min-width: 0 !important;
    width: 100% !important;
    flex: none !important;
    padding: 10px 10px !important;
    box-sizing: border-box;
  }

  .game-category-tabs button span,
  .game-category-tabs button small,
  .game-category-mark {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
  }

  .game-library-grid,
  .choice-grid,
  .games-evidence-note,
  .challenge-prompt,
  .memory-sequence {
    grid-template-columns: 1fr !important;
  }

  .adult-game-card {
    min-height: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  .order-list li {
    grid-template-columns: 1fr !important;
  }

  .order-controls {
    grid-column: auto !important;
  }

  .challenge-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .challenge-actions button,
  .plain-game-button {
    width: 100%;
    max-width: 100%;
  }
}
