body.public { background: var(--bg); }
body.public main { display: block; padding: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: #b6a4ff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.site-header { background: #0f0f1f; border-bottom: 1px solid var(--border); }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand img { display: block; height: 56px; width: auto; }
@media (max-width: 700px) {
  /* No celular o logo ocupa a linha toda e fica centralizado; a busca vem embaixo. */
  .brand { flex: 1 1 100%; display: flex; justify-content: center; }
  .brand img { height: 52px; }
  .search { flex-basis: 100%; }
}
.search { flex: 1 1 260px; display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.search button, .filters button { margin: 0; padding: 10px 16px; }
.nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; color: var(--text); text-decoration: none; border: 1px solid transparent; }
.nav a:hover { border-color: var(--border); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--accent-text); }
/* Linha colorida embaixo de cada categoria, na cor da plataforma */
.nav__cat { position: relative; --cat: var(--accent); }
.nav__cat::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 3px; border-radius: 3px; background: var(--cat); transition: left .2s ease, right .2s ease, box-shadow .2s ease; }
.nav__cat:hover::after, .nav__cat[aria-current="page"]::after { left: 6px; right: 6px; box-shadow: 0 0 8px var(--cat); }
.nav__cat--ps { --cat: #1c80de; }
.nav__cat--switch { --cat: #f2060a; }
.nav__cat--xbox { --cat: #0fa541; }
.nav__cat--outros { --cat: #ffd60c; }
.nav__cat--fixas { --cat: #ff3d81; }
.nav a.nav__cat[aria-current="page"] { background: #1a1636; color: var(--text); border-color: var(--cat); }
@media (prefers-reduced-motion: reduce) { .nav__cat::after { transition: none; } }

h1 { margin-top: 24px; }
.band { margin: 28px 0 36px; }
.band__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.band__head h2 { margin: 0; font-size: 1.25rem; border-left: 4px solid var(--accent); padding-left: 10px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.empty { padding: 16px 0; }

.offer { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; }
.offer__link { color: inherit; text-decoration: none; display: flex; flex-direction: column; width: 100%; }
.offer__link:hover .offer__title { text-decoration: underline; }
.offer__img { position: relative; aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; }
.offer__img img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px; box-sizing: border-box; object-fit: contain; }
.offer__img .badge, .offer__img .ribbon { z-index: 1; }
.offer__body { flex: 1; display: flex; flex-direction: column; }
.offer__cta-wrap { margin-top: auto; padding-top: 10px; }
.offer__cta { margin: 0; padding: 8px 10px; text-align: center; background: var(--accent); color: var(--accent-text); border-radius: 8px; font-weight: 700; font-size: .9rem; }
.offer__link:hover .offer__cta { filter: brightness(1.1); }
.offer__noimg { font-size: 3rem; }
.badge { position: absolute; top: 8px; left: 8px; background: #ff3d81; color: #fff; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.offer__body { padding: 10px 12px 14px; }
.offer__store { margin: 0; color: var(--muted); font-size: .8rem; }
.offer__title { margin: 4px 0 8px; font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.offer__prev { margin: 0; color: var(--muted); font-size: .85rem; }
.offer__price { margin: 0; font-weight: 700; font-size: 1.1rem; }
.offer__price--big { font-size: 1.8rem; }
.offer__extra { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.offer__coupon { margin: 6px 0 0; font-size: .85rem; color: #ffd36b; }

.offer--ended { filter: grayscale(1); opacity: .7; }
.ribbon { position: absolute; left: 0; right: 0; bottom: 0; background: #222; color: #fff; text-align: center; font-weight: 800; letter-spacing: .04em; padding: 6px 4px; font-size: .8rem; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 12px 0; }
.filters label { margin: 0; font-size: .85rem; font-weight: 600; }
.filters select { display: block; margin-top: 4px; padding: 9px 10px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.pager { display: flex; justify-content: center; gap: 16px; align-items: center; margin: 24px 0; }

.cta { display: inline-block; padding: 14px 24px; background: var(--accent); color: var(--accent-text); border-radius: 10px; font-weight: 700; text-decoration: none; }
.ended-note { background: #2a2a2a; border-radius: 8px; padding: 12px; }
.small { font-size: .85rem; }

.site-footer { margin-top: 32px; background: #0b0b16; border-top: 2px solid var(--accent); font-size: .9rem; color: var(--muted); }
.footer__grid { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr .8fr 1.1fr 1.4fr; } }
.footer__brand img { display: block; height: 35px; width: auto; margin-bottom: 12px; }
.footer__brand p, .footer__notes p { margin: 0 0 10px; line-height: 1.55; }
.footer__title { margin: 0 0 12px; font-size: 1rem; color: var(--text); letter-spacing: .02em; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col a { color: var(--muted); text-decoration: none; }
.footer__col a:hover, .footer__col a:focus-visible { color: var(--text); text-decoration: underline; }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 20px; }
.footer__bottom p { margin: 0; padding-right: 68px; }

/* Botão de voltar ao topo */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 18px rgba(0,0,0,.5); text-decoration: none; transition: opacity .25s ease, transform .2s ease, box-shadow .2s ease; }
.to-top:hover, .to-top:focus-visible { transform: translateY(-3px); box-shadow: 0 0 16px rgba(139, 92, 246, .8), 0 6px 18px rgba(0,0,0,.5); }
.to-top.is-hidden { opacity: 0; pointer-events: none; }

/* Banners */
.hero { position: relative; min-height: 200px; margin: 20px 0 8px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #0b0b14 center 78% / cover no-repeat; display: flex; align-items: flex-end; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,4,15,.85) 0%, rgba(7,4,15,.35) 60%, rgba(7,4,15,0) 100%); }
.hero__text { position: relative; z-index: 1; padding: 24px 28px; max-width: 560px; }
.hero__text h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1.1; text-shadow: 0 2px 12px #000; }
.hero__text p { margin: 0 0 16px; color: #ddd8f5; }
.hero .cta { margin: 0; }
.hero--home { background-image: url("/static/img/banners/hero.svg"); }
.hero--ps { background-image: url("/static/img/banners/cat-ps.svg"); }
.hero--switch { background-image: url("/static/img/banners/cat-switch.svg"); }
.hero--xbox { background-image: url("/static/img/banners/cat-xbox.svg"); }
.hero--outros { background-image: url("/static/img/banners/cat-outros.svg"); }
.hero--fixas { background-image: url("/static/img/banners/cat-outros.svg"); }
.hero--todas { background-image: url("/static/img/banners/cat-todas.svg"); }
.hero--cat { min-height: 110px; }
.hero--cat .hero__text { padding: 20px 24px; }
.hero--cat h1 { margin: 0; font-size: clamp(1.4rem, 4vw, 2rem); }
@media (min-width: 800px) { .hero { min-height: 260px; } .hero--cat { min-height: 130px; } }

/* Identidade: listras da marca */
.stripes { display: flex; height: 4px; }
.stripes i { flex: 1; }
.stripes i:nth-child(1) { background: #22c55e; }
.stripes i:nth-child(2) { background: #3b82f6; }
.stripes i:nth-child(3) { background: #ef4444; }
.stripes i:nth-child(4) { background: #facc15; }
.nav__channel { margin-left: auto; border-color: var(--border) !important; }
.nav__channel + .nav__channel { margin-left: 0; }
.nav__channel { font-weight: 700; transition: box-shadow .2s ease, filter .2s ease, transform .2s ease; }
.nav__channel--whatsapp { background: #25d366; border-color: #25d366 !important; color: #052e16 !important; }
.nav__channel--telegram { background: #29a9eb; border-color: #29a9eb !important; color: #04202e !important; }
.nav__channel--whatsapp:hover, .nav__channel--whatsapp:focus-visible { box-shadow: 0 0 10px 2px rgba(37, 211, 102, .75), 0 0 26px 6px rgba(37, 211, 102, .45); filter: brightness(1.08); transform: translateY(-1px); }
.nav__channel--telegram:hover, .nav__channel--telegram:focus-visible { box-shadow: 0 0 10px 2px rgba(41, 169, 235, .75), 0 0 26px 6px rgba(41, 169, 235, .45); filter: brightness(1.08); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .nav__channel { transition: none; transform: none !important; } }

/* Faixa deslizante (direita para a esquerda) */
.ticker { background: #1a1636; border-bottom: 1px solid var(--border); }
.ticker__in { display: flex; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.ticker__btn { margin: 0; padding: 4px 10px; font-size: .8rem; background: transparent; border: 1px solid var(--border); color: var(--text); flex: none; }
.ticker__viewport { overflow: hidden; flex: 1; min-width: 0; }
.ticker__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: ticker-slide 60s linear infinite; }
.ticker__track li { white-space: nowrap; padding-right: 48px; }
.ticker__track a { color: var(--text); text-decoration: none; }
.ticker__track a:hover { text-decoration: underline; }
.ticker__track strong { color: #ffd36b; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
@keyframes ticker-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; }
  .ticker__btn { display: none; }
}

/* Avisos laterais honestos */
.notices { position: fixed; z-index: 20; bottom: 12px; left: 12px; right: 12px; pointer-events: none; }
.notice-toast { pointer-events: auto; display: flex; gap: 8px; align-items: flex-start; max-width: 340px; background: #1a1636; border: 1px solid var(--accent); border-radius: 10px; padding: 10px 12px; font-size: .9rem; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.notice-toast[hidden] { display: none; }
.notice-toast a { color: var(--text); text-decoration: none; flex: 1; }
.notice-toast a:hover { text-decoration: underline; }
.spot a { display: flex; gap: 12px; align-items: center; }
.spot__img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 6px; flex: none; }
.spot__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spot__tag { color: var(--accent); font-weight: 800; letter-spacing: .06em; font-size: .72rem; }
.spot__title { font-size: .9rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot__price { color: var(--muted); font-size: .85rem; }
.notice-toast__close { margin: 0; padding: 0 6px; background: transparent; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; }
@media (min-width: 1500px) { .notices { right: auto; top: 220px; bottom: auto; } }

/* Banner da loja e manifesto */
.store { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 12px 0 28px; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--accent); background: linear-gradient(120deg, #1a1636, #0f0f1f); }
.store h2 { margin: 0 0 6px; }
.store p { margin: 0 0 6px; max-width: 760px; }
.store .cta { flex: none; }
.manifesto { text-align: center; padding: 28px 16px; margin-bottom: 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-weight: 700; letter-spacing: .02em; }
.manifesto p { margin: 0 auto; max-width: 760px; font-size: 1.05rem; }

/* Carrossel de ofertas da página inicial: uma linha só, com setas e passagem automática. */
.carousel { position: relative; --per: 2; --gap: 14px; }
.carousel__track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; margin: -2px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; scroll-snap-align: start; }
@media (min-width: 700px) { .carousel { --per: 3; } }
@media (min-width: 1000px) { .carousel { --per: 5; } }
.carousel__btn { position: absolute; top: 38%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: rgba(20, 20, 40, .92); color: #fff; font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); padding: 0 0 3px; }
.carousel__btn:hover, .carousel__btn:focus-visible { background: var(--accent); border-color: var(--accent); }
.carousel__btn--prev { left: -14px; }
.carousel__btn--next { right: -14px; }
.carousel__btn[hidden] { display: none; }
@media (max-width: 1300px) { .carousel__btn--prev { left: 4px; } .carousel__btn--next { right: 4px; } }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }
