:root { --mag: #FF00FF; --mag-t: #B800B8; --graf: #1B1B1D; --creme: #F4F2ED; --cinza: #6A6A66; --linha: #DDD8CE; --papel: #FFFDF9; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--creme); color: var(--graf); font: 400 16px/1.55 Inter, Arial, sans-serif; }
a { color: var(--mag-t); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 18px; }
h1, h2 { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; line-height: .95; margin: 0; }
.topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0 0; }
.topo img { width: 190px; height: auto; display: block; }
.btn-story { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; background: var(--graf); color: var(--creme); font: 700 .95rem Inter, Arial, sans-serif; padding: 11px 16px 11px 12px; border-radius: 99px; }
.btn-story .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#FF00FF, #FFB800, #FF00FF); }
.btn-story .ic span { width: 20px; height: 20px; border-radius: 50%; background: var(--graf); display: grid; place-items: center; }
.btn-story .ic svg { width: 12px; height: 12px; stroke: var(--creme); stroke-width: 3; fill: none; stroke-linecap: round; }
.btn-story:disabled { opacity: .6; }
.dica { background: #fff; border-radius: 14px; padding: 12px 16px; font-size: .9rem; margin: 0 0 12px; }
.cab { text-align: center; padding: 26px 0 0; }
.cab h1 { font-size: clamp(2.8rem, 9vw, 5rem); }
.cab p { color: var(--cinza); margin: 10px auto 0; max-width: 34em; }
#estado { text-align: center; color: var(--cinza); font-size: .9rem; margin: 10px auto 0; max-width: 40em; }

/* Personagens */
.boneco { display: block; width: 100%; height: auto; overflow: visible; }
.boneco g { transform-box: view-box; }
.boneco line { stroke: #2A2A30; stroke-width: 10; stroke-linecap: round; }
.boneco .braco line { stroke: var(--cor); stroke-width: 9; }
.boneco .camisa { fill: var(--cor); }
.boneco .faixa { fill: var(--mag); }
.boneco[style*="#FF00FF"] .faixa { fill: var(--creme); }
.boneco .mao { fill: #2A2A30; }
.boneco .tenis { fill: var(--mag); }
.boneco .aro { fill: none; stroke: #fff; stroke-width: 3; }
.boneco .sombra { fill: rgba(27,27,29,.12); }
.boneco .raiz { transform-origin: 80px 90px; }
.boneco .tronco { transform-origin: 80px 90px; }
.boneco .bob { transform-origin: 80px 150px; }
/* sempre animado, inclusive com "reduzir movimento" (pedido explícito) */
@media all {
  .ex-acena .braco.d { animation: acena 1.1s ease-in-out infinite; }
  .ex-acena .braco.e { transform: rotate(12deg); }
  .ex-acena .bob { animation: pula 1.1s ease-in-out infinite; }
  .ex-polichinelo .braco.e { animation: pol-be .9s ease-in-out infinite alternate; }
  .ex-polichinelo .braco.d { animation: pol-bd .9s ease-in-out infinite alternate; }
  .ex-polichinelo .coxa.e { animation: pol-ce .9s ease-in-out infinite alternate; }
  .ex-polichinelo .coxa.d { animation: pol-cd .9s ease-in-out infinite alternate; }
  .ex-polichinelo .bob { animation: pol-bob .45s ease-in-out infinite alternate; }
  .ex-agacho .bob { animation: ag-bob 1.6s ease-in-out infinite alternate; }
  .ex-agacho .coxa.e { animation: ag-ce 1.6s ease-in-out infinite alternate; }
  .ex-agacho .coxa.d { animation: ag-cd 1.6s ease-in-out infinite alternate; }
  .ex-agacho .coxa.e .canela { animation: ag-ke 1.6s ease-in-out infinite alternate; }
  .ex-agacho .coxa.d .canela { animation: ag-kd 1.6s ease-in-out infinite alternate; }
  .ex-agacho .braco.e { animation: ag-be 1.6s ease-in-out infinite alternate; }
  .ex-agacho .braco.d { animation: ag-bd 1.6s ease-in-out infinite alternate; }
  .ex-corre .braco.e, .ex-corre .coxa.d { animation: balanca .6s ease-in-out infinite alternate; }
  .ex-corre .braco.d, .ex-corre .coxa.e { animation: balanca .6s ease-in-out infinite alternate-reverse; }
  .ex-corre .coxa.e .canela { animation: joelho .6s ease-in-out infinite alternate; }
  .ex-corre .coxa.d .canela { animation: joelho .6s ease-in-out infinite alternate-reverse; }
  .ex-corre .bob { animation: pol-bob .3s ease-in-out infinite alternate; }
  .ex-abdominal .tronco { animation: abd 1.4s ease-in-out infinite alternate; }
  .ex-flexao .bob { animation: flex-bob 1.2s ease-in-out infinite alternate; }
  .ex-flexao .braco line { animation: flex-braco 1.2s ease-in-out infinite alternate; transform-box: view-box; }
}
/* posturas deitadas (estáticas, a animação mexe só nas partes) */
.ex-abdominal .raiz { transform: translate(6px, 54px) rotate(-90deg); }
.ex-abdominal .coxa.e, .ex-abdominal .coxa.d { transform: rotate(-58deg); }
.ex-abdominal .coxa .canela { transform: rotate(112deg); }
.ex-abdominal .braco.e { transform: rotate(150deg); }
.ex-abdominal .braco.d { transform: rotate(-150deg); }
.ex-flexao .raiz { transform: translate(0px, 40px) rotate(-74deg); }
.ex-flexao .braco.e, .ex-flexao .braco.d { transform: rotate(74deg); }
.ex-flexao .braco.e line, .ex-flexao .braco.d line { transform-origin: 68px 54px; }
.ex-flexao .braco.d line { transform-origin: 92px 54px; }
@keyframes acena { 0%, 100% { transform: rotate(-150deg); } 50% { transform: rotate(-118deg); } }
@keyframes pula { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pol-be { from { transform: rotate(14deg); } to { transform: rotate(158deg); } }
@keyframes pol-bd { from { transform: rotate(-14deg); } to { transform: rotate(-158deg); } }
@keyframes pol-ce { from { transform: rotate(3deg); } to { transform: rotate(17deg); } }
@keyframes pol-cd { from { transform: rotate(-3deg); } to { transform: rotate(-17deg); } }
@keyframes pol-bob { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes ag-bob { from { transform: translateY(0); } to { transform: translateY(17px); } }
@keyframes ag-ce { from { transform: rotate(0); } to { transform: rotate(42deg); } }
@keyframes ag-cd { from { transform: rotate(0); } to { transform: rotate(-42deg); } }
@keyframes ag-ke { from { transform: rotate(0); } to { transform: rotate(-58deg); } }
@keyframes ag-kd { from { transform: rotate(0); } to { transform: rotate(58deg); } }
@keyframes ag-be { from { transform: rotate(10deg); } to { transform: rotate(95deg); } }
@keyframes ag-bd { from { transform: rotate(-10deg); } to { transform: rotate(-95deg); } }
@keyframes balanca { from { transform: rotate(-32deg); } to { transform: rotate(32deg); } }
@keyframes joelho { from { transform: rotate(0); } to { transform: rotate(55deg); } }
@keyframes abd { from { transform: rotate(0); } to { transform: rotate(58deg); } }
@keyframes flex-bob { from { transform: translateY(0); } to { transform: translateY(9px); } }
@keyframes flex-braco { from { transform: scaleY(1); } to { transform: scaleY(.72); } }

/* Pódio */
.podio { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; max-width: 720px; margin: 26px auto 0; }
.degrau { display: flex; flex-direction: column; align-items: center; }
.degrau .quem { position: relative; width: min(150px, 100%); }
.degrau.l1 .quem { width: min(180px, 100%); }
.degrau .coroa { position: absolute; left: 50%; top: -34px; width: 46px; translate: -50% 0; z-index: 2; }
.degrau .bloco { width: 100%; background: var(--graf); color: var(--creme); border-radius: 16px 16px 0 0; text-align: center; padding: 14px 8px 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.degrau.l1 .bloco { background: var(--mag); color: var(--graf); min-height: 190px; }
.degrau.l2 .bloco { min-height: 150px; }
.degrau.l3 .bloco { min-height: 120px; }
.degrau .bloco b { font: 400 2.6rem/1 Anton, Impact, sans-serif; }
.degrau .nome { font-weight: 800; font-size: .95rem; }
.degrau .bloco a { color: inherit; font-size: .82rem; opacity: .85; }
.degrau .pts { font-size: .8rem; opacity: .8; margin-top: 4px; }
@media all {
  .pronto .degrau .bloco { animation: sobe .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.15s + var(--d) * .12s); transform-origin: bottom; }
  .pronto .degrau .quem { animation: cai .7s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(.6s + var(--d) * .15s); }
  .pronto .degrau.l1 .quem { animation-delay: 1.05s; }
  .pronto #lista li { animation: entra .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(1.2s + var(--i) * .06s); }
}
@keyframes sobe { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes cai { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }
@keyframes entra { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

/* Lista */
.lista-wrap { max-width: 820px; margin: 34px auto 0; }
#lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
#lista li { display: grid; grid-template-columns: 38px 70px 1fr auto auto; gap: 12px; align-items: center; background: var(--papel); border: 1.5px solid var(--linha); border-radius: 16px; padding: 6px 16px 6px 12px; }
#lista .pos { font: 400 1.5rem Anton, Impact, sans-serif; color: var(--mag-t); text-align: center; }
#lista .mini { width: 70px; height: 70px; }
#lista .quem b { display: block; font-size: 1rem; }
#lista .quem .ccl { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #ECE8DF; color: #5A4632; font-size: .75rem; font-weight: 600; }
#lista .quem a { font-size: .85rem; }
#lista .num { text-align: center; min-width: 52px; }
#lista .num b { display: block; font: 400 1.5rem/1 Anton, Impact, sans-serif; }
#lista .num small { font-size: .72rem; color: var(--cinza); }
@media (max-width: 560px) { #lista li { grid-template-columns: 30px 56px 1fr auto; } #lista .mini { width: 56px; height: 56px; } #lista .num:last-child { display: none; } .topo img { width: 150px; } .btn-story { font-size: .82rem; } .degrau .nome { font-size: .82rem; } }
.regras-rank { text-align: center; color: var(--cinza); font-size: .85rem; max-width: 40em; margin: 28px auto 0; }
.rodape { text-align: center; color: var(--cinza); font-size: .8rem; padding: 36px 0 60px; }
