/* The library gives space to its cover art, with quiet, compact chrome. */
.modal.experience-dialog.game-picker {
  --dialog-px: 24px;
  --dialog-py: 20px;
  width: 1320px;
  padding: 20px 24px 0;
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  scrollbar-gutter: auto;
  border-radius: 16px;
}
.game-picker:before { display: none; }
.game-picker.experience-dialog > .dialog-header {
  position: relative !important;
  margin: 0 0 8px !important;
  box-shadow: none;
  flex-shrink: 0;
}
.game-picker .game-picker-heading {
  padding: 0 0 16px;
  gap: 24px;
}
.game-picker .game-picker-heading > p { font-size: 14px; margin: 0; }
.game-picker .picker-search { width: 340px; max-width: 50%; height: 44px; border-radius: 8px; }
.game-picker .picker-search input { font-size: 16px; min-height: 42px; }
.game-picker .recent-games { padding: 8px 0; gap: 12px; background: transparent; min-height: 60px; }
.game-picker .recent-games > span { font-size: 11px; letter-spacing: 0; text-transform: capitalize; }
.game-picker .recent-games > button { font-size: 12px; min-height: 44px; border-radius: 6px; }
.game-picker .family-browser { grid-template-columns: 224px minmax(0, 1fr); min-height: 0; }
.game-picker .family-navigation { padding: 12px 12px 12px 0; }
.game-picker .family-choice { gap: 12px; padding: 12px 8px; min-height: 88px; border-radius: 8px; }
.game-picker .family-choice .game-art-tile { width: 40px; height: 52px; min-height: 0; }
.game-picker .family-choice strong { font-size: 16px; line-height: 1.35; white-space: normal; }
.game-picker .family-choice small { font-size: 13px; line-height: 1.4; }
.game-picker .family-choice > em { font-size: 12px; }
.game-picker .family-choice.selected { background: #343434; color: #9be58c; }
.game-picker .family-pane { padding: 16px 0 16px 20px; max-height: none; min-height: 0; }
.game-picker .family-pane-heading { margin: 0 0 12px; }
.game-picker .family-pane-heading h3 { font: 500 22px/1.3 var(--sans); letter-spacing: -.3px; }
.game-picker .family-pane-heading span { font-size: 12px; }
.game-picker .game-title-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.game-picker .catalog-game {
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #ffffff0a;
  border-radius: 8px;
  background: #2c2c2c;
  touch-action: manipulation;
}
.game-picker .catalog-game .game-art-tile { width: 76px; height: 96px; min-height: 0; border-radius: 5px; flex: none; }
.game-picker .catalog-game .game-art-tile > span { font-size: 20px; }
.game-picker .catalog-game .game-art-tile > img { object-fit: cover; object-position: center; }
.game-picker .catalog-game > span:not(.game-art-tile) { gap: 8px; padding: 0; flex: 1; }
.game-picker .catalog-game strong { font: 500 18px/1.4 var(--sans); color: #f1f1f1; overflow-wrap: break-word; }
.game-picker .catalog-game small { font-size: 14px; line-height: 1.45; color: #aaa; }
.game-picker .catalog-game > .icon { position: static; width: 16px; height: 16px; padding: 0; margin: 0; background: none; box-shadow: none; color: #9be58c; flex: none; align-self: center; }
.game-picker .catalog-game:hover { background: #363636; border-color: #ffffff20; }
.game-picker .catalog-game.is-current { background: #30392e; border-color: #91d68180; box-shadow: none; }
.game-picker .catalog-game.is-current strong { color: #aff09f; }
.game-picker :is(.catalog-game, .family-choice, .recent-games > button):focus-visible { outline: 2px solid #9be58c; outline-offset: -3px; }
.game-picker .game-picker-foot { padding: 12px 0; gap: 12px; min-height: 44px; }
.game-picker .game-picker-foot > span:first-child { font-size: 12px; }
.game-picker .game-picker-foot > span:last-child { font-size: 10px; letter-spacing: 0; }
@media (min-width: 1320px) {
  .game-picker .game-title-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .modal-backdrop:has(.experience-dialog.game-picker) { padding: 16px; }
  .modal.experience-dialog.game-picker { width: 100%; padding: 16px 20px 0; max-height: calc(100dvh - 32px); }
  .game-picker .game-picker-heading { display: block; padding-bottom: 16px; }
  .game-picker .game-picker-heading > p { margin-bottom: 12px; font-size: 13px; }
  .game-picker .picker-search { width: 100%; max-width: none; min-height: 48px; }
  .game-picker .picker-search input { font-size: 16px; min-height: 46px; }
  .game-picker .family-navigation { padding: 0; }
  .game-picker .family-choice { min-height: 96px; padding: 12px 4px; border-radius: 0; }
  .game-picker .family-choice .game-art-tile { width: 60px; height: 72px; }
  .game-picker .family-choice strong { font-size: 16px; }
  .game-picker .family-pane { padding: 0 0 16px; }
  .game-picker .family-pane-heading { padding: 0 0 12px; background: #272727; }
  .game-picker .family-back { min-height: 44px; font-size: 13px; }
  .game-picker .game-title-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-picker .catalog-game { min-height: 108px; gap: 12px; }
  .game-picker .catalog-game .game-art-tile { width: 64px; height: 80px; }
  .game-picker .recent-games { gap: 8px; }
  .game-picker .recent-games > button { max-width: calc((100% - 48px) / 3); padding: 0 4px; }
}
@media (max-width: 600px) {
  .modal-backdrop:has(.experience-dialog.game-picker) { padding: 8px; }
  .modal.experience-dialog.game-picker { padding: 16px 16px 0; max-height: calc(100dvh - 16px); border-radius: 12px; }
  .game-picker.experience-dialog > .dialog-header { margin-bottom: 4px !important; }
  .game-picker .game-title-grid { grid-template-columns: minmax(0, 1fr); }
  .game-picker .catalog-game { padding: 10px; gap: 12px; min-height: 102px; }
  .game-picker .catalog-game .game-art-tile { width: 64px; height: 80px; }
  .game-picker .catalog-game strong { font-size: 16px; }
  .game-picker .catalog-game small { font-size: 13px; }
  .game-picker .family-pane-heading h3 { font-size: 21px; }
  .game-picker .family-pane-heading span { font-size: 11px; }
  .game-picker .game-picker-foot { padding: 10px 0 max(12px, env(safe-area-inset-bottom, 0px)); }
  .game-picker .game-picker-foot > span:first-child { font-size: 12px; }
}
