:root {
  --ink: #262433;
  --amarelo: #ffd23f;
  --verde: #1f9d5a;
  --verde-claro: #28ae66;
  --roxo: #6442d8;
  --vermelho: #e5384f;
  --fundo: #1e1547;
  --papel: #fdfdf8;
  --sombra: 0 7px 0 rgba(10, 8, 30, .55);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--fundo);
  background-image: radial-gradient(circle at 50% 20%, #4a31b8 0, var(--fundo) 70%);
  background-attachment: fixed;
  color: #fff; font-family: Inter, system-ui, sans-serif; font-weight: 500; overflow-x: hidden;
}
button { font: inherit; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

/* ===== o estádio (campo visto de cima) ===== */
.estadio {
  position: sticky; top: 0; z-index: 5; height: clamp(200px, 29vh, 300px); overflow: hidden;
  border-bottom: 5px solid var(--ink); background: #1f9d5a; box-shadow: 0 8px 0 rgba(10,8,30,.4);
}
.estadio svg { display: block; width: 100%; height: 100%; }
.hud { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.hud-chip { pointer-events: auto; background: var(--ink); color: var(--amarelo); font-weight: 900; font-size: 14px; padding: 6px 12px; border-radius: 30px; border: 3px solid var(--amarelo); }
.hud-chip.pulo { animation: hudpulo .5s; }
@keyframes hudpulo { 40% { transform: scale(1.25) rotate(-3deg); } }
.som { pointer-events: auto; width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--ink); background: #fff; cursor: pointer; font-size: 17px; }

#camera { transition: transform 1s cubic-bezier(.45, .05, .25, 1); }
#jogador { transition: transform 1s cubic-bezier(.45, .05, .25, 1); }
#jogador .corpo { animation: corre .5s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
#jogador.parado .corpo { animation: respira 1.6s ease-in-out infinite; }
@keyframes corre { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@keyframes respira { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
#bolaJ { animation: conduz .5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
#jogador.parado #bolaJ { animation: quicando 1.1s ease-in-out infinite; }
@keyframes conduz { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(0, -14px) rotate(180deg); } }
@keyframes quicando { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
#jogador.drible .corpo { animation: drible .55s ease-in-out; }
@keyframes drible { 30% { transform: translateX(-26px) rotate(-12deg); } 70% { transform: translateX(22px) rotate(10deg); } }
#jogador.tropeca .corpo { animation: tropeca .5s; }
@keyframes tropeca { 25%, 75% { transform: translateX(-6px) rotate(-8deg); } 50% { transform: translateX(6px) rotate(8deg); } }
.zagueiro { transition: transform .6s, opacity .6s, filter .6s; transform-box: fill-box; transform-origin: bottom center; }
.zagueiro .z-corpo { animation: marca 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
@keyframes marca { 0%, 100% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }
.zagueiro.driblado { transform: rotate(-85deg) translateY(10px); opacity: .55; filter: grayscale(.7); }
.zagueiro.driblado .z-corpo { animation: none; }
.zagueiro .tonto { opacity: 0; transition: opacity .3s .3s; }
.zagueiro.driblado .tonto { opacity: 1; }
.goleiro .g-corpo { animation: goleiro 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
@keyframes goleiro { 0%, 100% { transform: translateX(-14px); } 50% { transform: translateX(14px); } }
.goleiro.mergulha .g-corpo { animation: none; transform: translate(-46px, 6px) rotate(-70deg); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.torcida circle { animation: ola 1.6s ease-in-out infinite; transform-box: fill-box; }
@keyframes ola { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.torcida.festa circle { animation-duration: .4s; }
.rede.balanca { animation: balanca .5s 3; transform-box: fill-box; transform-origin: top center; }
@keyframes balanca { 30% { transform: scaleY(1.18) translateY(-2px); } 60% { transform: scaleY(.92); } }
.cadeado .argola { transition: transform .4s cubic-bezier(.2, 1.6, .4, 1); transform-box: fill-box; transform-origin: right bottom; }
.cadeado.aberto .argola { transform: translateY(-6px) rotate(35deg); }
.cadeado { transition: opacity .4s .5s, transform .4s .5s; transform-box: fill-box; transform-origin: center; }
.cadeado.aberto { opacity: 0; transform: scale(1.6); }
.cadeado .corpo-cad { animation: cadpulsa 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes cadpulsa { 50% { transform: scale(1.12); } }
.etiqueta { animation: etiqueta 1.5s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes etiqueta { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(4deg); } }
#bolaChute { transition: transform .7s cubic-bezier(.2, .7, .3, 1); opacity: 0; }
#bolaChute.voando { opacity: 1; }
.rastro { stroke-dasharray: 6 8; animation: rastro .6s linear infinite; }
@keyframes rastro { to { stroke-dashoffset: -28; } }
.brilho-campo { animation: brilhoc 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes brilhoc { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: .9; transform: scale(1.1); } }

/* ===== conteúdo ===== */
main { flex: 1; display: flex; flex-direction: column; padding: 18px 16px 34px; }
.tela { display: flex; flex-direction: column; flex: 1; }
.tela > * { animation: sobe .5s cubic-bezier(.2, 1.2, .4, 1) backwards; }
.tela > *:nth-child(2) { animation-delay: .06s; } .tela > *:nth-child(3) { animation-delay: .12s; }
.tela > *:nth-child(4) { animation-delay: .18s; } .tela > *:nth-child(5) { animation-delay: .24s; }
.tela > *:nth-child(6) { animation-delay: .3s; } .tela > *:nth-child(n+7) { animation-delay: .36s; }
@keyframes sobe { from { opacity: 0; transform: translateY(26px) scale(.97); } }

.selo {
  align-self: flex-start; display: inline-block; font-weight: 900; line-height: 1.1; border: 5px solid var(--ink);
  border-radius: 16px; box-shadow: var(--sombra); padding: 7px 16px; font-size: 15px;
  animation: selo .6s cubic-bezier(.2, 1.6, .4, 1) backwards, balancinho 3s ease-in-out .6s infinite !important;
}
@keyframes selo { from { transform: scale(0) rotate(-20deg); } }
@keyframes balancinho { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(1.5deg); } }
.centro .selo { align-self: center; }
.s-am { background: var(--amarelo); color: var(--ink); }
.s-vd { background: var(--verde); color: #fff; }
.s-rx { background: var(--roxo); color: #fff; }
.s-vm { background: var(--vermelho); color: #fff; }
h1, h2 { font-weight: 900; line-height: 1.02; margin: 14px 0 10px; letter-spacing: -.5px; }
h1 { font-size: clamp(32px, 8.6vw, 44px); }
h2 { font-size: clamp(27px, 7.4vw, 35px); }
.contorno { color: #fff; -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 rgba(10,8,30,.5); }
.amarelo { color: var(--amarelo); display: inline-block; animation: brilhatxt 2s ease-in-out infinite; }
@keyframes brilhatxt { 50% { transform: scale(1.06) rotate(-2deg); } }
.sub { font-size: 17px; font-weight: 700; opacity: .95; margin: 0 0 16px; line-height: 1.4; }
.centro { text-align: center; align-items: center; }
.empurra { margin-top: auto; }
.cartao { background: var(--papel); color: var(--ink); border: 5px solid var(--ink); border-radius: 22px; padding: 18px; box-shadow: var(--sombra); }
.botao {
  position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  font-weight: 900; font-size: 20px; padding: 17px 20px; border: 5px solid var(--ink); border-radius: 20px;
  background: var(--amarelo); color: var(--ink); box-shadow: 0 7px 0 var(--ink); transition: transform .08s; margin-top: 16px;
}
.botao::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); transform: skewX(-20deg); animation: reflexo 2.6s ease-in-out infinite; }
@keyframes reflexo { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.botao:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.botao.verde { background: var(--verde); color: #fff; }
.botao.pulsa { animation: pulsa 1.4s ease-in-out infinite; }
@keyframes pulsa { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.miudo { font-size: 13px; font-weight: 700; opacity: .8; text-align: center; margin-top: 12px; }
.fatos { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.fato { background: rgba(255,255,255,.12); border: 3px solid rgba(255,255,255,.25); border-radius: 30px; padding: 6px 12px; font-size: 13px; font-weight: 800; animation: fato 2.4s ease-in-out infinite; }
.fato:nth-child(2) { animation-delay: .4s; } .fato:nth-child(3) { animation-delay: .8s; }
@keyframes fato { 50% { transform: translateY(-4px); } }

.opcoes { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.opcao {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; width: 100%;
  background: #fff; color: var(--ink); border: 5px solid var(--ink); border-radius: 20px; padding: 14px 16px;
  font-weight: 900; font-size: 18px; box-shadow: 0 6px 0 var(--ink); transition: transform .15s, background .2s;
  animation: entraop .5s cubic-bezier(.2, 1.3, .4, 1) backwards;
}
.opcao:nth-child(2) { animation-delay: .1s; } .opcao:nth-child(3) { animation-delay: .2s; } .opcao:nth-child(4) { animation-delay: .3s; }
@keyframes entraop { from { opacity: 0; transform: translateX(60px) rotate(3deg); } }
.opcao:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.opcao .ic { flex: 0 0 46px; height: 46px; border-radius: 14px; border: 4px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--amarelo); }
.opcao:hover .ic { animation: icgira .5s; }
@keyframes icgira { 50% { transform: rotate(-12deg) scale(1.15); } }
.opcao small { display: block; font-weight: 700; font-size: 14px; opacity: .7; margin-top: 2px; }
.opcao.marcada { background: var(--amarelo); transform: scale(1.03); }
.opcao.certa { background: var(--verde); color: #fff; animation: pula .5s; }
.opcao.errada { background: var(--vermelho); color: #fff; animation: treme .4s; }
@keyframes pula { 30% { transform: scale(1.05) rotate(-1deg); } 60% { transform: scale(.98); } }
@keyframes treme { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.prompt-txt { font-family: ui-monospace, Menlo, monospace; font-size: 14px; font-weight: 600; line-height: 1.5; white-space: pre-wrap; }
.missao-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.xp { font-weight: 900; font-size: 14px; background: var(--ink); color: var(--amarelo); border-radius: 30px; padding: 6px 12px; border: 3px solid var(--amarelo); animation: xp 1.5s ease-in-out infinite; }
@keyframes xp { 50% { transform: scale(1.08); box-shadow: 0 0 18px rgba(255,210,63,.6); } }
.retorno { margin-top: 16px; border-radius: 20px; border: 5px solid var(--ink); padding: 14px 16px; font-weight: 700; font-size: 16px; color: var(--ink); animation: sobe .4s cubic-bezier(.2, 1.3, .4, 1); }
.retorno.bom { background: #d9f7e6; }
.retorno.ruim { background: #ffe0e4; }
.retorno b { font-weight: 900; }
.letras { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 16px; }
.letra { aspect-ratio: 1; border: 4px solid var(--ink); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; font-size: 24px; color: #fff; background: var(--roxo); box-shadow: 0 5px 0 var(--ink); animation: cai .6s cubic-bezier(.2, 1.6, .4, 1) backwards, flutua 2.4s ease-in-out infinite; }
.letra span { font-size: 9px; font-weight: 800; margin-top: 1px; letter-spacing: -.2px; }
.letra:nth-child(2n) { background: var(--verde); }
.letra:nth-child(3n) { background: var(--amarelo); color: var(--ink); }
@keyframes cai { from { transform: translateY(-60px) scale(.3) rotate(-30deg); opacity: 0; } }
@keyframes flutua { 50% { transform: translateY(-4px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.chip { cursor: pointer; font-weight: 900; font-size: 15px; padding: 9px 14px; border: 4px solid var(--ink); border-radius: 30px; background: #fff; color: var(--ink); transition: transform .15s; }
.chip:active { transform: scale(.92); }
.chip[aria-pressed=true] { background: var(--amarelo); animation: pula .4s; }
pre.prompt { margin: 0; min-height: 210px; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; line-height: 1.55; background: #191530; color: #f3f0ff; border: 4px solid var(--ink); border-radius: 16px; padding: 14px; }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--amarelo); vertical-align: -2px; animation: pisca .8s steps(1) infinite; }
@keyframes pisca { 50% { opacity: 0; } }

.placar { display: flex; gap: 10px; justify-content: center; margin: 4px 0 12px; }
.placar div { background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 16px; padding: 8px 12px; text-align: center; box-shadow: 0 5px 0 var(--ink); animation: cai .6s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.placar div:nth-child(2) { animation-delay: .15s; } .placar div:nth-child(3) { animation-delay: .3s; }
.placar b { display: block; font-size: 26px; font-weight: 900; line-height: 1; }
.placar span { font-size: 12px; font-weight: 800; }
.trilha-bloqueada { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 16px; }
.item-aula { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 16px; padding: 10px 12px; font-weight: 800; font-size: 15px; line-height: 1.25; animation: entraop .45s cubic-bezier(.2, 1.3, .4, 1) backwards; }
.item-aula .n { flex: 0 0 34px; height: 34px; border-radius: 10px; border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 900; background: #eee; }
.item-aula.feito .n { background: var(--verde); color: #fff; }
.item-aula .cad { margin-left: auto; font-size: 18px; animation: cadbalanca 2s ease-in-out infinite; display: inline-block; }
@keyframes cadbalanca { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
.recursos { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.recursos li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; font-size: 16px; line-height: 1.35; }
.recursos li::before { content: "✓"; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--verde); color: #fff; border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; }
.preco { text-align: center; margin: 18px 0 4px; }
.preco .de { font-weight: 800; font-size: 15px; opacity: .85; }
.preco .valor { display: inline-block; font-size: 64px; font-weight: 900; line-height: 1; color: var(--amarelo); -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 rgba(10,8,30,.5); animation: brilhatxt 1.8s ease-in-out infinite; }
.preco .valor small { font-size: 28px; }
.preco .uma-vez { display: inline-block; margin-top: 8px; background: var(--verde); border: 4px solid var(--ink); border-radius: 30px; padding: 5px 14px; font-weight: 900; font-size: 14px; }
.garantias { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.garantias div { background: rgba(255,255,255,.1); border: 3px solid rgba(255,255,255,.25); border-radius: 16px; padding: 10px; font-size: 13px; font-weight: 800; text-align: center; line-height: 1.3; }
.garantias b { display: block; font-size: 20px; margin-bottom: 2px; }
.faq { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 16px; padding: 12px 14px; }
.faq summary { font-weight: 900; cursor: pointer; font-size: 15px; }
.faq p { margin: 8px 0 0; font-size: 15px; }
.fixo { position: sticky; bottom: 12px; z-index: 4; }
.titulo-secao { margin: 22px 0 4px; font-weight: 900; font-size: 20px; }

#confete { position: fixed; inset: 0; pointer-events: none; z-index: 50; width: 100%; height: 100%; }
.tremor { animation: tremor .45s; }
@keyframes tremor { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(6px, -3px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }
.golaco { position: fixed; left: 50%; top: 30%; z-index: 60; pointer-events: none; font-weight: 900; font-size: 64px; color: var(--amarelo); -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; transform: translate(-50%, -50%); animation: golaco 1.4s forwards; white-space: nowrap; }
@keyframes golaco { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-12deg); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15) rotate(-4deg); opacity: 1; } 75% { transform: translate(-50%, -50%) scale(1) rotate(-4deg); opacity: 1; } 100% { transform: translate(-50%, -80%) scale(.9) rotate(-4deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.jogadas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.jogada { display: flex; align-items: center; gap: 8px; background: var(--papel); color: var(--ink); border: 4px solid var(--ink); border-radius: 16px; padding: 8px 10px; font-weight: 900; font-size: 14px; line-height: 1.1; box-shadow: 0 4px 0 var(--ink); }
.jogada .ic { flex: 0 0 34px; height: 34px; border-radius: 10px; border: 3px solid var(--ink); background: var(--amarelo); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.retorno { margin-top: 12px; }
#seguir { margin-top: 14px; }
.fixo { margin-bottom: 16px; }
pre.prompt { min-height: 0; height: 132px; overflow-y: auto; margin-bottom: 4px; }
.chips { gap: 6px; margin: 4px 0 10px; } .chip { font-size: 14px; padding: 7px 11px; }

.selo-cta { text-align: center; font-weight: 800; font-size: 14px; margin: 10px 0 0; opacity: .95; }
#comprar2 { margin-top: 16px; }
