/* Load after styles.css. The complete title tile is the touch target. */
@media (max-width: 900px) {
  .game-picker .game-title-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  .game-picker .catalog-game {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 11px;
    min-width: 0;
    min-height: 195px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--bg);
    text-align: left;
    touch-action: manipulation;
  }

  .game-picker .catalog-game .game-art-tile {
    width: 100%;
    height: clamp(104px, 28vw, 154px);
    min-height: 104px;
    flex-shrink: 0;
    border-radius: 4px;
    background: var(--panel);
  }

  .game-picker .catalog-game .game-art-tile > span {
    font-size: 24px;
  }

  .game-picker .catalog-game .game-art-tile > img {
    object-fit: cover;
    object-position: center;
  }

  .game-picker .catalog-game > span:not(.game-art-tile) {
    gap: 6px;
    min-width: 0;
    padding: 0 2px 3px;
  }

  .game-picker .catalog-game strong {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .game-picker .catalog-game small {
    font-size: 10px;
    line-height: 1.5;
  }

  .game-picker .catalog-game.is-current {
    border-color: var(--lime);
    background: color-mix(in srgb, var(--lime) 5%, var(--bg));
    box-shadow: inset 0 0 0 1px var(--lime);
  }

  .game-picker .catalog-game > .icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 4px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--bg);
    box-shadow: 0 2px 8px #0005;
  }

  .game-picker .family-navigation {
    padding-left: 16px;
    padding-right: 16px;
  }

  .game-picker .family-choice {
    min-height: 94px;
    gap: 12px;
    padding: 14px 4px;
    touch-action: manipulation;
  }

  .game-picker .family-choice .game-art-tile {
    width: 56px;
    height: 60px;
    border-radius: 5px;
  }

  .game-picker .family-choice strong {
    font-size: 15px;
    line-height: 1.35;
  }

  .game-picker .family-choice small {
    font-size: 11px;
    line-height: 1.5;
  }

  .game-picker .family-choice > em {
    min-width: 18px;
    font-size: 12px;
    text-align: right;
  }

  .game-picker .family-pane {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 24px;
  }

  .game-picker .family-pane-heading {
    padding-bottom: 15px;
    margin-bottom: 14px;
  }

  .game-picker .family-back {
    min-height: 46px;
    font-size: 12px;
  }

  .game-picker .picker-search,
  .game-picker .picker-search input {
    min-height: 50px;
  }

  .game-picker .recent-games {
    gap: 7px;
    padding-left: 16px;
    padding-right: 16px;
    min-height: 71px;
  }

  .game-picker .recent-games > button {
    min-height: 48px;
  }

  .game-picker .recent-games .game-art-tile {
    width: 29px;
    height: 35px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .game-picker .game-title-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 350px) {
  .game-picker .game-title-grid {
    gap: 10px;
  }

  .game-picker .catalog-game {
    padding: 7px;
  }

  .game-picker .family-choice {
    gap: 10px;
  }

  .game-picker .family-choice .game-art-tile {
    width: 52px;
    height: 58px;
  }
}
