/**
 * Confetti Animation Styles
 */

/* Welcome toast styling - inspired by gc-toast but distinct */
.welcome-toast-centered {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    background: #5C7AFF;
    color: #fff;
    padding: 20px 24px;
    border-radius: 16px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(92, 122, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10002;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 200px;
}

.welcome-toast-centered.welcome-toast-visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.welcome-toast-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.welcome-toast-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.welcome-toast-title.fire-text {
    --fire-color-1: #ffffff;
    --fire-color-2: #ffe066;
    --fire-color-3: #ffcc00;
    --speed: 1.5s;
    
    background:
        radial-gradient(ellipse at center, var(--fire-color-1) 0%, var(--fire-color-2) 40%, transparent 80%),
        linear-gradient(to bottom, transparent 0%, var(--fire-color-2) 90%),
        radial-gradient(ellipse at bottom, var(--fire-color-3) 0%, transparent 70%);
    
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: center 20%, center center, center bottom;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation:
        flicker-main var(--speed) ease-in-out infinite,
        flicker-sub calc(var(--speed) * 0.75) ease-in-out infinite,
        pulse calc(var(--speed) * 0.6) ease-in-out infinite;
}

@keyframes flicker-main {
    0% {
        background-size: 115% 115%, 100% 100%, 105% 105%;
        background-position: center 35%, center center, center bottom;
    }
    50% {
        background-size: 120% 120%, 100% 100%, 110% 110%;
        background-position: center 25%, center center, center bottom;
    }
    100% {
        background-size: 115% 115%, 100% 100%, 105% 105%;
        background-position: center 35%, center center, center bottom;
    }
}

@keyframes flicker-sub {
    0% {
        background-position: center 20%, center center, center bottom;
    }
    50% {
        background-position: center 30%, center center, center bottom;
    }
    100% {
        background-position: center 20%, center center, center bottom;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

.welcome-toast-main {
    display: flex;
    align-items: center;
    gap: 6px;
}

.welcome-toast-coin {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.welcome-toast-text {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.welcome-toast-message {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

/* Enhanced toast styling for regular toasts */
#gc-toast.welcome-toast {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}