/* ============================================================
   GTA 6 Brasil Achadinhos — estilo público
   Escuro, acentos neon de pôr do sol de Miami. Mobile primeiro.
   ============================================================ */

:root {
  --bg: #0d0b14;
  --bg-2: #141020;
  --bg-3: #1b1530;
  --linha: #2a2140;
  --texto: #f5f0ff;
  --texto-2: #b9aed6;
  --texto-3: #7d7299;
  --rosa: #ff3d8b;
  --laranja: #ff8a3d;
  --roxo: #7b2cff;
  --grad: linear-gradient(120deg, var(--rosa) 0%, var(--laranja) 55%, var(--roxo) 100%);
  --grad-suave: linear-gradient(120deg, rgba(255, 61, 139, .18), rgba(255, 138, 61, .14) 55%, rgba(123, 44, 255, .18));
  --raio: 14px;
  --sombra: 0 14px 34px rgba(0, 0, 0, .5);
  --bebas: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --inter: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(90% 55% at 50% -10%, #2a1240 0%, rgba(13, 11, 20, 0) 62%),
    var(--bg);
  color: var(--texto);
  font-family: var(--inter);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--laranja);
  outline-offset: 2px;
  border-radius: 6px;
}

.faixa {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- topo ---------- */

.topo {
  position: relative;
  padding: 16px 0 12px;
  background: linear-gradient(180deg, #1a1030 0%, #0d0b14 100%);
  border-bottom: 1px solid var(--linha);
  overflow: hidden;
}

.topo__brilho {
  position: absolute;
  inset: -120px -20% auto;
  height: 240px;
  background:
    radial-gradient(42% 60% at 18% 60%, rgba(255, 61, 139, .45), transparent 70%),
    radial-gradient(40% 55% at 78% 45%, rgba(255, 138, 61, .35), transparent 70%),
    radial-gradient(30% 50% at 50% 30%, rgba(123, 44, 255, .5), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--texto);
}

.marca__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 8px 22px rgba(123, 44, 255, .45);
  flex: 0 0 auto;
}

.marca__texto {
  display: flex;
  flex-direction: column;
  line-height: .92;
}

.marca__kicker {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--texto-2);
}

.marca__nome {
  font-family: var(--bebas);
  font-size: 30px;
  letter-spacing: .015em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 12px 0 14px;
  font-size: 13.5px;
  color: var(--texto-2);
  max-width: 34ch;
}

/* ---------- chips de categoria ---------- */

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 16px 8px;
  margin: 0 -16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--linha);
  color: var(--texto);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}

.chip:hover {
  border-color: rgba(255, 61, 139, .55);
  background: rgba(255, 61, 139, .1);
}

.chip--on {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 61, 139, .28);
}

.chip__icone {
  font-size: 14px;
  line-height: 1;
}

/* ---------- busca ---------- */

.busca {
  position: relative;
  margin-top: 4px;
}

.busca input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px 12px 44px;
  border-radius: 12px;
  border: 1px solid var(--linha);
  background: rgba(0, 0, 0, .4);
  color: var(--texto);
  font-family: inherit;
  font-size: 15px;
}

.busca input::placeholder {
  color: var(--texto-3);
}

.busca input:focus {
  outline: none;
  border-color: rgba(255, 61, 139, .6);
  box-shadow: 0 0 0 3px rgba(255, 61, 139, .18);
}

.busca__lupa {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--texto-3);
  pointer-events: none;
}

/* ---------- conteúdo ---------- */

.conteudo {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 44px;
}

.secao {
  margin-top: 24px;
}

.secao:first-child {
  margin-top: 6px;
}

.secao__cabecalho {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--linha);
}

.secao__titulo {
  margin: 0;
  font-family: var(--bebas);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1;
}

.secao__contagem {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--texto-3);
  white-space: nowrap;
}

.secao--destaque .secao__titulo {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.secao--destaque {
  padding: 14px;
  border-radius: var(--raio);
  background: var(--grad-suave);
  border: 1px solid rgba(255, 61, 139, .22);
}

.secao--destaque[hidden] {
  display: none;
}

.secao--centro {
  max-width: 560px;
  margin: 10vh auto 0;
  text-align: center;
}

/* ---------- grade + cards ---------- */

.grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #191327 0%, #120f1d 100%);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card[hidden] {
  display: none;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 61, 139, .5);
  box-shadow: var(--sombra);
}

.card__midia {
  display: block;
  aspect-ratio: 1 / 1;
  background: #171226;
  overflow: hidden;
}

.card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.card:hover .card__img {
  transform: scale(1.04);
}

.card__semimagem {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 36px;
  background: radial-gradient(60% 60% at 50% 40%, #241a3f 0%, #141020 100%);
}

.card__corpo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 10px;
}

.card__titulo {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.32;
  min-height: 2.64em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__titulo a {
  color: var(--texto);
  text-decoration: none;
}

.card__titulo a:hover {
  color: var(--rosa);
}

.card__preco {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.2;
}

.card__preco-valor {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.card__preco-antigo {
  font-size: 11.5px;
  color: var(--texto-3);
}

/* ---------- botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 61, 139, .2);
  transition: filter .15s, transform .1s, box-shadow .15s;
}

.botao:hover {
  filter: brightness(1.07);
  box-shadow: 0 10px 26px rgba(255, 61, 139, .3);
}

.botao:active {
  transform: scale(.985);
}

.card .botao {
  width: 100%;
  margin-top: auto;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12.5px;
}

.botao--largo {
  width: 100%;
}

.botao--fantasma {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--linha);
  color: var(--texto);
  box-shadow: none;
}

.botao--fantasma:hover {
  border-color: rgba(255, 61, 139, .5);
  background: rgba(255, 61, 139, .1);
  box-shadow: none;
}

.botao--mini {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 9px;
}

.botao--cinza {
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--linha);
  color: var(--texto);
  box-shadow: none;
}

.botao--perigo {
  background: rgba(255, 61, 139, .16);
  border: 1px solid rgba(255, 61, 139, .45);
  color: #ffbcd7;
  box-shadow: none;
}

.botao[disabled] {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.4);
}

/* ---------- avisos e vazios ---------- */

.aviso {
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(255, 138, 61, .12);
  border: 1px solid rgba(255, 138, 61, .45);
  color: #ffdcc2;
  font-size: 13.5px;
}

.vazio {
  margin: 0;
  padding: 30px 14px;
  border: 1px dashed var(--linha);
  border-radius: var(--raio);
  color: var(--texto-2);
  font-size: 14px;
  text-align: center;
}

.erro__codigo {
  margin: 0 0 6px;
  font-family: var(--bebas);
  font-size: 64px;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- migalha ---------- */

.migalha {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--texto-3);
  margin-bottom: 12px;
}

.migalha a {
  color: var(--texto-2);
  text-decoration: none;
}

.migalha a:hover {
  color: var(--rosa);
}

/* ---------- rodapé ---------- */

.rodape {
  margin-top: auto;
  padding: 22px 0 26px;
  background: #0a0810;
  border-top: 1px solid var(--linha);
}

.rodape__caixa {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.rodape__texto {
  margin: 0;
  max-width: 56ch;
  font-size: 12px;
  line-height: 1.55;
  color: var(--texto-2);
}

.rodape__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 61, 139, .12);
  border: 1px solid rgba(255, 61, 139, .4);
  color: #ffd0e3;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.rodape__link:hover {
  background: rgba(255, 61, 139, .22);
  color: #fff;
}

.rodape__assinatura {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--texto-3);
}

/* ---------- páginas simples ---------- */

.pagina-simples .conteudo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
}

.passos {
  text-align: left;
  margin: 18px auto;
  max-width: 56ch;
  padding-left: 20px;
  color: var(--texto-2);
  font-size: 14px;
  line-height: 1.7;
}

.passos code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #ffd0e3;
  font-size: 12.5px;
}

/* ---------- telas maiores ---------- */

@media (min-width: 560px) {
  .grade {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .secao__titulo {
    font-size: 31px;
  }

  .marca__nome {
    font-size: 34px;
  }

  .tagline {
    font-size: 15px;
    max-width: none;
  }

  .card__corpo {
    padding: 12px;
  }

  .card__titulo {
    font-size: 14.5px;
  }
}

@media (min-width: 860px) {
  .faixa {
    padding: 0 24px;
  }

  .conteudo {
    padding: 26px 24px 60px;
  }

  .grade {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .chips {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap;
  }

  .topo {
    padding: 22px 0 16px;
  }

  .marca__nome {
    font-size: 40px;
  }

  .secao__titulo {
    font-size: 36px;
  }

  .card__titulo {
    font-size: 15px;
  }

  .card .botao {
    min-height: 42px;
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}
