﻿/* ------------------------------------------------------------
   Celebration Overlay (matches pick-reveal-overlay)
------------------------------------------------------------ */
.c-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

    .c-overlay.active {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.35s ease;
    }


/* ------------------------------------------------------------
   Celebration Card (matches pick-card)
------------------------------------------------------------ */
.c-card {
    width: 260px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    color: white;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
    opacity: 0;
    transform: translateY(30px) scale(0.92);
}

.c-overlay.active .c-card {
    animation: cardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ------------------------------------------------------------
   Badge (premium pop-in)
------------------------------------------------------------ */
.c-badge {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 12px;
    opacity: 0;
    transform: scale(0.6);
}

.c-overlay.active .c-badge {
    animation: popIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

/* Eliminated badge variant */
.c-badge-grey {
    filter: grayscale(1);
    opacity: 0.75;
}

/* ------------------------------------------------------------
   Trophy (winner celebration)
------------------------------------------------------------ */
.c-trophy {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 12px;
    opacity: 0;
    transform: scale(0.6);
    animation: popIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards, shimmer 2s infinite 0.6s;
}

/* ------------------------------------------------------------
   Animations (copied from pick modal)
------------------------------------------------------------ */
@keyframes cardIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.92);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }

    70% {
        opacity: 1;
        transform: scale(1.12);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.25);
    }

    100% {
        filter: brightness(1);
    }
}

.c-test-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e293b;
    color: white;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    z-index: 999999;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .c-test-panel h4 {
        margin: 0 0 6px 0;
        font-size: 15px;
        font-weight: 600;
    }

    .c-test-panel button {
        background: #334155;
        border: 1px solid rgba(255,255,255,0.15);
        color: white;
        padding: 8px 12px;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s ease;
    }

        .c-test-panel button:hover {
            background: #475569;
        }
/* ------------------------------------------------------------
   WINNER CARD (premium cinematic)
------------------------------------------------------------ */
.c-winner-card {
    position: relative;
    overflow: visible;
}

/* LMS Logo */
.c-winner-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 0 auto 8px;
    opacity: 0;
    transform: scale(0.7);
    animation: popIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Trophy */
.c-winner-trophy {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 12px;
    opacity: 0;
    transform: scale(0.6);
    animation: popIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards, trophyPulse 2.2s ease-in-out infinite 0.7s;
}

/* Gold glow behind trophy */
.c-winner-card::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,215,0,0.35), rgba(255,215,0,0));
    border-radius: 50%;
    opacity: 0;
    animation: glowIn 0.8s ease-out 0.3s forwards;
}

/* Title */
.c-winner-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffd700;
    margin-top: 4px;
    text-shadow: 0 0 12px rgba(255,215,0,0.6);
}

/* League name */
.c-winner-league {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 4px;
}

/* Winner name */
.c-winner-name {
    font-size: 18px;
    font-weight: 600;
    margin-top: 6px;
}

/* Winning week */
.c-winner-week {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Trophy pulse animation */
@keyframes trophyPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* Glow fade-in */
@keyframes glowIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}
