/* GIRUZIN V1929 — campo ampliado, posicionamento por função e animação de impacto */
:root{--g1929-neon:#44ffd0;--g1929-gold:#ffe36e;--g1929-red:#ff405e}
.mc-shell .pitch-card{height:clamp(360px,42vw,520px)!important;min-height:360px;border:2px solid #5af7b2;box-shadow:inset 0 0 45px #001a0b,0 0 0 2px #27ffb522,0 0 32px #12e9a326;background-size:100% 100%;transition:height .35s ease}
.mc-shell .pitch-card:before{inset:12px;border-width:2px;background:linear-gradient(90deg,transparent calc(50% - 1px),#eaffdfbb calc(50% - 1px) calc(50% + 1px),transparent calc(50% + 1px))}
.mc-shell .pitch-card:after{width:clamp(90px,10vw,130px);height:clamp(90px,10vw,130px);border-width:2px}
.mc-shell .pitch-player{width:clamp(66px,7vw,90px);z-index:3;transition:left .5s cubic-bezier(.16,1,.3,1),top .5s cubic-bezier(.16,1,.3,1),filter .25s,transform .25s}
.mc-shell .pitch-player img,.mc-shell .pitch-player span{width:clamp(35px,3.6vw,46px);height:clamp(35px,3.6vw,46px);font-size:12px;box-shadow:0 0 0 2px #ffffff18,0 5px 13px #00150dcc}
.mc-shell .pitch-player b{font-size:clamp(9px,.8vw,11px);max-width:100px;text-align:center;text-shadow:0 2px 5px #00140b,0 0 8px #000}
.mc-shell .pitch-player:hover{z-index:8;transform:translate(-50%,-50%) scale(1.18);filter:drop-shadow(0 0 9px var(--g1929-neon))}
.mc-shell .pitch-player.role-gk{left:7%!important;top:50%!important}
.mc-shell .pitch-player.role-cb{left:23%!important}
.mc-shell .pitch-player.role-lb{left:17%!important;top:18%!important}
.mc-shell .pitch-player.role-rb{left:17%!important;top:82%!important}
.mc-shell .pitch-player.role-dm{left:39%!important}
.mc-shell .pitch-player.role-mf{left:51%!important}
.mc-shell .pitch-player.role-lw{left:67%!important;top:25%!important}
.mc-shell .pitch-player.role-rw{left:67%!important;top:75%!important}
.mc-shell .pitch-player.role-st{left:84%!important;top:50%!important}
.mc-shell .pitch-player.role-cb:nth-of-type(3){top:37%!important}
.mc-shell .pitch-player.role-cb:nth-of-type(4){top:63%!important}
.mc-shell .pitch-player.role-dm:nth-of-type(3){top:35%!important}
.mc-shell .pitch-player.role-dm:nth-of-type(4){top:65%!important}
.mc-shell .pitch-player.role-mf:nth-of-type(3){top:32%!important}
.mc-shell .pitch-player.role-mf:nth-of-type(4){top:68%!important}
.mc-shell .pitch-player.role-unknown{filter:drop-shadow(0 0 4px #ffffff66)}
.mc-shell .formation.away .pitch-player.role-gk{left:93%!important}
.mc-shell .formation.away .pitch-player.role-cb{left:77%!important}
.mc-shell .formation.away .pitch-player.role-lb{left:83%!important;top:82%!important}
.mc-shell .formation.away .pitch-player.role-rb{left:83%!important;top:18%!important}
.mc-shell .formation.away .pitch-player.role-dm{left:61%!important}
.mc-shell .formation.away .pitch-player.role-mf{left:49%!important}
.mc-shell .formation.away .pitch-player.role-lw{left:33%!important;top:75%!important}
.mc-shell .formation.away .pitch-player.role-rw{left:33%!important;top:25%!important}
.mc-shell .formation.away .pitch-player.role-st{left:16%!important}
@keyframes g1929-player-enter{0%{opacity:0;transform:translate(-50%,-50%) scale(.15) rotate(-18deg);filter:blur(7px)}70%{opacity:1;transform:translate(-50%,-50%) scale(1.13);filter:blur(0)}100%{transform:translate(-50%,-50%) scale(1)}}
@keyframes g1929-field-sweep{0%{transform:translateX(-130%) skewX(-18deg);opacity:0}20%{opacity:.75}100%{transform:translateX(250%) skewX(-18deg);opacity:0}}
@keyframes g1929-score-impact{0%{transform:scale(1);filter:brightness(1)}20%{transform:scale(1.16);filter:brightness(2.1) drop-shadow(0 0 22px #ffe36e)}42%{transform:scale(.94)}65%{transform:scale(1.08)}100%{transform:scale(1);filter:brightness(1)}}
@keyframes g1929-goal-shock{0%{box-shadow:inset 0 0 0 0 #ffe36e00}20%{box-shadow:inset 0 0 0 8px #ffe36eaa,0 0 60px #ffb52d99}100%{box-shadow:inset 0 0 0 0 #ffe36e00}}
.mc-shell .pitch-card:after{animation:none}
@keyframes g1929-pitch-pulse{0%,100%{box-shadow:0 0 0 #54ffd000}50%{box-shadow:0 0 22px #54ffd044}}
.mc-shell .pitch-player{animation:g1929-player-enter .7s cubic-bezier(.16,1,.3,1) both}
.mc-shell .pitch-player:nth-child(2){animation-delay:.03s}.mc-shell .pitch-player:nth-child(3){animation-delay:.06s}.mc-shell .pitch-player:nth-child(4){animation-delay:.09s}.mc-shell .pitch-player:nth-child(5){animation-delay:.12s}.mc-shell .pitch-player:nth-child(6){animation-delay:.15s}
.mc-shell .mc-score{position:relative;overflow:hidden}
.mc-shell .mc-score:after{content:"";position:absolute;pointer-events:none;top:0;bottom:0;left:-45%;width:30%;background:linear-gradient(90deg,transparent,#7effe533,transparent);animation:none}
.mc-shell .mc-result strong{display:inline-block}
.mc-shell .mc-result strong.updated,.mc-shell .mc-result strong.score-updated{animation:g1929-score-impact .9s ease-out}
.goal-overlay.active,.goal-overlay.show,.goal-overlay[aria-hidden="false"]{animation:g1929-goal-shock 1.1s ease-out}
@media(max-width:700px){.mc-shell .pitch-card{height:clamp(330px,95vw,440px)!important}.mc-shell .pitch-player{width:60px}.mc-shell .pitch-player b{font-size:8px;max-width:65px}.mc-shell .pitch-player img,.mc-shell .pitch-player span{width:29px;height:29px}}
@media(prefers-reduced-motion:reduce){.mc-shell .pitch-player,.mc-shell .pitch-card:after,.mc-shell .mc-score:after{animation:none!important}}

/* V1930: animações ligadas aos eventos reais renderizados na timeline */
.mc-shell .timeline-event[data-kind="goal"]{position:relative;isolation:isolate;border-color:#ffd65a!important;animation:g1930-goal-card 1.25s cubic-bezier(.16,1,.3,1) both}
.mc-shell .timeline-event[data-kind="goal"]::before{content:"";position:absolute;inset:-2px;border-radius:inherit;border:1px solid #ffe36e;pointer-events:none;animation:g1930-goal-ring 1.1s ease-out both}
.mc-shell .timeline-event[data-kind="goal"] i{display:inline-grid;place-items:center;animation:g1930-ball-pop .75s cubic-bezier(.16,1,.3,1) both;filter:drop-shadow(0 0 7px #ffe36e)}
.mc-shell .timeline-event[data-kind="card"]{animation:g1930-card-enter .55s cubic-bezier(.16,1,.3,1) both}
.mc-shell .timeline-event[data-kind="phase"]{animation:g1930-phase-enter .65s ease-out both}
@keyframes g1930-goal-card{0%{transform:translateY(10px) scale(.96);opacity:.3;box-shadow:0 0 0 #ffd65a00}35%{transform:translateY(0) scale(1.025);opacity:1;box-shadow:0 0 28px #ffd65a66}100%{transform:none;opacity:1;box-shadow:0 0 10px #ffd65a22}}
@keyframes g1930-goal-ring{0%{transform:scale(.94);opacity:1}100%{transform:scale(1.06);opacity:0}}
@keyframes g1930-ball-pop{0%{transform:scale(.2) rotate(-90deg)}65%{transform:scale(1.35) rotate(15deg)}100%{transform:scale(1) rotate(0)}}
@keyframes g1930-card-enter{0%{opacity:0;transform:translateX(-12px)}100%{opacity:1;transform:translateX(0)}}
@keyframes g1930-phase-enter{0%{opacity:0;filter:blur(3px)}100%{opacity:1;filter:none}}

/* V1931 — legibilidade das escalações e posições por formação */
.mc-shell .pitch-card{isolation:isolate}
.mc-shell .pitch-player{width:clamp(54px,6.1vw,76px)!important;min-width:0!important}
.mc-shell .pitch-player b{display:block;width:clamp(58px,7.2vw,92px);max-width:none!important;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.12;font-size:clamp(8px,.78vw,10px)!important;padding:2px 3px;border-radius:4px;background:#00180fdd;box-sizing:border-box;margin-top:2px}
.mc-shell .pitch-player img,.mc-shell .pitch-player span{flex-shrink:0}
.mc-shell .formation{position:absolute;inset:0}
@media(max-width:700px){.mc-shell .pitch-card{height:clamp(360px,110vw,500px)!important;min-height:360px}.mc-shell .pitch-player{width:44px!important}.mc-shell .pitch-player img,.mc-shell .pitch-player span{width:25px!important;height:25px!important;font-size:10px}.mc-shell .pitch-player b{width:clamp(48px,14vw,66px);font-size:7px!important;line-height:1.05;padding:2px 1px;letter-spacing:-.1px}}
@media(max-width:380px){.mc-shell .pitch-player{width:36px!important}.mc-shell .pitch-player img,.mc-shell .pitch-player span{width:22px!important;height:22px!important}.mc-shell .pitch-player b{width:48px;font-size:6.5px!important}}
\n/* V1945: alinhamento tático por equipe; posições no campo ficam confinadas à metade de cada time. */
.mc-shell .pitch-card{isolation:isolate;overflow:hidden}
.mc-shell .pitch-card>.formation.home{left:0!important;right:50%!important;width:50%!important;inset:0 50% 0 0!important;overflow:visible;}
.mc-shell .pitch-card>.formation.away{left:50%!important;right:0!important;width:50%!important;inset:0 0 0 50%!important;overflow:visible;}
.mc-shell .pitch-card .pitch-player{width:76px!important;max-width:76px!important;z-index:3;gap:2px;}
.mc-shell .pitch-card .pitch-player b{display:block!important;max-width:76px!important;white-space:normal!important;text-align:center!important;font-size:9px!important;line-height:1.1!important;font-weight:700!important;padding:2px 3px!important;border-radius:4px!important;background:rgba(0,18,10,.88)!important;overflow-wrap:anywhere!important;}
.mc-shell .pitch-card .pitch-player .pitch-player-mark,.mc-shell .pitch-card .pitch-player img{width:27px!important;height:27px!important;border-radius:50%!important;display:grid;place-items:center;border:2px solid #4a8cff;background:#063b9b;color:white;font-size:9px;font-weight:900;object-fit:cover;}
.mc-shell .pitch-card .formation.away .pitch-player .pitch-player-mark,.mc-shell .pitch-card .formation.away .pitch-player img{border-color:#ff384e;background:#7d0715;}
