/* Página Sobre (/p/sobre). Só carrega nela (layout.php: $page === 'about'). Tokens e "sticker" vêm do zovy.css. */
.ab { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(44px, 7vw, 72px); max-width: 1100px; margin: 12px auto 48px; }
.ab > * { margin: 0; }                                  /* o site põe margem embaixo de todo section: o espaçamento aqui é só o gap */
.ab h1, .ab h2, .ab h3 { font-family: var(--display); letter-spacing: -.015em; text-wrap: balance; }

/* ---------- topo ---------- */
.ab-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(22px, 4vw, 52px); padding: clamp(24px, 5vw, 56px); color: #fff; border: 3px solid var(--ink); border-radius: 34px; box-shadow: var(--sticker);
  background: radial-gradient(circle at 92% 6%, color-mix(in srgb, var(--lime) 34%, transparent), transparent 38%), radial-gradient(circle at 0% 112%, color-mix(in srgb, var(--pink) 52%, transparent), transparent 46%), linear-gradient(135deg, #4a27b8 0%, #2a1766 55%, var(--ink) 100%); }
.ab-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background: radial-gradient(rgba(255, 255, 255, .22) 1.4px, transparent 1.6px) 0 0 / 22px 22px; }
.ab-spark { position: absolute; z-index: -1; color: var(--gold); font-size: 30px; animation: abTwinkle 3s ease-in-out infinite; }
.ab-spark.s1 { top: 9%; left: 46%; } .ab-spark.s2 { bottom: 10%; left: 40%; color: var(--lime); font-size: 22px; animation-delay: -1s; }
.ab-spark.s3 { top: 14%; right: 6%; color: var(--cyan); font-size: 24px; animation-delay: -2s; } .ab-spark.s4 { bottom: 14%; right: 4%; font-size: 18px; animation-delay: -.5s; }
.ab-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 12px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; }
.ab-hero h1 { margin: 16px 0 14px; font-size: clamp(36px, 6.4vw, 66px); line-height: 1.02; text-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.ab-hero h1 em { font-style: normal; color: var(--lime); }
.ab-lead { max-width: 46ch; margin: 0 0 18px; color: #e6dcff; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.55; }
.ab-lead b { color: #fff; }
.ab-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.ab-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; background: rgb(255 255 255 / .12); border: 2px solid rgb(255 255 255 / .22); border-radius: 99px; font-size: 14px; font-weight: 700; }
.ab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ab-link { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.ab-hero-art { position: relative; display: grid; justify-items: center; gap: 16px; }
.ab-mascot { width: clamp(150px, 21vw, 230px); height: auto; filter: drop-shadow(0 12px 0 rgba(0, 0, 0, .25)); animation: abFloat 3.6s ease-in-out infinite; }
.ab-evo { display: grid; justify-items: center; gap: 6px; width: min(100%, 340px); padding: 16px 20px 14px; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 6px 0 var(--ink); rotate: 1.5deg; }
.ab-evo img { height: auto; }
.ab-evo-old img { width: min(230px, 100%); } .ab-evo-new img { width: min(160px, 100%); }
.ab-evo small { display: block; text-align: center; color: var(--muted); font: 800 11px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.ab-evo-arrow { color: var(--violet); animation: abBob 1.8s ease-in-out infinite; }

/* ---------- números ---------- */
.ab-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.ab-num { display: grid; gap: 4px; padding: 20px 14px 16px; text-align: center; background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 5px 0 var(--ink); }
.ab-num b { display: block; color: var(--a); font: 800 clamp(34px, 5vw, 50px)/1 var(--display); }
.ab-num > span { color: var(--muted); font-size: 14px; font-weight: 700; line-height: 1.3; }

/* ---------- títulos das seções ---------- */
.ab-head { max-width: 660px; margin: 0 auto 28px !important; text-align: center; }
.ab-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 13px; background: var(--soft); color: var(--violet); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.3 var(--ui); letter-spacing: .06em; text-transform: uppercase; }
.ab-head h2, .ab-pa h2, .ab-cta h2, .ab-src h2 { margin: 12px 0 8px; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; }
.ab-head p { margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 18px); }

/* ---------- linha do tempo ---------- */
.ab-line { position: relative; display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.ab-line::before { content: ""; position: absolute; left: 26px; top: 28px; bottom: 28px; width: 4px; border-radius: 2px; background: repeating-linear-gradient(var(--ink) 0 8px, transparent 8px 16px); opacity: .28; }
.ab-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 18px; }
.ab-node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; color: #fff; background: var(--a); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); }
.ab-card { padding: 20px 22px 22px; background: #fff; border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 5px 0 var(--ink); }
.ab-when { display: inline-block; padding: 3px 12px; color: #fff; background: var(--a); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.4 var(--ui); letter-spacing: .06em; text-transform: uppercase; }
.ab-card h3 { margin: 10px 0 6px; font-size: clamp(20px, 3vw, 27px); line-height: 1.15; }
.ab-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.ab-card p a { color: var(--violet); font-weight: 800; }
.ab-old, .ab-new { display: block; height: auto; margin-top: 16px; }
.ab-old { width: min(270px, 72%); } .ab-new { width: min(200px, 60%); }

/* ---------- novidades ---------- */
.ab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ab-fc { display: flex; flex-direction: column; gap: 8px; padding: 22px; color: inherit; text-decoration: none; background: #fff; border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 6px 0 var(--ink); transition: translate .25s var(--ease-pop), box-shadow .25s; }
a.ab-fc:hover { translate: 0 -5px; box-shadow: 0 11px 0 var(--ink); }
.ab-fi { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px; color: #fff; background: var(--a); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 3px 0 var(--ink); rotate: -4deg; }
.ab-fc h3 { margin: 4px 0 0; font-size: 21px; line-height: 1.2; }
.ab-fc p { flex: 1; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ab-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--violet); font-weight: 800; font-size: 15px; }

/* ---------- Originals ---------- */
.ab-covers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.ab-cover { display: flex; flex-direction: column; gap: 6px; color: inherit; text-align: center; text-decoration: none; }
.ab-cimg { display: block; aspect-ratio: 1; overflow: hidden; background: var(--a); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 5px 0 var(--ink); transition: translate .25s var(--ease-pop), rotate .25s var(--ease-pop), box-shadow .25s; }
.ab-cimg img { width: 100%; height: 100%; object-fit: cover; }
.ab-cover:hover .ab-cimg { translate: 0 -5px; rotate: -2deg; box-shadow: 0 10px 0 var(--ink); }
.ab-cover strong { margin-top: 6px; font: 800 15px/1.2 var(--display); }
.ab-cover small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-center { margin: 26px 0 0 !important; text-align: center; }

/* ---------- Pouso Alegre ---------- */
.ab-pa { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow: hidden; background: #fff; border: 3px solid var(--ink); border-radius: 34px; box-shadow: var(--sticker); }
.ab-pa-art { position: relative; min-height: 320px; border-right: 3px solid var(--ink); }
.ab-pa-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ab-tag { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 14px/1 var(--ui); }
.ab-pa-copy { display: grid; align-content: center; gap: 12px; padding: clamp(22px, 4vw, 44px); }
.ab-pa-copy > .ab-eyebrow { justify-self: start; }
.ab-pa-copy h2 { margin: 0; }
.ab-pa-copy p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.65; }

/* ---------- de onde vêm os jogos ---------- */
.ab-src { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ab-src-col { padding: 24px 26px; background: var(--soft); border: 3px solid var(--ink); border-radius: 26px; }
.ab-src h2 { margin: 0 0 10px; font-size: 26px; }
.ab-src p { margin: 0 0 12px; line-height: 1.65; } .ab-src p:last-child { margin-bottom: 0; }
.ab-src a { color: var(--violet); font-weight: 800; }

/* ---------- chamada final ---------- */
.ab-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(18px, 4vw, 40px); padding: clamp(22px, 4vw, 44px); color: #fff; border: 3px solid var(--ink); border-radius: 34px; box-shadow: var(--sticker);
  background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--lime) 28%, transparent), transparent 40%), linear-gradient(135deg, #4a27b8 0%, #2a1766 60%, var(--ink) 100%); }
.ab-cta-mascot { width: clamp(110px, 17vw, 190px); height: auto; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .25)); animation: abFloat 3.6s ease-in-out infinite; }
.ab-cta h2 { margin: 0 0 8px; }
.ab-cta p { max-width: 52ch; margin: 0 0 18px; color: #e6dcff; font-size: clamp(16px, 2vw, 18px); line-height: 1.55; }
.ab-cta .btn:not(.btn-lime) { background: #fff; color: var(--ink); }
.ab-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ab-pages a { padding: 8px 16px; color: var(--ink); text-decoration: none; background: #fff; border: 2px solid var(--ink); border-radius: 99px; font-size: 14px; font-weight: 700; transition: background .15s; }
.ab-pages a:hover { background: var(--lime); }

/* ---------- aparecer ao rolar (só com JavaScript; sem JS tudo já aparece) ---------- */
.ab-js .ab-reveal { opacity: 0; translate: 0 24px; transition: opacity .6s ease, translate .6s var(--ease-pop); transition-delay: calc(var(--i, 0) * .09s); }
.ab-js .ab-reveal.in { opacity: 1; translate: 0 0; }

@keyframes abFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes abBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes abTwinkle { 0%, 100% { opacity: .25; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) {
  .ab-spark, .ab-mascot, .ab-cta-mascot, .ab-evo-arrow { animation: none; }
  .ab-js .ab-reveal { opacity: 1; translate: none; transition: none; }
  .ab-fc, .ab-cimg { transition: none; }
}

@media (max-width: 960px) {
  .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-covers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ab-hero { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
  .ab-hero-art { justify-items: stretch; }
  .ab-mascot { display: none; }
  .ab-evo { width: 100%; rotate: 0deg; }
  .ab-spark.s1 { left: auto; right: 12%; }
  .ab-pa { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
  .ab-pa-art { min-height: 230px; border-right: 0; border-bottom: 3px solid var(--ink); }
  .ab-src { grid-template-columns: minmax(0, 1fr); }
  .ab-cta { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; border-radius: 26px; }
  .ab-cta .ab-actions { justify-content: center; }
  .ab-cta-mascot { order: -1; width: 120px; }
}
@media (max-width: 600px) {
  .ab-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ab-step { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .ab-node { width: 44px; height: 44px; } .ab-node svg { width: 20px; height: 20px; }
  .ab-line::before { left: 20px; }
  .ab-card { padding: 16px 16px 18px; border-radius: 22px; }
  .ab-num { padding: 16px 10px 14px; }
  .ab-covers { gap: 12px; }
}
