/* Rally uses Chain/Spin's shared score-reveal stage, rays, halo, flash,
   waves and particles; shiny plays add Chain/Spin's ×2 impact. */
.track-panel .rally-name-only{z-index:9;pointer-events:none}
.rally-name-only .score-reveal-stage{
 width:min(380px,92%);height:280px;top:50%;
}
.rally-name-only .score-reveal-content{justify-content:center;gap:10px}
.rally-name-only .score-reveal-name{
 display:block;font:900 clamp(16px,3vw,26px)/1.25 Rally,Arial,sans-serif;
 letter-spacing:.5px;color:#fff6cb;text-shadow:0 3px 0 #183746,0 0 18px #10293b;
 max-width:94%;overflow-wrap:anywhere;
 animation:rally-name-arrive 650ms cubic-bezier(.17,.75,.3,1) both;
}
.rally-name-only .score-reveal-pokemon{
 display:block;width:clamp(85px,14vw,136px);height:clamp(85px,14vw,136px);
 margin:0;image-rendering:pixelated;object-fit:contain;
 filter:drop-shadow(0 6px 4px #0c283c90);
 animation:rally-sprite-arrive 750ms cubic-bezier(.19,.8,.2,1) both;
}
.rally-name-only .score-reveal-halo{
 background:radial-gradient(ellipse,#58d2fa6e,transparent 67%);
}
.rally-name-only.final .score-reveal-halo{
 background:radial-gradient(ellipse,#58d2fa6e,transparent 67%);
}
.rally-name-only .score-reveal-stage{isolation:isolate}
@keyframes rally-name-arrive{
 0%{opacity:0;transform:translateY(20px) scale(.78)}
 50%{opacity:1;transform:translateY(-4px) scale(1.06)}
 100%{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes rally-sprite-arrive{
 0%{opacity:0;transform:translateY(24px) scale(.45)}
 53%{opacity:1;transform:translateY(-5px) scale(1.15)}
 77%{opacity:1;transform:translateY(2px) scale(.96)}
 100%{opacity:1;transform:translateY(0) scale(1)}
}
@media(max-width:760px){
 .rally-name-only .score-reveal-stage{height:230px}
 .rally-name-only .score-reveal-pokemon{width:98px;height:98px}
 .rally-name-only .score-reveal-name{font-size:clamp(15px,4.8vw,22px)}
}
@media(prefers-reduced-motion:reduce){
 .rally-name-only .score-reveal-name,
 .rally-name-only .score-reveal-pokemon{animation:none!important}
}

/* Only shiny Pokémon get the shared multiplier impact and golden halo. */
.rally-name-only.shiny .score-reveal-stage{height:310px}
.rally-name-only.shiny .score-reveal-content{gap:1px}
.rally-name-only.shiny .score-reveal-pokemon{width:104px;height:104px}
.rally-name-only.shiny .score-reveal-halo,
.rally-name-only.shiny.final .score-reveal-halo{background:radial-gradient(ellipse,#ffe28291,transparent 68%)}
.rally-name-only .score-reveal-number[hidden],
.rally-name-only .score-reveal-label[hidden]{display:none!important}
.rally-name-only.shiny .score-reveal-number{
 font-size:clamp(56px,12vw,76px);line-height:1;margin-top:0;letter-spacing:-2px
}
.rally-name-only.shiny .score-reveal-number>span{
 background:linear-gradient(#fffbd8,#ffe879 46%,#ec9e48);
 background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;
 -webkit-text-stroke:1px #fff7d2;
}
.rally-name-only.shiny .score-reveal-label{font-size:clamp(10px,2.3vw,13px);margin-top:0;letter-spacing:1px}
@media(max-width:760px){
 .rally-name-only.shiny .score-reveal-stage{height:250px}
 .rally-name-only.shiny .score-reveal-pokemon{width:80px;height:80px}
 .rally-name-only.shiny .score-reveal-number{font-size:57px}
}
