/* Ultimate Stars stylesheet 5.
   Original style id: us-daily-performance-fix-v38.
   Keep file order stable unless you are intentionally changing the cascade. */
  /* Keep the visual style, but avoid the most expensive repaint effects inside touch-heavy subwindows. */
  @media (max-width: 1180px), (hover: none), (pointer: coarse) {
    #myCardsModal .modal-shell,
    #myCardsModal.collection-shell,
    #battleScreen .panel,
    #us23SurrenderOverlay,
    #ultimateStarsDisplayNameModal {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    #myCardsGrid .game-card,
    #playerBattleDeck .game-card,
    #battleScreen .battle-hand-card,
    #battleScreen .card-art,
    #battleScreen .card-art img {
      transition: opacity .10s ease, transform .10s ease !important;
      will-change: auto !important;
      backface-visibility: hidden;
    }

    #myCardsGrid .card-art img,
    #playerBattleDeck .card-art img,
    #battleScreen .card-art img {
      filter: drop-shadow(0 6px 9px rgba(0,0,0,.22)) !important;
    }

    #myCardsGrid .game-card.selectable:hover,
    #playerBattleDeck .game-card.selectable:hover,
    #battleScreen .battle-hand-card:hover,
    #battleScreen .battle-hand-card:hover .game-card {
      transform: none !important;
      filter: none !important;
    }

    #myCardsGrid .game-card.selected {
      transform: scale(1.025) !important;
    }
  }

  #playerBattleDeck .battle-hand-card.can-play {
    cursor: pointer;
  }

  #playerBattleDeck .battle-hand-card.is-pending-choice .game-card,
  #playerBattleDeck .battle-hand-card.is-pending-choice .card-art img {
    opacity: .72;
  }
