/* ==========================================================================
   Cantinho das Cores — casca, páginas, jogos, galeria e área dos pais
   ========================================================================== */

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
#view { flex: 1; outline: none; padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); }
body.is-studio #view { padding: 0; }
#view.enter > * { animation: pageIn .45s var(--ease-pop) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- barra do topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60; height: var(--topbar-h);
  display: flex; align-items: center; gap: 18px; padding: var(--safe-t) max(20px, var(--safe-r)) 0 max(20px, var(--safe-l));
  background: rgba(255, 250, 240, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
}
body.is-studio .topbar, body.is-studio .tabbar { display: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 40px; height: 52px; display: block; margin-top: 4px; }
.brand-mark .mascote { width: 100%; height: 100%; }
.brand-mark .mascote-braco { animation: none; }
.brand-name { font-size: .95rem; font-weight: 600; line-height: 1; color: var(--ink-2); }
.brand-name b { font-size: 1.4rem; color: var(--red); letter-spacing: -.01em; }
.topnav { display: flex; gap: 6px; margin: 0 auto; }
.topnav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 3px solid transparent; transition: background .15s, transform .12s var(--ease-pop);
}
@media (hover: hover) { .topnav a:hover { background: #fff0c4; } }
.topnav a.on { background: var(--yellow); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.nav-ico .ico, .tab-ico .ico { width: 22px; height: 22px; display: block; }
.topbar-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topnav + .topbar-tools { margin-left: 0; }
.stars-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px 5px 10px; font-weight: 700; font-size: 1.1rem;
  background: #fff; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink);
}
.sb-star .ico { width: 24px; height: 24px; color: var(--yellow); stroke: var(--ink); stroke-width: 2.2; display: block; }
.stars-badge.bump { animation: bump .5s var(--ease-pop); }
@keyframes bump { 40% { transform: scale(1.25) rotate(-4deg); } }

/* ---------- barra de baixo (celular) ---------- */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(var(--tabbar-h) + var(--safe-b));
  padding: 6px max(6px, var(--safe-r)) var(--safe-b) max(6px, var(--safe-l));
  background: var(--paper); border-top: 3px solid var(--ink); grid-template-columns: repeat(5, 1fr);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none;
  font-size: .72rem; font-weight: 700; color: var(--ink-2);
}
.tabbar .tab-ico { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background .2s, transform .2s var(--ease-pop); }
.tabbar a.on { color: var(--ink); }
.tabbar a.on .tab-ico { background: var(--yellow); box-shadow: inset 0 0 0 2.5px var(--ink); transform: translateY(-3px); }

@media (max-width: 1020px) {
  .topnav { display: none; }
  .topbar-tools { margin-left: auto; }
  .tabbar { display: grid; }
}
@media (max-width: 440px) {
  .brand-name { display: none; }
  .topbar { gap: 8px; padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 1021px) {
  #view { padding-bottom: 40px; }
  #toast { bottom: 28px; }
}

/* ---------- cabeçalho padrão ---------- */
.page-head { display: flex; align-items: center; gap: 16px; margin: 28px 0 22px; }
.page-head-txt { flex: 1; min-width: 0; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
.h1-emoji { display: inline-block; animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* ---------- seções ---------- */
.sec { padding: 34px 0; }
.sec-head { margin-bottom: 20px; }
.sec-head h2 { margin-bottom: 4px; }
.sec-head p { margin: 0; color: var(--ink-2); }
.eyebrow {
  display: inline-block; margin: 0 0 12px; padding: 4px 14px; font-weight: 700; font-size: .9rem; letter-spacing: .02em;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink);
}
.lead { font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: var(--ink-2); max-width: 36em; }

/* ---------- herói ---------- */
.hero { position: relative; overflow: hidden; padding: 36px 0 150px; background: linear-gradient(#b4e4ff 0%, #e4f6ff 58%, #fff3d6 100%); border-bottom: 3px solid var(--ink); }
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute; top: 26px; right: 3%; width: 80px; height: 80px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink);
  box-shadow: 0 0 0 14px rgba(255, 210, 63, .4), 0 0 0 30px rgba(255, 210, 63, .2); animation: sunPulse 4s ease-in-out infinite;
}
@keyframes sunPulse { 50% { box-shadow: 0 0 0 20px rgba(255, 210, 63, .35), 0 0 0 42px rgba(255, 210, 63, .14); } }
.cloud { position: absolute; left: -220px; width: 150px; height: 48px; background: rgba(255, 255, 255, .85); border-radius: 999px; animation: drift 46s linear infinite; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: rgba(255, 255, 255, .85); border-radius: 50%; }
.cloud::before { width: 66px; height: 66px; left: 22px; top: -34px; }
.cloud::after { width: 52px; height: 52px; left: 78px; top: -24px; }
.cloud.c1 { top: 70px; animation-duration: 52s; }
.cloud.c2 { top: 150px; transform: scale(.7); animation-duration: 66s; animation-delay: -30s; }
.cloud.c3 { top: 40px; transform: scale(.55); animation-duration: 80s; animation-delay: -55s; }
@keyframes drift { to { left: calc(100% + 220px); } }
.hills { position: absolute; left: 0; bottom: -2px; width: 100%; height: 150px; }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); margin-bottom: 14px; text-shadow: 0 4px 0 rgba(255, 255, 255, .8); }
.hero h1 span { color: var(--red); display: inline-block; animation: wiggle 4s ease-in-out infinite; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 5px 14px; font-weight: 600; font-size: .95rem; background: rgba(255, 255, 255, .92); border: 2.5px solid var(--ink); border-radius: 999px; }
.hero-mascote { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.balao {
  position: relative; max-width: 300px; padding: 12px 18px; font-weight: 600; text-align: center; line-height: 1.3;
  background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink);
}
.balao::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 22px; height: 22px; margin-left: -11px; background: #fff; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); }
.balao.troca { animation: pop .4s var(--ease-pop); }
.mascote-btn { display: block; width: min(220px, 52vw); margin-top: 12px; animation: float 3.4s ease-in-out infinite; transition: transform .2s; }
.mascote-btn:active { transform: scale(.94); }
.mascote-btn.pulo { animation: jump .7s var(--ease-pop); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes jump { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-40px) scale(.95, 1.08) rotate(-6deg); } 70% { transform: translateY(0) scale(1.08, .92); } 100% { transform: none; } }
.mascote { display: block; width: 100%; height: auto; overflow: visible; }
.mascote-braco { transform-origin: 58px 150px; animation: wave 1.8s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-16deg); } }

@media (max-width: 820px) {
  .hero { padding-bottom: 130px; }
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-text .lead { margin-inline: auto; }
  .hero-cta, .chips { justify-content: center; }
  .sun { width: 64px; height: 64px; top: 16px; right: 16px; }
}

/* ---------- miniaturas ---------- */
.thumb {
  position: relative; display: block; aspect-ratio: 1; width: 100%; overflow: hidden; border-radius: 18px;
  border: 2.5px solid #e3d6b8; background: linear-gradient(100deg, #f1e8d6 30%, #fff8e8 50%, #f1e8d6 70%); background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
.thumb-img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; -webkit-user-drag: none; user-select: none; }
.thumb:has(.thumb-img) { animation: none; }
.selo {
  position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; border: 2.5px solid var(--ink); background: var(--yellow); box-shadow: 0 2px 0 var(--ink);
}
.selo .ico { width: 20px; height: 20px; }
.selo-ok .ico { color: var(--yellow); stroke: var(--ink); fill: var(--yellow); }
.selo-ok { background: #fff; }
.selo-and { background: var(--blue); }

/* ---------- temas (tiles) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; min-height: 178px; padding: 16px 18px 18px; overflow: hidden;
  text-decoration: none; background: var(--c); border: 3px solid var(--ink); border-radius: 28px; box-shadow: var(--ledge-lg);
  transition: transform .15s var(--ease-pop), box-shadow .15s;
}
@media (hover: hover) { .tile:hover { transform: translateY(-5px) rotate(-.8deg); box-shadow: 0 13px 0 var(--ink); } }
.tile:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--ink); }
.tile-emoji { position: absolute; left: 16px; top: 12px; font-size: 3rem; line-height: 1; filter: drop-shadow(0 3px 0 rgba(47, 36, 64, .2)); }
.tile-txt { display: flex; flex-direction: column; min-width: 0; }
.tile-txt b { font-size: 1.3rem; line-height: 1.1; }
.tile-txt small { font-size: .95rem; font-weight: 600; opacity: .8; margin-top: 4px; }
.tile-pic {
  position: absolute; right: 14px; top: 14px; width: 96px; height: 96px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; overflow: hidden;
  transform: rotate(7deg); box-shadow: 0 4px 0 rgba(47, 36, 64, .35); transition: transform .2s var(--ease-pop);
}
@media (hover: hover) { .tile:hover .tile-pic { transform: rotate(-3deg) scale(1.06); } }
.tile-pic .thumb-img { height: 100%; }
.tile-livre { background: repeating-linear-gradient(135deg, #fff 0 18px, #fff7e0 18px 36px); }
.livre-pic { display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 10px; background: #fff; }
.livre-pic i { width: 20px; border-radius: 10px 10px 4px 4px; border: 2.5px solid var(--ink); }
.livre-pic i:nth-child(1) { height: 60%; background: var(--red); }
.livre-pic i:nth-child(2) { height: 80%; background: var(--yellow); }
.livre-pic i:nth-child(3) { height: 50%; background: var(--blue); }
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; gap: 16px; }
  .tile { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 112px; padding: 16px 112px 16px 82px; }
  .tile-emoji { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
  .tile-pic { width: 80px; height: 80px; top: 50%; margin-top: -40px; }
}

/* ---------- continue / desenho do dia / jogos ---------- */
.strip { display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 16px; margin: 0 -4px; scroll-snap-type: x proximity; }
.strip .mini { flex: 0 0 168px; padding: 10px; scroll-snap-align: start; }
.strip .mini b { display: block; margin: 8px 0 4px; font-size: 1rem; line-height: 1.15; }
.strip .badge { font-size: .8rem; background: var(--yellow); }
.dia { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; background: #fff7d6; }
.dia-pic { border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; background: #fff; aspect-ratio: 1; transform: rotate(-3deg); box-shadow: 0 5px 0 var(--ink); }
.dia-pic .thumb-img { height: 100%; }
.dia-txt h2 { margin: 10px 0 6px; }
.dia-txt p { color: var(--ink-2); font-size: 1.1rem; }
@media (max-width: 640px) { .dia { grid-template-columns: 1fr; text-align: center; } .dia-pic { max-width: 220px; margin: 0 auto; } }

.jogos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.jogos-lg { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.jogo {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 14px 20px; text-align: center; text-decoration: none;
  background: var(--c); border: 3px solid var(--ink); border-radius: 28px; box-shadow: var(--ledge-lg);
  transition: transform .15s var(--ease-pop), box-shadow .15s;
}
@media (hover: hover) { .jogo:hover { transform: translateY(-5px) rotate(.8deg); box-shadow: 0 13px 0 var(--ink); } }
.jogo:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--ink); }
.jogo-emoji { font-size: 3.4rem; line-height: 1.1; margin-bottom: 4px; }
.jogo b { font-size: 1.2rem; line-height: 1.15; }
.jogo small { font-size: .95rem; font-weight: 600; opacity: .85; }

.pais-teaser { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; background: #efe8ff; }
.pais-teaser h2 { margin: 12px 0 8px; }
.pais-teaser p { color: var(--ink-2); }
.pt-pic .mascote { max-width: 190px; margin: 0 auto; animation: float 4s ease-in-out infinite; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 600; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; font-size: .9rem; border-radius: 50%; background: var(--green); border: 2.5px solid var(--ink); }
@media (max-width: 720px) { .pais-teaser { grid-template-columns: 1fr; text-align: left; } .pt-pic { display: none; } }

.foot { padding: 30px 20px 20px; text-align: center; color: var(--ink-2); font-weight: 600; }
.foot a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- entrada (splash) ---------- */
.splash { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 20px; background: linear-gradient(#a9deff, #e6f7ff 60%, #fff3d6); transition: opacity .5s, transform .5s; overflow: auto; }
.splash.saindo { opacity: 0; transform: scale(1.06); pointer-events: none; }
.splash-bg { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(circle at 12% 18%, var(--yellow) 0 38px, transparent 40px),
  radial-gradient(circle at 88% 14%, var(--pink) 0 28px, transparent 30px),
  radial-gradient(circle at 80% 80%, var(--green) 0 46px, transparent 48px),
  radial-gradient(circle at 10% 78%, var(--blue) 0 34px, transparent 36px),
  radial-gradient(circle at 50% 8%, var(--orange) 0 20px, transparent 22px); opacity: .75; animation: float 6s ease-in-out infinite; }
.splash-card { position: relative; width: min(460px, 100%); text-align: center; padding: 26px 22px 28px; background: var(--paper); border: 3px solid var(--ink); border-radius: 36px; box-shadow: 0 10px 0 var(--ink); animation: pop .5s var(--ease-pop); }
.splash-mascote { width: min(190px, 44vw); margin: -86px auto 4px; animation: float 3s ease-in-out infinite; }
.splash-card h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); color: var(--red); text-shadow: 3px 3px 0 var(--yellow); margin-bottom: 8px; }
.splash-card p { color: var(--ink-2); font-size: 1.15rem; }
.splash-nome { display: block; text-align: left; margin: 14px 0 18px; font-weight: 700; }
.splash-nome small { font-weight: 500; color: var(--ink-3); }
.splash-nome input, .aj-linha input[type=text], .busca input {
  display: block; width: 100%; margin-top: 6px; padding: 12px 16px; font: inherit; font-weight: 600; color: var(--ink);
  background: #fff; border: 3px solid var(--ink); border-radius: 16px; outline-offset: 2px;
}
@media (max-height: 560px) { .splash-mascote { display: none; } .splash-card { margin-top: 0; } }

/* ---------- busca, chips, grade de desenhos ---------- */
.busca { position: relative; margin-bottom: 22px; max-width: 560px; }
.busca input { margin: 0; padding-left: 52px; font-size: 1.1rem; }
.busca-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); display: grid; }
.busca-ico svg { width: 24px; height: 24px; }
.chipbar { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px 10px; }
.grid-desenhos { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 16px; padding-bottom: 20px; }
.dcard { padding: 10px 10px 12px; }
.dcard b { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.15; }
@media (min-width: 720px) { .grid-desenhos { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; } .dcard b { font-size: 1.1rem; } }

.vazio { text-align: center; padding: 30px 10px; color: var(--ink-2); }
.vazio-mascote { width: 150px; margin: 0 auto 10px; animation: float 4s ease-in-out infinite; }
.vazio-grande { padding: 40px 10px 60px; }
.vazio-grande h2 { color: var(--ink); }
.vazio-cta { margin-top: 18px; }
.aviso { padding: 10px 16px; background: #ffe9e9; border: 2.5px solid var(--ink); border-radius: 14px; font-weight: 600; color: var(--ink); }

/* ---------- galeria ---------- */
.contagem { color: var(--ink-2); font-weight: 600; margin: 0 0 14px; }
.grid-obras { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px; padding: 6px 0 24px; }
.obra { padding: 10px 10px 12px; width: 100%; }
.obra:nth-child(odd) { transform: rotate(-1.2deg); }
.obra:nth-child(even) { transform: rotate(1deg); }
@media (hover: hover) { .obra:hover { transform: translateY(-6px) rotate(0); } }
.obra .thumb { border: 3px solid var(--ink); border-radius: 10px; }
.obra b { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.15; }
.obra small { color: var(--ink-3); font-weight: 600; }
.skeleton-card { padding: 10px; }
.modal-obra { width: min(680px, 100%); }
.obra-foto, .salvo-foto { margin: 8px auto 16px; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 6px 0 var(--ink); max-width: 420px; }
.obra-foto img, .salvo-foto img { display: block; width: 100%; height: auto; }
.obra-data { margin: 0; }
.wrap-actions { gap: 10px; }
.salvo-faixa { display: inline-block; margin: -42px 0 12px; padding: 8px 22px; font-weight: 700; font-size: 1.15rem; background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); animation: wiggle 2s ease-in-out infinite; }
.modal-salvo { padding-top: 40px; }
.modal-historia .hist-ico { font-size: 3rem; }
.hist-txt { font-size: 1.2rem; line-height: 1.6; color: var(--ink); text-align: left; padding: 14px 18px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; }

.expo { position: fixed; inset: 0; z-index: 250; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; background: radial-gradient(circle at 50% 40%, #5a3d8a, #1f1535 75%); animation: fadeIn .4s; }
.expo-cena { width: min(76vmin, 720px); aspect-ratio: 1; padding: 14px; background: #fff; border: 8px solid #f0c24b; border-radius: 10px; box-shadow: 0 0 0 4px var(--ink), 0 30px 60px rgba(0, 0, 0, .5); }
.expo-img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.96); }
.expo-img.in { animation: expoIn 1s ease-out forwards; }
@keyframes expoIn { to { opacity: 1; transform: scale(1); } }
.expo-legenda { text-align: center; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.expo-legenda b { display: block; font-size: 1.5rem; }
.expo-legenda small { font-size: 1rem; opacity: .85; }
.expo-x { position: absolute; right: 16px; top: calc(16px + var(--safe-t)); }
.expo-ant, .expo-prox { position: absolute; top: 50%; margin-top: -28px; }
.expo-ant { left: 14px; } .expo-prox { right: 14px; }

/* ---------- painel de sons ---------- */
.modal-back.sheet { align-items: end; }
.sheet-som { text-align: left; border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: -16px; padding-bottom: 40px; max-width: 520px; animation: sheetUp .4s var(--ease-pop); }
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .modal-back.sheet { align-items: center; } .sheet-som { border-radius: var(--r-xl); margin: 0; padding-bottom: 24px; } }
.sheet-som h2 { margin-right: 50px; }
.sheet-som h3 { margin: 18px 0 8px; font-size: 1.1rem; }
.som-switches { display: grid; gap: 10px; }
.som-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; font-weight: 700; }
.som-row .sw-txt { flex: 1; }
.sw-ico .ico { width: 26px; height: 26px; display: block; }
.vol { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-weight: 700; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; background: #ffe58a; border: 3px solid var(--ink); border-radius: 999px; outline-offset: 4px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: var(--red); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--red); border: 3px solid var(--ink); cursor: pointer; }
.faixas { display: grid; gap: 8px; }
.faixa { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left; font-weight: 700; background: #fff; border: 3px solid var(--ink); border-radius: 16px; transition: background .15s, transform .12s var(--ease-pop); }
.faixa:active { transform: scale(.98); }
.faixa.on { background: #fff0b8; box-shadow: 0 3px 0 var(--ink); }
.faixa-emoji { font-size: 1.6rem; }
.faixa-nome { flex: 1; line-height: 1.15; }
.eq { display: none; align-items: flex-end; gap: 3px; height: 22px; }
.faixa.tocando .eq { display: flex; }
.eq i { width: 5px; background: var(--ink); border-radius: 3px; animation: eq .8s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 22px; } }

/* ==========================================================================
   Jogos
   ========================================================================== */
.game { padding-top: 22px; }
.game-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.game-title { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.g-emoji { font-size: 2.6rem; line-height: 1; }
.game-title h1 { font-size: clamp(1.4rem, 4.5vw, 2.1rem); margin: 0; }
.game-title p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.game-stars { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font-weight: 700; font-size: 1.2rem; background: #fff; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); }
.game-stars .ico { color: var(--yellow); stroke: var(--ink); width: 26px; height: 26px; }
.game-card { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: var(--r-xl); box-shadow: var(--ledge-lg); padding: 22px 18px 26px; overflow: hidden; }
.game-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--c); border-bottom: 3px solid var(--ink); }
.game-stage { min-height: 360px; padding-top: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.game-stage.troca { animation: pageIn .4s var(--ease-pop); }
.game-foot { display: flex; justify-content: center; margin: 24px 0 10px; }
.pdots { display: flex; justify-content: center; gap: 10px; padding-top: 14px; }
.pdot { width: 22px; height: 22px; border-radius: 50%; background: #efe7d6; border: 3px solid var(--ink); transition: transform .3s var(--ease-pop), background .3s; }
.pdot.agora { transform: scale(1.25); background: var(--yellow); }
.pdot.ok { background: var(--green); }
.pdot.meio { background: var(--orange); }

.enun { text-align: center; }
.enun h2 { margin: 0; font-size: clamp(1.5rem, 5vw, 2.4rem); }
.enun-emoji { font-size: clamp(5rem, 22vw, 8rem); line-height: 1.1; margin-bottom: 6px; }
.enun-forma { display: grid; place-items: center; margin-top: 10px; }
.bounce { display: inline-block; animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.palavra { display: inline-block; padding: 0 .35em; border-radius: 14px; background: #fff0b8; border: 3px solid var(--ink); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.palavra[style*="--c"] { background: var(--c); color: #fff; text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); }
.dica-toque { margin: 8px 0 0; color: var(--ink-2); font-weight: 600; }

.opts { display: grid; gap: clamp(10px, 3vw, 22px); width: 100%; max-width: 640px; }
.opts-3 { grid-template-columns: repeat(3, 1fr); }
.opt {
  aspect-ratio: 1; display: grid; place-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 26px; box-shadow: var(--ledge-lg);
  transition: transform .14s var(--ease-pop), box-shadow .14s, opacity .2s; overflow: hidden;
}
@media (hover: hover) { .opt:hover { transform: translateY(-4px); } }
.opt:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.opt-cor { background: var(--c); }
.opt-num span, .opt-letra span { font-size: clamp(3.2rem, 14vw, 6rem); font-weight: 700; line-height: 1; }
.opt-letra span { color: var(--red); text-shadow: 3px 3px 0 var(--yellow); }
.opt-num span { color: var(--ink); text-shadow: 3px 3px 0 #bfe6ff; }
.opt-forma svg, .opt-seq svg { width: 74%; height: 74%; }
.opt-emoji { font-size: clamp(3.4rem, 15vw, 6.2rem); line-height: 1; }
.opt-seq .bola { width: 66%; aspect-ratio: 1; }
.bola { display: block; width: 56px; height: 56px; background: var(--c); border: 3px solid var(--ink); border-radius: 50%; }
.opt.certo { animation: certo .7s var(--ease-pop); background-color: #d8f9de; z-index: 2; }
.opt.errado { animation: shake .45s; opacity: .45; }
@keyframes certo { 0% { transform: scale(1); } 40% { transform: scale(1.14) rotate(-3deg); } 100% { transform: scale(1.05); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-8px); } 80% { transform: translateX(8px); } }
.opt-cor.certo { box-shadow: 0 0 0 8px #fff, 0 0 0 11px var(--green); }

.contaveis { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 560px; }
.contavel { position: relative; width: clamp(64px, 17vw, 92px); height: clamp(64px, 17vw, 92px); font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1; border-radius: 22px; background: #fff7d6; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .15s var(--ease-pop); }
.contavel:active { transform: scale(.9); }
.contavel.contado { background: #e0f9e5; transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.contavel .cnt { position: absolute; right: -6px; top: -8px; min-width: 28px; height: 28px; padding: 0 5px; border-radius: 14px; display: none; place-items: center; font-style: normal; font-size: 1rem; font-weight: 700; background: var(--blue); border: 2.5px solid var(--ink); }
.contavel.contado .cnt { display: grid; animation: pop .3s var(--ease-pop); }

.som-btn { width: clamp(110px, 30vw, 150px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(3rem, 10vw, 4.5rem); margin-bottom: 8px; background: var(--green); border: 3px solid var(--ink); box-shadow: var(--ledge-lg); }
.som-btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }

.fim { text-align: center; padding: 10px 0; }
.fim-estrelas { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; }
.fim-estrelas span { width: clamp(70px, 20vw, 100px); filter: grayscale(1) opacity(.35); }
.fim-estrelas span .ico { width: 100%; height: auto; aspect-ratio: 1; color: #ddd; stroke: var(--ink); stroke-width: 1.6; }
.fim-estrelas span.on { filter: none; animation: starIn .7s var(--ease-pop) both; animation-delay: var(--d); }
.fim-estrelas span.on .ico { color: var(--yellow); }
@keyframes starIn { from { transform: scale(0) rotate(-120deg); } to { transform: scale(1) rotate(0); } }
.fim-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }

/* memória */
.mem-info { display: flex; justify-content: center; gap: 22px; padding-top: 20px; font-weight: 700; color: var(--ink-2); }
.niveis { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.nivel { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 150px; padding: 18px 10px; background: #fff7d6; border: 3px solid var(--ink); border-radius: 24px; box-shadow: var(--ledge-lg); transition: transform .14s var(--ease-pop); }
.nivel span { font-size: 2.6rem; } .nivel b { font-size: 1.3rem; } .nivel small { color: var(--ink-2); font-weight: 600; }
@media (hover: hover) { .nivel:hover { transform: translateY(-4px); } }
.nivel:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.mem { display: grid; gap: clamp(8px, 2.4vw, 16px); width: 100%; max-width: 560px; }
.mem.cols3 { grid-template-columns: repeat(3, 1fr); } .mem.cols4 { grid-template-columns: repeat(4, 1fr); }
.carta { position: relative; aspect-ratio: 3 / 4; perspective: 700px; }
.carta-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s var(--ease-pop); }
.carta.virada .carta-in, .carta.par .carta-in { transform: rotateY(180deg); }
.frente, .verso { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(2rem, 9vw, 3.8rem); backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); }
.frente { background: repeating-linear-gradient(45deg, #ffd23f 0 12px, #ffe27a 12px 24px); color: var(--ink); font-weight: 700; }
.verso { background: #fff; transform: rotateY(180deg); }
.carta.par .verso { background: #d8f9de; }
.carta.par { animation: parPulse .6s .4s var(--ease-pop); }
@keyframes parPulse { 50% { transform: scale(1.08); } }

/* laboratório de cores */
.lab { width: 100%; max-width: 700px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tintas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: 100%; }
.tinta { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 16px; border: 3px solid transparent; font-weight: 700; font-size: .78rem; transition: transform .14s var(--ease-pop); }
.tinta-frasco { position: relative; display: block; width: clamp(40px, 10vw, 60px); aspect-ratio: .75; background: #fff; border: 3px solid var(--ink); border-radius: 12px 12px 18px 18px; overflow: hidden; }
.tinta-frasco i { position: absolute; left: 0; right: 0; bottom: 0; height: 74%; background: var(--c); border-top: 3px solid var(--ink); }
.tinta.on { background: #fff0b8; border-color: var(--ink); transform: translateY(-5px); }
.mesa { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 2vw, 14px); font-size: 2rem; font-weight: 700; flex-wrap: wrap; }
.slot, .resultado { width: clamp(64px, 18vw, 96px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 3px dashed var(--ink-3); color: var(--ink-3); font-size: 1.6rem; background: #fff; transition: background .3s, transform .3s var(--ease-pop); }
.slot.cheio, .resultado.cheio { background: var(--c); border: 3px solid var(--ink); color: transparent; transform: scale(1.05); box-shadow: 0 5px 0 var(--ink); }
.resultado.mexendo { animation: mexe .35s linear infinite; background: conic-gradient(#ff3b3b, #ffd400, #2fbf4a, #2f6bff, #8a4bff, #ff3b3b); border-style: solid; border-color: var(--ink); color: transparent; }
@keyframes mexe { to { transform: rotate(360deg) scale(1.1); } }
.res-nome { margin: 0; min-height: 1.6em; font-size: 1.3rem; font-weight: 600; text-align: center; }
.lab-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.descobertas { width: 100%; text-align: center; padding-top: 6px; }
.descobertas b { color: var(--ink-2); }
.desc-lista { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; min-height: 30px; }
.desc { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 3px solid var(--ink); animation: pop .4s var(--ease-pop); }

/* padrões */
.sequencia { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 2vw, 16px); padding: 12px; }
.seq-item { display: grid; place-items: center; width: clamp(54px, 13vw, 84px); aspect-ratio: 1; background: #fff7d6; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 4px 0 var(--ink); }
.seq-item .bola { width: 66%; height: auto; aspect-ratio: 1; }
.seq-item svg { width: 76%; height: 76%; }
.seq-item.faltando { font-size: 2.4rem; font-weight: 700; background: #fff; border-style: dashed; animation: pulse 1.6s infinite; }

/* xilofone */
.xilo { display: flex; align-items: flex-end; gap: clamp(6px, 1.6vw, 12px); width: 100%; max-width: 640px; height: clamp(240px, 42vh, 340px); touch-action: none; }
.barra { position: relative; flex: 1; height: var(--h); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; background: var(--c); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--ledge); font-weight: 700; font-size: clamp(.8rem, 2.4vw, 1.1rem); color: var(--ink); touch-action: none; }
.barra::before { content: ''; position: absolute; left: 50%; top: 10px; width: 14px; height: 14px; margin-left: -7px; background: rgba(255, 255, 255, .85); border: 2.5px solid var(--ink); border-radius: 50%; }
.barra.toca { animation: toca .35s var(--ease-pop); }
@keyframes toca { 0% { transform: translateY(0); } 30% { transform: translateY(6px) scale(.97); box-shadow: 0 0 0 var(--ink); } 100% { transform: none; } }
.barra.luz { animation: luz .8s ease-in-out infinite; z-index: 2; }
@keyframes luz { 0%, 100% { box-shadow: var(--ledge), 0 0 0 0 rgba(255, 255, 255, .0); transform: translateY(0); } 50% { box-shadow: var(--ledge), 0 0 0 10px rgba(255, 210, 63, .9); transform: translateY(-8px); } }
.musicas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.musicas p { flex: 0 0 100%; text-align: center; margin: 0; font-weight: 700; color: var(--ink-2); }

.aprender-topo { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: center; margin-bottom: 26px; background: #ffe9f4; }
.at-mascote { width: 120px; margin: 0 auto; animation: float 4s ease-in-out infinite; }
.at-txt h2 { font-size: 1.5rem; margin-bottom: 6px; } .at-txt p { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .aprender-topo { grid-template-columns: 84px 1fr; gap: 12px; padding: 14px; } .at-mascote { width: 80px; } .at-txt h2 { font-size: 1.1rem; } .at-txt p { font-size: .92rem; } }
.lista-ensina { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.lista-ensina li { display: flex; gap: 14px; padding: 14px 16px; background: #fff; border: 3px solid var(--ink); border-radius: 22px; }
.lista-ensina li > span { font-size: 2rem; line-height: 1.2; }
.lista-ensina p { margin: 2px 0 0; color: var(--ink-2); font-size: .98rem; line-height: 1.4; }

/* ==========================================================================
   Para os pais
   ========================================================================== */
.pais-hero { background: linear-gradient(135deg, #efe8ff 0%, #ffe9f4 55%, #fff3d6 100%); border-bottom: 3px solid var(--ink); padding: 44px 0 40px; }
.pais-hero-in { display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: center; }
.pais-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.pais-mascote { animation: float 4s ease-in-out infinite; }
@media (max-width: 720px) { .pais-hero-in { grid-template-columns: 1fr; } .pais-mascote { display: none; } }
.beneficios { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.ben { padding: 22px 20px; animation: pageIn .6s var(--ease-pop) both; animation-delay: var(--d); }
.ben-e { display: grid; place-items: center; width: 62px; height: 62px; font-size: 2rem; border-radius: 20px; background: #fff0b8; border: 3px solid var(--ink); margin-bottom: 10px; }
.ben h3 { margin-bottom: 6px; } .ben p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.passos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; counter-reset: p; }
.passos li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 3px solid var(--ink); border-radius: 24px; }
.passo-n { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; font-size: 1.5rem; font-weight: 700; background: var(--red); color: #fff; border: 3px solid var(--ink); border-radius: 50%; }
.passos li:nth-child(2) .passo-n { background: var(--blue); } .passos li:nth-child(3) .passo-n { background: var(--green); color: var(--ink); }
.passos h3 { margin-bottom: 4px; } .passos p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.idades { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.idade-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.idade-top span { font-size: 2.2rem; } .idade-top h3 { margin: 0; font-size: 1.5rem; }
.idade ul, .dicas { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }
.idade li::marker, .dicas li::marker { color: var(--red); }
.dicas { background: #fff; border: 3px solid var(--ink); border-radius: 24px; padding: 20px 20px 20px 42px; }
.ajustes { padding: 8px 20px; }
.aj-linha { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 2.5px dashed #e3d6b8; }
.aj-linha:last-child { border-bottom: 0; }
.aj-linha > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.aj-linha small { color: var(--ink-3); font-weight: 500; font-size: .9rem; line-height: 1.3; }
.aj-linha input[type=text] { max-width: 240px; margin: 0; }
.aj-linha input[type=range] { max-width: 260px; }
.aj-col { flex-direction: column; align-items: stretch; }
.faixas-mini { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (max-width: 560px) { .aj-linha { flex-wrap: wrap; } .aj-linha input[type=text], .aj-linha input[type=range] { max-width: none; width: 100%; } }
.instalar { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.inst-col h3 { margin-bottom: 6px; } .inst-col ol { margin: 0 0 12px; padding-left: 1.3em; color: var(--ink-2); display: grid; gap: 4px; }
.seguro { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.seguro li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 3px solid var(--ink); border-radius: 20px; }
.seguro .ico { width: 30px; height: 30px; color: var(--purple); }
.dados-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; margin-bottom: 16px; }
.dados-nums b { display: block; font-size: 2.2rem; line-height: 1.1; color: var(--red); }
.dados-nums span { color: var(--ink-2); font-size: .95rem; font-weight: 600; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 0 18px; transition: background .2s; }
.faq details[open] { background: #fff9e3; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; font-size: 1.4rem; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--ink); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 16px; color: var(--ink-2); }
.conta { font-size: 1.4rem; color: var(--ink) !important; }
.gate-opts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gate-opts .btn { min-width: 76px; font-size: 1.4rem; }

.erro-detalhe { margin-top: 22px; font-size: .8rem; color: var(--ink-3); word-break: break-word; }

.faixas-rodape { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.faixas-rodape p { margin: 0; font-size: .92rem; color: var(--ink-3); font-weight: 600; }
.faixas-rodape .btn { min-height: 46px; font-size: .95rem; }
