/* Seis Dodos final ceremony — uses the existing colors, paper, type and dog portraits. */
.hybrid-modal .hybrid-modal-panel{position:relative}
.hybrid-modal.is-match-finale .hybrid-modal-panel{width:min(100%,720px);max-height:calc(100dvh - 24px);max-height:calc(100svh - 24px);padding:clamp(12px,3vw,21px)}
.hybrid-modal.is-match-finale .results-mascot{max-height:56px}
.hybrid-modal .results-kicker{margin:5px 0 0}
.hybrid-modal.is-match-finale #resultsTitle{font-size:clamp(1.55rem,5vw,2.75rem);line-height:1.12;margin:4px auto 12px;overflow-wrap:anywhere}
.hybrid-modal .results-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:13px}
.hybrid-modal .results-actions button,.hybrid-modal .result-details summary,.finale-controls button{min-height:44px}
#resultsAnnouncement{position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;overflow:hidden}
.victory-podium{max-width:660px;margin:0 auto 12px;text-align:center}
.podium-intro{font:900 clamp(.77rem,2.1vw,1rem)/1.25 var(--ui);color:var(--navy);margin:2px 0 8px;letter-spacing:.05em}
.podium-stage{display:flex;align-items:flex-end;justify-content:center;gap:clamp(5px,2vw,14px);max-width:100%;min-width:0}
.podium-contestant{--pup-suit:#fff3d7;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0;width:clamp(70px,29%,205px);flex:0 1 205px;text-align:center;position:relative}
.podium-stage.count-2 .podium-contestant{flex-basis:180px;width:42%}
.podium-pup{position:relative;width:min(95%,110px);height:clamp(105px,23vw,170px);display:flex;flex-direction:column;align-items:center;justify-content:flex-end;flex-shrink:0;transform-origin:center bottom}
.podium-head{width:90%;height:48%;position:relative;z-index:4;display:flex;align-items:flex-end;justify-content:center;margin-bottom:-9%;transform-origin:50% 95%}
.podium-head .dodo-art{height:100%!important;width:auto!important;aspect-ratio:473 / 634;max-height:100%;max-width:100%;display:block}
.podium-head .dodo-art img{display:block;height:100%;width:100%;object-fit:contain}
.podium-body{width:90%;height:54%;position:relative;z-index:3}
.finale-body-svg{width:100%;height:100%;overflow:visible;display:block}
.finale-body-svg g{transform-box:fill-box}
.finale-body-svg .rig-arm-left,.finale-body-svg .rig-arm-right{transform-origin:50% 90%}
.finale-body-svg .rig-leg-left,.finale-body-svg .rig-leg-right{transform-origin:50% 10%}
.finale-body-svg .rig-tail{transform-origin:5% 50%}
.finale-body-svg .rig-torso{transform-origin:center 50%}
.finale-body-svg .rig-tail path{stroke:var(--pup-suit);stroke-width:12;stroke-linecap:round;fill:none;paint-order:stroke;stroke-linejoin:round;filter:drop-shadow(1px 0 0 var(--navy))}
.finale-body-svg .rig-arm-left path,.finale-body-svg .rig-arm-right path,
.finale-body-svg .rig-leg-left path,.finale-body-svg .rig-leg-right path,
.finale-body-svg .rig-torso>path:first-child{fill:var(--pup-suit);stroke:var(--navy);stroke-width:2.7;stroke-linejoin:round}
.finale-body-svg .rig-chest{fill:#fff9ec;stroke:var(--navy);stroke-width:1.3}
.podium-who{z-index:3;min-height:46px;background:#fffaf0;border:2px solid var(--navy);border-bottom:none;border-radius:10px 10px 0 0;width:100%;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:7px 3px 5px;min-width:0}
.podium-name{font:800 clamp(.75rem,2vw,1.06rem)/1.2 var(--ui);overflow-wrap:anywhere;hyphens:auto}
.podium-points{font:800 clamp(.72rem,1.9vw,.94rem)/1.2 var(--ui);color:var(--red)}
.podium-step{height:clamp(56px,11vw,115px);width:100%;background:linear-gradient(150deg,#ead4ae,#d0a16b);border:2px solid #a47647;border-bottom:5px solid #9c6a40;box-shadow:inset 0 6px 0 #fff9;display:flex;align-items:center;justify-content:center;border-radius:7px 7px 0 0;transform-origin:center bottom}
.podium-rank{font:900 clamp(2.05rem,7vw,4.2rem)/1 var(--ui);color:var(--navy)}
.podium-tier-1 .podium-step{height:clamp(95px,17vw,164px);background:linear-gradient(145deg,#fff4a1,#f1ca3b);border-color:#ad8523}
.podium-tier-2 .podium-step{height:clamp(72px,14vw,135px);background:linear-gradient(145deg,#f2f5fc,#c0cad7);border-color:#8595ab}
.podium-tier-3 .podium-step{background:linear-gradient(145deg,#f0d7b3,#ca8d55)}
.podium-footnote{font:600 .76rem/1.4 var(--ui);margin:7px 0;color:#536685}
.result-details{background:#fffdf6;border:1.5px solid #cbd6e6;border-radius:10px;margin:9px 0;text-align:left;max-width:100%;min-width:0}
.result-details summary{padding:10px 12px;cursor:pointer;font:800 clamp(.82rem,2vw,.98rem)/1.35 var(--ui)}
.result-details summary:focus-visible,.finale-controls button:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.result-details .result-standings,.result-details .round-breakdown{padding:0 8px 9px}
.result-player{display:grid;grid-template-columns:28px 42px minmax(0,1fr) minmax(83px,auto);text-align:left;gap:8px;align-items:center}
.result-player .result-identity{min-width:0;display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.result-player .result-name{font:800 clamp(.85rem,2vw,1rem)/1.25 var(--ui);overflow-wrap:anywhere}
.result-player .result-round{font:700 clamp(.78rem,1.9vw,.87rem)/1.24 var(--ui)}
.result-player .result-score{justify-self:end;text-align:right;font:800 clamp(.75rem,1.8vw,.98rem)/1.25 var(--ui);overflow-wrap:anywhere}
.result-awards{display:grid;gap:8px;text-align:left;margin:10px 0}
.award-note{display:flex;flex-direction:column;gap:5px;border:1.5px solid #d7e1ee;border-radius:11px;padding:12px;background:#f9fbff;margin:0}
.award-note .award-title{font:900 clamp(.89rem,2vw,1.06rem)/1.3 var(--ui)}
.award-note .award-copy{font:600 clamp(.78rem,1.8vw,.93rem)/1.4 var(--ui)}
.award-clean{background:#fbfdff;border-color:#dce5f2}
.award-moon{background:#f4edff;border-color:#ae96d6}
.finale-controls{display:flex;gap:7px;justify-content:flex-end;align-items:center;flex-wrap:wrap;margin:2px 0 0}
.finale-controls button{font:800 .78rem/1.25 var(--ui);padding:5px 8px;border-radius:8px;border:1px solid #becce0;color:var(--navy);background:#fffefa}
.finale-confetti-canvas{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:1001}
.finale-fallback{position:fixed;inset:0;z-index:1001;pointer-events:none;overflow:hidden}
.finale-fallback-particle{position:absolute;top:-15px;left:var(--fx);width:9px;height:14px;border-radius:2px;background:var(--fc);animation:finalePaperFall 2.1s linear var(--fd) forwards}
@keyframes finalePaperFall{to{transform:translateY(100vh) rotate(390deg);opacity:0}}
.hybrid-modal.finale-complete #skipCelebration,.hybrid-modal.celebration-skipped #skipCelebration{display:none}
@media(max-width:430px){
 .hybrid-modal.is-match-finale .hybrid-modal-panel{padding:10px;max-height:calc(100svh - 16px)}
 .podium-stage{gap:3px}
 .podium-contestant{flex-basis:33%;width:33%;min-width:0}
 .podium-pup{height:clamp(92px,28vw,133px);width:95%}
 .podium-who{padding:5px 2px 3px;min-height:47px}
 .podium-name{font-size:.73rem}
 .podium-points{font-size:.69rem}
 .podium-step{min-height:43px}
 .podium-tier-1 .podium-step{height:clamp(76px,20vw,108px)}
 .podium-tier-2 .podium-step{height:clamp(58px,16vw,94px)}
 .podium-rank{font-size:clamp(1.7rem,7.2vw,2.7rem)}
 .result-player{grid-template-columns:24px 35px minmax(0,1fr) minmax(68px,auto);gap:5px;padding:7px}
 .result-player .results-avatar,.result-player .results-avatar .avatar{width:35px;height:42px}
 .result-player .result-name{font-size:.83rem}
 .result-player .result-score{font-size:.76rem}
}
@media(prefers-reduced-motion:reduce){
 .podium-contestant,.podium-pup,.podium-head,.podium-body,.podium-step,.award-note{animation:none!important;transition:none!important;transform:none!important;opacity:1!important;visibility:visible!important}
 .finale-confetti-canvas,.finale-fallback{display:none!important}
}

/* Natural scoring summary: one glance first, exact cards only when requested. */
#roundBreakdown{display:grid;gap:8px;padding:0 4px 10px}
#roundBreakdown .round-detail{border:1px solid #d5dfeb;border-radius:10px;background:#fffefd;overflow:hidden}
#roundBreakdown .round-detail>summary{font:800 clamp(.89rem,2vw,1.03rem)/1.3 var(--ui);padding:11px 12px;cursor:pointer}
#roundBreakdown .round-detail[open]>summary{border-bottom:1px solid #d5dfeb}
.score-story{padding:11px 12px;border-bottom:1px solid #e3eaf3}
.score-story:last-child{border-bottom:0}
.score-story-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}
.score-story-heading strong{font:800 clamp(.84rem,1.9vw,.99rem)/1.3 var(--ui);overflow-wrap:anywhere}
.score-story-heading strong:last-child{white-space:nowrap;color:var(--red)}
.score-story-intro{margin:3px 0 0;font:600 clamp(.78rem,1.75vw,.91rem)/1.35 var(--ui);color:#526782}
.score-story-more{margin-top:4px}
.score-story-more>summary{padding:6px 0;min-height:40px;font:800 clamp(.75rem,1.65vw,.85rem)/1.3 var(--ui);color:var(--blue);cursor:pointer}
.score-story-moves{display:grid;gap:6px;padding:4px 0 2px}
.score-story-move{padding:8px 10px;background:#f1f6fb;border-left:3px solid var(--outline);border-radius:6px}
.score-story-move p{margin:0;font:700 clamp(.77rem,1.65vw,.89rem)/1.35 var(--ui)}
.score-story-move small{display:block;margin-top:3px;color:#4d637f;font:600 clamp(.72rem,1.5vw,.83rem)/1.35 var(--ui)}
/* Clean Paws is a short, deliberate character celebration, not a one-second flash. */
.award-dogs{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;min-height:62px;padding:2px 0}
.award-dog{display:inline-flex;align-items:center;justify-content:center;width:clamp(51px,11vw,70px);height:clamp(59px,12vw,76px);min-width:0;transform-origin:50% 100%}
.award-dog .dodo-art{width:100%!important;height:100%!important;max-width:100%;max-height:100%}
.award-dog .dodo-art img{width:100%;height:100%;object-fit:contain;display:block}
.award-note{overflow:visible}
@media(max-width:430px){
 #roundBreakdown .score-story{padding:9px 8px}
 .score-story-heading strong{font-size:.86rem}
 .score-story-intro{font-size:.79rem}
 .score-story-move p{font-size:.78rem}
 .award-dogs{min-height:52px}
 .award-dog{width:51px;height:60px}
}
@media(prefers-reduced-motion:reduce){.award-dog{animation:none!important;transform:none!important}}

/* Seis Dodos celebration-stage visual polish: original artwork, richer but quiet setting */
.podium-scene{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  margin:6px auto 14px;
  padding:24px clamp(7px,2vw,16px) 0;
  border:2px solid #a9bfd3;
  border-radius:18px 18px 12px 12px;
  background:
    radial-gradient(ellipse at 50% 45%,rgba(255,221,94,.43) 0,rgba(255,233,169,.2) 32%,transparent 63%),
    radial-gradient(ellipse at 5% 15%,rgba(98,214,188,.22),transparent 44%),
    radial-gradient(ellipse at 93% 16%,rgba(255,109,136,.16),transparent 45%),
    linear-gradient(180deg,#fffef7 0%,#fff6df 84%,#ffe8aa 100%);
  box-shadow:inset 0 0 0 5px rgba(255,255,255,.62),0 7px 19px rgba(17,49,91,.1);
}
.podium-scene::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:-42% -40% -8%;
  opacity:.11;
  pointer-events:none;
  background:repeating-conic-gradient(from -7deg at 50% 44%,#f5b22d 0deg 10deg,transparent 10deg 22deg);
  -webkit-mask-image:radial-gradient(ellipse at 50% 45%,#000 0%,transparent 72%);
  mask-image:radial-gradient(ellipse at 50% 45%,#000 0%,transparent 72%);
}
.podium-scene::after{
  content:"";
  position:absolute;
  z-index:0;
  left:0;right:0;bottom:0;height:7px;
  background:repeating-linear-gradient(90deg,#ff486d 0 15px,#ffd13b 15px 30px,#42bda0 30px 45px,#397fbd 45px 60px);
}
.podium-scene .podium-stage{position:relative;z-index:2;padding-top:10px}
.podium-sparkle-layer{position:absolute;inset:0;z-index:1;pointer-events:none}
.podium-sparkle{
  position:absolute;
  left:var(--star-x);top:var(--star-y);
  font-size:clamp(13px,2.6vw,23px);
  line-height:1;
  font-weight:900;
  color:#e7a323;
  text-shadow:0 1px 0 #fff,0 0 4px rgba(255,255,255,.4);
  opacity:.62;
  animation:dodoSparkle 3.7s ease-in-out infinite alternate;
}
.podium-sparkle:nth-child(2n){color:#37a5a7;animation-delay:1s}
.podium-sparkle:nth-child(3n){color:#f0677f;animation-delay:1.9s}
@keyframes dodoSparkle{0%,100%{transform:scale(.7) rotate(-10deg);opacity:.3}50%{transform:scale(1.17) rotate(12deg);opacity:.8}}
.podium-pup{isolation:isolate}
.podium-tier-1 .podium-pup::before{
  content:"";
  position:absolute;
  z-index:-1;
  width:120%;aspect-ratio:1;
  left:-10%;top:-13%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,239,131,.92) 0%,rgba(252,208,78,.3) 48%,transparent 73%);
  box-shadow:0 0 35px rgba(254,222,131,.3);
  pointer-events:none;
}
.podium-tier-2 .podium-pup::before,.podium-tier-3 .podium-pup::before{
  content:"";
  position:absolute;
  z-index:-1;
  width:115%;aspect-ratio:1;
  left:-7.5%;top:-9%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.84),rgba(255,255,255,0) 70%);
  pointer-events:none;
}
.podium-contestant .podium-head{filter:drop-shadow(0 2px 0 rgba(27,48,77,.15))}
.podium-contestant .podium-who{box-shadow:0 2px 2px rgba(24,61,100,.11)}
.podium-contestant .podium-step{box-shadow:inset 0 6px 0 rgba(255,255,255,.54),0 4px 0 rgba(52,83,116,.15)}
.podium-points{font-variant-numeric:tabular-nums}
@media(max-width:430px){
  .podium-scene{margin:4px auto 10px;padding:16px 5px 0;border-radius:12px}
  .podium-scene .podium-stage{padding-top:4px}
  .podium-sparkle{font-size:12px}
  .podium-tier-1 .podium-pup::before{width:110%;left:-5%}
}
@media(prefers-reduced-motion:reduce){
  .podium-sparkle{animation:none!important}
}

/* Finale stage refresh: a little party-theatre set, not an empty cream backdrop. */
.podium-scene{
  isolation:isolate;
  position:relative;
  overflow:hidden;
  padding:clamp(38px,6.5vw,72px) clamp(5px,2vw,20px) 0;
  border:2.5px solid #204576;
  border-radius:18px;
  background:
    radial-gradient(ellipse 48% 70% at 50% 28%,#fffdf5 0%,rgba(255,253,242,.92) 33%,rgba(242,224,184,.18) 85%,transparent 100%),
    repeating-conic-gradient(from 0deg at 50% 98%,rgba(255,226,109,.23) 0deg 13deg,rgba(255,255,255,.0) 14deg 27deg),
    linear-gradient(145deg,#fff8e9 0%,#e8f2fa 54%,#faeaca 100%);
  box-shadow:inset 0 5px 0 rgba(255,255,255,.77),0 5px 0 #d9e2ef;
}
.podium-scene::before{
  content:"";position:absolute;inset:0 0 13%;z-index:0;pointer-events:none;
  background:
    linear-gradient(107deg,transparent 4%,rgba(255,248,209,.66) 30%,transparent 51%),
    linear-gradient(253deg,transparent 4%,rgba(232,246,255,.68) 30%,transparent 51%);
  clip-path:polygon(0 0,100% 0,100% 100%,0 100%);
}
.podium-scene::after{
  content:"";position:absolute;bottom:0;left:0;right:0;height:9px;
  background:repeating-linear-gradient(90deg,#ee465f 0 22px,#f7d14c 22px 44px,#3a9ed1 44px 66px,#40b59a 66px 88px);
  border-top:2px solid #204576;z-index:4;pointer-events:none;
}
.podium-scene .podium-stage{
  isolation:isolate;
  position:relative;
  z-index:2;
  padding:10px 0 10px;
}
.podium-sparkle-layer{
  pointer-events:none;
  position:absolute;
  inset:0;
  z-index:1;
}
.podium-sparkle{
  position:absolute;
  left:var(--star-x);
  top:var(--star-y);
  font-size:clamp(18px,3.1vw,28px);
  line-height:1;
  font-family:system-ui,sans-serif;
  color:#e8ae31;
  text-shadow:0 1px 0 #fff9e2,0 2px 1px #a7854b;
  transform:rotate(-12deg);
  animation:seisPodiumSparkle 2.6s ease-in-out infinite alternate;
}
.podium-sparkle:nth-child(even){color:#7aa6d8;animation-delay:-1.2s;}
.podium-sparkle:nth-child(3n){font-size:clamp(12px,2.2vw,22px);animation-delay:-.6s;}
@keyframes seisPodiumSparkle{
  from{opacity:.47;transform:scale(.75) rotate(-16deg)}
  to{opacity:1;transform:scale(1.09) rotate(13deg)}
}
/* Override global theme fills with actual avatar SVG colors. The game also sets
   fill directly on the body paths, making this reliable even with stale styles. */
.podium-body .finale-body-svg .rig-chest{fill:#fffaf0;}
.podium-body .finale-body-svg{filter:drop-shadow(0 2px 0 rgba(23,55,98,.17));}
.podium-head{filter:drop-shadow(0 2px 0 rgba(23,55,98,.18));}
.podium-tier-1 .podium-who{background:linear-gradient(180deg,#fffbea,#fff2c5);}
.podium-tier-2 .podium-who{background:linear-gradient(180deg,#fffefd,#eaf1fa);}
.podium-tier-3 .podium-who{background:linear-gradient(180deg,#fff9ef,#f1e1cd);}
@media(max-width:430px){
 .podium-scene{border-radius:13px;padding:23px 4px 0;}
 .podium-scene .podium-stage{padding:4px 0 7px;}
 .podium-sparkle{font-size:13px;}
 .podium-sparkle:nth-child(3n){font-size:10px;}
}
@media(prefers-reduced-motion:reduce){
 .podium-sparkle{animation:none!important;opacity:.7;}
}
