/* Shared portrait portals for the teachers and the championship jury cards. */
.portrait-portal { --portal-accent: #dfc397; position: relative; isolation: isolate; overflow: hidden; }
.portrait-portal::before { content: ''; position: absolute; z-index: 0; inset: 8% 0 0; background: radial-gradient(ellipse at 50% 57%, #dfc39726, #ed744f0a 48%, transparent 70%); pointer-events: none; }
.portrait-ring { position: absolute; z-index: 0; width: 84%; aspect-ratio: 1; left: 8%; top: 17%; border: 1px solid #f4d6a3ad; border-radius: 50%; box-shadow: 0 0 12px #dfc39770, 0 0 32px #dfc39730, inset 0 0 22px #dfc39722; }
.portrait-ring::before { content: ''; position: absolute; inset: -4px; border-radius: inherit; background: conic-gradient(from 20deg, transparent 5%, #fff2ce 15%, var(--portal-accent) 25%, transparent 34%, transparent 55%, #ed744f 65%, #fff2ce 70%, transparent 79%); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: portrait-orbit 14s linear infinite; }
.portrait-ring-outer { width: 96%; left: 2%; top: 12%; border: 1px dashed #dfc39750; box-shadow: 0 0 24px #dfc39714; animation: portrait-orbit 65s linear infinite reverse; }
.portrait-ring-outer::before { inset: -1px; opacity: .5; animation-direction: reverse; }
.portrait-portal .portrait-cutout { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 0 14px #dfc39724); mask-image: linear-gradient(#000 80%, transparent 100%); }
.portrait-horizon { position: absolute; z-index: 3; left: 12%; right: 12%; bottom: 5%; height: 1px; background: linear-gradient(90deg, transparent, #fff0cb, transparent); box-shadow: 0 0 14px #dfc39780, 0 0 28px #dfc39740; }
.portrait-particles { position: absolute; z-index: 2; inset: 4%; overflow: hidden; pointer-events: none; }
.portrait-particles i { position: absolute; left: var(--x); top: var(--y); width: var(--size, 2px); height: var(--size, 2px); border-radius: 50%; background: #ffe8b8; box-shadow: 0 0 7px #dfc397, 0 0 15px #ed744f70; opacity: 0; animation: portrait-spark var(--duration, 6s) ease-in-out var(--delay, 0s) infinite; }
.judge-img-wrap.portrait-portal { width: min(100% - 36px, 340px); height: 360px; aspect-ratio: auto; margin: 22px auto 0; border: 0; border-radius: 0; background: none; }
.judge-card:hover .portrait-cutout { filter: drop-shadow(0 0 20px #dfc39745); }
.judge-card:nth-child(even) .portrait-portal { --portal-accent: #ed744f; }
.jury-orbit:not(.jury-orbit-outer) { box-shadow: 0 0 16px #dfc39750, 0 0 42px #dfc39725, inset 0 0 28px #dfc39718; }
.jury-stage > .portrait-particles { z-index: 3; bottom: 20%; }
@keyframes portrait-orbit { to { transform: rotate(360deg); } }
@keyframes portrait-spark {
    0%, 100% { opacity: 0; transform: translate3d(-8px, 16px, 0) scale(.5); }
    25% { opacity: .8; }
    65% { opacity: .5; }
    90% { opacity: 0; transform: translate3d(var(--drift, 14px), -48px, 0) scale(1.15); }
}
@media (max-width: 768px) {
    .judge-img-wrap.portrait-portal { height: 300px; width: min(100% - 32px, 290px); }
}
@media (prefers-reduced-motion: reduce) {
    .portrait-ring, .portrait-ring::before, .portrait-particles i { animation: none !important; }
    .portrait-particles i { opacity: .45; }
}
