/* Agency: TCG — Alpha 3.2.1 · Production Polish */

.solo-difficulty-option small {
  display: none !important;
}

.solo-difficulty-option span {
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
}

.game-overlay.impact-overlay .impact-result-panel,
.game-modal.impact-modal .impact-result-panel {
  background: rgba(255,255,255,.62) !important;
  border-color: rgba(31,27,24,.13) !important;
  color: #171512 !important;
  box-shadow: 0 8px 24px rgba(54,40,32,.05) !important;
}

.game-overlay.impact-overlay .impact-result-panel > p,
.game-modal.impact-modal .impact-result-panel > p {
  color: #706963 !important;
}

.game-overlay.impact-overlay .impact-result-title,
.game-modal.impact-modal .impact-result-title {
  color: #171512 !important;
}

.game-overlay.impact-overlay .impact-removed-row,
.game-modal.impact-modal .impact-removed-row {
  border-top-color: rgba(31,27,24,.10) !important;
}

.choice-hover-portal-321 {
  position: fixed;
  z-index: 5600;
  pointer-events: none;
  aspect-ratio: .7142857;
  filter: drop-shadow(0 20px 36px rgba(39,29,24,.32));
}

.choice-hover-portal-card-321 {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
}

.choice-hover-portal-card-321 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  image-rendering: auto;
}

.choice-hover-portal-card-321.rare-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .78;
  background:
    linear-gradient(112deg,
      transparent 13%,
      rgba(255,70,185,.24) 27%,
      rgba(105,225,255,.54) 39%,
      rgba(255,245,126,.30) 50%,
      rgba(116,255,179,.42) 61%,
      rgba(178,117,255,.30) 73%,
      transparent 87%);
  background-size: 230% 100%;
  animation: alpha321RarePortalShimmer 5s linear infinite;
}

@keyframes alpha321RarePortalShimmer {
  0%, 72%, 100% { background-position: 190% 0; opacity: 0; }
  5% { opacity: .75; }
  18% { background-position: -80% 0; opacity: .82; }
  28% { opacity: 0; }
}

.game-overlay .modal-choice-card:hover .choice-card-visual img,
.game-overlay .modal-choice-card:hover .choice-card-visual.rare-card::after,
.game-overlay .modal-card:hover img,
.game-overlay .modal-card.rare-card:hover::after {
  transform: none !important;
  filter: none !important;
}

/* Your Presentation has a real ~266px content floor (header + stats + slots),
   while older four-player grid proportions could allocate that row less space.
   That let the board visually spill into the Hand row. Reserve the board's
   actual height in every desktop player-count layout so the two modules remain
   physically separate instead of relying on z-index/overflow to hide it. */
@media (min-width: 1050px) {
  .match-multiplayer-250.match-players-4 .match-main-120 {
    grid-template-rows: minmax(188px, 1.05fr) minmax(270px, 1fr) minmax(270px, 1fr) 44px 12px !important;
  }
  .match-multiplayer-250.match-players-3 .match-main-120 {
    grid-template-rows: minmax(182px, 1fr) minmax(270px, 1fr) minmax(270px, 1fr) 44px 12px !important;
  }
  .match-multiplayer-250.match-players-2 .match-main-120 {
    grid-template-rows: minmax(170px, .9fr) minmax(270px, 1fr) minmax(270px, 1fr) 44px 12px !important;
  }
}

@media (max-width: 760px) {
  .choice-hover-portal-321 { display: none; }
}
