/* Kencarte — vitrine pública. Regra: nada por cima da arte. */
:root {
  --az: #0b4ea2; --az2: #073a7a; --am: #ffc600; --vm: #e30613; --fundo: #f4f6fa; --texto: #1b1b1b; --suave: #667085;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--fundo); color: var(--texto); }
img { max-width: 100%; }
a { color: inherit; }

/* Faixa do tema */
.topo { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); color: var(--tx); }
.topo-in { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; min-height: 168px; padding: 14px 16px 16px; display: grid;
  grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; column-gap: 8px; }
.logo { grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; background: #fff; border-radius: 14px; padding: 5px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.logo img { display: block; height: 54px; width: auto; }
.frase { grid-column: 1; grid-row: 2; align-self: end; margin: 12px 0 0; font-weight: 900; font-size: clamp(20px, 5.4vw, 34px); line-height: 1.02; text-shadow: 0 2px 6px rgba(0,0,0,.28); }
.frase .f1, .frase .f2 { display: block; }
.frase .f2 { color: var(--ac); }
.frase .f3 { display: block; margin-top: 6px; font-size: clamp(12px, 3.2vw, 16px); font-weight: 600; text-shadow: none; opacity: .95; }
.mascote { grid-column: 2; grid-row: 1 / span 2; align-self: end; height: 150px; width: auto; margin-bottom: -16px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); animation: respira 3.2s ease-in-out infinite; transform-origin: bottom center; }
@keyframes respira { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-1deg); } }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

/* Conteúdo */
.conteudo { max-width: 1180px; margin: 0 auto; padding: 16px; }
.bt { display: inline-block; background: var(--vm); color: #fff; font-weight: 800; text-decoration: none; padding: 10px 16px; border-radius: 999px; white-space: nowrap; border: 0; font-size: 14px; }
.bt-claro { background: #fff; color: var(--az2); border: 1px solid #cdd6e6; }
.bt-zap { background: #1f9d55; }
.selo { display: inline-block; background: var(--am); color: #1b1b1b; font-weight: 800; font-size: 11px; letter-spacing: .02em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.barra { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #eef0f4; min-height: 40px; }
.conta { color: var(--suave); font-size: 13px; }

/* Destaque (carrossel) */
.carrossel { position: relative; min-width: 0; }
.trilho { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.trilho::-webkit-scrollbar { display: none; }
.destaque { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px rgba(16,24,40,.12); display: flex; flex-direction: column; }
.arte-link { display: block; text-decoration: none; }
.arte { position: relative; background: #eef1f6; }
.destaque .arte img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.destaque .info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; }
.info strong { display: block; font-size: 17px; }
.info small, .card-t small { display: block; color: var(--suave); font-size: 13px; margin-top: 2px; }
.seta { display: none; position: absolute; top: 45%; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--az2); font-size: 28px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; }
.seta.ant { left: -8px; } .seta.prox { right: -8px; }
.pontos { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.pontos span { width: 8px; height: 8px; border-radius: 50%; background: #c7d2e3; }
.pontos span.on { background: var(--az); }
.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 40px; margin: -20px 0 0 -28px; border-radius: 12px; background: var(--vm); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.play::after { content: ''; position: absolute; left: 22px; top: 11px; border-left: 16px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.sem-capa { display: grid; place-items: center; height: 240px; font-weight: 800; color: var(--az2); }

/* Também em oferta */
.vitrine h2 { color: var(--az2); font-size: 18px; margin: 22px 0 10px; }
.faixa { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
.card { flex: 0 0 46%; min-width: 0; max-width: 220px; scroll-snap-align: start; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; box-shadow: 0 2px 8px rgba(16,24,40,.08); }
.card .arte { aspect-ratio: 3 / 4; }
.card .arte img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.card .arte-video { background: #111; }
.card-t { padding: 8px 10px 10px; }
.card-t .selo { margin-bottom: 4px; }
.card-t strong { display: block; font-size: 14px; }

/* Vazio, rodapé, visualizador */
.vazio { text-align: center; padding: 28px 16px 36px; }
.vazio img { width: 190px; height: auto; }
.vazio h1 { color: var(--az2); font-size: 20px; margin: 10px 0 6px; }
.vazio p { color: var(--suave); margin: 0 0 16px; }
.rodape { text-align: center; padding: 22px 16px 30px; background: var(--az2); color: #cfe0ff; margin-top: 28px; }
.rodape p { margin: 10px 0 0; font-size: 13px; }
.visor h1 { font-size: 22px; margin: 12px 0 4px; color: var(--az2); }
.visor .barra { background: #fff; border-radius: 10px; border: 0; }
.voltar a { color: var(--az); font-weight: 700; text-decoration: none; }
.texto { color: #333; }
.paginas { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.pagina { width: 100%; height: auto; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.video { width: 100%; max-height: 80vh; background: #000; border-radius: 12px; margin: 12px 0; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 12px 0; border-radius: 12px; overflow: hidden; background: #111; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: #111; cursor: pointer; }
.embed-play img { width: 100%; height: 100%; object-fit: cover; }
.link-card { background: #fff; border-radius: 12px; padding: 12px; margin: 12px 0; text-align: center; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

@media (min-width: 900px) {
  .topo-in { min-height: 190px; padding: 18px 24px 20px; }
  .logo img { height: 66px; }
  .mascote { height: 180px; margin-right: 24px; }
  .conteudo { padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 22px; align-items: start; }
  .conteudo > .vazio, .conteudo.visor { grid-column: 1 / -1; }
  .visor { max-width: 860px; display: block; }
  .seta { display: block; }
  .vitrine h2 { margin-top: 0; }
  .faixa { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); overflow: visible; }
  .card { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body.previa { pointer-events: auto; }

/* Animações do tema (só na faixa do topo, atrás do mascote) */
.fx .p { position: absolute; top: -30px; will-change: transform; animation-iteration-count: infinite; animation-timing-function: linear; }
.fx.pausa .p, .fx.pausa .band, .fx.pausa .sol, .fx.pausa .mar, .fx.pausa .luz, .fx.pausa .neon { animation-play-state: paused; }
@keyframes kc-cai { to { transform: translate(var(--dx, 0), 260px) rotate(var(--rot, 360deg)); } }
@keyframes kc-sobe { from { transform: translate(0, 220px); opacity: 0; } 15% { opacity: 1; } to { transform: translate(var(--dx, 0), -40px); opacity: 0; } }
@keyframes kc-pisca { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes kc-balanca { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes kc-neon { 0%, 19%, 21%, 60%, 62%, 100% { opacity: 1; } 20%, 61% { opacity: .2; } }
@keyframes kc-gira { to { transform: rotate(360deg); } }
@keyframes kc-onda { to { background-position-x: 120px; } }
.fx .band { position: absolute; left: -10px; right: -10px; top: 0; height: 26px; display: flex; justify-content: space-around; animation: kc-balanca 3s ease-in-out infinite; transform-origin: top center; }
.fx .band i { width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 20px solid var(--c); }
.fx .luz { position: absolute; top: 4px; width: 8px; height: 8px; border-radius: 50%; animation: kc-pisca 1.2s infinite; background: currentColor; box-shadow: 0 0 8px currentColor; }
.fx .neon { position: absolute; right: 34%; top: 16px; font-weight: 900; font-size: 32px; color: #ffe600; text-shadow: 0 0 6px #ffe600, 0 0 18px #ff2d55; animation: kc-neon 2.6s infinite; }
.fx .sol { position: absolute; right: 30%; top: -30px; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, #fff6b0 0 30%, #ffd23f 31% 55%, transparent 56%); animation: kc-gira 18s linear infinite; }
.fx .mar { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: radial-gradient(circle at 15px -6px, transparent 14px, rgba(255,255,255,.55) 15px) 0 0 / 30px 22px repeat-x; animation: kc-onda 4s linear infinite; }

/* Assinatura */
.creditos { margin: 14px 0 0; font-size: 11px; color: rgba(255,255,255,.62); letter-spacing: .01em; }
.creditos span { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-weight: 700; color: var(--am); margin-right: 2px; }
.creditos b { color: #fff; font-weight: 700; }
.creditos a { color: inherit; text-decoration: none; }
.creditos a:hover b { text-decoration: underline; }
.creditos-insta { display: inline-flex; vertical-align: -2px; margin-left: 4px; opacity: .85; }
.creditos-insta:hover { opacity: 1; }

/* Baixar */
.bt-baixar { background: var(--az); display: inline-flex; align-items: center; gap: 6px; }
.bt svg, .baixar-pag svg { flex: none; }
.pag { margin: 0; }
.baixar-pag { display: inline-flex; align-items: center; gap: 5px; margin: 6px 0 0; color: var(--az); font-weight: 700; font-size: 13px; text-decoration: none; }
