/* PC games gallery modal — scoped; does not restyle pricing cards */

.da-pc-games-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 16px;
  border: 1px solid #2ec4c0;
  border-radius: 999px;
  background: #0f172a;
  color: #e8ecf2;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.da-pc-games-btn:hover,
.da-pc-games-btn:focus-visible {
  background: #2ec4c0;
  border-color: #2ec4c0;
  color: #07201f;
  outline: none;
}

.da-pc-games-btn:active {
  transform: translateY(1px);
}

.pc-games-modal .modal-dialog {
  max-width: min(1100px, calc(100vw - 24px));
}

.pc-games-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #14171c;
  color: #e8ecf2;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pc-games-modal .modal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #2b313b;
  background: #1c2027;
}

.pc-games-modal .modal-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #e8ecf2;
}

.pc-games-modal .pc-games-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: #2ec4c0;
  color: #07201f;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pc-games-modal .pc-games-sub {
  width: 100%;
  margin: 2px 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #8b95a5;
}

.pc-games-modal .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.75;
}

.pc-games-modal .btn-close:hover {
  opacity: 1;
}

.pc-games-modal .pc-games-search {
  width: 240px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid #2b313b;
  border-radius: 10px;
  background: #14171c;
  color: #e8ecf2;
  font: inherit;
}

.pc-games-modal .pc-games-search:focus {
  outline: 2px solid #2ec4c0;
  outline-offset: 1px;
}

.pc-games-modal .modal-body {
  padding: 16px 20px 22px;
  background: #14171c;
}

.pc-games-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #2b313b;
  border-radius: 12px;
  background: #1c2027;
  color: #c9d2df;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.pc-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  max-height: min(62vh, 560px);
  overflow: auto;
  padding: 2px;
  margin: 0;
}

.pc-games-card {
  overflow: hidden;
  border: 1px solid #2b313b;
  border-radius: 14px;
  background: #1c2027;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.pc-games-card:hover {
  transform: translateY(-3px);
  border-color: #2ec4c0;
}

.pc-games-cover {
  aspect-ratio: 16 / 9;
  background: #0e1014;
}

.pc-games-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pc-games-cover.is-fallback {
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
  font-weight: 800;
  line-height: 1.15;
  color: #e8ecf2;
  background: linear-gradient(150deg, hsl(var(--h, 200) 50% 30%), hsl(calc(var(--h, 200) + 40) 55% 14%));
}

.pc-games-name {
  padding: 10px 12px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: #e8ecf2;
  text-align: left;
}

.pc-games-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 40px 16px;
  text-align: center;
  color: #8b95a5;
}

@media (max-width: 575.98px) {
  .pc-games-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: 58vh;
  }

  .pc-games-modal .modal-header {
    padding: 14px 14px 12px;
  }

  .pc-games-modal .modal-body {
    padding: 12px 14px 16px;
  }

  .pc-games-modal .pc-games-search {
    width: 100%;
  }
}
