* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Oswald', sans-serif;
    background:
        radial-gradient(ellipse 85% 55% at 15% 0%, rgba(255, 0, 170, 0.22), transparent 58%),
        radial-gradient(ellipse 75% 50% at 88% 8%, rgba(0, 230, 255, 0.2), transparent 52%),
        radial-gradient(ellipse at 50% 100%, #1c0a28 0%, #06050a 62%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.winner-spotlights {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.winner-spotlight-beam {
    position: absolute;
    bottom: -8%;
    width: 38vmin;
    height: 125vh;
    transform-origin: 50% 100%;
    opacity: 0.7;
    background: linear-gradient(
        to top,
        rgba(255, 245, 210, 0.42) 0%,
        rgba(255, 220, 150, 0.22) 28%,
        rgba(255, 200, 120, 0.08) 52%,
        transparent 72%
    );
    filter: blur(14px);
    mix-blend-mode: screen;
}

.winner-spotlight-beam--1 {
    left: 6%;
    animation: winner-cinema-beam-1 10s ease-in-out infinite;
}

.winner-spotlight-beam--2 {
    left: 28%;
    animation: winner-cinema-beam-2 13s ease-in-out infinite;
    animation-delay: -2s;
    opacity: 0.55;
    background: linear-gradient(
        to top,
        rgba(255, 230, 180, 0.36) 0%,
        rgba(255, 200, 140, 0.16) 30%,
        transparent 70%
    );
}

.winner-spotlight-beam--3 {
    right: 28%;
    left: auto;
    animation: winner-cinema-beam-3 11.5s ease-in-out infinite;
    animation-delay: -4s;
}

.winner-spotlight-beam--4 {
    right: 6%;
    left: auto;
    animation: winner-cinema-beam-4 14s ease-in-out infinite;
    animation-delay: -1s;
    opacity: 0.5;
}

@keyframes winner-cinema-beam-1 {
    0%, 100% { transform: rotate(-38deg); }
    50% { transform: rotate(18deg); }
}

@keyframes winner-cinema-beam-2 {
    0%, 100% { transform: rotate(32deg); }
    50% { transform: rotate(-22deg); }
}

@keyframes winner-cinema-beam-3 {
    0%, 100% { transform: rotate(-28deg); }
    50% { transform: rotate(30deg); }
}

@keyframes winner-cinema-beam-4 {
    0%, 100% { transform: rotate(36deg); }
    50% { transform: rotate(-16deg); }
}

.winner-score-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
}

.winner-score-particles.is-active {
    opacity: 1;
}

.winner-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    position: relative;
    z-index: 2;
}

.winner-header-nav {
    position: absolute;
    right: 16px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
}

.winner-header-nav[hidden] {
    display: none !important;
}

.winner-header-menu {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.15s;
}

.winner-header-menu:hover {
    transform: scale(1.05);
}

.winner-header-menu--menu {
    padding: 8px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #111;
}

.winner-header-menu--menu:hover {
    color: #111;
}

.winner-header-menu--rewatch {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.55);
    background: rgba(255, 215, 0, 0.1);
    color: #ffe566;
    cursor: pointer;
    font: inherit;
    white-space: nowrap;
}

.winner-header-menu--rewatch:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #fff;
}

.winner-header-menu--rewatch:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.winner-header-menu--rewatch[hidden] {
    display: none !important;
}

.winner-header.is-score-header {
    padding: 8px 20px 6px;
}

.winner-header:not(.is-score-header) {
    padding: 8px 20px;
    border-bottom-color: transparent;
}

.winner-header-title {
    font-family: 'Henny Penny', cursive;
    font-size: clamp(1.65rem, 4.2vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.2;
    padding: 0.1em 0.1em 0;
    margin: 0;
    color: #ffb020;
    background: linear-gradient(180deg, #ffe566 0%, #ffb020 55%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.winner-header-title[hidden] {
    display: none !important;
}

.winner-stage {
    flex: 1;
    padding: 24px 24px 40px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.winner-intro {
    text-align: center;
    margin-bottom: 22px;
    max-width: 640px;
}

.winner-intro-line {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 600;
    color: #f2f4f8;
    line-height: 1.4;
    margin-bottom: 8px;
}

.winner-intro-line--sub {
    font-weight: 500;
    color: #b8bcc8;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    margin-bottom: 0;
}

.winner-stage.is-awaiting-reveal {
    display: none !important;
}

.winner-stage.is-setup .winner-pick-grid {
    max-width: 1080px;
    gap: 24px 22px;
}

.winner-stage.is-setup .winner-pick-photo {
    max-width: 260px;
    border-width: 4px;
    border-color: rgba(255, 215, 0, 0.75);
    margin-bottom: 4px;
    box-shadow:
        0 0 28px rgba(255, 215, 0, 0.35),
        0 0 48px rgba(255, 0, 180, 0.2),
        0 0 56px rgba(0, 245, 255, 0.15);
}

.winner-stage.is-setup .winner-pick-photo img,
.winner-stage.is-setup .winner-pick-photo video {
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: center top;
}

.winner-stage.is-setup .winner-pick-card {
    gap: 0;
    overflow: visible;
}

.winner-stage.is-setup .winner-pick-name {
    font-family: 'Henny Penny', cursive;
    font-size: clamp(1.75rem, 4.8vw, 2.35rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: none;
    display: block;
    line-height: 1.55;
    margin-top: 18px;
    padding: 0.45em 0.2em 0.15em;
    overflow: visible;
    position: relative;
    z-index: 2;
    color: #ffb020;
    background: linear-gradient(180deg, #ffe566 0%, #ffb020 55%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: none;
    -webkit-text-stroke: 0;
    paint-order: normal;
}

@media (max-width: 720px) {
    .winner-pick-grid {
        grid-template-columns: 1fr;
        max-width: 260px;
    }
}

.winner-pick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: default;
    text-align: center;
}

.winner-stage.is-quiz .winner-pick-card {
    cursor: pointer;
    transition: transform 0.12s;
}

.winner-stage.is-quiz .winner-pick-card:hover {
    transform: translateY(-4px);
}

.winner-stage.is-quiz .winner-pick-card:hover .winner-pick-photo {
    border-color: #ffd700;
    box-shadow: 0 0 32px rgba(255, 215, 0, 0.35);
}

.winner-pick-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    text-transform: none;
}

.winner-pick-photo {
    position: relative;
    width: 100%;
    max-width: 220px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid rgba(255, 215, 0, 0.55);
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.2);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.winner-pick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 18px;
    width: 100%;
    max-width: 960px;
    margin-bottom: 0;
}

.winner-pick-grid > .winner-start-actions {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-top: 6px;
}

.winner-stage.is-votes-revealed .winner-pick-grid {
    margin-bottom: 0;
}

.winner-stage.is-votes-revealed .winner-start-actions:not([hidden]) {
    animation: winner-intro-in 0.45s ease-out;
}

.winner-pick-photo img,
.winner-pick-photo video {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.winner-pick-photo video {
    background: #0a0810;
}

.winner-pick-pts {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(7rem, 18vw, 11rem);
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55);
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 50px rgba(255, 255, 255, 0.25);
    pointer-events: none;
    line-height: 1;
}

.winner-intro:not([hidden]) {
    animation: winner-intro-in 0.45s ease-out;
}

@keyframes winner-intro-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.winner-pick-pts.is-pending {
    opacity: 0;
    visibility: hidden;
}

.winner-pick-pts:not(.is-pending) {
    animation: winner-pts-in 0.55s ease-out forwards;
}

@keyframes winner-pts-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.winner-stage.is-finalist-playback .winner-pick-grid {
    margin-top: 12px;
}

.winner-stage.is-finalist-playback .winner-intro,
.winner-stage.is-finalist-playback .winner-start-actions {
    display: none !important;
}

.winner-vote-line {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: #b8bcc8;
    line-height: 1.35;
    max-width: 240px;
}

.winner-quiz-block {
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

.winner-quiz-question {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: #f2f4f8;
    text-transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.winner-q-line {
    display: block;
    font-size: clamp(1.15rem, 2.4vw, 1.65rem);
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.winner-quiz-progress {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 600;
    color: #ffd700;
    text-transform: none;
    letter-spacing: 0.02em;
    margin: 0;
}

.winner-score-intro {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

.winner-score-intro:not([hidden]) {
    animation: winner-intro-in 0.45s ease-out;
}

.winner-score-title {
    font-family: 'Henny Penny', cursive;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 400;
    margin: 0 0 6px;
    color: #ffb020;
    background: linear-gradient(180deg, #ffe566 0%, #ffb020 55%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.winner-score-sub {
    font-family: 'Henny Penny', cursive;
    font-size: clamp(1.65rem, 4.2vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
    color: #ffb020;
    background: linear-gradient(180deg, #ffe566 0%, #ffb020 55%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.winner-stage.is-score {
    padding-top: 10px;
}

.winner-stage.is-score .winner-pick-grid {
    margin-top: 0;
}

.winner-stage.is-score .winner-pick-card {
    cursor: default;
}

.winner-stage.is-score .winner-pick-name {
    font-family: 'Henny Penny', cursive;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: none;
    display: block;
    line-height: 1.2;
    margin-top: 14px;
    color: #ffb020;
    background: linear-gradient(180deg, #ffe566 0%, #ffb020 55%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.winner-pick-pct {
    font-size: clamp(3.2rem, 9vw, 5.5rem);
    color: rgba(255, 215, 0, 0.92);
    text-shadow:
        0 0 18px rgba(255, 215, 0, 0.55),
        0 0 40px rgba(255, 215, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.65);
    letter-spacing: 0.02em;
}

.winner-score-actions {
    display: none !important;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 760px;
    margin: 18px auto 0;
}

.winner-stage.is-eviction-ready .winner-score-actions:not([hidden]) {
    display: flex !important;
}

.winner-stage:not(.is-eviction-ready) .winner-score-actions,
.winner-score-actions[hidden],
.winner-score-actions:empty {
    display: none !important;
}

.winner-score-actions:not([hidden]) {
    animation: winner-intro-in 0.45s ease-out;
}

.winner-score-actions .winner-btn {
    flex: 1 1 calc(50% - 8px);
    min-width: min(100%, 240px);
    max-width: 360px;
    padding-left: 16px;
    padding-right: 16px;
}

.winner-start-actions {
    margin-top: 8px;
    text-align: center;
    width: 100%;
}

.winner-start-prompt {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #fff;
}

.winner-start-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.winner-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    padding: 12px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #ffd700, #c9a000);
    color: #1a1200;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.winner-btn:hover {
    filter: brightness(1.08);
}

.winner-btn--ghost {
    background: transparent;
    color: #e8dcc0;
    border: 2px solid rgba(255, 215, 0, 0.45);
    box-shadow: none;
}

.winner-btn--wide {
    width: 100%;
    margin-top: 8px;
}

/* Modals */
.winner-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.winner-modal[hidden] {
    display: none;
}

.winner-modal-backdrop {
    position: absolute;
    inset: 0;
    background: #06050a;
}

.winner-modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 22px;
    background: #14141c;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.winner-modal-box--wide {
    max-width: 580px;
}

.winner-modal-box--intro {
    max-width: min(820px, 96vw);
    max-height: none;
    overflow: visible;
    padding: 28px 36px 26px;
}

.winner-modal-box--intro .winner-modal-body p {
    margin-bottom: 12px;
}

.winner-modal-box--intro .winner-btn--wide {
    width: auto;
    min-width: min(100%, 420px);
    max-width: 100%;
    padding-left: 28px;
    padding-right: 28px;
}

.winner-modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.1em;
    text-align: center;
    color: #ffd700;
    margin-bottom: 16px;
}

.winner-modal-body p {
    color: #c5cad6;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.winner-modal-ready {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 4px 0 14px;
    color: #fff;
}

.winner-modal-ready:not([hidden]) {
    animation: winner-intro-in 0.45s ease-out;
}

.winner-intro-preload {
    margin: 0 0 16px;
    padding: 16px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.22);
}

.winner-intro-preload-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.45rem;
    letter-spacing: 0.1em;
    text-align: center;
    color: #ffd700;
    margin-bottom: 14px;
}

.winner-intro-preload-bar-wrap {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin-bottom: 10px;
}

.winner-intro-preload-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff00aa, #00e5ff, #ffd700);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.45);
    transition: width 0.25s ease-out;
}

.winner-intro-preload-pct {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.06em;
    text-align: center;
    color: #fff;
    margin: 0;
}

.winner-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.winner-btn--wide:disabled {
    background: #3a3a44;
    color: #7a7f8c;
    box-shadow: none;
    cursor: not-allowed;
    filter: none;
    transform: none;
}

.winner-btn--wide.is-ready:not(:disabled) {
    background: linear-gradient(135deg, #ffd700, #c9a000);
    color: #1a1200;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
}

.winner-results-lead {
    text-align: center;
    margin-bottom: 14px !important;
    font-size: 0.92rem !important;
}

.winner-results-head,
.winner-results-row {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(52px, 1fr));
    gap: 8px 10px;
    align-items: center;
}

.winner-results-head {
    padding: 0 12px 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b92a8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 8px;
}

.winner-results-head span:not(:first-child) {
    text-align: center;
}

.winner-results-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.winner-results-row {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.winner-results-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    margin-bottom: 0;
}

.winner-results-cell {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #d8dce6;
}

.winner-results-cell--total {
    color: #fff;
}

.winner-results-pct {
    color: #ffd700 !important;
    font-weight: 700;
    font-size: 1rem !important;
}

.winner-results-bar-wrap {
    grid-column: 1 / -1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 2px;
}

.winner-results-bar {
    height: 100%;
    background: linear-gradient(90deg, #c9a000, #ffd700);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.winner-results-formula {
    text-align: center;
    color: #9aa3b8;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 8px;
}

.winner-results-total {
    text-align: center;
    color: #8b92a8;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.winner-btn--evict {
    background: linear-gradient(135deg, #ff3355, #cc0022);
    color: #fff;
    box-shadow: 0 0 24px rgba(255, 51, 85, 0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1.15rem;
}

.winner-btn--evict:hover {
    filter: brightness(1.1);
}

.winner-btn--evict:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: none;
}

/* Final lottery shuffle overlay */
.winner-lottery-overlay {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 80px;
    background: radial-gradient(ellipse at 50% 30%, #2a1520 0%, #050508 70%);
    opacity: 0;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

.winner-lottery-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.winner-lottery-title,
.winner-lottery-timer,
.winner-lottery-grid {
    position: relative;
    z-index: 1;
}

.winner-lottery-overlay.is-visible {
    opacity: 1;
}

.winner-lottery-overlay.is-burst-hit {
    animation: lottery-burst-flash 0.6s ease-out;
}

@keyframes lottery-burst-flash {
    0% { filter: brightness(1); }
    18% { filter: brightness(1.55) saturate(1.2); }
    100% { filter: brightness(1); }
}

.winner-lottery-timer.is-burst-pulse {
    animation: lottery-timer-burst 0.75s ease-out;
    color: #ffd700;
}

@keyframes lottery-timer-burst {
    0%, 100% { transform: scale(1); text-shadow: none; }
    28% { transform: scale(1.18); text-shadow: 0 0 22px rgba(255, 215, 0, 0.95), 0 0 40px rgba(255, 180, 0, 0.45); }
}

.winner-lottery-grid.is-burst-shake {
    animation: lottery-grid-burst 0.55s ease-out;
}

@keyframes lottery-grid-burst {
    0%, 100% { transform: scale(1); }
    22% { transform: scale(1.04); }
    45% { transform: scale(0.98); }
}

.winner-lottery-overlay.is-fading-out {
    opacity: 0;
    pointer-events: none;
}

.winner-lottery-title {
    font-family: 'Henny Penny', cursive;
    font-size: clamp(1.85rem, 4.5vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 0 0 4px;
    background: linear-gradient(45deg, #ffd700, #ffa500, #ff6347, #ffd700);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lottery-bbgi-title-gradient 3s ease infinite;
    filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.45));
}

@keyframes lottery-bbgi-title-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.winner-lottery-timer {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    letter-spacing: 0.08em;
    color: rgba(255, 215, 0, 0.92);
    margin-bottom: 18px;
    text-align: center;
}

.winner-lottery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 900px;
}

@media (max-width: 720px) {
    .winner-lottery-grid {
        grid-template-columns: 1fr;
        max-width: 240px;
    }

    .winner-results-head,
    .winner-results-row {
        grid-template-columns: 1fr 1fr;
    }

    .winner-results-head span:nth-child(n+2),
    .winner-results-row .winner-results-cell {
        font-size: 0.85rem;
    }
}

.winner-lottery-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid rgba(255, 215, 0, 0.45);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.15);
    transition: opacity 0.75s ease, border-color 0.75s ease, box-shadow 0.75s ease, filter 0.75s ease;
}

.winner-lottery-card.is-spotlight {
    opacity: 1;
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 42px rgba(255, 215, 0, 0.32);
    filter: brightness(1.06);
}

.winner-lottery-card.is-dim {
    opacity: 0.48;
    filter: brightness(0.82);
}

.winner-lottery-card.is-winner {
    opacity: 1;
    border-color: rgba(255, 68, 102, 0.85);
    box-shadow: 0 0 50px rgba(255, 68, 102, 0.45);
    filter: brightness(1.08);
    z-index: 2;
}

.winner-lottery-card.is-loser {
    opacity: 0.22;
    filter: grayscale(70%) brightness(0.65);
}

.winner-lottery-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
}

.winner-lottery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease;
}

.winner-lottery-photo img.is-swapping {
    opacity: 0.2;
}

.winner-lottery-grid.is-inhouse-phase .winner-lottery-pct-fill,
.winner-lottery-grid.is-inhouse-phase .winner-lottery-pct-label {
    opacity: 0;
    transition: opacity 0.45s ease;
}

.winner-lottery-grid.is-bw-reveal-phase .winner-lottery-photo img {
    filter: grayscale(1) contrast(1.06);
    transition: filter 0.55s ease, opacity 0.5s ease;
}

.winner-lottery-grid.is-bw-reveal-phase .winner-lottery-pct-fill,
.winner-lottery-grid.is-bw-reveal-phase .winner-lottery-pct-label {
    opacity: 1;
}

.winner-lottery-grid.is-bw-reveal-phase .winner-lottery-pct-fill {
    left: 0;
    right: 0;
    width: auto;
    bottom: 0;
    border-radius: 0;
    border-top: 2px solid rgba(255, 215, 0, 0.75);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.55));
    box-shadow: none;
    transition: height 0.45s ease-out, opacity 0.45s ease;
}

.winner-lottery-grid.is-bw-reveal-phase .winner-lottery-pct-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.85rem, 4.8vw, 2.65rem);
    bottom: 12px;
    top: auto;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: 0 0 14px rgba(0, 0, 0, 0.9), 0 0 24px rgba(255, 215, 0, 0.45);
    animation: lottery-count-flicker 0.85s ease-in-out infinite;
}

.winner-lottery-grid.is-bw-reveal-phase.is-bw-complete .winner-lottery-pct-label,
.winner-lottery-grid.is-bw-reveal-phase .winner-lottery-pct-label.is-complete {
    animation: none;
    color: rgba(255, 215, 0, 0.98);
}

.winner-lottery-count-hint.is-done {
    font-size: clamp(1rem, 2.6vw, 1.3rem);
    color: rgba(255, 215, 0, 0.95);
    line-height: 1.45;
    animation: lottery-status-pulse 1.15s ease-in-out infinite;
}

.winner-lottery-count-hint.is-reveal-tease {
    font-family: 'Henny Penny', cursive;
    font-size: clamp(1.2rem, 3.2vw, 1.65rem);
    color: rgba(255, 220, 120, 0.98);
    line-height: 1.45;
    animation: lottery-status-pulse 1.15s ease-in-out infinite;
}

.winner-lottery-grid.is-bw-reveal-phase .winner-lottery-pct-label.is-counting::after {
    content: none;
}

.winner-lottery-count-hint {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.95rem, 2.4vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(200, 204, 214, 0.88);
    margin: 0 12px 14px;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.winner-lottery-count-hint[hidden] {
    display: none !important;
}

@keyframes lottery-count-flicker {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.95; }
}

@keyframes lottery-count-dots {
    0% { opacity: 0.2; }
    33% { opacity: 0.55; }
    66% { opacity: 0.85; }
    100% { opacity: 0.2; }
}

.winner-lottery-grid.is-processing-phase .winner-lottery-pct-fill,
.winner-lottery-grid.is-processing-phase .winner-lottery-pct-label,
.winner-lottery-grid.is-eviction-reveal .winner-lottery-pct-fill,
.winner-lottery-grid.is-eviction-reveal .winner-lottery-pct-label {
    opacity: 0 !important;
    visibility: hidden !important;
}

.winner-lottery-grid.is-eviction-reveal .winner-lottery-photo::after {
    animation: none;
    opacity: 0;
}

.winner-lottery-grid.is-processing-phase .winner-lottery-photo::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.15) 35%, rgba(255, 215, 0, 0.95) 50%, rgba(255, 215, 0, 0.15) 65%, transparent 100%);
    background-size: 200% 100%;
    animation: lottery-processing-scan 1.15s linear infinite;
    pointer-events: none;
    z-index: 3;
}

.winner-lottery-status {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.05rem, 2.8vw, 1.45rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: none;
    color: rgba(255, 215, 0, 0.95);
    margin: 0 12px 18px;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.35s ease;
    animation: lottery-status-pulse 1.15s ease-in-out infinite;
}

@keyframes lottery-processing-scan {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes lottery-status-pulse {
    0%, 100% { opacity: 0.62; }
    50% { opacity: 1; }
}

.winner-lottery-pct-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.55));
    border-top: 2px solid rgba(255, 215, 0, 0.75);
    pointer-events: none;
    transition: height 0.9s ease, opacity 0.75s ease;
}

.winner-lottery-pct-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    text-shadow: 0 0 16px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.5);
    pointer-events: none;
    z-index: 2;
}

.winner-lottery-name {
    padding: 8px 6px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.55);
}

/* Eviction video (final three lottery) */
.winner-evi-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
    background: rgba(0, 0, 0, 0.82);
}

.winner-evi-overlay.is-visible {
    opacity: 1;
}

.winner-evi-overlay.is-interactive {
    pointer-events: auto;
}

.winner-evi-continue-btn {
    min-width: 240px;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: auto;
    cursor: pointer;
}

.winner-evi-continue-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.winner-evi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: winner-evi-glow 2.4s ease-in-out infinite alternate;
}

.winner-evi-card video {
    width: min(360px, 88vw);
    height: min(480px, 70vh);
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid #ff0000;
    display: block;
}

.winner-evi-card img {
    width: min(360px, 88vw);
    height: min(480px, 70vh);
    object-fit: contain;
    object-position: center bottom;
    border-radius: 14px;
    border: 3px solid #ff0000;
    display: block;
    background: #000;
}

.winner-evi-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 0 12px #fff, 0 0 30px #ff4444;
}

.winner-evi-diag {
    position: fixed;
    width: 200%;
    left: -50%;
    top: 50%;
    transform: translate(0, -50%) rotate(-32deg);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 10vw;
    color: rgba(255, 30, 30, 0.7);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.12em;
    pointer-events: none;
    user-select: none;
    z-index: 210;
    text-shadow: 0 0 30px #ff0000, 0 0 70px #cc0000;
    opacity: 0;
    animation: winner-evi-diag-in 1.4s ease forwards;
}

@keyframes winner-evi-glow {
    from {
        opacity: 0.9;
        filter: drop-shadow(0 0 18px rgba(255, 50, 70, 0.3));
    }
    to {
        opacity: 1;
        filter: drop-shadow(0 0 32px rgba(255, 50, 70, 0.5));
    }
}

@keyframes winner-evi-diag-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Proceed to winner (after third eviction) */
.winner-proceed-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.8s ease;
    padding: 20px;
    pointer-events: auto;
}

.winner-proceed-overlay.is-visible {
    opacity: 1;
}

.winner-proceed-btn {
    min-width: 240px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.winner-proceed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: min(540px, 94vw);
}

.winner-proceed-photo {
    width: min(440px, 90vw);
    height: min(580px, 68vh);
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 0 28px rgba(255, 215, 0, 0.4));
}

.winner-proceed-overlay--evicted .winner-proceed-photo {
    filter: drop-shadow(0 0 24px rgba(255, 50, 70, 0.45));
}

.winner-proceed-msg {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    letter-spacing: 0.08em;
    color: #fff;
    text-align: center;
    margin: 0;
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}

.winner-proceed-msg--evicted {
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    letter-spacing: 0.14em;
    color: rgba(255, 40, 40, 0.95);
    text-shadow:
        0 0 18px rgba(255, 0, 0, 0.75),
        0 0 40px rgba(255, 50, 70, 0.45);
}

.winner-lottery-continue {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 220;
    min-width: 220px;
}

/* Finalist video preload */
.winner-preload {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #06050a;
    overflow: hidden;
}

.winner-preload[hidden] {
    display: none !important;
}

.winner-preload-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 40%, rgba(255, 0, 180, 0.18), transparent 65%),
        radial-gradient(ellipse 60% 45% at 20% 70%, rgba(0, 245, 255, 0.12), transparent 60%),
        radial-gradient(ellipse 55% 40% at 85% 65%, rgba(255, 215, 0, 0.1), transparent 55%);
    pointer-events: none;
    animation: winner-preload-glow 3s ease-in-out infinite;
}

@keyframes winner-preload-glow {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.winner-preload-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    text-align: center;
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: rgba(12, 10, 18, 0.92);
    box-shadow: 0 0 60px rgba(255, 0, 180, 0.15), 0 0 80px rgba(0, 245, 255, 0.1);
}

.winner-preload-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    letter-spacing: 0.12em;
    color: #ffd700;
    text-shadow: 0 0 24px rgba(255, 215, 0, 0.45);
    margin-bottom: 28px;
}

.winner-preload-bar-wrap {
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin-bottom: 14px;
}

.winner-preload-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff00aa, #00e5ff, #ffd700);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.5);
    transition: width 0.25s ease-out;
}

.winner-preload-pct {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 8px;
}

.winner-preload-ready {
    margin-top: 22px;
    animation: winner-preload-ready-in 0.45s ease-out;
}

@keyframes winner-preload-ready-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
