/* Lupax — página de produto KEY STEAM JOGOS.
   Tudo aqui só vale com html.lx-steam (adicionada pelo scripts/steam-games.js
   apenas quando o produto tem dados da Steam). Outras páginas: nada muda. */

/* o fundo da página vira o div fixo do layout (bg-background, z -10);
   body transparente para a arte (z -9) aparecer por cima dele */
html.lx-steam,
html.lx-steam body { background-color: #09090b; }
html.lx-steam body { background-color: transparent; }

/* fundo: arte da Steam escurecida atrás da página */
html.lx-steam .lx-steam-bg {
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  background-color: #09090b;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0,0,0,0.35) 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0,0,0,0.35) 80%, transparent 100%);
}
html.lx-steam .lx-steam-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 20%, rgba(9,9,11,0) 0%, rgba(9,9,11,0.55) 100%),
    linear-gradient(180deg, rgba(9,9,11,0.25) 0%, rgba(9,9,11,0.6) 100%);
}

/* library_hero (arte larga do jogo): grande e mais visível no topo, some no fundo */
html.lx-steam .lx-steam-bg.is-hero {
  bottom: auto;
  height: min(100vh, 980px);
  background-size: cover;
  background-position: center 20%;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0,0,0,0.4) 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0,0,0,0.4) 72%, transparent 100%);
}

/* cards: padrão da loja (sem translucidez) */

/* ---------- galeria ---------- */
html.lx-steam .lx-sg { position: relative; min-width: 0; }
html.lx-steam .lx-sg__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.06);
}
html.lx-steam .lx-sg__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
html.lx-steam .lx-sg__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}
html.lx-steam .lx-sg__img,
html.lx-steam .lx-sg__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
html.lx-steam .lx-sg__img { cursor: zoom-in; }
html.lx-steam .lx-sg__video { object-fit: contain; }
html.lx-steam .lx-sg__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(0,255,125,0.92);
  color: #04140b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}
html.lx-steam .lx-sg__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(9,9,11,0.7);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
html.lx-steam .lx-sg__nav:hover { background: rgba(9,9,11,0.9); border-color: rgba(0,255,125,0.5); }
html.lx-steam .lx-sg__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html.lx-steam .lx-sg__nav--prev { left: 12px; }
html.lx-steam .lx-sg__nav--next { right: 12px; }
html.lx-steam .lx-sg__count {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(9,9,11,0.72);
  border: 1px solid rgba(255,255,255,0.1);
  color: #d4d4d8;
  font: 600 12px/1.2 "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none;
}
html.lx-steam .lx-sg__count b { color: #fff; }
html.lx-steam .lx-sg__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
html.lx-steam .lx-sg__thumbs::-webkit-scrollbar { display: none; }
html.lx-steam .lx-sg__thumb {
  position: relative;
  flex: 0 0 auto;
  width: 118px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #111;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
html.lx-steam .lx-sg__thumb:hover { opacity: 0.85; }
html.lx-steam .lx-sg__thumb.is-active { opacity: 1; border-color: #00ff7d; }
html.lx-steam .lx-sg__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.lx-steam .lx-sg__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.35);
}
html.lx-steam .lx-sg__play svg { width: 22px; height: 22px; fill: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6)); }

/* ---------- preço Steam riscado ---------- */
html.lx-steam .lx-steam-price {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,255,125,0.06);
  border: 1px solid rgba(0,255,125,0.18);
}
html.lx-steam .lx-steam-price[hidden] { display: none; }
html.lx-steam .lx-steam-price__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #a1a1aa;
}
html.lx-steam .lx-steam-price__row s {
  color: #d4d4d8;
  font-family: "Geist Mono", ui-monospace, monospace;
  text-decoration-color: rgba(255,80,80,0.85);
  text-decoration-thickness: 2px;
}
html.lx-steam .lx-steam-price__logo { width: 16px; height: 16px; fill: #c7d5e0; flex-shrink: 0; }
html.lx-steam .lx-steam-price__chip {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 6px;
  background: #00ff7d;
  color: #04140b;
  font-size: 12px;
  font-weight: 800;
}
html.lx-steam .lx-steam-price__save { margin: 6px 0 0; font-size: 12.5px; color: #d4d4d8; }
html.lx-steam .lx-steam-price__save b { color: #00ff7d; }
html.lx-steam .lx-steam-price__note { margin: 2px 0 0; font-size: 10.5px; color: #71717a; }

@media (max-width: 640px) {
  html.lx-steam .lx-sg__stage { border-radius: 12px; }
  html.lx-steam .lx-sg__nav { width: 32px; height: 32px; margin-top: -16px; }
  html.lx-steam .lx-sg__nav--prev { left: 8px; }
  html.lx-steam .lx-sg__nav--next { right: 8px; }
  html.lx-steam .lx-sg__thumb { width: 92px; }
  html.lx-steam .lx-steam-bg { background-position: 60% top; opacity: 0.4; }
  html.lx-steam .lx-steam-bg.is-hero { height: 62vh; background-position: 50% top; opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  html.lx-steam .lx-sg__slide { transition: none; }
}
