/* PARTY FINISHING TOUCHES. No element intercepts dice, movement or mini-game taps. */
#r20-party-flight-layer{position:fixed;inset:0;z-index:100001;pointer-events:none;overflow:hidden}
.r20-party-flying-coin{position:absolute;font-size:clamp(26px,3.8vw,48px);z-index:2;filter:drop-shadow(0 3px 9px #ffd55199);animation:r20-party-coin-flight 1s cubic-bezier(.18,.65,.23,1) both;will-change:transform,opacity}
.r20-party-flying-coin.lose{filter:drop-shadow(0 2px 9px #ff6e9999)}
@keyframes r20-party-coin-flight{0%{opacity:0;transform:translate(-50%,-50%) scale(.3) rotate(-25deg)}17%{opacity:1;transform:translate(-50%,-130%) scale(1.3) rotate(24deg)}78%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--r20-fly-x)),calc(-50% + var(--r20-fly-y))) scale(.46) rotate(300deg)}}
.r20-party-coin-pop{animation:r20-party-prize-pop .58s ease-out 1 both}
@keyframes r20-party-prize-pop{35%{filter:drop-shadow(0 0 15px #ffce51);transform:scale(1.07)}100%{filter:none;transform:scale(1)}}
#r20-party-toast{position:fixed;z-index:9800;top:clamp(75px,13vh,140px);left:50%;width:min(95vw,560px);transform:translate(-50%,-18px) scale(.9);opacity:0;pointer-events:none;text-align:center;padding:15px 20px;border:3px solid #ffe6ac;border-radius:25px;background:linear-gradient(135deg,#284983f2,#6b408ceb);color:#fff4bd;font-size:clamp(17px,2.5vw,27px);font-weight:1000;box-shadow:0 10px 36px #080c39ad;transition:transform .24s,opacity .24s}
#r20-party-toast.show{transform:translate(-50%,0) scale(1);opacity:1}
#r20-party-toast[data-kind="bad"]{border-color:#ffb5c1;color:#ffdbde}
.player.r20-party-finalist{outline:3px solid #ffdf75;box-shadow:0 0 26px #ffd65d80, inset 0 0 18px #ffe6a928;animation:r20-party-final-pulse 1.8s infinite alternate}
@keyframes r20-party-final-pulse{to{box-shadow:0 0 33px #ffe394c0,inset 0 0 15px #ffe6a94a}}
/* TV character podium; the original chosen portraits, never generated stand-ins. */
.r20-party-podium{display:flex;align-items:flex-end;justify-content:center;gap:clamp(10px,2.7vw,35px);width:100%;max-width:730px;margin:2px auto 7px;min-width:0;isolation:isolate}
.r20-party-stand{width:min(29%,210px);min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;animation:r20-party-rise .64s cubic-bezier(.17,1.3,.30,1) both;animation-delay:var(--r20-party-delay)}
.r20-party-place-1{order:2}.r20-party-place-2{order:1}.r20-party-place-3{order:3}
.r20-party-medal{font-size:clamp(18px,2.4vw,30px);line-height:1}
.r20-party-animal{width:clamp(58px,8vw,110px);height:clamp(58px,8vw,110px);background:linear-gradient(145deg,#f5e1a3,#b4eaf5);border-radius:27%;box-shadow:0 6px 12px #09153790, inset 0 2px 7px #fff;overflow:hidden;border:3px solid #fff2bf}
.r20-party-place-1 .r20-party-animal{width:clamp(75px,10vw,130px);height:clamp(75px,10vw,130px);border:4px solid #ffe597;animation:r20-party-star-bounce 1.15s ease-in-out infinite alternate}
.r20-party-animal img{width:100%;height:100%;object-fit:cover;display:block}
.r20-party-name{font-weight:1000;font-size:clamp(12px,1.4vw,18px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%;color:#fff9dd}
.r20-party-pillar{width:100%;height:clamp(42px,7vh,82px);border-radius:10px 10px 4px 4px;display:grid;place-items:center;color:#5b3a30;font-size:clamp(26px,3.7vw,48px);font-weight:1000;box-shadow:inset 0 5px 6px #fff8,0 5px 0 #121c50}
.r20-party-place-1 .r20-party-pillar{height:clamp(62px,10vh,125px);background:linear-gradient(#fff6b2,#d99d3d);border:3px solid #fff0a0}
.r20-party-place-2 .r20-party-pillar{background:linear-gradient(#f4ffff,#9daec2);border:3px solid #d8f1ff}
.r20-party-place-3 .r20-party-pillar{background:linear-gradient(#ffd6a5,#c57e4a);border:3px solid #f8ce9b}
.r20-party-prize{color:#ffebaf;font-size:clamp(11px,1.4vw,17px);font-weight:1000;white-space:nowrap}
.r20-party-winner-line{font-size:clamp(18px,2.6vw,29px);font-weight:1000;color:#fff0b4;margin:8px 0 2px}
.r20-party-winner-sub{font-size:clamp(12px,1.3vw,16px);color:#c7efff;margin:0 0 4px}
@keyframes r20-party-rise{from{opacity:0;transform:translateY(56px) scale(.7)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes r20-party-star-bounce{to{transform:translateY(-6px) rotate(-2deg);box-shadow:0 0 24px #ffdf7a}}
/* Mini-game revealed outcomes get a short non-blocking animated scene. */
.r20-party-reveal-visual{display:flex;align-items:center;justify-content:center;gap:clamp(9px,3vw,29px);margin:9px auto 2px;pointer-events:none;max-width:100%}
.r20-party-reveal-item{display:inline-block;font-size:clamp(34px,6vw,75px);filter:drop-shadow(0 5px 6px #0007);animation:r20-party-reveal-pop .64s cubic-bezier(.16,1.2,.2,1) both}
.r20-party-reveal-item:nth-child(2){animation-delay:.18s}
.r20-party-reveal-item:nth-child(3){animation-delay:.38s}
@keyframes r20-party-reveal-pop{0%{transform:translateY(20px) scale(.25) rotate(-12deg);opacity:0}85%{transform:translateY(-5px) scale(1.12);opacity:1}100%{transform:none;opacity:1}}
.r20-mg-phone .r20-party-podium{gap:5px;margin:0 auto}
.r20-mg-phone .r20-party-animal{width:clamp(47px,15vw,62px);height:clamp(47px,15vw,62px);border-width:2px}
.r20-mg-phone .r20-party-place-1 .r20-party-animal{width:clamp(54px,18vw,72px);height:clamp(54px,18vw,72px)}
.r20-mg-phone .r20-party-stand{width:30%;gap:2px}
.r20-mg-phone .r20-party-medal{font-size:17px}
.r20-mg-phone .r20-party-name{font-size:12px}
.r20-mg-phone .r20-party-pillar{height:34px;font-size:23px}
.r20-mg-phone .r20-party-place-1 .r20-party-pillar{height:48px}
.r20-mg-phone .r20-party-prize{font-size:11px}
.r20-mg-phone .r20-party-winner-line{font-size:16px;margin:3px 0}
.r20-mg-phone .r20-party-winner-sub{font-size:12px;margin:0}
.r20-mg-phone .r20-party-reveal-item{font-size:35px}
.r20-mg-tv.r20-party-podium-results .r20-mg-layout{gap:5px;padding-top:5px;padding-bottom:8px}
.r20-mg-tv.r20-party-podium-results .r20-mg-stage-main{padding:7px 12px}
.r20-mg-tv.r20-party-podium-results .r20-mg-center{min-height:0;flex:0}
.r20-mg-tv.r20-party-podium-results .r20-mg-scores{padding:6px 12px}
.r20-mg-tv.r20-party-podium-results .r20-mg-score-row{padding:4px 9px;margin:2px 0}
@media(max-height:710px){.r20-mg-tv .r20-party-animal{width:65px;height:65px}.r20-mg-tv .r20-party-place-1 .r20-party-animal{width:84px;height:84px}.r20-mg-tv .r20-party-pillar{height:40px}.r20-mg-tv .r20-party-place-1 .r20-party-pillar{height:60px}.r20-mg-tv .r20-party-winner-line{margin:2px 0}}
@media(prefers-reduced-motion:reduce){.r20-party-flying-coin,.r20-party-stand,.r20-party-animal,.r20-party-reveal-item,.player.r20-party-finalist{animation:none!important}#r20-party-toast{transition:none!important}}
/* Fit a complete four-player results ceremony on common 720p televisions. */
@media(min-width:900px) and (max-height:800px){
 .r20-mg-tv.r20-party-podium-results .r20-mg-layout{gap:2px;padding:1px 8px 3px;min-height:100dvh}
 .r20-mg-tv.r20-party-podium-results .r20-mg-head{margin:0;padding:0}
 .r20-mg-tv.r20-party-podium-results .r20-mg-eyebrow{font-size:11px;line-height:1}
 .r20-mg-tv.r20-party-podium-results .r20-mg-title{font-size:clamp(27px,2.7vw,37px);margin:1px 0;line-height:1}
 .r20-mg-tv.r20-party-podium-results .r20-mg-subtitle{display:none}
 .r20-mg-tv.r20-party-podium-results .r20-mg-timer{font-size:13px;line-height:1;padding:4px 12px;margin:3px 0}
 .r20-mg-tv.r20-party-podium-results .r20-mg-stage-main{padding:4px 12px;border-radius:14px}
 .r20-mg-tv.r20-party-podium-results .r20-party-animal{width:65px;height:65px}
 .r20-mg-tv.r20-party-podium-results .r20-party-place-1 .r20-party-animal{width:78px;height:78px}
 .r20-mg-tv.r20-party-podium-results .r20-party-pillar{height:27px;font-size:23px}
 .r20-mg-tv.r20-party-podium-results .r20-party-place-1 .r20-party-pillar{height:38px}
 .r20-mg-tv.r20-party-podium-results .r20-party-medal{font-size:16px}
 .r20-mg-tv.r20-party-podium-results .r20-party-name{font-size:13px;line-height:1}
 .r20-mg-tv.r20-party-podium-results .r20-party-prize{font-size:12px;line-height:1}
 .r20-mg-tv.r20-party-podium-results .r20-party-podium{margin:0 auto 1px;gap:15px}
 .r20-mg-tv.r20-party-podium-results .r20-party-winner-line{font-size:18px;margin:2px 0}
 .r20-mg-tv.r20-party-podium-results .r20-party-winner-sub{display:none}
 .r20-mg-tv.r20-party-podium-results .r20-mg-runner-up{font-size:13px;margin:1px}
 .r20-mg-tv.r20-party-podium-results .r20-mg-scores{padding:3px 10px}
 .r20-mg-tv.r20-party-podium-results .r20-mg-scores-heading{font-size:11px;margin:1px}
 .r20-mg-tv.r20-party-podium-results .r20-mg-score-row{padding:3px 9px;margin:2px 0;min-height:37px}
 .r20-mg-tv.r20-party-podium-results .r20-mg-player-name{font-size:15px}
 .r20-mg-tv.r20-party-podium-results .r20-mg-final-points{font-size:11px;line-height:1.1}
 .r20-mg-tv.r20-party-podium-results .r20-mg-coin-gain{font-size:17px}
 .r20-mg-tv.r20-party-podium-results .r20-mg-coin-total{font-size:11px;line-height:1}
 .r20-mg-tv.r20-party-podium-results .r20-mg-footer{font-size:11px;line-height:1}
}
@media(max-width:420px){
 .r20-mg-phone.r20-party-podium-results .r20-mg-layout{padding:4px 10px 8px;gap:4px}
 .r20-mg-phone.r20-party-podium-results .r20-mg-eyebrow{font-size:9px}
 .r20-mg-phone.r20-party-podium-results .r20-mg-title{font-size:26px;line-height:1;margin:1px 0}
 .r20-mg-phone.r20-party-podium-results .r20-mg-subtitle{display:none}
 .r20-mg-phone.r20-party-podium-results .r20-mg-timer{font-size:12px;padding:4px 7px;margin:2px 0}
 .r20-mg-phone.r20-party-podium-results .r20-mg-stage-main{padding:5px}
 .r20-mg-phone.r20-party-podium-results .r20-party-animal{width:43px;height:43px}
 .r20-mg-phone.r20-party-podium-results .r20-party-place-1 .r20-party-animal{width:55px;height:55px}
 .r20-mg-phone.r20-party-podium-results .r20-party-pillar{height:27px;font-size:20px}
 .r20-mg-phone.r20-party-podium-results .r20-party-place-1 .r20-party-pillar{height:36px}
 .r20-mg-phone.r20-party-podium-results .r20-party-name{font-size:11px}
 .r20-mg-phone.r20-party-podium-results .r20-party-prize{font-size:10px}
 .r20-mg-phone.r20-party-podium-results .r20-mg-runner-up{display:none}
 .r20-mg-phone.r20-party-podium-results .r20-party-winner-sub{display:none}
 .r20-mg-phone.r20-party-podium-results .r20-mg-phone-info{font-size:12px}
 .r20-mg-phone.r20-party-podium-results .r20-mg-scores{padding:4px 6px}
 .r20-mg-phone.r20-party-podium-results .r20-mg-scores-heading{font-size:10px;margin:2px 0}
 .r20-mg-phone.r20-party-podium-results .r20-mg-score-row{padding:4px 6px;margin:1px 0}
 .r20-mg-phone.r20-party-podium-results .r20-mg-footer{font-size:10px;line-height:1.1}
}
/* Individual reveals feel distinct, without delaying the game's clock. */
.r20-party-reveal-rocket .r20-party-reveal-item:first-child{animation-name:r20-party-launch;animation-duration:.8s}
.r20-party-reveal-bomb .r20-party-reveal-item:last-child{animation-name:r20-party-boom}
.r20-party-reveal-cups .r20-party-reveal-item:nth-child(2){animation-name:r20-party-coin-reveal}
.r20-party-reveal-penalty .r20-party-reveal-item:first-child{animation-name:r20-party-kick}
@keyframes r20-party-launch{from{transform:translate(-70px,45px) rotate(-25deg) scale(.3);opacity:.2}to{transform:none;opacity:1}}
@keyframes r20-party-boom{from{transform:scale(.2);opacity:0}60%{transform:scale(1.6);opacity:1}to{transform:scale(1);opacity:1}}
@keyframes r20-party-coin-reveal{from{transform:translateY(-45px) scale(.2);opacity:0}to{transform:none;opacity:1}}
@keyframes r20-party-kick{from{transform:translate(-80px,20px) rotate(-70deg);opacity:.5}to{transform:none;opacity:1}}
