.karaoke-word {
    transition: color 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
    display: inline-block;
}

.active-word {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.4);
    font-weight: bold;
}

#sleep-overlay {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 2.5s ease-in-out, visibility 2.5s;
}

#sleep-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Achievements Passport */
.medal-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-light);
}

.medal-card .medal-icon {
    font-size: 2.5em;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.medal-card .medal-title {
    font-size: 0.85em;
    font-weight: 800;
    margin-bottom: 3px;
}

.medal-card .medal-desc {
    font-size: 0.7em;
    color: var(--text-muted);
    line-height: 1.2;
}

.medal-card.locked {
    filter: grayscale(1);
    opacity: 0.5;
    box-shadow: none;
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .medal-card.locked {
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.medal-card.unlocked {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(162, 155, 254, 0.05));
}

.medal-card.unlocked:hover .medal-icon {
    transform: scale(1.2) rotate(5deg);
}

@keyframes unlock-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.unlock-pop-anim {
    animation: unlock-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Facebook Login Button Style — matches Google button size */
.fb-login-btn {
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin: 12px auto 0 auto;
    transition: background-color 0.2s;
    height: 44px; /* matches Google large button */
    letter-spacing: 0.25px;
}

.fb-login-btn:hover {
    background-color: #166fe5;
}

/* 🎭 Avatar Selector Premium Styling */
.avatar-selector {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
}

.avatar-selector::-webkit-scrollbar {
    width: 6px;
}

.avatar-selector::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.avatar-btn {
    cursor: pointer;
    font-size: 2.2em;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
}

.avatar-btn:hover {
    transform: scale(1.15) rotate(5deg);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.avatar-btn:active {
    transform: scale(0.95);
}
