/* ==================================================================
   PLANETA PIPO — folha de estilo do site público
   Linguagem visual: "adesivo de brinquedo" — contorno grosso,
   sombra sólida deslocada, botões de doce que afundam ao toque.
   ================================================================== */

:root {
  --ink: #1C1446;          /* tinta principal (contornos e texto) */
  --night: #1C1446;        /* céu do planeta */
  --cloud: #F2F5FF;        /* fundo claro */
  --white: #FFFFFF;
  --sun: #FFC93C;
  --sky: #3EC1F3;
  --coral: #FF6B6B;
  --mint: #2ED3B7;
  --lime: #7ED957;
  --grape: #7B2FF7;
  --tangerine: #FF8A00;
  --pink: #FF2E88;
  --neon: #00F0FF;
  --acid: #B6FF00;

  --bg: var(--cloud);
  --text: var(--ink);
  --muted: #5B5684;
  --card: var(--white);
  --head-bg: var(--night);
  --head-text: #fff;
  --accent: var(--sun);
  --accent-ink: var(--ink);

  --f-display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --line: 3px;
  --lift: 6px;
  --wrap: 1180px;
}

/* ---------- Temas dos mundos ---------- */
.theme-kids {
  --bg: #FFF7DA;
  --head-bg: var(--sky);
  --accent: var(--coral);
  --accent-ink: #fff;
}
.theme-radical {
  --bg: #F1E9FF;
  --head-bg: var(--grape);
  --accent: var(--tangerine);
  --accent-ink: #fff;
}
.theme-arena {
  --ink: #05030F;
  --bg: #120E2E;
  --text: #EDEBFF;
  --muted: #A9A3D6;
  --card: #1D1747;
  --head-bg: #0B0822;
  --accent: var(--pink);
  --accent-ink: #fff;
  --f-display: 'Chakra Petch', 'Nunito', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 99; font-weight: 800; }
.skip:focus { top: 12px; }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
main { display: block; padding-bottom: 40px; }
small { font-size: .78em; }

/* ---------- Botões de doce ---------- */
.btn {
  --b: var(--accent); --bi: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 800 1.05rem/1 var(--f-display);
  padding: 15px 26px 13px;
  color: var(--bi); background: var(--b);
  border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: 0 var(--lift) 0 var(--ink);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .25s ease, filter .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 calc(var(--lift) + 3px) 0 var(--ink); filter: saturate(1.25) brightness(1.06); }
.btn:active { transform: translateY(var(--lift)); box-shadow: 0 0 0 var(--ink); }
.btn-play { --b: var(--sun); --bi: var(--ink); }
.btn-play:hover { --b: #FFB000; }
.btn-ghost { --b: var(--white); --bi: var(--ink); }
.btn-ghost:hover { --b: var(--sun); }
.btn-story { --b: var(--mint); --bi: var(--ink); }
.btn-story:hover { --b: var(--sun); }
.btn-huge { font-size: 1.4rem; padding: 20px 38px 17px; }
.theme-arena .btn { box-shadow: 0 var(--lift) 0 #000, 0 0 22px rgba(255, 46, 136, .35); }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--head-bg); color: var(--head-text);
  border-bottom: var(--line) solid var(--ink);
}
.theme-arena .topbar { border-bottom-color: var(--pink); box-shadow: 0 0 24px rgba(255, 46, 136, .35); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand-pipo { width: 46px; height: auto; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .brand-pipo { transform: rotate(-12deg) scale(1.08); }
.brand-name { font: 800 1.45rem/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.theme-arena .brand-name { font-family: 'Baloo 2', var(--f-body); }
.mainnav { display: flex; gap: 6px; margin-left: 8px; }
.navworld {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 800 1.12rem/1 var(--f-display);
  border: 2px solid transparent;
  transition: background-color .2s, transform .15s, border-color .2s;
}
.navworld > span { font-size: 1.3em; line-height: 1; }
.navworld:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); border-color: rgba(255, 255, 255, .5); }
.navworld-kids:hover { background: var(--sun); color: var(--ink); }
.navworld-radical:hover { background: var(--tangerine); color: var(--ink); }
.navworld-arena:hover { background: var(--pink); color: #fff; }
.navworld-story:hover { background: var(--mint); color: var(--ink); }
.navworld-family:hover { background: #fff; color: var(--ink); }
.searchbox { margin-left: auto; display: flex; align-items: center; background: #fff; border: var(--line) solid var(--ink); border-radius: 999px; overflow: hidden; }
.searchbox input { border: 0; outline: 0; padding: 9px 4px 9px 16px; width: 150px; font: 600 .95rem var(--f-body); color: var(--ink); background: transparent; }
.searchbox button { border: 0; background: var(--sun); color: var(--ink); width: 42px; height: 40px; display: grid; place-items: center; cursor: pointer; border-left: var(--line) solid var(--ink); }
.soundbtn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: var(--line) solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s, background-color .2s; }
.soundbtn:active { transform: translateY(4px); box-shadow: none; }
.soundbtn:hover { background: var(--sun); }
.soundbtn .ic-off { display: none; }
.soundbtn[aria-pressed="false"] .ic-on { display: none; }
.soundbtn[aria-pressed="false"] .ic-off { display: block; }
.soundbtn[aria-pressed="false"] { background: #DCD9EE; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 0; font-size: .9rem; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }
.crumbs a:last-child { color: var(--text); }

/* ---------- Céu estrelado ---------- */
.stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 8% 20%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 22% 70%, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 35% 12%, #FFE58A 50%, transparent 52%),
    radial-gradient(2px 2px at 48% 82%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 63% 25%, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 77% 60%, #9EF3FF 50%, transparent 52%),
    radial-gradient(2px 2px at 88% 14%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 94% 78%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 14% 46%, #FFB3CF 50%, transparent 52%),
    radial-gradient(2px 2px at 56% 52%, #fff 50%, transparent 52%);
  animation: twinkle 4s ease-in-out infinite alternate;
}
.stars::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 30% 35%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 70% 40%, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 82% 30%, #FFE58A 50%, transparent 52%),
    radial-gradient(2px 2px at 5% 85%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 42% 60%, #9EF3FF 50%, transparent 52%);
  animation: twinkle 3s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }

/* ---------- HERO da página inicial ---------- */
.hero, .story-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 40%, #33287A 0%, var(--night) 60%);
  color: #fff; padding: 40px 0 90px;
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; color: var(--bg); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 24px; }
.hero-hello {
  display: inline-block; font: 700 1rem/1.3 var(--f-display);
  background: var(--mint); color: var(--ink); padding: 8px 16px; border-radius: 18px 18px 18px 4px;
  border: var(--line) solid var(--ink); margin-bottom: 18px;
}
.hero h1 { color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); max-width: 13ch; }
.hero-lead { font-size: 1.15rem; color: #DCD8FF; max-width: 46ch; margin-bottom: 26px; }

/* Palco: planeta + Pipo + marcadores dos mundos */
.stage { position: relative; width: 100%; max-width: 620px; margin: 9% auto 0; aspect-ratio: 1; }
.stage-planet { width: 100%; height: 100%; animation: float 7s ease-in-out infinite; }
.stage-planet g[clip-path] ellipse[fill="#fff"] { animation: drift 16s linear infinite alternate; }
.stage-pipo { position: absolute; left: 39%; top: -6.5%; width: 22%; z-index: 3; animation: bob 3.4s ease-in-out infinite; cursor: pointer; }
.stage-pipo .pipo { width: 100%; height: auto; overflow: visible; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes drift { from { transform: translateX(-18px); } to { transform: translateX(22px); } }

.pipo-say {
  position: absolute; left: 62%; top: -15%; z-index: 4; max-width: 220px;
  background: #fff; color: var(--ink); font: 700 .98rem/1.3 var(--f-display);
  padding: 10px 14px; border: var(--line) solid var(--ink); border-radius: 18px 18px 18px 4px;
  box-shadow: 0 4px 0 var(--ink);
  opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1);
  pointer-events: none;
}
.pipo-say.show { opacity: 1; transform: none; }

.pins { position: absolute; inset: 0; z-index: 2; }
.pin {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  border: var(--line) solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  text-decoration: none; color: var(--ink); white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s, background-color .25s;
  animation: popin .6s cubic-bezier(.3, 1.6, .5, 1) both;
}
.pin::after {
  content: ""; position: absolute; left: 26px; bottom: -14px; width: 14px; height: 14px;
  background: inherit; border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink);
  transform: rotate(45deg); z-index: -1;
}
.pin:hover { transform: translate(-50%, -58%) scale(1.07); box-shadow: 0 9px 0 var(--ink); }
.pin:active { transform: translate(-50%, -44%); box-shadow: 0 1px 0 var(--ink); }
.pin-emoji { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: var(--line) solid var(--ink); font-size: 1.35rem; }
.pin-text { display: flex; flex-direction: column; line-height: 1.05; }
.pin-name { font: 800 1.08rem/1.05 var(--f-display); }
.pin-age { font-size: .78rem; font-weight: 800; opacity: .8; }
.pin-kids { background: var(--sun); left: 27%; top: 54%; animation-delay: .35s; }
.pin-kids:hover { background: #FFE07A; }
.pin-radical { background: var(--tangerine); left: 74%; top: 30%; animation-delay: .55s; }
.pin-radical:hover { background: #FFB04D; }
.pin-arena { background: var(--pink); color: #fff; left: 70%; top: 72%; animation-delay: .75s; }
.pin-arena:hover { background: #FF5AA2; }
.pin-arena .pin-emoji { background: #1D1747; border-color: var(--ink); }
.pin::before { content: ""; position: absolute; inset: -8px; border-radius: 999px; border: 3px solid currentColor; opacity: 0; animation: ring 2.6s ease-out infinite; animation-delay: inherit; }
.pin-kids::before { color: var(--sun); }
.pin-radical::before { color: var(--tangerine); }
.pin-arena::before { color: var(--pink); }
@keyframes popin { from { opacity: 0; transform: translate(-50%, -20%) scale(.4); } }
@keyframes ring { 0% { opacity: .8; transform: scale(.95); } 70%, 100% { opacity: 0; transform: scale(1.18); } }

/* Animações do Pipo */
.pipo .pipo-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
.pipo .pipo-pupils { transition: transform .12s ease-out; }
.pipo .pipo-star { transform-box: fill-box; transform-origin: center; animation: starglow 2.2s ease-in-out infinite; }
.pipo-hero .pipo-arm-r, .pipo-wave .pipo-arm-r, .pipo-empty .pipo-arm-r, .pipo-404 .pipo-arm-r { transform-box: fill-box; transform-origin: 0% 100%; animation: wave 3.2s ease-in-out infinite; }
@keyframes blink { 0%, 44%, 48%, 92%, 96%, 100% { transform: scaleY(1); } 46%, 94% { transform: scaleY(.08); } }
@keyframes starglow { 0%, 100% { transform: scale(1) rotate(0); filter: none; } 50% { transform: scale(1.18) rotate(18deg); filter: drop-shadow(0 0 6px #FFE58A); } }
@keyframes wave { 0%, 55%, 100% { transform: rotate(0); } 62% { transform: rotate(-22deg); } 70% { transform: rotate(12deg); } 78% { transform: rotate(-22deg); } 86% { transform: rotate(8deg); } }
.stage-pipo.jump { animation: jump .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes jump { 0% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(6px) scale(1.12, .86); } 45% { transform: translateY(-60px) scale(.94, 1.08) rotate(-8deg); } 75% { transform: translateY(0) scale(1.08, .92); } 100% { transform: translateY(0) scale(1); } }

/* ---------- Destaque ---------- */
.spotlight { margin-top: 10px; }
.spot-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r-lg);
  box-shadow: 0 8px 0 var(--ink); text-decoration: none; overflow: hidden;
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s;
}
.spot-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 12px 0 var(--ink); }
.spot-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; border-right: var(--line) solid var(--ink); }
.spot-body { padding: 28px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.spot-kicker { font: 800 .95rem/1 var(--f-display); background: var(--sun); padding: 7px 12px; border-radius: 10px; border: 2px solid var(--ink); }
.spot-title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0; }
.spot-desc { color: var(--muted); font-size: 1.08rem; }
.spot-kids { background: #FFFDF2; }

/* ---------- Prateleiras dos mundos ---------- */
.shelf { padding: 44px 0 50px; margin-top: 40px; position: relative; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.shelf-head h2 { margin: 0; }
.shelf-head h2 small { font: 800 .85rem/1 var(--f-body); padding: 5px 10px; border-radius: 999px; border: 2px solid currentColor; vertical-align: middle; margin-left: 6px; }
.shelf-more { font: 800 1rem var(--f-display); text-decoration: none; border-bottom: 3px solid currentColor; padding-bottom: 1px; }
.shelf-more:hover { opacity: .75; }
.shelf-tag { margin: 0 0 22px; font-weight: 700; opacity: .85; }
.shelf-kids { background: var(--sun); color: var(--ink); background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .45) 0 40px, transparent 41px), radial-gradient(circle at 92% 80%, rgba(255, 255, 255, .35) 0 70px, transparent 71px); }
.shelf-radical { background: var(--grape); color: #fff; background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 22px, transparent 22px 44px); }
.shelf-arena { background: #120E2E; color: #EDEBFF; box-shadow: inset 0 3px 0 var(--pink), inset 0 -3px 0 var(--neon); background-image: linear-gradient(rgba(0, 240, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, .07) 1px, transparent 1px); background-size: 34px 34px; }
.shelf-arena h2 { font-family: 'Chakra Petch', var(--f-display); text-shadow: 0 0 18px rgba(255, 46, 136, .6); }

/* ---------- Grade e cartões de jogo ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.gcard { min-width: 0; }
.gcard-link {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; color: var(--ink); text-decoration: none;
  border: var(--line) solid var(--ink); border-radius: var(--r-md); overflow: hidden;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s;
}
a.gcard-link:hover { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 12px 0 var(--ink); }
a.gcard-link:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.gcard-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #E8E6F5; border-bottom: var(--line) solid var(--ink); overflow: hidden; }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
a.gcard-link:hover .gcard-media img { transform: scale(1.07); }
.gcard-play {
  position: absolute; right: 10px; bottom: 10px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sun); color: var(--ink);
  border: var(--line) solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  transform: scale(.85); transition: transform .25s cubic-bezier(.3, 1.8, .5, 1), background-color .2s;
}
.gcard-play svg { width: 24px; margin-left: 3px; }
a.gcard-link:hover .gcard-play { transform: scale(1.12) rotate(-8deg); background: var(--mint); }
.gcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gcard-title { font: 800 1.12rem/1.15 var(--f-display); }
.gcard-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; }
.tag { font: 800 .78rem/1 var(--f-body); padding: 5px 9px; border-radius: 999px; background: #EFEDFB; color: var(--ink); text-decoration: none; border: 2px solid var(--ink); white-space: nowrap; }
.plays { font-size: .8rem; font-weight: 800; color: var(--muted); }
.gcard-kids .gcard-link { background: #FFFBEA; }
.gcard-radical .gcard-link { background: #F6F0FF; }
.gcard-arena .gcard-link { background: #1D1747; color: #EDEBFF; border-color: #05030F; box-shadow: 0 6px 0 #05030F, 0 0 0 2px rgba(0, 240, 255, .35); }
.gcard-arena a.gcard-link:hover { box-shadow: 0 12px 0 #05030F, 0 0 26px rgba(255, 46, 136, .55); }
.gcard-arena .tag { background: #2A2163; color: #EDEBFF; border-color: var(--neon); }
.gcard-arena .gcard-title { font-family: 'Chakra Petch', var(--f-display); }
.is-soon .gcard-media img { filter: saturate(.55) brightness(.9); }
.gcard-soon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg);
  font: 800 1.05rem/1 var(--f-display); background: #fff; color: var(--ink);
  padding: 9px 16px; border: var(--line) solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink);
}
.is-soon .gcard-link { cursor: default; }

/* ---------- Categorias ---------- */
.cats { margin-top: 56px; }
.catrow { display: flex; flex-wrap: wrap; gap: 14px; }
.catchip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 10px;
  background: #fff; color: var(--ink); text-decoration: none; font: 800 1.08rem/1 var(--f-display);
  border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: 0 5px 0 var(--ink);
  transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), box-shadow .15s, background-color .25s;
}
.catchip-ic { width: 40px; height: 40px; display: grid; place-items: center; background: var(--cloud); border-radius: 50%; border: 2px solid var(--ink); font-size: 1.25rem; transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.catchip:nth-child(6n+1):hover { background: var(--sun); }
.catchip:nth-child(6n+2):hover { background: var(--mint); }
.catchip:nth-child(6n+3):hover { background: var(--coral); }
.catchip:nth-child(6n+4):hover { background: var(--sky); }
.catchip:nth-child(6n+5):hover { background: var(--lime); }
.catchip:nth-child(6n+6):hover { background: #C9A8FF; }
.catchip:hover { transform: translateY(-4px); box-shadow: 0 9px 0 var(--ink); }
.catchip:hover .catchip-ic { transform: rotate(-14deg) scale(1.15); }
.catchip:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.theme-arena .catchip { background: var(--card); color: var(--text); border-color: #000; }

/* ---------- Confiança (pais) ---------- */
.trust {
  margin-top: 56px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center;
  background: #fff; border: var(--line) solid var(--ink); border-radius: var(--r-lg); padding: 30px 34px; box-shadow: 0 8px 0 var(--ink);
}
.trust-pipo .pipo { width: 100%; }
.trust-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.trust-list li { padding-left: 34px; position: relative; }
.trust-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231C1446' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border: 2px solid var(--ink); }

/* ---------- Página de mundo ---------- */
.worldhero { padding: 34px 0 30px; position: relative; overflow: hidden; }
.worldhero-in { display: flex; align-items: center; gap: 28px; }
.worldhero-ball {
  flex: none; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center;
  border: var(--line) solid var(--ink); box-shadow: 0 8px 0 var(--ink); font-size: 3.6rem;
  animation: float 6s ease-in-out infinite;
}
.worldhero-age { display: inline-block; margin: 0 0 6px; font: 800 .95rem/1 var(--f-display); padding: 7px 12px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; color: var(--ink); }
.worldhero h1 { margin-bottom: 6px; }
.worldhero-tag { font-size: 1.15rem; font-weight: 700; margin: 0; opacity: .85; }
.theme-kids .worldhero { background: var(--sky); color: var(--ink); border-bottom: var(--line) solid var(--ink); }
.theme-kids .worldhero-ball { background: var(--sun); }
.theme-radical .worldhero { background: var(--grape); color: #fff; border-bottom: var(--line) solid var(--ink); background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .06) 0 22px, transparent 22px 44px); }
.theme-radical .worldhero-ball { background: var(--tangerine); }
.theme-arena .worldhero { background: #0B0822; border-bottom: 3px solid var(--pink); background-image: linear-gradient(rgba(0, 240, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, .08) 1px, transparent 1px); background-size: 34px 34px; }
.theme-arena .worldhero-ball { background: #1D1747; border-color: var(--neon); box-shadow: 0 0 30px rgba(0, 240, 255, .5), 0 8px 0 #000; }
.theme-arena .worldhero h1 { text-shadow: 0 0 22px rgba(255, 46, 136, .7); }
.world-list { margin-top: 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter { padding: 9px 16px; border-radius: 999px; text-decoration: none; font: 800 .98rem/1 var(--f-display); background: var(--card); color: var(--text); border: var(--line) solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s, background-color .2s; }
.filter:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.filter.is-on { background: var(--accent); color: var(--accent-ink); }
.theme-arena .filter { border-color: #000; }
.seo-text { margin-top: 50px; }
.seo-text p { max-width: 70ch; }
.seo-text p { color: var(--muted); }
.other-worlds { margin-top: 44px; }
.ow-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ow { display: flex; align-items: center; gap: 12px; padding: 14px 22px 14px 14px; border-radius: var(--r-md); border: var(--line) solid var(--ink); box-shadow: 0 6px 0 var(--ink); text-decoration: none; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.ow:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 10px 0 var(--ink); }
.ow strong { display: block; font: 800 1.15rem/1.1 var(--f-display); }
.ow small { font-weight: 800; opacity: .8; }
.ow-emoji { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--ink); font-size: 1.6rem; }
.ow-kids { background: var(--sun); color: var(--ink); }
.ow-radical { background: var(--grape); color: #fff; }
.ow-arena { background: #1D1747; color: #EDEBFF; box-shadow: 0 6px 0 #000, 0 0 18px rgba(255, 46, 136, .4); }

.pagehero { padding: 30px 0 10px; }
.pagehero p { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.empty { text-align: center; padding: 30px 16px; display: grid; justify-items: center; gap: 10px; }
.empty .pipo { width: 140px; }
.count { font-weight: 800; color: var(--muted); }
.bigsearch { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.bigsearch input { flex: 1 1 260px; font: 700 1.1rem var(--f-body); padding: 14px 20px; border-radius: 999px; border: var(--line) solid var(--ink); box-shadow: 0 5px 0 var(--ink); color: var(--ink); }

/* ---------- Página do jogo ---------- */
.game-top { margin-top: 14px; }
.game-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.game-head h1 { margin: 0; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.game-sub { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.tag-world { background: var(--accent); color: var(--accent-ink); }
.player {
  position: relative; width: 100%; aspect-ratio: var(--ar, 16 / 9); max-height: 78vh;
  margin-inline: auto; background: #0B0822; overflow: hidden;
  border: var(--line) solid var(--ink); border-radius: var(--r-lg); box-shadow: 0 10px 0 var(--ink);
}
.player-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.55) saturate(1.2); transform: scale(1.05); }
.player-start { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.player-start .btn-huge { animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.player-start .btn-huge:hover { animation: none; }
.player-soon { color: #fff; font: 800 1.4rem/1.3 var(--f-display); background: rgba(28, 20, 70, .75); padding: 18px 24px; border-radius: 18px; border: 3px solid #fff; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.player:fullscreen { border: 0; border-radius: 0; max-height: none; aspect-ratio: auto; width: 100vw; height: 100vh; }
.player-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.pbtn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font: 800 .98rem/1 var(--f-display); background: var(--card); color: var(--text); border: var(--line) solid var(--ink); box-shadow: 0 4px 0 var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s, background-color .2s, color .2s; }
.pbtn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); background: var(--sun); color: var(--ink); }
.pbtn:active { transform: translateY(4px); box-shadow: none; }
.pbtn.is-liked { background: var(--coral); color: #fff; }
.pbtn.is-liked svg { animation: heart .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes heart { 0% { transform: scale(.6); } 60% { transform: scale(1.4); } 100% { transform: scale(1); } }
.theme-arena .pbtn, .theme-arena .player { border-color: #000; }
.game-info { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.howto { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r-lg); padding: 24px 28px; box-shadow: 0 6px 0 var(--ink); margin-bottom: 26px; }
.howto ol { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.howto li { counter-increment: s; position: relative; padding-left: 46px; min-height: 32px; }
.howto li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--ink); font: 800 1rem/1 var(--f-display); }
.controls { margin: 0; color: var(--muted); }
.prose { max-width: 68ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { font-weight: 800; }
.game-side h2 { font-size: 1.4rem; }
.side-list { display: grid; gap: 18px; }

/* ---------- Página institucional ---------- */
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: start; margin-top: 10px; }
.page-pipo .pipo { width: 100%; position: sticky; top: 100px; }
.notfound { text-align: center; padding: 50px 0; display: grid; justify-items: center; gap: 8px; }
.notfound .pipo { width: 170px; animation: bob 3s ease-in-out infinite; }

/* ---------- História do planeta ---------- */
.story-hero { padding-bottom: 110px; }
.story-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.story-hero h1 { color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.stage-story { margin-top: 12%; }
.chapter { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 46px; align-items: center; margin-top: 70px; }
.chapter-flip { grid-template-columns: minmax(0, 1fr) 260px; }
.chapter-flip .chapter-art { order: 2; }
.chapter-art { display: grid; place-items: center; }
.chapter-art svg { width: 100%; max-width: 240px; }
.chapter-spark { aspect-ratio: 1; background: var(--night); border-radius: 50%; border: var(--line) solid var(--ink); box-shadow: 0 8px 0 var(--ink); padding: 34px; }
.spark-spin { transform-origin: 100px 100px; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chapter-n { display: inline-block; font: 800 .95rem/1 var(--f-display); background: var(--sun); color: var(--ink); padding: 7px 12px; border-radius: 10px; border: 2px solid var(--ink); margin-bottom: 12px; }
.chapter-text p { font-size: 1.12rem; }
.regions { margin-top: 80px; text-align: center; }
.regions-lead { font-size: 1.15rem; color: var(--muted); }
.region-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; text-align: left; }
.region { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--r-lg); border: var(--line) solid var(--ink); box-shadow: 0 8px 0 var(--ink); text-decoration: none; transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s; }
.region:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 14px 0 var(--ink); }
.region-emoji { width: 70px; height: 70px; display: grid; place-items: center; font-size: 2.2rem; background: #fff; border: var(--line) solid var(--ink); border-radius: 50%; margin-bottom: 8px; }
.region-name { font: 800 1.5rem/1.1 var(--f-display); }
.region-age { font-weight: 800; opacity: .8; }
.region-desc { margin: 6px 0 14px; }
.region-go { margin-top: auto; align-self: flex-start; font: 800 1rem/1 var(--f-display); padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.region-kids { background: var(--sun); color: var(--ink); }
.region-radical { background: var(--grape); color: #fff; }
.region-arena { background: #1D1747; color: #EDEBFF; box-shadow: 0 8px 0 #000, 0 0 24px rgba(255, 46, 136, .45); }
.region-arena .region-name { font-family: 'Chakra Petch', var(--f-display); }
.promise { margin-top: 80px; }
.promise-box { background: var(--mint); border: var(--line) solid var(--ink); border-radius: var(--r-lg); box-shadow: 0 10px 0 var(--ink); padding: 40px clamp(22px, 5vw, 56px); display: grid; justify-items: start; }
.promise-box ul { list-style: none; padding: 0; display: grid; gap: 12px; font-size: 1.12rem; }
.promise-box li { padding-left: 38px; position: relative; }
.promise-box li::before { content: "★"; position: absolute; left: 0; top: -2px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--sun); border: 2px solid var(--ink); border-radius: 50%; font-size: .95rem; }

/* Revelação na rolagem (história) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, 1.2, .4, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Rodapé ---------- */
.footer { margin-top: 70px; background: var(--night); color: #DCD8FF; padding: 50px 0 24px; border-top: var(--line) solid var(--ink); }
.theme-arena .footer { background: #0B0822; border-top-color: var(--pink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer-text { font-size: .95rem; max-width: 36ch; }
.footer-h { font: 800 1.1rem var(--f-display); color: #fff; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--sun); text-decoration: underline; }
.copy { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; }

/* ---------- Partículas de clique ---------- */
.burst { position: fixed; pointer-events: none; z-index: 100; width: 10px; height: 10px; border-radius: 50%; animation: burst .6s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1219px) {
  /* menu desce para uma linha própria, com os itens dividindo a largura (todos sempre visíveis) */
  .topbar-in { flex-wrap: wrap; row-gap: 0; }
  .mainnav {
    order: 5; width: 100%; margin: 0 0 8px;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px;
  }
  .navworld { justify-content: center; padding: 10px 8px; font-size: 1.08rem; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
}
@media (max-width: 640px) {
  /* no celular: emoji em cima e nome embaixo, para caber até em telas de 320 px */
  .topbar { position: relative; } /* no celular o topo rola junto com a página, para o menu grande não tirar espaço dos jogos */
  .mainnav { gap: 4px; margin-bottom: 6px; }
  .navworld { flex-direction: column; gap: 2px; padding: 6px 2px 5px; border-radius: 14px; font-size: .9rem; line-height: 1.05; white-space: normal; text-align: center; min-width: 0; }
  .navworld span { font-size: 1.55rem; line-height: 1.1; }
}
@media (max-width: 900px) {
  .hero-in, .story-hero-in { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .stage { max-width: 520px; }
  .game-info { grid-template-columns: 1fr; }
  .side-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .region-row { grid-template-columns: 1fr; }
  .chapter, .chapter-flip { grid-template-columns: 1fr; gap: 20px; margin-top: 50px; }
  .chapter-flip .chapter-art { order: 0; }
  .chapter-art svg { max-width: 180px; }
  .chapter-spark { width: 200px; padding: 26px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-in { gap: 10px; min-height: 62px; }
  .brand-pipo { width: 38px; }
  .brand-name { font-size: 1.2rem; }
  .searchbox input { width: 0; padding: 0; }
  .searchbox:focus-within input { width: 120px; padding: 9px 4px 9px 14px; }
  .hero { padding-top: 26px; }
  .pin { padding: 4px 12px 4px 4px; gap: 6px; }
  .pin-emoji { width: 34px; height: 34px; font-size: 1.1rem; }
  .pin-name { font-size: .95rem; }
  .pin-age { font-size: .7rem; }
  .pin-kids { left: 26%; }
  .pin-radical { left: 73%; }
  .pin-arena { left: 66%; }
  .pipo-say { left: 52%; top: -26%; max-width: 170px; font-size: .88rem; }
  .spot-card { grid-template-columns: 1fr; }
  .spot-card img { border-right: 0; border-bottom: var(--line) solid var(--ink); }
  .spot-body { padding: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gcard-title { font-size: 1rem; }
  .gcard-play { width: 40px; height: 40px; }
  .trust { grid-template-columns: 1fr; padding: 24px 20px; }
  .trust-pipo { width: 120px; }
  .worldhero-in { flex-direction: column; align-items: flex-start; gap: 16px; }
  .worldhero-ball { width: 92px; height: 92px; font-size: 2.6rem; }
  .page-body { grid-template-columns: 1fr; }
  .page-pipo { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-huge { font-size: 1.2rem; padding: 17px 28px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

button.stage-pipo { background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
.newest { margin-top: 56px; }
.newest .shelf-head { margin-bottom: 20px; }
.gcard-soon { white-space: nowrap; }

@media (max-width: 640px) {
  .pipo-say { left: 62%; top: 1%; max-width: 135px; font-size: .82rem; padding: 8px 10px; }
  .player { aspect-ratio: 3 / 4; max-height: 74vh; }
  .player:fullscreen { aspect-ratio: auto; max-height: none; }
}

/* ---------- Busca em tempo real ---------- */
.sugest { position: fixed; z-index: 60; display: none; background: #fff; color: var(--ink); border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: 0 8px 0 var(--ink); overflow: hidden auto; max-height: min(70vh, 560px); }
.sugest.on { display: block; animation: sgin .14s ease-out; }
@keyframes sgin { from { opacity: 0; transform: translateY(-6px); } }
.sg-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--ink); text-decoration: none; border-bottom: 2px solid #EEE8FF; }
.sg-item img { flex: none; width: 64px; height: 48px; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); background: #EEE8FF; }
.sg-item span { min-width: 0; }
.sg-item b { display: block; font: 800 1rem/1.15 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-item small { display: block; font-weight: 700; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-item:hover, .sg-item.act { background: var(--sun); }
.sg-item:hover small, .sg-item.act small { color: var(--ink); }
.sg-item mark, .gcard mark { background: #FFE27A; color: inherit; border-radius: 4px; padding: 0 1px; }
.sg-all { display: block; padding: 11px 12px; text-align: center; font: 800 .95rem/1.2 var(--f-display); color: var(--grape); text-decoration: none; }
.sg-all:hover, .sg-all.act { background: #EEE8FF; }
.sg-empty { margin: 0; padding: 14px; text-align: center; font-weight: 700; }
.sg-empty a { color: var(--grape); font-weight: 800; }
