@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0a0e17;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #ec4899;
    --accent: #fbbf24;
    --success: #10b981;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: #f8fafc;
    overflow-x: hidden;
}

h1, h2, h3, .font-heading {
    font-family: 'Fredoka', 'Outfit', sans-serif;
}

/* Glassmorphism Cards */
.glass-panel {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel-glow {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Glowing Neon Elements */
.glow-cyan {
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.glow-amber {
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.4);
}

.glow-magenta {
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.4);
}

/* Animations */
@keyframes pulse-subtle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: 0.9; }
}

.animate-pulse-subtle {
    animation: pulse-subtle 2s infinite ease-in-out;
}

@keyframes bounce-small {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.animate-bounce-small {
    animation: bounce-small 1.5s infinite ease-in-out;
}

/* Star Score animations */
@keyframes star-pop {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    70% { transform: scale(1.3) rotate(15deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.star-pop-1 { animation: star-pop 0.5s 0.2s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; }
.star-pop-2 { animation: star-pop 0.5s 0.4s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; }
.star-pop-3 { animation: star-pop 0.5s 0.6s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; }
.star-pop-4 { animation: star-pop 0.5s 0.8s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; }
.star-pop-5 { animation: star-pop 0.5s 1.0s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Canvas styling */
#karaokeCanvas {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
