/* ============================================================
   FINALE STYLES - 6★ Secret Reveal
   ============================================================ */

.finale-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: #000;
}

.finale-overlay canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#confetti-canvas {
    z-index: 302;
    pointer-events: none;
}

/* Finale content card */
.finale-content {
    position: relative;
    z-index: 303;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
    animation: finale-fade-in 2s ease forwards;
    opacity: 0;
}

@keyframes finale-fade-in {
    0% { opacity: 0; transform: scale(0.8) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.finale-stars {
    font-size: 32px;
    letter-spacing: 8px;
    background: linear-gradient(90deg, #ff69b4, #ffd700, #00ffff, #ff69b4);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-text 3s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes rainbow-text {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.finale-ring {
    animation: ring-float 3s ease-in-out infinite, ring-glow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.6));
}

.finale-image {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 60px rgba(255, 105, 180, 0.4), 0 0 120px rgba(255, 215, 0, 0.2);
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-radius 0.5s ease,
                width 0.5s ease, height 0.5s ease,
                box-shadow 0.5s ease;
}

.finale-image:hover {
    transform: scale(2.2);
    border-radius: 16px;
    box-shadow: 0 0 80px rgba(255, 105, 180, 0.6), 0 0 160px rgba(255, 215, 0, 0.4), 0 20px 60px rgba(0,0,0,0.5);
    z-index: 10;
}

.finale-emoji {
    font-size: 120px;
}

.finale-item-name {
    font-family: var(--font-display);
    font-size: 20px;
    color: rgba(255, 215, 0, 0.9);
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

@keyframes ring-float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes ring-glow {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.6)); }
    50% { filter: drop-shadow(0 0 80px rgba(255, 105, 180, 0.8)) drop-shadow(0 0 120px rgba(255, 215, 0, 0.4)); }
}

.finale-text {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--genshin-text);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    max-width: 500px;
    line-height: 1.6;
}

.finale-name {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #ff69b4, #ffd700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-text 4s ease infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    letter-spacing: 4px;
}

.finale-buttons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.btn-finale {
    padding: 16px 48px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-yes {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.4);
}

.btn-yes:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 48px rgba(255, 105, 180, 0.6);
}

.btn-yes::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: btn-shimmer 2s ease infinite;
}

@keyframes btn-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.btn-maybe {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
    padding: 12px 24px;
}

.btn-maybe:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

/* Post-answer celebration */
.finale-celebration {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
}

.celebration-text {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #ff69b4, #00ffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-text 3s ease infinite, celebration-pop 1s ease forwards;
    text-align: center;
    line-height: 1.4;
}

@keyframes celebration-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
