#room:has(#podium:not([hidden])){background:radial-gradient(ellipse at 50% 20%,#ffd54d20,transparent 62%);box-shadow:none;border:0;border-radius:0}
#room:has(#podium:not([hidden])) .room-header{display:none}
.room-wrap:has(#podium:not([hidden]))>.rules-link{display:none!important}
#podium{text-align:center;position:relative}
.podium-toolbar{display:flex;justify-content:flex-end;align-items:center;min-height:44px;gap:12px}
.podium-toolbar:has(#skipPodium[hidden]){display:none}
#skipPodium{margin:0;min-height:44px;padding:8px 0}
.room-wrap #podiumTitle{font-size:clamp(28px,5vw,42px);margin:14px 0 4px;letter-spacing:0;color:var(--yellow);font-weight:900}
#podiumCue{min-height:24px;margin:0;color:var(--muted);font-size:15px}
.podium-scene{position:relative;margin:24px auto 0;max-width:620px}
#podiumStage{display:flex;align-items:flex-end;justify-content:center;gap:12px;min-height:350px;position:relative;isolation:isolate}
#podiumStage::before{content:"";position:absolute;z-index:-1;top:-12px;left:50%;width:min(76vw,460px);height:300px;transform:translateX(-50%);background:radial-gradient(ellipse at center top,#ffd54d20 0,transparent 70%);opacity:0;transition:opacity .35s ease}
.podium-victory #podiumStage::before{opacity:1}
.podium-place{--medal:#ffd54d;--step:150px;flex:1;min-width:0;max-width:210px;position:relative}
.podium-rank-1{--step:178px;max-width:250px}
.podium-rank-2{--medal:#c8d2df;--step:122px}
.podium-rank-3{--medal:#c98b60;--step:88px}
.podium-identity{min-height:138px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:0 2px 16px;visibility:hidden}
.podium-crown{display:block;width:34px;height:34px;flex-shrink:0;filter:invert(78%) sepia(55%) saturate(1100%) hue-rotate(3deg) brightness(102%);margin-bottom:-4px}
.podium-figure{display:block;width:52px;height:52px;max-width:100%;flex-shrink:0;object-fit:contain}
.podium-figure-winner{width:112px;height:112px;filter:drop-shadow(0 0 16px #ffd54d45);transform-origin:center bottom}
.podium-you{display:block;min-height:20px;font-size:12px;color:var(--yellow);line-height:20px}
.podium-name{font-size:20px;line-height:1.2;overflow-wrap:anywhere;max-width:100%;margin:4px 0 8px;letter-spacing:0}
.podium-rank-1 .podium-name{font-size:32px}
.podium-points{font-size:16px;font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--medal)}
.podium-rank-1 .podium-points{font-size:20px}
.podium-step{height:var(--step);background:linear-gradient(180deg,#ffffff0c,#ffffff03);border-top:3px solid #ffffff12;display:flex;flex-direction:column;align-items:center;padding:10px 4px 6px;box-sizing:border-box}
.podium-medal{width:44px;height:44px;flex-shrink:0;box-sizing:border-box;display:grid;place-items:center;border-radius:50%;border:2px solid var(--medal);color:var(--medal);font-size:28px;font-weight:900;visibility:hidden;background:var(--bg)}
.podium-place-label{color:var(--medal);font-size:12px;line-height:15px;margin-top:4px;visibility:hidden}
.is-revealed .podium-identity,.is-revealed .podium-medal,.is-revealed .podium-place-label{visibility:visible}
.is-revealed .podium-step{border-color:var(--medal);background:linear-gradient(180deg,color-mix(in srgb,var(--medal) 22%,transparent),#ffffff03)}
.podium-enter .podium-step{animation:podium-lift .5s cubic-bezier(.2,.8,.2,1) both}
.podium-enter .podium-identity{animation:podium-name-in .45s .1s both}
.podium-winner-enter .podium-figure-winner{animation:podium-winner-in .7s cubic-bezier(.2,.8,.2,1) both}
.podium-anticipation .podium-rank-1 .podium-step{border-color:var(--yellow);box-shadow:0 -12px 38px #ffd54d26;transition:border-color .45s,box-shadow .45s}
.podium-anticipation .podium-rank-1 .podium-figure-winner{filter:drop-shadow(0 0 24px #ffd54d80)}
#resultActions .rematch-primary{order:0;flex:1.4;font-size:18px;font-weight:900;letter-spacing:0}
#resultActions #newGame{order:1;flex:1}
.shared-phone-panel .rematch-primary{width:min(100%,340px);font-size:18px;font-weight:900}
.shared-phone-panel #sharedPhoneNewGame{width:min(100%,340px)}
#podiumHighlight{font-size:16px;color:var(--yellow);margin:20px 0 8px}
#podiumTies{margin:8px 0}
#result:has(#podium:not([hidden]))>.result-winner{text-align:center;font-size:16px;line-height:1.5;max-width:560px;margin:8px auto 20px}
#podiumHighlights{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}
#podiumHighlights summary{cursor:pointer;min-height:44px}
.podium-stat{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px;overflow-wrap:anywhere}
.podium-stat b{grid-row:span 3;min-width:0}
.podium-stat span{text-align:right;color:var(--muted)}
.podium-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#podiumConfetti{position:absolute;inset:-30px -10px 0;overflow:hidden;pointer-events:none;z-index:2}
#podiumConfetti i{position:absolute;top:30%;width:6px;height:10px;background:var(--yellow);opacity:0;animation:podium-confetti 1.2s var(--delay) ease-out both}
#podiumConfetti i:nth-child(3n){background:#c8d2df}
#podiumConfetti i:nth-child(3n+1){background:#61d6b5}
@keyframes podium-lift{from{transform:translateY(36px);opacity:.15}to{transform:translateY(0);opacity:1}}
@keyframes podium-name-in{from{transform:translateY(8px) scale(.96);opacity:0}to{transform:none;opacity:1}}
@keyframes podium-winner-in{0%{transform:translateY(14px) scale(.84)}65%{transform:translateY(-5px) scale(1.04)}100%{transform:none}}
@keyframes podium-confetti{0%{transform:translate(0,0) rotate(0);opacity:0}12%{opacity:1}100%{transform:translate(var(--drift),190px) rotate(var(--turn));opacity:0}}
@media(max-width:620px){
 .room-wrap:has(.room-finished){display:grid;grid-template-columns:minmax(0,1fr) auto}
 .room-wrap:has(.room-finished)>.room-brand{height:44px;padding:12px 0 0 18px;margin:0}
 .room-wrap:has(.room-finished)>.rules-link{min-height:44px;padding:8px 12px;font-size:14px}
 .room-wrap:has(.room-finished)>:not(.room-brand):not(.rules-link){grid-column:1/-1;min-width:0}
 .room-finished{padding-top:8px}
 .room-wrap #podiumTitle{font-size:24px}
 #podiumStage{gap:8px;min-height:285px}
 .podium-scene{margin-top:16px}
 .podium-place{--step:96px}
 .podium-rank-1{--step:128px;max-width:190px}
 .podium-rank-2{--step:86px}
 .podium-rank-3{--step:64px}
 .podium-name{font-size:16px}
 .podium-rank-1 .podium-name{font-size:22px}
 .podium-points{font-size:14px}
 .podium-rank-1 .podium-points{font-size:17px}
 .podium-medal{width:42px;height:42px;font-size:24px}
 .podium-step{padding-top:10px}
 .podium-identity{min-height:104px;padding-bottom:12px}
 .podium-figure-winner{width:84px;height:84px}
 .podium-crown{width:28px;height:28px}
 #result:has(#podium:not([hidden])) .result-actions{flex-direction:row}
 #resultActions .rematch-primary,#resultActions #newGame{flex:1;min-width:0}
}
@media(prefers-reduced-motion:reduce){#podium *,#podium *::before{animation:none!important;transition:none!important}#podiumConfetti{display:none}}