/**
 * Vitrine estilo Epic Games — categorias keys-steam e contas-steam
 * (apenas quando existe .keys-steam-epic-page).
 * Não altera variáveis globais nem outros layouts.
 */

.keys-steam-epic-page {
  --keys-epic-bg: rgb(12 12 14);
  --keys-epic-surface: rgb(18 18 21);
  background: linear-gradient(180deg, rgb(10 10 12) 0%, var(--keys-epic-bg) 18%, var(--keys-epic-bg) 100%);
}

.keys-steam-epic-page .keys-steam-category-main {
  /* Ligeiramente mais largo que o grid xl:6 da loja “normal” — espaço para 6 cards no carrossel sem esmagar capas */
  max-width: 1720px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

/* Só na vista “Ver tudo” (?badge=): esconde o banner desta categoria; home e listagem com carrosséis mantêm o banner */
.keys-steam-epic-page.keys-steam-epic-page--badge-catalog .keys-steam-category-hero-banner {
  display: none !important;
}

/* Âncora "Ver Categorias": compensa header + barra sticky (faixa Epic) */
.keys-steam-shelves-root {
  scroll-margin-top: 6.5rem;
}

.keys-steam-epic-hero .relative.w-full img[alt] {
  box-shadow: 0 24px 80px -32px rgba(0, 0, 0, 0.75);
}

/* Hero estilo Epic (desktop): banner largo + rail de capas — só keys-steam, ver category.html */
.keys-steam-epic-featured {
  width: 100%;
}

.keys-steam-epic-featured__row {
  align-items: stretch;
}

.keys-steam-epic-featured__rail-item {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.keys-steam-epic-featured__rail-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.keys-steam-epic-featured__rail-item--active {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.keys-steam-epic-featured__rail-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.keys-steam-epic-featured__copy {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* Pesquisa “só nesta categoria” no header (.keys-steam-nav-search) — dropdown acima do conteúdo */
.site-header .keys-steam-nav-search__wrap {
  position: relative;
}

.site-header .keys-steam-nav-search__dropdown {
  z-index: 60;
}

.keys-steam-mobile-search-panel {
  position: relative;
  z-index: 21;
}

.keys-steam-mobile-search-panel__dropdown {
  left: 0;
  right: 0;
}

.keys-steam-epic-featured__toolbar {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.keys-steam-epic-hero-search {
  background-color: #252525;
  border: none;
  box-shadow: none;
  gap: 0.5rem;
  transition: background-color 0.15s ease;
}

.keys-steam-epic-hero-search:focus-within {
  background-color: #2a2a2a;
  box-shadow: none;
  outline: none;
}

.keys-steam-epic-hero-search__icon {
  color: #a8a8a8;
}

.keys-steam-epic-hero-search__icon svg {
  stroke: #a8a8a8;
  stroke-width: 2;
}

.keys-steam-epic-hero-search__input {
  color: #d4d4d4;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.keys-steam-epic-hero-search__input::placeholder {
  color: #999999;
}

.keys-steam-epic-hero-search__input:focus,
.keys-steam-epic-hero-search__input:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  --tw-shadow: 0 0 #0000 !important;
  --tw-shadow-colored: 0 0 #0000 !important;
}

.keys-steam-epic-hero-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.keys-steam-epic-hero-search-wrap {
  z-index: 30;
}

.keys-steam-epic-hero-search__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  max-height: min(70vh, 380px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121214;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.85);
  color-scheme: dark;
  /* Scrollbar minimalista (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

/* Scrollbar fina — Chrome / Edge / Safari (sem trilho branco nem setas pesadas) */
.keys-steam-epic-hero-search__dropdown::-webkit-scrollbar {
  width: 5px;
}

.keys-steam-epic-hero-search__dropdown::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.keys-steam-epic-hero-search__dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.keys-steam-epic-hero-search__dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
  background-clip: padding-box;
}

.keys-steam-epic-hero-search__dropdown::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.keys-steam-epic-hero-search__dropdown:not(.hidden) {
  animation: keys-steam-hero-search-in 0.16s ease-out;
}

@keyframes keys-steam-hero-search-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.keys-steam-epic-hero-search__row {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.keys-steam-epic-hero-search__row:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.25);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .keys-steam-epic-hero-search__dropdown:not(.hidden) {
    animation: none;
  }
}

.keys-steam-epic-featured__btn-primary {
  background: #a855f7;
  color: #ffffff;
  border: 1px solid rgba(106, 33, 168, 0.45);
  box-shadow: none;
}

.keys-steam-epic-featured__btn-primary:hover {
  background: #9333ea;
  border-color: rgba(106, 33, 168, 0.6);
  color: #ffffff;
}

.keys-steam-epic-featured__btn-primary:focus-visible {
  outline: 2px solid rgba(168, 85, 247, 0.65);
  outline-offset: 2px;
}

.keys-steam-epic-featured__btn-icon {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.keys-steam-epic-featured__btn-icon:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.keys-steam-epic-featured__btn-icon:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.keys-steam-epic-featured__btn-icon.is-favorite {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.keys-steam-epic-featured__btn-icon.is-favorite:hover {
  background: rgba(255, 255, 255, 0.24);
}

.keys-steam-epic-featured__star-icon svg {
  stroke-width: 2;
  color: #ffffff;
}

.keys-steam-epic-featured__btn-icon:not(.is-favorite) .keys-steam-epic-featured__star-icon svg {
  fill: none;
}

.keys-steam-epic-featured__btn-icon.is-favorite .keys-steam-epic-featured__star-icon svg {
  fill: #ffffff;
  stroke: #ffffff;
}

/* Fonte dos títulos das prateleiras — alinhados à esquerda, sem link */
.keys-steam-epic-page .keys-steam-shelf-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
}

.keys-steam-epic-page .keys-steam-shelf-heading .category-section-title--epic {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #f4f4f5;
}

@media (min-width: 640px) {
  .keys-steam-epic-page .keys-steam-shelf-heading .category-section-title--epic {
    font-size: 1.25rem;
  }
}

/* Bloco por categoria — respiro premium */
.keys-steam-epic-page .keys-steam-epic-shelf.store-category {
  margin-bottom: 0;
  padding-bottom: 0.25rem;
  /* Sem “caixa” cinza: fundo igual ao da página (carousel-cards usa rgb(--background) no track) */
  background: transparent;
  background-color: transparent;
}

.keys-steam-epic-page .keys-steam-shelves-root {
  padding-bottom: 2rem;
}

/* Toolbar: título à esquerda; à direita: Ver tudo (minimal) + setas */
.keys-steam-epic-page .keys-steam-epic-shelf .category-section-toolbar--epic {
  align-items: center;
  gap: 1rem;
}

.keys-steam-epic-page .keys-steam-epic-shelf .store-category__epic-nav-cluster {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .keys-steam-epic-page .keys-steam-epic-shelf .store-category__epic-nav-cluster {
    gap: 0.65rem;
  }
}

/* Link “Ver tudo” — texto fino, sem caixa (não compete com as setas) */
.keys-steam-epic-page .keys-steam-epic-shelf .store-category__nav-ver-tudo {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.42);
  padding: 0.35rem 0.25rem;
  margin-right: 0.125rem;
  border-radius: 0.25rem;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease;
}

.keys-steam-epic-page .keys-steam-epic-shelf .store-category__nav-ver-tudo:hover {
  color: rgba(168, 85, 247, 0.95) !important;
}

.keys-steam-epic-page .keys-steam-epic-shelf .store-category__nav-ver-tudo:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.25);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .keys-steam-epic-page .keys-steam-epic-shelf .store-category__nav-ver-tudo {
    font-size: 0.71875rem;
    letter-spacing: 0.07em;
  }
}

.keys-steam-epic-page .keys-steam-epic-shelf .store-category__epic-nav .store-category__nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.keys-steam-epic-page .keys-steam-epic-shelf .store-category__epic-nav .store-category__nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

/* Viewport/track: transparentes + sem min-width 100% no track (evita faixa cinza vazia à direita com poucos cards) */
.keys-steam-epic-page .keys-steam-epic-shelf .store-category__viewport {
  margin-top: 0.5rem;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  scroll-padding-left: 0;
  scroll-padding-right: 0;
  background: transparent !important;
  background-color: transparent !important;
}

.keys-steam-epic-page .keys-steam-epic-shelf .store-category__track {
  --sc-gap: 0.95rem;
  background: transparent !important;
  background-color: transparent !important;
  min-width: 0 !important;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0.75rem;
}

/* Modo clip (desktop): viewport continua sem “painel” sólido */
.keys-steam-epic-page .keys-steam-epic-shelf .store-category__viewport--clip {
  background: transparent !important;
}

/* Cards com altura definida pela capa (2:3) — sem stretch/1fr que crescia sozinho */
.keys-steam-epic-page .keys-steam-epic-shelf .store-category__track > * {
  align-self: flex-start;
}

.keys-steam-epic-page .keys-steam-epic-shelf .store-category__track > .aaa-card {
  height: var(--pkg-card-h, 24rem);
}

/* 12.º slot: “Ver tudo” — mesma largura que os cards (JS no track); altura alinhada à linha */
.keys-steam-epic-page .keys-steam-ver-tudo-tile {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  height: var(--pkg-card-h, 24rem) !important;
  min-height: var(--pkg-card-h, 24rem) !important;
  max-height: var(--pkg-card-h, 24rem) !important;
}

.keys-steam-epic-page .keys-steam-ver-tudo-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 8rem;
  padding: 1rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #1e1e22 0%, #161618 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #f4f4f5;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.keys-steam-epic-page .keys-steam-ver-tudo-link:hover {
  background: linear-gradient(145deg, #25252a 0%, #1a1a1e 100%);
  border-color: rgba(168, 85, 247, 0.45);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(106, 33, 168, 0.2);
}

.keys-steam-epic-page .keys-steam-ver-tudo-link:focus-visible {
  outline: 2px solid rgba(168, 85, 247, 0.55);
  outline-offset: 2px;
}

.keys-steam-epic-page .keys-steam-ver-tudo-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: rgba(168, 85, 247, 0.95);
  stroke-width: 2;
}

.keys-steam-epic-page .keys-steam-ver-tudo-text {
  line-height: 1.25;
}

/* Vista “Ver tudo” (?badge=) — grelha com todos os jogos da etiqueta */
.keys-steam-epic-page .keys-steam-badge-full-view {
  width: 100%;
}

.keys-steam-epic-page .keys-steam-badge-full-view__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
  padding: 0.75rem 0 1.5rem;
}

.keys-steam-epic-page .keys-steam-badge-full-view__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.18s ease;
}

.keys-steam-epic-page .keys-steam-badge-full-view__back:hover {
  color: #a855f7;
}

.keys-steam-epic-page .keys-steam-badge-full-view__title {
  margin: 0 auto 0.65rem;
  max-width: min(100%, 22rem);
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #fafafa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 0%, #e4e4e7 45%, #c4c4cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 28px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 42px rgba(168, 85, 247, 0.18));
}

/* Realce extra: brilho suave (fallback se clip falhar em browser antigo) */
@supports not (background-clip: text) {
  .keys-steam-epic-page .keys-steam-badge-full-view__title {
    color: #fafafa;
    background: none;
    text-shadow:
      0 2px 24px rgba(0, 0, 0, 0.65),
      0 0 48px rgba(168, 85, 247, 0.16);
  }
}

.keys-steam-epic-page .keys-steam-badge-full-view__title::after {
  content: '';
  display: block;
  width: min(5rem, 40vw);
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.95), transparent) !important;
  box-shadow: 0 0 20px rgba(106, 33, 168, 0.5) !important;
}

@media (min-width: 640px) {
  .keys-steam-epic-page .keys-steam-badge-full-view__title {
    max-width: min(100%, 28rem);
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  }

  .keys-steam-epic-page .keys-steam-badge-full-view__title::after {
    width: min(6rem, 50vw);
    margin-top: 1.125rem;
  }
}

.keys-steam-epic-page .keys-steam-badge-full-view__count {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* Vista “Ver tudo” do carrossel recent (?recent=1) — subtítulo sob o título */
.keys-steam-epic-page .keys-steam-recent-full-view__subtitle {
  margin: 0.35rem auto 0.85rem;
  max-width: 26rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.52);
  text-wrap: balance;
}

/* Pacotes-fonte: escondidos do layout (conteúdo clonado para as prateleiras) */
.keys-steam-packages-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* overflow-x:hidden quebra position:sticky nos filhos; clip/visible preserva layout */
.keys-steam-epic-page.keys-steam-category-page {
  overflow-x: clip;
  overflow-y: visible;
}

@supports not (overflow: clip) {
  .keys-steam-epic-page.keys-steam-category-page {
    overflow-x: visible;
  }
}

.keys-steam-category-search-root {
  isolation: isolate;
}

/* Dropdown de pesquisa estilo Steam (miniatura + título) */
.keys-steam-search-dropdown-inner {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.keys-steam-search-dropdown-inner::-webkit-scrollbar {
  width: 8px;
}

.keys-steam-search-dropdown-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.keys-steam-search-row:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: -2px;
}

/* =============================================================================
   Keys Steam — visual premium (apenas slug keys-steam; não afeta contas-steam).
   Largura, altura e gap dos cards vêm da regra compartilhada
   .keys-steam-epic-page .keys-steam-epic-shelf .store-category__track
   (iguais à categoria contas-steam). Não redefinir --sc-gap aqui.
   ============================================================================= */
#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  .keys-steam-epic-shelf
  .store-category__track
  > * {
  border-radius: 12px;
}

/* Grid: capa com proporção 2:3; corpo só o necessário (sem 1fr na imagem — isso inflava o card) */
#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .home-carousel-card.product-card {
  border-radius: 12px !important;
  border: none !important;
  background-color: #1c1c1c !important;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.38),
    0 2px 8px rgba(0, 0, 0, 0.22) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--pkg-cover-h, 16.5rem) var(--pkg-body-h, 10rem) !important;
  height: var(--pkg-card-h, 24rem) !important;
  min-height: var(--pkg-card-h, 24rem) !important;
  max-height: var(--pkg-card-h, 24rem) !important;
  overflow: hidden !important;
  transition: none !important;
}

@media (hover: hover) and (pointer: fine) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .home-carousel-card.product-card:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1) !important;
    background-color: #18181b !important;
    box-shadow:
      0 20px 56px rgba(0, 0, 0, 0.48),
      0 6px 20px rgba(0, 0, 0, 0.28) !important;
  }
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .home-carousel-card__image {
  border-radius: 12px 12px 0 0;
  aspect-ratio: unset !important;
  width: 100%;
  height: var(--pkg-cover-h, 16.5rem) !important;
  min-height: var(--pkg-cover-h, 16.5rem) !important;
  max-height: var(--pkg-cover-h, 16.5rem) !important;
}

/* Cadeia da capa: preenche a linha 1fr */
#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .home-carousel-card
  .relative.pb-0 {
  min-height: var(--pkg-cover-h, 16.5rem);
  height: var(--pkg-cover-h, 16.5rem);
  display: flex;
  flex-direction: column;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .home-carousel-card
  .aaa-card__image-row {
  flex: 0 0 var(--pkg-cover-h, 16.5rem);
  min-height: var(--pkg-cover-h, 16.5rem);
  height: var(--pkg-cover-h, 16.5rem);
  aspect-ratio: unset;
  border-radius: 12px 12px 0 0;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .home-carousel-card
  .aaa-card-image,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .home-carousel-card
  .product-card__img {
  position: absolute;
  inset: 0;
  aspect-ratio: unset !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  transform: translateZ(0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .home-carousel-card.group:hover
    .product-card__img {
    transform: translateZ(0);
  }

  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .home-carousel-card.group:hover
    .aaa-card-image {
    filter: none;
  }
}

/* Área inferior compacta e limpa */
#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .home-carousel-card__body {
  border-radius: 0 0 12px 12px !important;
  background-color: #1c1c1c !important;
  padding: 0.7rem 0.75rem 0.75rem !important;
}

@media (min-width: 640px) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .home-carousel-card__body {
    padding: 0.7rem 0.75rem 0.75rem !important;
  }
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .aaa-card__divider {
  margin-top: 0.45rem !important;
  background-color: rgba(255, 255, 255, 0.055) !important;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .home-carousel-card__footer {
  min-height: auto !important;
  flex-shrink: 0 !important;
  padding-top: 0.45rem !important;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .aaa-card__price-stack {
  min-height: 0 !important;
}

/* Títulos: 2 linhas fixas, alinhamento uniforme */
#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .aaa-card
  .home-carousel-card__title {
  font-size: 0.8125rem !important;
  line-height: 1.3 !important;
  min-height: calc(1.3em * 2) !important;
  max-height: calc(1.3em * 2) !important;
  letter-spacing: -0.02em !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-weight: 700 !important;
}

@media (min-width: 640px) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .aaa-card
    .home-carousel-card__title {
    font-size: 0.8125rem !important;
    line-height: 1.3 !important;
    min-height: 2.125rem !important;
    max-height: 2.125rem !important;
  }
}

/* Preço: forte e premium, sem neon agressivo */
#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .aaa-card
  .home-carousel-card__price {
  color: #39ff14 !important;
  font-weight: 800 !important;
  font-size: 1.125rem !important;
  letter-spacing: 0.015em !important;
  text-shadow: none;
}

@media (min-width: 640px) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .aaa-card
    .home-carousel-card__price {
    font-size: 1.125rem !important;
  }
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .aaa-card-price-old {
  opacity: 0.85;
}

/* Botão carrinho: integrado, discreto, refinado */
#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .product-card__cart-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 10px !important;
  bottom: 9px !important;
  right: 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  background: rgba(22, 22, 24, 0.92) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.2s ease !important;
}

@media (min-width: 768px) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .product-card__cart-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    bottom: 10px !important;
    right: 10px !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .home-carousel-card:hover
    .product-card__cart-btn {
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  }
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .product-card__cart-icon {
  width: 15px !important;
  height: 15px !important;
}

@media (min-width: 768px) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .product-card__cart-icon {
    width: 16px !important;
    height: 16px !important;
  }
}

/* Brilho animado na imagem — desativado na vitrine keys-steam (hover já valoriza a capa) */
#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
  .product-card__image::after {
  opacity: 0 !important;
  animation: none !important;
  visibility: hidden;
}

/* Scroll do carrossel: sem hover “pesado” */
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-epic-shelf .store-category.is-scrolling .home-carousel-card.product-card,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-epic-shelf .store-category.is-scrolling .home-carousel-card.product-card:hover {
  transform: none !important;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.38),
    0 2px 8px rgba(0, 0, 0, 0.22) !important;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers).is-scrolling
  .home-carousel-card
  .product-card__img,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam']
  :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers).is-scrolling
  .home-carousel-card
  .aaa-card-image {
  transform: none !important;
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .home-carousel-card.product-card,
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .home-carousel-card
    .product-card__img,
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .home-carousel-card
    .aaa-card-image {
    transition-duration: 0.01ms !important;
  }

  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .home-carousel-card.product-card:hover {
    transform: none !important;
  }

  #keys-steam-epic-page[data-epic-shelf-category='keys-steam']
    :is(.keys-steam-epic-shelf .store-category, .keys-steam-bestsellers)
    .home-carousel-card.group:hover
    .product-card__img {
    transform: none !important;
  }
}

/* Destaque minimalista — só carrossel “Acabaram de chegar” */
#keys-steam-epic-page .keys-steam-epic-shelf.keys-steam-recent-shelf {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(106, 33, 168, 0.22);
  background: linear-gradient(
    180deg,
    rgba(106, 33, 168, 0.06) 0%,
    rgba(255, 255, 255, 0.03) 42%,
    rgba(255, 255, 255, 0.015) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(168, 85, 247, 0.1),
    0 10px 30px rgba(0, 0, 0, 0.22);
  padding: 0.85rem 0.85rem 0.65rem;
}

#keys-steam-epic-page .keys-steam-epic-shelf.keys-steam-recent-shelf::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: min(280px, 65vw);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.95), transparent);
  box-shadow: 0 0 20px rgba(106, 33, 168, 0.5);
  pointer-events: none;
}

@media (max-width: 639px) {
  #keys-steam-epic-page .keys-steam-epic-shelf.keys-steam-recent-shelf {
    border-radius: 12px;
    padding: 0.75rem 0.65rem 0.55rem;
  }
}

/* Cabeçalho premium centrado — só carrossel “Acabaram de chegar” */
#keys-steam-epic-page .keys-steam-epic-shelf.keys-steam-recent-shelf .category-section-toolbar--epic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem 0.75rem;
}

#keys-steam-epic-page .keys-steam-epic-shelf.keys-steam-recent-shelf .keys-steam-recent-shelf__heading-wrap.keys-steam-shelf-heading {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-items: center;
  min-width: 0;
  max-width: min(100%, 40rem);
}

#keys-steam-epic-page .keys-steam-epic-shelf.keys-steam-recent-shelf .store-category__epic-nav-cluster {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
}

#keys-steam-epic-page .keys-steam-epic-shelf.keys-steam-recent-shelf .keys-steam-recent-shelf__heading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  padding: 0.2rem 0.4rem 0.1rem;
}

#keys-steam-epic-page .keys-steam-recent-shelf:not(.keys-steam-recent-shelf--skeleton) .keys-steam-recent-shelf__title {
  font-size: clamp(1.3rem, 2.7vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0;
  padding: 0;
  color: #f5f5f5;
  white-space: normal;
  max-width: 100%;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: none;
}

#keys-steam-epic-page .keys-steam-recent-shelf__heading-rule {
  width: 2rem;
  height: 2px;
  border-radius: 999px;
  margin: 0.42rem auto 0.5rem;
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.95) 0%, rgba(106, 33, 168, 0.25) 82%, transparent 100%) !important;
  box-shadow: 0 0 16px rgba(106, 33, 168, 0.55) !important;
}

#keys-steam-epic-page .keys-steam-recent-shelf:not(.keys-steam-recent-shelf--skeleton) .keys-steam-recent-shelf__subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 36rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
}

@media (min-width: 640px) {
  #keys-steam-epic-page .keys-steam-recent-shelf:not(.keys-steam-recent-shelf--skeleton) .keys-steam-recent-shelf__subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.015em;
  }
}

/* Telas estreitas: evita esmagar o título — nav mantém-se à direita */
@media (max-width: 479px) {
  #keys-steam-epic-page .keys-steam-epic-shelf.keys-steam-recent-shelf .category-section-toolbar--epic {
    gap: 0.5rem 0.35rem;
  }

  #keys-steam-epic-page .keys-steam-epic-shelf.keys-steam-recent-shelf .keys-steam-recent-shelf__heading-wrap.keys-steam-shelf-heading {
    max-width: min(100%, calc(100vw - 8.5rem));
  }
}

@keyframes keys-steam-nuevo-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 2px 10px rgba(0, 0, 0, 0.4),
      0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    transform: scale(1.07);
    box-shadow:
      0 3px 12px rgba(0, 0, 0, 0.45),
      0 0 14px 3px rgba(59, 130, 246, 0.48);
  }
}

/* Carrossel “Acabaram de chegar” (últimas 24h) — badge NOVO: mesma cor azul do desconto (-% no card) */
#keys-steam-epic-page .keys-steam-recent-shelf .keys-steam-recent-nuevo-badge,
#keys-steam-epic-page .keys-steam-recent-full-view .keys-steam-recent-nuevo-badge {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 15;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transform-origin: center center;
  animation: keys-steam-nuevo-pulse 2.1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  #keys-steam-epic-page .keys-steam-recent-shelf--skeleton .animate-pulse {
    animation: none;
  }

  #keys-steam-epic-page .keys-steam-recent-shelf .keys-steam-recent-nuevo-badge,
  #keys-steam-epic-page .keys-steam-recent-full-view .keys-steam-recent-nuevo-badge {
    animation: none;
  }
}

/* Bloco “Principais categorias” — Keys Steam: grelha sem imagens (links ?badge=) */
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-category-hub {
  margin-top: 2.75rem;
  padding: 0 0 1.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

#keys-steam-epic-page .keys-steam-category-hub__header {
  text-align: left;
  margin-bottom: 1.35rem;
}

#keys-steam-epic-page .keys-steam-category-hub__title {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a855f7;
  margin: 0;
  line-height: 1.2;
}

#keys-steam-epic-page .keys-steam-category-hub__title-rule {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.5rem;
  margin-bottom: 0.65rem;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.95) 0%, rgba(106, 33, 168, 0.25) 82%, transparent 100%) !important;
  box-shadow: 0 0 16px rgba(106, 33, 168, 0.4);
  border-radius: 1px;
}

#keys-steam-epic-page .keys-steam-category-hub__subtitle {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  max-width: 40rem;
}

#keys-steam-epic-page .keys-steam-category-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.125rem;
}

@media (max-width: 1023px) {
  #keys-steam-epic-page .keys-steam-category-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 479px) {
  #keys-steam-epic-page .keys-steam-category-hub__grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
}

/* Proporção fixa 1920×820 (referência do layout) — largura fluida na grelha, altura calculada */
#keys-steam-epic-page .keys-steam-category-hub__card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 820;
  min-height: 0;
  border-radius: 0.3rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#keys-steam-epic-page .keys-steam-category-hub__card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

#keys-steam-epic-page .keys-steam-category-hub__card:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 3px;
}

#keys-steam-epic-page .keys-steam-category-hub__card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 0.85rem);
  padding: clamp(0.9rem, 2.8vw, 1.4rem) clamp(1rem, 3vw, 1.5rem);
  min-height: 0;
  box-sizing: border-box;
}

#keys-steam-epic-page .keys-steam-category-hub__card-name {
  font-size: clamp(1rem, 1.65vw + 0.55rem, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  max-width: 100%;
}

#keys-steam-epic-page .keys-steam-category-hub__cta-wrap {
  display: inline-block;
  padding: 0.28rem 0.05rem 0.35rem;
  line-height: 1;
}

#keys-steam-epic-page .keys-steam-category-hub__cta {
  display: inline-block;
  padding: 0.42rem 0.85rem 0.48rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(100deg, #3b82f6 0%, #2563eb 45%, #1d4ed8 100%);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  clip-path: polygon(3% 18%, 14% 4%, 96% 0%, 100% 38%, 97% 92%, 82% 100%, 6% 96%, 0% 68%);
}

#keys-steam-epic-page .keys-steam-category-hub__card:hover .keys-steam-category-hub__cta {
  filter: brightness(1.06);
}

@media (prefers-reduced-motion: reduce) {
  #keys-steam-epic-page .keys-steam-category-hub__card {
    transition: none;
  }

  #keys-steam-epic-page .keys-steam-category-hub__card:hover {
    transform: none;
  }
}

/* Modal Aviso +18: fundo escuro no overlay (evita “linha verde” da página por trás) + checkbox nativo estável */
#dialog-keys-steam-age.dialog {
  background-color: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#dialog-keys-steam-age.dialog > div {
  background-color: #141416;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

#dialog-keys-steam-age .keys-steam-age-checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  flex-shrink: 0;
  margin-top: 0.2rem;
  border-radius: 0.25rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background-color: #0f0f10;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

#dialog-keys-steam-age .keys-steam-age-checkbox:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

#dialog-keys-steam-age .keys-steam-age-checkbox:focus {
  outline: none;
}

#dialog-keys-steam-age .keys-steam-age-checkbox:focus-visible {
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.45);
  border-color: #a855f7;
}

#dialog-keys-steam-age .keys-steam-age-checkbox:checked {
  background-color: #a855f7;
  border-color: #a855f7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l2.5 2.5 6-7' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 0.85rem;
  background-position: center;
  background-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  #dialog-keys-steam-age .keys-steam-age-checkbox {
    transition: none;
  }
}

/* Ficha Keys Steam — capa + specs (categoria keys-steam e página do produto) */
.keys-steam-facts-card {
  display: flex;
  align-items: center;
  gap: 1.15rem 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(10, 10, 16, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.keys-steam-facts-card__cover {
  flex-shrink: 0;
  width: 6.5rem;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 0.85rem;
  background: #121214;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.keys-steam-facts-card__grid {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 0.95rem;
}

.keys-steam-facts-card__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.keys-steam-facts-card__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.keys-steam-facts-card__icon i,
.keys-steam-facts-card__icon svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 2;
}

.keys-steam-facts-card__wifi-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.keys-steam-facts-card__icon--steam {
  background: rgba(37, 99, 235, 0.22);
  color: #60a5fa;
}

.keys-steam-facts-card__steam-icon {
  width: 1.05rem;
  height: 1.05rem;
  filter: invert(64%) sepia(58%) saturate(1400%) hue-rotate(191deg) brightness(101%) contrast(96%);
}

.keys-steam-facts-card__icon--gold {
  background: rgba(234, 179, 8, 0.16);
  color: #eab308;
}

.keys-steam-facts-card__icon--green {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

.keys-steam-facts-card__icon--purple {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
}

.keys-steam-facts-card__icon--orange {
  background: rgba(234, 88, 12, 0.18);
  color: #fb923c;
}

.keys-steam-facts-card__icon--pink {
  background: rgba(192, 38, 211, 0.18);
  color: #e879f9;
}

.keys-steam-facts-card__icon--blue {
  background: rgba(37, 99, 235, 0.22);
  color: #60a5fa;
}

.keys-steam-facts-card__value--how {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}

.keys-steam-facts-card__nexus {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.keys-steam-facts-card__nexus-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.keys-steam-facts-card__nexus-name {
  color: #eab308;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.keys-steam-facts-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.keys-steam-facts-card__label {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.48);
}

.keys-steam-facts-card__value {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f4f4f5;
}

.keys-steam-facts-card--category {
  display: none !important;
}

@media (max-width: 639px) {
  .keys-steam-facts-card {
    padding: 0.85rem;
    gap: 0.9rem;
  }

  .keys-steam-facts-card__cover {
    width: 5.25rem;
  }

  .keys-steam-facts-card__grid {
    column-gap: 0.65rem;
    row-gap: 0.75rem;
  }

  .keys-steam-facts-card__icon {
    width: 2.05rem;
    height: 2.05rem;
  }

  .keys-steam-facts-card__value {
    font-size: 0.8125rem;
  }
}

.package-wrapper[data-designer-edition='1'] .keys-steam-facts-card {
  display: none !important;
}

.package-page-area-desc .keys-steam-facts-card,
.package-page-root .keys-steam-facts-card {
  display: flex !important;
}

.package-about-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease, margin-top 0.28s ease;
}

.package-about-content__inner {
  overflow: hidden;
  min-height: 0;
}

.package-about-content.is-open {
  grid-template-rows: 1fr;
  margin-top: 1rem;
}

/* Catálogo “Todos os Jogos” — exclusivo de Keys Steam */
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-home-shelf .store-category__nav-ver-tudo {
  display: none;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog.visible {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 1 !important;
  transform: none !important;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #f4f4f5;
}

@media (min-width: 640px) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__title {
    font-size: 1.25rem;
  }
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.85rem;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__sort-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd {
  position: relative;
  width: 240px;
  flex: 0 0 240px;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd__btn {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  height: 44px;
  padding: 0 14px 0 16px;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(150, 80, 220, 0.25);
  background: #15101d;
  color: #f4f4f4;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd__btn:hover {
  border-color: rgba(168, 85, 247, 0.45);
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd__btn:focus,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd__btn:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: rgba(168, 85, 247, 0.5);
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd__chevron {
  display: flex;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  color: rgba(244, 244, 244, 0.72);
  transition: transform 0.16s ease;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd__chevron svg {
  display: block;
  width: 12px;
  height: 12px;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd.is-open .keys-steam-sort-dd__chevron {
  transform: rotate(180deg);
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 10px;
  border: 1px solid rgba(150, 80, 220, 0.28);
  background: #15101d;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
  max-height: min(70vh, 20rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd.is-open .keys-steam-sort-dd__menu:not([hidden]) {
  animation: keys-steam-sort-dd-in 0.16s ease-out;
}

@keyframes keys-steam-sort-dd-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd__option {
  display: block;
  width: 100%;
  padding: 0.58rem 0.7rem;
  border-radius: 7px;
  background: transparent;
  color: #d0cbd6;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd__option:hover {
  background: rgba(124, 58, 237, 0.1);
  color: #f4f4f4;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd__option.is-active {
  background: #7c3aed;
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd.is-open .keys-steam-sort-dd__menu:not([hidden]) {
    animation: none;
  }

  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd__chevron {
    transition: none;
  }
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__filters .keys-steam-sort-dd,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__filters .keys-steam-cat-dd {
  width: 240px;
  flex: 0 0 240px;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__filter {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__filter:hover {
  border-color: rgba(168, 85, 247, 0.4);
  color: #fff;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__filter[aria-pressed='true'] {
  border-color: rgba(168, 85, 247, 0.7);
  background: rgba(168, 85, 247, 0.16);
  color: #fff;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__filter:focus-visible {
  outline: 2px solid rgba(150, 70, 255, 0.55);
  outline-offset: 2px;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__count {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__empty {
  margin: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid {
  --sc-gap: 0.75rem;
  --pkg-body-h: 10rem;
  width: calc(100% + 2rem);
  margin-left: -1rem;
  margin-right: -1rem;
  padding: 0 1rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sc-gap);
  justify-content: stretch;
  overflow: visible;
}

@media (min-width: 640px) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid {
    --sc-gap: 1.125rem;
  }
}

@media (min-width: 768px) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid > .aaa-card,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid .aaa-card.package,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid .home-carousel-card.product-card {
  --pkg-cover-h: auto;
  --pkg-body-h: 10rem;
  --pkg-card-h: auto;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 10rem !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid .aaa-card.package > div:first-child,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid .home-carousel-card > div:first-child {
  position: relative !important;
  grid-row: 1;
  width: 100% !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  padding-bottom: 150% !important;
  overflow: hidden !important;
  aspect-ratio: unset !important;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid .aaa-card.package .aaa-card__image,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid .home-carousel-card__image,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid .aaa-card__image-row {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: unset !important;
  overflow: hidden !important;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid .home-carousel-card .aaa-card-image,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid .home-carousel-card .product-card__img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid .aaa-card.package > div:last-child,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__grid .home-carousel-card__body {
  height: 10rem !important;
  min-height: 10rem !important;
  max-height: 10rem !important;
}

@media (max-width: 639px) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__header {
    align-items: stretch;
    flex-direction: column;
  }

  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__filters {
    align-items: stretch;
    flex-direction: column;
  }

  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__sort {
    justify-content: space-between;
    width: 100%;
  }

  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-sort-dd,
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__filters .keys-steam-sort-dd,
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-catalog__filters .keys-steam-cat-dd {
    width: 100%;
    flex: 1 1 auto;
  }
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster {
  cursor: pointer;
  width: 100%;
  align-items: stretch;
  gap: 1.75rem;
  padding: clamp(1.35rem, 2.4vw, 1.85rem) clamp(1.35rem, 2.4vw, 1.9rem);
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster .ns-combo-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.9rem;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster .ns-combo-hero__heading {
  margin: 0;
  width: 100%;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster .ns-combo-hero__lead,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster .ns-combo-hero__perks,
#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster .ns-combo-steps {
  margin: 0;
  width: 100%;
  max-width: 36rem;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster .ns-combo-sim {
  justify-self: stretch;
  width: min(360px, 100%);
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster__cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.2rem 0 0;
  height: 2.9rem;
  padding: 0 1.45rem 0 1.55rem;
  border-radius: 999px;
  border: 1px solid #7c3aed;
  background: linear-gradient(180deg, #a855f7 0%, #7c3aed 55%, #6d28d9 100%);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(126, 34, 206, 0.38);
  transition: filter 0.16s ease, box-shadow 0.16s ease;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster__cta::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 42%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(168, 85, 247, 0.2) 28%,
    rgba(192, 132, 252, 0.55) 48%,
    rgba(168, 85, 247, 0.2) 68%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-18deg);
  animation: keys-steam-combo-cta-shine 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster__cta > span {
  position: relative;
  z-index: 3;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster__cta > span:last-child {
  font-size: 1.05rem;
  line-height: 1;
}

@keyframes keys-steam-combo-cta-shine {
  0% {
    transform: translateX(-160%) skewX(-18deg);
  }
  45%,
  100% {
    transform: translateX(280%) skewX(-18deg);
  }
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster__cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(126, 34, 206, 0.5);
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster__cta:focus-visible {
  outline: 2px solid rgba(216, 180, 254, 0.95);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster__cta::after {
    animation: none;
    display: none;
  }
}

@media (max-width: 1023px) {
  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster .ns-combo-hero__copy {
    justify-content: flex-start;
  }

  #keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster__cta {
    width: auto;
    min-width: 12.5rem;
    margin-top: 0.35rem;
  }
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster .ns-combo-hero__heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

#keys-steam-epic-page[data-epic-shelf-category='keys-steam'] .keys-steam-combo-poster .ns-combo-hero__heading h2 span {
  background: linear-gradient(90deg, #c084fc, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
