/* Store chooser: scoped to catalog pages; homepage styles stay untouched. */
.game-catalog-card-available .game-store-trigger {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
  color: var(--midnight-navy);
  text-decoration: none;
  border-radius: inherit;
}
.game-store-trigger > span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 3px;
  background: var(--stellar-gold-bright);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 3px 16px rgba(1, 11, 26, 0.18);
  transition: background-color 180ms ease;
}
.game-store-trigger:hover > span { background: #f6dcb6; }
.game-store-trigger:focus-visible {
  outline: 3px solid var(--stellar-gold-bright);
  outline-offset: -6px;
}
.game-catalog-card-available:focus-within img { transform: scale(1.025); }
html.store-dialog-open,
html.store-dialog-open body { overflow: hidden; }
.game-store-dialog:not([open]) { display: none; }
.game-store-dialog {
  position: fixed;
  width: min(680px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1.5rem, 5vw, 2.75rem);
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--soft-white);
  background: var(--midnight-navy);
  border: 1px solid rgba(212, 167, 111, 0.45);
  border-radius: 16px;
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.4);
}
.game-store-dialog::backdrop { background: rgba(1, 8, 20, 0.78); }
.game-store-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--soft-white);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.game-store-close:hover { background: rgba(255, 255, 255, 0.09); }
.game-store-close svg { width: 20px; height: 20px; }
.game-store-heading {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 1.4rem 1.75rem 0;
}
.game-store-heading img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 1px solid var(--line-light);
  border-radius: 14px;
}
.game-store-heading .brand-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.6rem;
}
.game-store-dialog h2 {
  margin: 0;
  color: var(--soft-white);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
.game-store-intro {
  margin: 0 0 1.5rem;
  color: var(--muted-light);
  font-size: 0.9rem;
  line-height: 1.6;
}
.game-store-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.game-store-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.65rem 1.25rem 1.25rem;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  background: var(--deep-space-blue);
  text-align: center;
}
.game-store-option-available { border-color: rgba(212, 167, 111, 0.5); }
.game-store-logo { width: 52px; height: 52px; margin-bottom: 1rem; }
.game-store-option h3 {
  margin: 0;
  color: var(--soft-white);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}
.game-store-option p {
  margin: 0.35rem 0 1.4rem;
  color: var(--muted-light);
  font-size: 0.8rem;
}
.game-store-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 0.7rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
a.game-store-button {
  color: var(--midnight-navy);
  background: var(--stellar-gold-bright);
}
a.game-store-button:hover { background: #f6dcb6; }
.game-store-button:disabled {
  color: #a9b2c1;
  border-color: #3a465a;
  background: #19263a;
  cursor: not-allowed;
}
.game-store-note {
  margin: 1.4rem 0 0;
  color: var(--muted-light);
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.65;
}
@media (max-width: 480px) {
  .game-store-options { grid-template-columns: 1fr; gap: 0.75rem; }
  .game-store-dialog { padding: 1.5rem; }
  .game-store-heading { margin-top: 1.3rem; gap: 0.8rem; margin-bottom: 1.2rem; }
  .game-store-heading img { width: 56px; height: 56px; border-radius: 10px; }
  .game-store-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 1rem;
    padding: 1rem;
    text-align: left;
  }
  .game-store-logo { width: 42px; height: 42px; grid-row: 1 / 3; margin: 0; }
  .game-store-option h3 { font-size: 1rem; }
  .game-store-option p { margin: 0.15rem 0 0; }
  .game-store-button { grid-column: 1 / -1; margin-top: 1rem; }
  .game-store-note { margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .game-store-trigger > span { transition: none; }
}
