/* ══════════════════════════════════════════════════════════
   Simulador do banner "Monte seu pack"

   Uma janelinha flutuando na direita do banner, com a key sendo
   copiada e ativada na Steam. Quem monta as cenas é o
   scripts/pack-sim.js — aqui está só a moldura e a pele.

   Fica escondida abaixo de 1024px: no celular o banner já é
   estreito e a janela cobriria o texto e o botão.
   ══════════════════════════════════════════════════════════ */

.pk-sim { display: none; }

@media (min-width: 1024px) {
  .pk-sim {
    position: absolute;
    top: 50%;
    right: 40px;
    z-index: 12;
    display: block;
    width: 340px;
    transform: translateY(-50%);
    pointer-events: none;
  }
}

@media (min-width: 1280px) {
  .pk-sim { right: 64px; width: 366px; }
}

/* Em tela de 1024–1279 o banner é mais baixo: a janela encolhe junto
   para não estourar a moldura, que corta o que passa. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .pk-sim__view { height: 258px; }
}

/* Sem moldura e translúcida: por cima da arte do banner uma caixa
   preta fechada parecia um bloco colado na página. O desfoque é que
   segura a leitura do texto, não a cor. */
.pk-sim__win {
  position: relative;
  padding: 14px 14px 12px;
  border: 0;
  border-radius: 18px;
  background: rgba(12, 15, 22, .62);
  box-shadow: 0 24px 60px rgb(0 0 0 / .4);
  backdrop-filter: blur(16px) saturate(120%);
  overflow: hidden;
}

/* Altura travada: as cenas têm tamanhos diferentes e sem isso a
   janela pularia de altura a cada troca. */
.pk-sim__view {
  height: 300px;
  overflow: hidden;
}

.pk-sim-scr {
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: pk-sim-entra .35s ease both;
}

@keyframes pk-sim-entra {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ── Cursor ────────────────────────────────────────────── */

.pk-sim__cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  width: 15px;
  height: 15px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / .6));
  transition: transform .62s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
}

.pk-sim__cursor svg { width: 100%; height: 100%; }
.pk-sim__cursor.is-on { opacity: 1; }

.pk-sim__cursor.is-click::after {
  content: "";
  position: absolute;
  left: -7px;
  top: -7px;
  width: 26px;
  height: 26px;
  border: 2px solid hsl(var(--primary));
  border-radius: 50%;
  animation: pk-sim-clique .45s ease-out forwards;
}

@keyframes pk-sim-clique {
  from { opacity: .9; transform: scale(.2); }
  to   { opacity: 0;  transform: scale(1); }
}

/* ── Passos ────────────────────────────────────────────── */

.pk-sim__steps {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.pk-sim__steps span {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: rgb(255 255 255 / .14);
  transition: background .3s ease;
}

.pk-sim__steps span.is-active { background: hsl(var(--primary)); }

/* ── Peças comuns das cenas ────────────────────────────── */

.pk-sim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.pk-sim-h-title {
  font-size: .875rem;
  font-weight: 800;
  color: #fff;
}

.pk-sim-chip {
  padding: 3px 8px;
  border: 1px solid hsl(var(--primary) / .4);
  border-radius: 999px;
  background: hsl(var(--primary) / .14);
  font-size: .5625rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  white-space: nowrap;
}

/* ── Cena 1: key liberada ──────────────────────────────── */

.pk-sim-ok {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.pk-sim-ok-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(90 200 120 / .16);
  color: #7fd99a;
}

.pk-sim-ok-ico svg { width: 13px; height: 13px; }

.pk-sim-ok-txt {
  font-size: .75rem;
  color: rgb(255 255 255 / .72);
}

/* As três keys do pack, uma por linha */
.pk-sim-keys {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pk-sim-key {
  padding: 7px 9px;
  border: 1px solid rgb(255 255 255 / .08);
  border-radius: 8px;
  background: rgb(255 255 255 / .04);
}

.pk-sim-key-name {
  display: block;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: .5625rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-sim-key-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pk-sim-key-val {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgb(0 0 0 / .38);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .6875rem;
  letter-spacing: .03em;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-sim-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 5px 9px;
  border: 0;
  border-radius: 5px;
  background: hsl(var(--primary) / .16);
  font-size: .625rem;
  font-weight: 700;
  color: hsl(var(--primary));
  transition: background .2s ease, color .2s ease;
}

.pk-sim-copy svg { width: 11px; height: 11px; }

.pk-sim-copy.is-copied {
  background: rgb(90 200 120 / .18);
  color: #7fd99a;
}

.pk-sim-nota {
  margin: auto 0 0;
  padding-top: 10px;
  font-size: .5625rem;
  color: rgb(255 255 255 / .35);
}

/* ── Cenas da Steam ────────────────────────────────────── */

/* A janela da Steam ocupa a cena inteira, com o mesmo azul-chumbo
   dos blocos da página de produto. */
.pk-sim-steam {
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 8px;
  background: #1b2838;
  overflow: hidden;
}

.pk-sim-menu {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgb(255 255 255 / .07);
  background: #171a21;
  font-size: .6875rem;
  color: #8f98a0;
}

.pk-sim-menu b { color: #66c0f4; font-weight: 600; }

.pk-sim-body {
  position: relative;
  flex: 1;
  padding: 12px;
}

.pk-sim-ghosts,
.pk-sim-shelf { display: flex; gap: 7px; }

.pk-sim-ghosts { margin-bottom: 10px; }

.pk-sim-ghosts i {
  flex: 1;
  height: 18px;
  border-radius: 4px;
  background: rgb(255 255 255 / .05);
}

.pk-sim-shelf i {
  flex: 0 0 52px;
  height: 70px;
  border: 1px dashed rgb(255 255 255 / .08);
  border-radius: 5px;
  background: rgb(255 255 255 / .03);
}

/* O menu abre do rodapé para cima, como o da Steam de verdade */
.pk-sim-pop {
  position: absolute;
  left: 10px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 5px;
  background: #16202d;
  box-shadow: 0 -14px 30px rgb(0 0 0 / .55);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
}

.pk-sim-pop.is-on { opacity: 1; transform: none; }

.pk-sim-pop span {
  padding: 5px 8px;
  border-radius: 3px;
  font-size: .625rem;
  white-space: nowrap;
  color: #c7d5e0;
  transition: background .18s ease, color .18s ease;
}

.pk-sim-pop span.is-sel { background: #316fa8; color: #fff; }

.pk-sim-foot {
  padding: 8px 12px;
  border-top: 1px solid rgb(255 255 255 / .07);
  background: #171a21;
}

.pk-sim-add {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: .625rem;
  color: #8f98a0;
  transition: background .18s ease;
}

.pk-sim-add.is-on { background: rgb(255 255 255 / .08); }

/* ── Cena 3: o diálogo da Steam ────────────────────────── */

/* Nessas telas a janela some: o que aparece é só o diálogo, do mesmo
   jeito que a Steam mostra por cima do cliente. */
.pk-sim-steam--dlg {
  align-items: center;
  justify-content: center;
  background: #101820;
}

.pk-sim-dlg {
  position: relative;
  width: 100%;
  margin: 10px;
  padding: 14px 15px 13px;
  border: 1px solid rgb(255 255 255 / .07);
  border-radius: 3px;
  background: #23272e;
  box-shadow: 0 16px 40px rgb(0 0 0 / .5);
}

.pk-sim-x {
  position: absolute;
  top: 7px;
  right: 10px;
  font-size: .8125rem;
  line-height: 1;
  color: #8f98a0;
}

.pk-sim-dlg-title {
  margin: 0 0 7px;
  padding-right: 16px;
  font-size: .8125rem;
  font-weight: 700;
  color: #fff;
}

.pk-sim-dlg-text {
  margin: 0 0 10px;
  font-size: .5625rem;
  line-height: 1.6;
  color: #b8c2cd;
}

.pk-sim-dlg-lbl {
  margin: 0 0 3px;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #8f98a0;
}

.pk-sim-dlg-ex {
  margin: 0 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .5rem;
  line-height: 1.7;
  color: #5c7e9c;
}

.pk-sim-field {
  display: flex;
  align-items: center;
  height: 28px;
  margin-bottom: 11px;
  padding: 0 8px;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: 2px;
  background: #15181d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .6875rem;
  color: #dfe3e8;
  transition: border-color .2s ease, background .2s ease;
}

/* O pisca de quando a key é colada */
.pk-sim-field.is-paste {
  border-color: #66c0f4;
  animation: pk-sim-cola .5s ease-out;
}

@keyframes pk-sim-cola {
  0%   { background: rgb(102 192 244 / .22); }
  100% { background: #15181d; }
}

.pk-sim-caret {
  width: 1px;
  height: 13px;
  margin-left: 1px;
  background: #dfe3e8;
  animation: pk-sim-pisca 1s steps(1) infinite;
}

@keyframes pk-sim-pisca {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.pk-sim-acts {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.pk-sim-btn {
  padding: 5px 13px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #3d8ee8 0%, #2a68d0 100%);
  font-size: .625rem;
  font-weight: 600;
  color: #fff;
  transition: transform .12s ease, background .25s ease, color .25s ease;
}

.pk-sim-btn--cinza {
  background: #4c5055;
  font-weight: 400;
  color: #dfe3e8;
}

/* Enquanto o campo está vazio o Confirmar fica apagado */
.pk-sim-btn.is-off { background: #2f3336; color: #6b7680; }
.pk-sim-btn.is-press { transform: scale(.96); }

/* A rodinha: o quadradinho com o logo da Steam girando */
.pk-sim-load {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 92px;
  border: 1px solid rgb(255 255 255 / .07);
  border-radius: 3px;
  background: #2a2f38;
  box-shadow: 0 16px 40px rgb(0 0 0 / .5);
}

.pk-sim-load-disc {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1b2027;
}

.pk-sim-load-ring {
  position: absolute;
  inset: -4px;
  border: 3px solid rgb(255 255 255 / .08);
  border-top-color: #1a9fff;
  border-radius: 50%;
  animation: pk-sim-gira 1s linear infinite;
}

.pk-sim-load-logo {
  display: flex;
  width: 26px;
  height: 26px;
  color: #dfe3e8;
}

.pk-sim-load-logo svg { width: 100%; height: 100%; }

@keyframes pk-sim-gira { to { transform: rotate(360deg); } }

/* ── Cena 4: ativado ───────────────────────────────────── */

/* A listra azul no topo é a marca do aviso de sucesso da Steam. */
.pk-sim-done {
  position: relative;
  width: 100%;
  margin: 10px;
  padding: 14px 15px 13px;
  border-top: 2px solid #4a9fe0;
  border-radius: 3px;
  background: #23272e;
  box-shadow: 0 16px 40px rgb(0 0 0 / .5);
}

.pk-sim-done-title {
  margin: 0 0 7px;
  padding-right: 16px;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.pk-sim-done-title b { color: #66c0f4; }

.pk-sim-done-text {
  margin: 0 0 12px;
  font-size: .5625rem;
  line-height: 1.6;
  color: #b8c2cd;
}

.pk-sim-okbtn {
  display: block;
  width: 100%;
  padding: 6px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #3d8ee8 0%, #2a68d0 100%);
  font-size: .625rem;
  font-weight: 600;
  color: #fff;
  transition: transform .12s ease;
}

.pk-sim-okbtn.is-press { transform: scale(.98); }

/* A biblioteca: lista de jogos à esquerda, com o recém-ativado em
   destaque, e a ficha dele à direita. Antes era só a capa solta no
   meio da janela, e sobrava vazio por todo lado. */
.pk-sim-lib {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.pk-sim-lib-side {
  flex: 0 0 84px;
  padding: 10px 8px;
  border-right: 1px solid rgb(255 255 255 / .06);
  background: rgb(0 0 0 / .18);
}

.pk-sim-lib-side-title {
  display: block;
  margin-bottom: 8px;
  padding-left: 4px;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7a88;
}

.pk-sim-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 3px 4px;
  border-radius: 3px;
}

.pk-sim-row i {
  flex: 0 0 12px;
  height: 16px;
  border-radius: 2px;
  background: rgb(255 255 255 / .1);
}

.pk-sim-row b {
  overflow: hidden;
  font-size: .5625rem;
  font-weight: 500;
  color: #8f98a0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* O jogo que acabou de entrar fica selecionado na lista */
.pk-sim-row.is-on {
  background: rgb(102 192 244 / .12);
}

.pk-sim-row.is-on i { background: #66c0f4; }
.pk-sim-row.is-on b { color: #fff; font-weight: 700; }

.pk-sim-lib-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
}

.pk-sim-lib-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.pk-sim-lib-cover {
  flex: 0 0 58px;
  width: 58px;
  height: 78px;
  object-fit: cover;
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: 5px;
  background: #101318;
}

.pk-sim-lib-meta { min-width: 0; }

.pk-sim-lib-name {
  margin: 0 0 8px;
  overflow: hidden;
  font-size: .75rem;
  font-weight: 700;
  color: #66c0f4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-sim-play {
  padding: 6px 16px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, #5aa9e6 0%, #2f74bf 55%, #245ea0 100%);
  font-size: .6875rem;
  font-weight: 600;
  color: #fff;
  transition: transform .12s ease, background .3s ease;
}

.pk-sim-play.is-press { transform: scale(.96); }

.pk-sim-play.is-run {
  background: rgb(90 200 120 / .18);
  color: #7fd99a;
}

/* Uma prateleira de "novidades" só para a ficha não ficar com um
   buraco no meio, como fica a de verdade quando o jogo é novo. */
.pk-sim-lib-news {
  margin-top: 12px;
}

.pk-sim-lib-news span {
  display: block;
  margin-bottom: 6px;
  font-size: .4375rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7a88;
}

.pk-sim-lib-news i {
  display: block;
  height: 7px;
  margin-bottom: 5px;
  border-radius: 3px;
  background: rgb(255 255 255 / .05);
}

.pk-sim-lib-news i:last-child { width: 62%; }

/* A régua de dados que a Steam mostra embaixo da ficha do jogo */
.pk-sim-lib-nums {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgb(255 255 255 / .06);
}

.pk-sim-lib-nums span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  font-size: .4375rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7a88;
  white-space: nowrap;
}

.pk-sim-lib-nums b {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #c7d5e0;
}

/* Quem pediu menos movimento continua vendo as cenas trocarem, mas
   sem o cursor deslizando pela tela. */
@media (prefers-reduced-motion: reduce) {
  .pk-sim__cursor { transition: none; }
  .pk-sim-scr { animation: none; }
}
