
/* Elflympics championship podium: transparent animated competitors on a shared scene. */
#championshipPodium[hidden]{display:none!important}
.elf-podium{position:relative;overflow:hidden;isolation:isolate;margin:0 0 16px;border:1px solid #cda75e;border-radius:17px;padding:9px 9px 0;background:radial-gradient(ellipse at 50% 15%,#fef2d1 0,transparent 38%),linear-gradient(160deg,#d6ebf4,#accfdf 54%,#e8f5fa 80%,#f8fcff);box-shadow:inset 0 2px 1px #fff,0 3px 9px #1c3b4a1a}
.elf-podium:before{content:"";position:absolute;z-index:-1;inset:10% 0 0;background:linear-gradient(145deg,transparent 36%,#fff9 37% 43%,transparent 44%) 4% 8%/28% 70% no-repeat,linear-gradient(215deg,transparent 38%,#fff8 39% 46%,transparent 47%) 98% 0/34% 85% no-repeat;pointer-events:none}
.elf-podium-title{margin:0;text-align:center;color:#153c32;font:700 clamp(15px,4vw,23px)/1.2 Fredoka,system-ui,sans-serif}
.elf-podium-stage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;max-width:640px;margin:0 auto;gap:3px}
.elf-podium-place{display:flex;flex-direction:column;align-items:stretch;min-width:0;--tier:57px;--tier-top:#d2dce5;--tier-mid:#98b1c2;--tier-bottom:#627e91;--tier-ink:#263e4f}
.elf-podium-place[data-rank="1"]{--tier:82px;--tier-top:#fff2bd;--tier-mid:#e9bf57;--tier-bottom:#bb8735;--tier-ink:#5b3c13}
.elf-podium-place[data-rank="3"]{--tier:42px;--tier-top:#ffd2aa;--tier-mid:#ce8b5e;--tier-bottom:#a66341;--tier-ink:#5d351f}
.elf-podium-occupants{display:flex;align-items:end;justify-content:center;min-height:0;height:auto;position:relative}
.elf-podium-figure{display:flex;align-items:center;justify-content:end;flex-direction:column;min-width:0;flex:1;max-width:100%;position:relative;margin:0}
.elf-podium-figure .podium-elf-svg{display:block;width:100%;height:auto;aspect-ratio:320/492;overflow:visible}
.elf-podium-figure figcaption{position:absolute;bottom:calc(100% - 9px);left:1px;right:1px;text-align:center;color:#224959;font:650 clamp(10px,2.8vw,14px)/1.1 Fredoka,system-ui,sans-serif;overflow-wrap:anywhere;max-height:2.4em;overflow:hidden;text-shadow:0 1px #f6fbff}
.elf-podium-occupants[data-count="2"] .elf-podium-figure{flex:0 1 50%}
.elf-podium-occupants[data-count="3"] .elf-podium-figure{flex:0 1 33.333%}
.elf-podium-occupants[data-count="2"],.elf-podium-occupants[data-count="3"]{min-height:clamp(68px,20vw,135px)}
.elf-podium-occupants[data-count="0"]{min-height:0}
.elf-podium-tier{height:var(--tier);position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1px solid color-mix(in srgb,var(--tier-bottom),#36291d 30%);border-top:0;border-radius:6px 6px 2px 2px;background:linear-gradient(90deg,#0001,transparent 13% 86%,#0001),linear-gradient(var(--tier-top),var(--tier-mid) 28%,var(--tier-bottom));color:var(--tier-ink);box-shadow:inset 0 -3px #0002}
.elf-podium-tier:before{content:"";position:absolute;left:-1px;right:-1px;top:-5px;height:10px;border-radius:50% 50% 5px 5px;background:linear-gradient(#fff,#e4f0f4);border-bottom:1px solid #97b4c1;box-shadow:0 2px 1px #0001}
.elf-podium-place[data-rank="1"] .elf-podium-tier:before{background:linear-gradient(#fffbe9,#f0d78b);border-color:#c8a653}
.elf-podium-rank{font:800 clamp(22px,6vw,36px)/1 Fredoka,system-ui,sans-serif;text-shadow:0 1px #fff7}
.elf-podium-points{font:650 clamp(9px,2.5vw,12px)/1 Fredoka,system-ui,sans-serif;white-space:nowrap}
.elf-podium-place[data-rank="1"] .elf-podium-rank{font-size:clamp(27px,7vw,43px)}
.elf-podium-place[data-rank="3"] .elf-podium-tier{gap:0}
.elf-podium-extra{position:absolute;bottom:5px;left:2px;right:2px;text-align:center;background:#f7fbffe8;border-radius:4px;font:650 10px/1.2 Fredoka,sans-serif;color:#224959;z-index:1}
.elf-podium-spark{position:absolute;pointer-events:none;color:#fff7d2;font-size:clamp(16px,4vw,25px);line-height:1;text-shadow:0 1px #caa961;animation:podium-spark 3.3s ease-in-out infinite}
.elf-podium-spark:nth-of-type(1){left:12%;top:17%}.elf-podium-spark:nth-of-type(2){right:11%;top:12%;animation-delay:-1s}.elf-podium-spark:nth-of-type(3){right:29%;top:28%;animation-delay:-2s}
.elf-podium .podium-elf-svg :is(.elf-motion,.elf-reaction,.elf-head-motion,.elf-arm-motion,.elf-eyelid,.elf-leg-motion){transform-box:view-box;transform-origin:var(--pivot,160px 250px);animation-delay:var(--podium-delay,0s)}
.elf-podium .elf-eyelid{animation:podium-blink 6.4s linear infinite}
.elf-podium .elf-reaction{animation:podium-bounce 6s ease-in-out infinite}
.elf-podium .elf-free-arm{animation:podium-wave 6s ease-in-out infinite}
.elf-podium .elf-other-arm{animation:podium-cheer 6s ease-in-out infinite}
.elf-podium .elf-head-motion{animation:podium-nod 6s ease-in-out infinite}
.elf-podium .elf-hip-left{animation:podium-hip-left 6s ease-in-out infinite}
.elf-podium .elf-knee-left{animation:podium-knee-left 6s ease-in-out infinite}
.elf-podium .elf-hip-right{animation:podium-hip-right 6s ease-in-out infinite}
.elf-podium .elf-knee-right{animation:podium-knee-right 6s ease-in-out infinite}
.elf-podium .podium-elf-svg :is(.elf-reaction,.elf-arm-motion,.elf-head-motion,.elf-leg-motion,.elf-eyelid){animation-delay:var(--podium-delay,0s)}
@keyframes podium-blink{0%,32%,35%,75%,78%,100%{transform:scaleY(1)}33.5%,76.5%{transform:scaleY(.09)}}
@keyframes podium-bounce{0%,12%,22%,30%,42%,65%,78%,100%{transform:translateY(0)}17%,26%{transform:translateY(-13px)}36%{transform:translateY(-8px) rotate(-2deg)}56%{transform:translateY(-3px) rotate(2deg)}}
@keyframes podium-wave{0%,10%,44%,82%,100%{transform:rotate(0)}17%,26%,35%{transform:rotate(145deg)}22%,30%,39%{transform:rotate(123deg)}55%,68%{transform:rotate(35deg)}}
@keyframes podium-cheer{0%,10%,43%,75%,100%{transform:rotate(0)}17%,26%,35%{transform:rotate(-145deg)}22%,30%,39%{transform:rotate(-110deg)}56%{transform:rotate(-38deg)}}
@keyframes podium-nod{0%,10%,44%,100%{transform:rotate(0)}17%,35%{transform:rotate(-3deg)}26%,60%{transform:rotate(3deg)}}
@keyframes podium-hip-left{0%,12%,22%,30%,42%,100%{transform:rotate(0)}17%,26%{transform:rotate(11deg)}36%{transform:rotate(17deg)}}
@keyframes podium-knee-left{0%,12%,22%,30%,42%,100%{transform:rotate(0)}17%,26%{transform:rotate(-25deg)}36%{transform:rotate(-27deg)}}
@keyframes podium-hip-right{0%,12%,22%,30%,42%,100%{transform:rotate(0)}17%,26%{transform:rotate(-11deg)}36%{transform:rotate(-17deg)}}
@keyframes podium-knee-right{0%,12%,22%,30%,42%,100%{transform:rotate(0)}17%,26%{transform:rotate(25deg)}36%{transform:rotate(27deg)}}
@keyframes podium-spark{0%,100%{opacity:.3;transform:scale(.8)}50%{opacity:.9;transform:scale(1.13)}}
.elf-podium[data-paused="true"] *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.elf-podium *{animation:none!important}}
@media(min-width:661px){.elf-podium{padding:14px 20px 0}.elf-podium-stage{max-width:560px;gap:8px}.elf-podium-place{--tier:76px}.elf-podium-place[data-rank="1"]{--tier:108px}.elf-podium-place[data-rank="3"]{--tier:60px}.elf-podium-figure .podium-elf-svg{max-height:245px}.elf-podium-figure figcaption{bottom:calc(100% - 6px)}}

/* Reserve space for the highest competitor's name, including a wrapped long name. */
.elf-podium-stage{padding-top:clamp(26px,6vw,36px)}
.elf-podium-figure figcaption{z-index:2}

/* V2: sculpted metal podium. Deck overlap plants the elves' soles on the perspective plane. */
.elf-podium{padding:12px 8px 14px;background:radial-gradient(ellipse at 50% 24%,#fff2c9 0,transparent 42%),linear-gradient(160deg,#d6ebf4,#a7cbdf 54%,#e4f2f7 80%,#b7d3e2)}
.elf-podium:after{content:"";position:absolute;left:3%;right:3%;bottom:6px;height:34px;border-radius:50%;background:radial-gradient(ellipse,#23435880 0,#466d8240 45%,transparent 72%);filter:blur(3px);z-index:-1}
.elf-podium-stage{gap:2px;max-width:590px;padding-top:clamp(30px,7vw,45px);position:relative;isolation:isolate}
.elf-podium-place{position:relative;z-index:1;min-width:0}
.elf-podium-place[data-rank="1"]{z-index:2}
.elf-podium-occupants{position:relative;z-index:2;margin-bottom:-8.75%;pointer-events:none}
.elf-podium-occupants[data-count="0"]{margin-bottom:0}
.elf-podium-figure{width:auto}
.elf-podium-figure .podium-elf-svg{display:block;width:100%;height:auto;max-height:none;aspect-ratio:320/492;overflow:visible;filter:drop-shadow(0 1px 1px #283b4620)}
.elf-podium-figure figcaption{bottom:calc(100% - 4px);font-size:clamp(10px,2.8vw,15px)}
.elf-podium-tier{position:relative;z-index:1;height:auto!important;min-height:0;display:block;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:inherit}
.elf-podium-tier:before{display:none}
.podium-metal{width:100%;height:auto;display:block;overflow:visible;filter:drop-shadow(0 4px 3px #1f394451)}
.elf-podium .elf-podium-contact{transform-box:fill-box;transform-origin:center;animation:podium-contact 6s ease-in-out infinite;animation-delay:var(--podium-delay,0s)}
@keyframes podium-contact{0%,12%,22%,30%,42%,65%,78%,100%{opacity:.55;transform:scale(1)}17%,26%{opacity:.25;transform:scale(.78)}36%{opacity:.35;transform:scale(.88)}56%{opacity:.45;transform:scale(.94)}}
@media(prefers-reduced-motion:reduce){.elf-podium .elf-podium-contact{animation:none!important}}
@media(min-width:661px){.elf-podium{padding:18px}.elf-podium-stage{gap:5px}.elf-podium-figure .podium-elf-svg{max-height:none}}
