/* Terço com o Tito — página infantil. Sem filtros CSS (Safari/iOS), sem unidades cq. */
.szt, .szt * { box-sizing: border-box; }
.szt {
	--ink: #3a2412; --verde: #35c759; --verde-d: #1f9a3e; --laranja: #ff9f1c; --laranja-d: #d97800;
	--azul: #3aa0ff; --azul-d: #1d6fd1; --rosa: #ff5d8f; --rosa-d: #d12e63; --amarelo: #ffd23f;
	position: relative; width: 100%; max-width: 820px; margin: 12px auto; overflow: hidden;
	height: 86vh; height: 86svh; min-height: 560px; max-height: 860px;
	border-radius: 26px; border: 5px solid #fff; box-shadow: 0 10px 30px rgba(30, 90, 160, .35), 0 0 0 4px #3aa0ff;
	font-family: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif; color: var(--ink);
	background: linear-gradient(180deg, #5cc8ff 0%, #a9e6ff 55%, #e3f8ff 100%);
	-webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
@media (max-width: 560px) { .szt { margin: 0 auto; border-width: 3px; border-radius: 18px; height: 88vh; height: 88svh; min-height: 520px; box-shadow: 0 0 0 3px #3aa0ff; } }

/* ----- cenário ----- */
.szt-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.szt-bg i { position: absolute; display: block; }
.szt-bg .sol { top: 14px; right: 18px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff7b0, #ffd23f 60%, #ffb703); box-shadow: 0 0 0 10px rgba(255, 226, 90, .35), 0 0 0 22px rgba(255, 226, 90, .18); animation: szt-sol 6s ease-in-out infinite; }
.szt-bg .nu { height: 34px; width: 110px; background: #fff; border-radius: 40px; opacity: .92; }
.szt-bg .nu::before, .szt-bg .nu::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.szt-bg .nu::before { width: 54px; height: 54px; left: 16px; top: -26px; }
.szt-bg .nu::after { width: 40px; height: 40px; right: 18px; top: -18px; }
.szt-bg .n1 { top: 70px; left: -130px; animation: szt-nuvem 38s linear infinite; }
.szt-bg .n2 { top: 150px; left: -130px; transform: scale(.7); animation: szt-nuvem 52s linear infinite -20s; }
.szt-bg .n3 { top: 36px; left: -130px; transform: scale(.55); animation: szt-nuvem 64s linear infinite -40s; }
.szt-bg .balao { width: 30px; height: 38px; border-radius: 50% 50% 48% 48%; bottom: -60px; animation: szt-sobe 16s linear infinite; }
.szt-bg .balao::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 26px; background: rgba(60, 40, 20, .35); }
.szt-bg .b1 { left: 10%; background: #ff5d8f; }
.szt-bg .b2 { left: 55%; background: #ffd23f; animation-delay: -6s; animation-duration: 20s; }
.szt-bg .b3 { left: 84%; background: #9b5de5; animation-delay: -12s; animation-duration: 18s; }
.szt-bg .grama { left: -10%; right: -10%; bottom: -40px; height: 120px; border-radius: 50% 50% 0 0; background: linear-gradient(180deg, #7be07a, #3fb95a); box-shadow: 0 -6px 0 #a5f0a0; }
@keyframes szt-nuvem { from { transform: translateX(0) scale(var(--s, 1)); } to { transform: translateX(1000px); } }
@keyframes szt-sobe { from { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-320px) rotate(5deg); } to { transform: translateY(-760px) rotate(-4deg); } }
@keyframes szt-sol { 50% { transform: scale(1.07) rotate(8deg); } }

/* ----- partículas ----- */
.szt-fx { position: absolute; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.szt-fx .pt { position: absolute; transform: translate(-50%, -50%); animation: szt-pt 1.4s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes szt-pt { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 120px)) rotate(var(--rot)); opacity: 0; } }

/* ----- telas ----- */
.szt .tela { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; z-index: 2; }
.szt .tela.ativa { display: flex; animation: szt-entra .35s ease-out; }
@keyframes szt-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* botões */
.szt .btn { font: inherit; font-weight: 800; font-size: 20px; line-height: 1.1; border: 0; cursor: pointer; border-radius: 999px; padding: 14px 22px; color: #fff; position: relative; transition: transform .1s; -webkit-appearance: none; appearance: none; }
.szt .btn:active { transform: translateY(4px); }
.szt .btn:disabled { opacity: .6; cursor: default; }
.szt .btn b { font-size: 1.3em; margin-right: 4px; }
.szt .b-verde { background: var(--verde); box-shadow: 0 5px 0 var(--verde-d), 0 8px 14px rgba(0, 0, 0, .2); }
.szt .b-laranja { background: var(--laranja); box-shadow: 0 5px 0 var(--laranja-d), 0 8px 14px rgba(0, 0, 0, .2); }
.szt .b-azul { background: var(--azul); box-shadow: 0 5px 0 var(--azul-d); }
.szt .b-rosa { background: var(--rosa); box-shadow: 0 5px 0 var(--rosa-d); }
.szt .b-peq { background: #fff; color: var(--ink); box-shadow: 0 4px 0 #b8d8ee; font-size: 18px; padding: 12px 18px; min-width: 56px; }
.szt .btn:active.b-verde, .szt .btn:active.b-laranja, .szt .btn:active.b-azul, .szt .btn:active.b-rosa { box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.szt .btn.grande { font-size: 22px; padding: 16px 26px; flex: 1; }
.szt .btn.carrega { animation: szt-carrega 1s ease-in-out infinite; }
@keyframes szt-carrega { 50% { opacity: .5; } }
.szt .btn.espera { opacity: .78; }
.szt .btn.pulsa { animation: szt-pulsa .8s ease-in-out infinite; opacity: 1; }
@keyframes szt-pulsa { 50% { transform: scale(1.07); } }
.szt .btn.ok { outline: 4px solid #fff; transform: scale(1.04); }

/* ----- home ----- */
.szt .home { justify-content: center; gap: 4px; padding: 16px 16px 90px; text-align: center; }
.szt .home .tit { margin: 0; font-size: clamp(30px, 8.6vw, 54px); line-height: 1; font-weight: 800; color: #fff; text-shadow: 0 4px 0 #1d6fd1, 0 8px 0 rgba(0, 0, 0, .12); -webkit-text-stroke: 2px #1d6fd1; paint-order: stroke fill; }
.szt .home .tit span { display: inline-block; animation: szt-pula-t 2.2s ease-in-out infinite; }
.szt .home .tit span:nth-child(2) { animation-delay: .25s; color: #ffe566; }
.szt .home .tit span:nth-child(3) { animation-delay: .5s; color: #ff9fc0; }
@keyframes szt-pula-t { 50% { transform: translateY(-8px) rotate(-2deg); } }
.szt .tito { display: block; }
.szt .tito img, .szt .tito svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.szt .tito.grande { width: min(220px, 52vw); height: min(260px, 32vh); animation: szt-pula 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes szt-pula { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-14px) scaleY(1.04); } }
.szt .home .sub { margin: 4px 0 8px; font-size: 20px; font-weight: 700; color: #1b4f86; background: rgba(255, 255, 255, .75); border-radius: 18px; padding: 6px 14px; }
.szt .botoes { display: flex; flex-direction: column; gap: 14px; width: min(340px, 90%); }
.szt .estrelas { margin: 10px 0 0; font-weight: 800; font-size: 16px; color: #1b4f86; background: rgba(255, 255, 255, .8); border-radius: 14px; padding: 4px 12px; }
.szt .estrelas:empty { display: none; }

/* ----- escolha dos mistérios ----- */
.szt .escolha { justify-content: center; gap: 14px; padding: 16px 16px 40px; }
.szt .escolha .tit2 { margin: 0; font-size: clamp(26px, 7vw, 34px); text-align: center; color: #fff; text-shadow: 0 3px 0 #1d6fd1; -webkit-text-stroke: 1.5px #1d6fd1; paint-order: stroke fill; }
.szt .sets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(440px, 100%); }
.szt .set { position: relative; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; border: 4px solid var(--c); border-radius: 22px; background: #fff; cursor: pointer; box-shadow: 0 5px 0 var(--c), 0 8px 14px rgba(0, 0, 0, .15); transition: transform .1s; color: var(--ink); }
.szt .set:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--c); }
.szt .set img { width: 74px; height: 74px; object-fit: contain; animation: szt-pula 2.4s ease-in-out infinite; }
.szt .set:nth-child(2) img { animation-delay: .3s; } .szt .set:nth-child(3) img { animation-delay: .6s; } .szt .set:nth-child(4) img { animation-delay: .9s; }
.szt .set span { display: flex; flex-direction: column; line-height: 1.05; }
.szt .set b { font-size: 20px; } .szt .set small { font-size: 13px; font-weight: 700; opacity: .75; }
.szt .set em { position: absolute; top: -10px; right: -6px; font-style: normal; font-weight: 800; font-size: 13px; background: var(--rosa); color: #fff; padding: 2px 10px; border-radius: 999px; transform: rotate(8deg); box-shadow: 0 2px 0 var(--rosa-d); }

/* ----- jogo ----- */
.szt .jogo { justify-content: flex-start; }
.szt .topo { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 6px; }
.szt .ic { font: inherit; font-size: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 0 #b8d8ee; cursor: pointer; color: var(--ink); font-weight: 800; padding: 0; }
.szt .ic:active { transform: translateY(3px); box-shadow: none; }
.szt .chip { flex: 1; text-align: center; font-weight: 800; font-size: 20px; color: #fff; background: var(--c, #3aa0ff); border-radius: 999px; padding: 6px 14px; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.szt .prog { width: calc(100% - 28px); height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); overflow: hidden; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .15); flex: none; }
.szt .prog i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #ff5d8f, #ffb703, #2ec4b6, #4895ef, #9b5de5); transition: width .5s; }
.szt .palco { position: relative; flex: 1 1 auto; min-height: 150px; width: calc(100% - 20px); margin: 8px 10px 0; border-radius: 22px; background: rgba(255, 255, 255, .55); border: 3px solid rgba(255, 255, 255, .9); overflow: hidden; }
.szt svg.terco { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }

/* peças do terço (SVG) */
.szt .part { cursor: pointer; }
.szt .part .vis, .szt .part .in { transform-box: fill-box; transform-origin: center; transition: opacity .35s; }
.szt .part .halo { fill: none; stroke: #fff; stroke-width: 3.5; opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.szt .part .hit { fill: #000; fill-opacity: 0; stroke: none; }
.szt .part.on .halo, .szt .part.hint .halo { opacity: 1; stroke: #ffd23f; animation: szt-halo 1s ease-in-out infinite; }
.szt .part.on .in { animation: szt-batida .9s ease-in-out infinite; }
.szt .part.hint .in { animation: szt-batida .8s ease-in-out infinite; }
.szt .part.done .halo { opacity: .85; stroke: #35c759; stroke-width: 2; transform: scale(.72); }
.szt svg.trk .part.todo .in { opacity: .45; }
.szt svg.trk .part.done .halo { opacity: 0; }
.szt svg.spot .part:not(.focus) { opacity: .2; transition: opacity .4s; }
.szt svg.spot .part.focus { opacity: 1; }
.szt .part.boing .in { animation: szt-boing .5s ease-out; }
.szt svg.wig .in { animation: szt-balanca 1.8s ease-in-out infinite; }
.szt svg.wig .part:nth-child(odd) .in { animation-delay: .3s; }
@keyframes szt-halo { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes szt-batida { 50% { transform: scale(1.22); } }
@keyframes szt-boing { 0% { transform: scale(1); } 30% { transform: scale(1.5) rotate(-8deg); } 60% { transform: scale(.88) rotate(5deg); } 100% { transform: scale(1); } }
@keyframes szt-balanca { 50% { transform: rotate(5deg) scale(1.06); } }

/* cartão do mistério e contador */
.szt .cartao { position: absolute; left: 50%; top: 36%; width: 70%; max-width: 280px; transform: translate(-50%, -50%) scale(.2); opacity: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 14px 14px; background: #fff; border: 4px solid #ffd23f; border-radius: 26px; box-shadow: 0 12px 28px rgba(0, 0, 0, .3); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .25s; }
.szt .cartao.ver { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.szt .cartao img { width: min(150px, 42vw); height: auto; animation: szt-pula 1.8s ease-in-out infinite; }
.szt .cartao.grande img { width: min(190px, 52vw); }
.szt .cartao b { font-size: 21px; line-height: 1.05; } .szt .cartao small { font-size: 14px; font-weight: 700; opacity: .7; }
.szt .contador { position: absolute; left: 8px; top: 8px; z-index: 3; opacity: 0; transform: scale(.7); transform-origin: top left; transition: .25s; background: #fff; border-radius: 18px; padding: 6px 12px; text-align: center; box-shadow: 0 4px 0 #b8d8ee; pointer-events: none; display: flex; flex-direction: column; line-height: 1; }
.szt .contador.ver { opacity: 1; transform: scale(1); }
.szt .contador b { font-size: 36px; color: var(--rosa); } .szt .contador small, .szt .contador span { font-size: 13px; font-weight: 800; }
.szt .contador.boing b { animation: szt-boing .4s; display: inline-block; }
.szt .contador em { display: flex; gap: 3px; margin-top: 4px; justify-content: center; font-style: normal; }
.szt .contador em i { width: 11px; height: 11px; border-radius: 50%; background: #e1ecf5; border: 2px solid #c3d6e6; }
.szt .contador em i.x { background: var(--rosa); border-color: var(--rosa-d); animation: szt-boing .4s; }

/* painel do Tito */
.szt .painel { width: calc(100% - 20px); margin: 8px 10px 0; display: flex; align-items: flex-end; gap: 6px; flex: none; }
.szt .tito.peq { width: 74px; height: 94px; flex: none; animation: szt-pula 1.8s ease-in-out infinite; transform-origin: 50% 100%; animation-play-state: paused; }
.szt.falando .tito.peq { animation-play-state: running; animation-duration: .55s; }
.szt .balao-fala { position: relative; flex: 1; background: #fff; border-radius: 22px; padding: 8px 14px 10px; box-shadow: 0 4px 0 #b8d8ee; min-height: 74px; max-height: 31vh; max-height: 31svh; display: flex; flex-direction: column; min-width: 0; }
.szt .balao-fala::before { content: ''; position: absolute; left: -9px; bottom: 22px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.szt .ptit { font-weight: 800; font-size: 19px; line-height: 1.05; color: var(--rosa-d); flex: none; }
.szt .ptit .tt { display: block; } .szt .ptit small { display: block; font-size: 14px; font-weight: 700; color: #5a7a96; margin-top: 1px; }
.szt .ptit:empty { display: none; }
.szt .ptxt { font-weight: 700; font-size: clamp(17px, 4.8vw, 21px); line-height: 1.22; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; flex: 1 1 auto; position: relative; }
.szt .ptxt::-webkit-scrollbar { display: none; }
.szt .ptxt .w { color: #8aa0b4; transition: color .12s; }
.szt .ptxt .w.on { color: var(--ink); }

/* ações */
.szt .acoes { width: calc(100% - 20px); margin: 10px 10px 12px; display: flex; gap: 10px; align-items: center; justify-content: center; flex: none; }
.szt .acoes .par { display: flex; gap: 8px; flex: 1; justify-content: center; }
.szt .acoes.aprende { flex-wrap: wrap; }
.szt .acoes.aprende .jogo { flex: 1 1 100%; }
.szt .acoes .play.tocando { background: var(--rosa); box-shadow: 0 5px 0 var(--rosa-d); }

/* telas baixinhas (celular deitado) */
@media (max-height: 640px) { .szt .tito.peq { width: 56px; height: 70px; } .szt .btn { padding: 10px 16px; font-size: 18px; } .szt .palco { min-height: 110px; } }
@media (prefers-reduced-motion: reduce) { .szt *, .szt *::before, .szt *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; } }

/* link do produto físico, logo abaixo do jogo */
.szt-loja { display: flex; align-items: center; gap: 14px; max-width: 820px; margin: 14px auto 28px; padding: 14px 18px; border-radius: 22px; background: #fff8ec; border: 3px solid #f0b34a; box-shadow: 0 5px 0 #d9962b; font-family: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif; color: #3a2412; }
.szt-loja img { width: 52px; height: auto; flex: none; }
.szt-loja p { margin: 0; flex: 1; font-size: 16px; line-height: 1.25; font-weight: 600; }
.szt-loja p b { font-size: 19px; color: #c4560a; }
.szt-loja a.szt-loja-btn { flex: none; background: #35c759; color: #fff !important; text-decoration: none !important; font-weight: 800; font-size: 18px; padding: 12px 20px; border-radius: 999px; box-shadow: 0 4px 0 #1f9a3e; white-space: nowrap; }
.szt-loja a.szt-loja-btn:active { transform: translateY(3px); box-shadow: none; }
@media (max-width: 560px) { .szt-loja { flex-wrap: wrap; justify-content: center; text-align: center; margin: 12px 8px 24px; } .szt-loja p { flex: 1 1 100%; } }
