/* Angry Birds Theme Menu Styles */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One:wght@400&family=Nunito:wght@700;800;900&display=swap');

/* Start Screen Background */
#startScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        #87CEEB 0%, 
        #98D8E8 25%, 
        #B8E6B8 50%, 
        #90EE90 75%, 
        #7FFF7F 100%);
    z-index: 30;
    animation: menuFadeIn 1s ease-out;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    min-height: 100vh;
}

/* Main Content Wrapper - Contains both menu and carousel side by side */
.menu-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 250px;
    width: 100%;
    max-width: 1800px;
    z-index: 10;
    position: relative;
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Animated Background Elements */
.menu-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    animation: floatClouds 8s ease-in-out infinite;
}

.cloud1 {
    width: 100px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cloud2 {
    width: 150px;
    height: 80px;
    top: 15%;
    right: 15%;
    animation-delay: 2s;
}

.cloud3 {
    width: 80px;
    height: 50px;
    top: 60%;
    left: 5%;
    animation-delay: 4s;
}

@keyframes floatClouds {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Angry Birds Slingshot */
.angry-birds-slingshot {
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 60px;
    height: 120px;
    background: linear-gradient(45deg, #8B4513 0%, #A0522D 100%);
    border-radius: 10px 10px 0 0;
    transform: rotate(15deg);
    animation: slingshotSway 4s ease-in-out infinite;
}

@keyframes slingshotSway {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(5deg); }
}

/* Menu Pigs */
.menu-pigs {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
}

.pig {
    position: absolute;
    font-size: 2rem;
    animation: pigBounce 3s ease-in-out infinite;
}

.pig1 {
    bottom: 10%;
    left: 20%;
    animation-delay: 0s;
}

.pig2 {
    bottom: 15%;
    right: 30%;
    animation-delay: 1s;
}

.pig3 {
    bottom: 12%;
    left: 60%;
    animation-delay: 2s;
}

@keyframes pigBounce {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

/* Main Menu Container - Left Side */
.main-menu-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 25px;
    width: 450px;
    max-width: 450px;
    margin: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    animation: containerSlideIn 1.2s ease-out;
    flex-shrink: 0;
}

@keyframes containerSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(50px) scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

/* Logo Section */
.logo-section {
    margin-bottom: 20px;
}

.angry-birds-logo {
    font-family: 'Fredoka One', cursive;
    font-size: 3.2rem;
    font-weight: 400;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 8px;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-angry {
    color: #FF4444;
    display: inline-block;
    animation: letterBounce 2s ease-in-out infinite;
    animation-delay: 0s;
}

.logo-flappy {
    color: #4444FF;
    display: inline-block;
    animation: letterBounce 2s ease-in-out infinite;
    animation-delay: 0.2s;
}

.logo-bird {
    color: #44FF44;
    display: inline-block;
    animation: letterBounce 2s ease-in-out infinite;
    animation-delay: 0.4s;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes letterBounce {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-2deg); }
    75% { transform: translateY(-2px) rotate(2deg); }
}

.logo-tagline {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    animation: taglineGlow 2s ease-in-out infinite;
}

@keyframes taglineGlow {
    0%, 100% { text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8); }
    50% { text-shadow: 2px 2px 8px rgba(255, 215, 0, 0.8); }
}

/* Character Preview Section */
.character-preview-section {
    margin: 20px 0;
    position: relative;
}

.current-bird-display {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.bird-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.selected-bird-avatar {
    font-size: 3.5rem;
    animation: birdHover 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #DC143C, #8B0000);
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin: 0 auto 8px;
    position: relative;
    overflow: hidden;
}

.selected-bird-avatar::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: eyeGleam 3s ease-in-out infinite;
}

@keyframes eyeGleam {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.selected-bird-avatar:hover {
    transform: scale(1.2) rotate(15deg);
}

/* Special styling for Chuck's triangular avatar */
.selected-bird-avatar.chuck {
    border-radius: 0;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(135deg, #FF8C00, #FFA500);
    border: 4px solid rgba(255, 215, 0, 0.8);
    transform: rotate(0deg); /* Keep Chuck upright */
}

.selected-bird-avatar.chuck:hover {
    transform: scale(1.2) rotate(5deg); /* Smaller rotation for triangle */
}

/* Remove the circular gleam effect for Chuck */
.selected-bird-avatar.chuck::before {
    display: none;
}

/* Special styling for Bomb's enhanced avatar */
.selected-bird-avatar.bomb {
    border: 4px solid rgba(255, 69, 0, 0.8);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 69, 0, 0.4);
    animation: bombAvatarPulse 3s ease-in-out infinite;
}

@keyframes bombAvatarPulse {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 69, 0, 0.4);
        border-color: rgba(255, 69, 0, 0.8);
    }
    50% {
        box-shadow: 
            0 12px 35px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(255, 0, 0, 0.7);
        border-color: rgba(255, 0, 0, 1);
    }
}

.selected-bird-avatar.bomb:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 0, 0, 0.8);
}

/* Enhanced gleam effect for Bomb */
.selected-bird-avatar.bomb::before {
    background: radial-gradient(circle, rgba(255, 100, 100, 0.8) 0%, transparent 70%);
    animation: bombGleam 2.5s ease-in-out infinite;
}

@keyframes bombGleam {
    0%, 100% { 
        opacity: 0.2;
        background: radial-gradient(circle, rgba(255, 100, 100, 0.8) 0%, transparent 70%);
    }
    50% { 
        opacity: 0.6;
        background: radial-gradient(circle, rgba(255, 50, 50, 1) 0%, transparent 70%);
    }
}

/* Special styling for Blues - single bird in main menu */
.selected-bird-avatar.blues {
    background: linear-gradient(135deg, #4A90E2, #1E3A8A);
    border: 3px solid white;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    position: relative;
}

/* Add pupils as small elements on the main blues container */
.selected-bird-avatar.blues:before {
    /* Blue bird eyes with pupils always visible */
    content: '';
    position: absolute;
    top: 32%;
    left: 28%;
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    border: 2px solid #000;
    border-radius: 50%;
    box-shadow: 
        20px 0 0 0 #FFFFFF, 
        20px 0 0 2px #000,
        /* Black pupils centered in each eye */
        4px 4px 0 -6px #000000,
        24px 4px 0 -6px #000000;
    z-index: 3;
}

.selected-bird-avatar.blues:after {
    /* Single blue bird beak */
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 6px;
    background: #FFA500;
    border-radius: 50% 50% 60% 60% / 60% 60% 40% 40%;
    z-index: 2;
}

/* Pupils using a creative approach - add after all other elements */
.selected-bird-avatar.blues {
    background: 
        /* Two small black circles for pupils */
        radial-gradient(circle at 36% 45%, #000 2px, transparent 3px),
        radial-gradient(circle at 64% 45%, #000 2px, transparent 3px),
        /* Main blue gradient */
        linear-gradient(135deg, #4A90E2, #1E3A8A);
    border: 3px solid white;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    position: relative;
}

.selected-bird-avatar.blues::after {
    /* Single blue bird beak */
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 6px;
    background: #FFA500;
    border-radius: 50% 50% 60% 60% / 60% 60% 40% 40%;
    z-index: 2;
}

.selected-bird-avatar.blues:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.6);
}

/* Menu Bird Visual Styles */
.selected-bird-avatar .bird-visual-red {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #DC143C, #8B0000);
    border-radius: 50%;
    box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.3);
}

.selected-bird-avatar .bird-visual-red::before {
    /* White belly */
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: #F5F5F5;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-bird-avatar .bird-visual-red::after {
    /* Angry eyebrows */
    content: '';
    position: absolute;
    top: 30px;
    left: 25px;
    width: 20px;
    height: 6px;
    background: #2F1B14;
    border-radius: 3px;
    transform: rotate(-15deg);
    box-shadow: 30px 0 0 #2F1B14;
}

/* Eyes for Red bird in main menu */
.selected-bird-avatar .bird-visual-red .eye {
    position: absolute;
    top: 38px;
    left: 32px;
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 3px solid #2F1B14;
    box-shadow: 26px 0 0 #FFFFFF, 26px 0 0 3px #2F1B14;
}

/* Stella's enhanced eyes in main menu */
.selected-bird-avatar .bird-visual-stella .eye {
    position: absolute;
    top: 35px;
    left: 30px;
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 3px solid #2F1B14;
    box-shadow: 24px 0 0 #FFFFFF, 24px 0 0 3px #2F1B14;
}

/* Stella's pupils in main menu */
.selected-bird-avatar .bird-visual-stella .eye::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
    box-shadow: 24px 0 0 #000;
}

/* Stella's determined eyebrows in main menu */
.selected-bird-avatar .bird-visual-stella .eye::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -1px;
    width: 12px;
    height: 3px;
    background: #8B008B;
    border-radius: 2px;
    transform: rotate(-25deg);
    box-shadow: 26px 2px 0 #8B008B;
}

/* Matilda's enhanced eyes in main menu */
.selected-bird-avatar .bird-visual-matilda .eye {
    position: absolute;
    top: 35px;
    left: 30px;
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 3px solid #2F1B14;
    box-shadow: 24px 0 0 #FFFFFF, 24px 0 0 3px #2F1B14;
}

/* Matilda's pupils in main menu */
.selected-bird-avatar .bird-visual-matilda .eye::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
    box-shadow: 24px 0 0 #000;
}

/* Matilda's angry eyebrows in main menu */
.selected-bird-avatar .bird-visual-matilda .eye::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -1px;
    width: 12px;
    height: 3px;
    background: #D2691E;
    border-radius: 2px;
    transform: rotate(-20deg);
    box-shadow: 26px 2px 0 #D2691E;
}

/* Chuck's eyes - positioned for triangle shape */
.selected-bird-avatar .bird-visual-chuck .eye {
    position: absolute;
    top: 30px;
    left: 28px;
    width: 10px;
    height: 10px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 2px solid #2F1B14;
    box-shadow: 20px 0 0 #FFFFFF, 20px 0 0 2px #2F1B14;
}

/* Beak for Red bird in main menu */
.selected-bird-avatar .bird-visual-red .beak {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid #FFA500;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

/* Stella's enhanced beak in main menu */
.selected-bird-avatar .bird-visual-stella .beak {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #FFA500;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

/* Matilda's enhanced beak in main menu */
.selected-bird-avatar .bird-visual-matilda .beak {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #FFD700;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

/* Enhanced Bomb Bird Beak - Darker metallic */
.selected-bird-avatar .bird-visual-bomb .beak {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #666;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

/* Chuck's beak - positioned for triangle shape */
.selected-bird-avatar .bird-visual-chuck .beak {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #FFA500;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.selected-bird-avatar .bird-visual-chuck {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF8C00, #FFA500);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-bird-avatar .bird-visual-chuck::before {
    /* Light yellow belly - triangular */
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 30px;
    background: #FFFF99;
    clip-path: polygon(40% 0%, 0% 100%, 80% 100%);
    border-radius: 8px;
}

.selected-bird-avatar .bird-visual-chuck::after {
    /* Chuck's speed lines/eyebrows */
    content: '';
    position: absolute;
    top: 20px;
    left: 18px;
    width: 15px;
    height: 4px;
    background: #2F1B14;
    border-radius: 2px;
    transform: rotate(-20deg);
    box-shadow: 25px 5px 0 #2F1B14;
}

/* BOMB BIRD - START MENU VERSION - EXACTLY LIKE CHARACTER SELECTION */
.selected-bird-avatar .bird-visual-bomb {
    position: relative;
    width: 100%;
    height: 100%;
    /* EXACT SAME background as character selection */
    background: radial-gradient(circle at 25% 25%, #4A4A4A, #2A2A2A, #0A0A0A);
    border-radius: 50%;
    /* EXACT SAME shadows as character selection */
    box-shadow: 
        inset -8px -8px 16px rgba(0, 0, 0, 0.6),
        inset 4px 4px 8px rgba(255, 255, 255, 0.1);
}

/* BOMB BIRD EYES - SINGLE EYE ELEMENT CREATES BOTH EYES */
.selected-bird-avatar .bird-visual-bomb .eye {
    position: absolute;
    top: 30px;
    left: 28px;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 35% 30%, #FFFFFF, #FFE4E4, #FFCCCC);
    border-radius: 50%;
    border: 3px solid #2F1B14;
    /* Create second eye using box-shadow, but properly positioned */
    box-shadow: 
        24px 0 0 0 #FFFFFF,
        24px 0 0 3px #2F1B14,
        0 0 6px rgba(255, 0, 0, 0.4),
        24px 0 6px rgba(255, 0, 0, 0.4);
    animation: characterBombEyeGlow 3s ease-in-out infinite;
    z-index: 3;
}

/* BOMB BIRD PUPILS - BOTH PUPILS */
.selected-bird-avatar .bird-visual-bomb .eye::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    /* Create second pupil using box-shadow */
    box-shadow: 24px 0 0 #000;
}

/* BOMB BIRD EYEBROWS - BOTH EYEBROWS */
.selected-bird-avatar .bird-visual-bomb .eye::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -1px;
    width: 10px;
    height: 3px;
    background: #2F1B14;
    border-radius: 2px;
    transform: rotate(-25deg);
    /* Create second eyebrow using box-shadow */
    box-shadow: 26px 3px 0 #2F1B14;
}

/* BOMB BIRD BELLY - EXACT COPY FROM CHARACTER SELECTION */
.selected-bird-avatar .bird-visual-bomb::before {
    content: '';
    position: absolute;
    bottom: 12px;       /* EXACT same as character selection */
    left: 50%;
    transform: translateX(-50%);
    width: 55px;        /* EXACT same as character selection */
    height: 38px;       /* EXACT same as character selection */
    background: linear-gradient(135deg, #5A5A5A, #3A3A3A, #2A2A2A);  /* EXACT same gradient */
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 
        inset 0 3px 6px rgba(255, 255, 255, 0.2),  /* EXACT same shadows */
        inset 0 -3px 6px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* BOMB BIRD FUSE - EXACT COPY FROM CHARACTER SELECTION */
.selected-bird-avatar .bird-visual-bomb::after {
    content: '';
    position: absolute;
    top: 2px;           /* EXACT same as character selection */
    left: 50%;
    transform: translateX(-50%);
    width: 6px;         /* EXACT same as character selection */
    height: 20px;       /* EXACT same as character selection */
    background: linear-gradient(180deg, #FFB347, #CD853F, #8B4513, #654321);  /* EXACT same gradient */
    border-radius: 3px;
    box-shadow: 
        0 0 8px rgba(255, 165, 0, 0.6),            /* EXACT same shadows */
        inset -1px 0 2px rgba(0, 0, 0, 0.4);
    animation: characterFuseGlow 2.5s ease-in-out infinite;  /* EXACT same animation */
    z-index: 2;
}

@keyframes bombEyeGlow {
    0%, 100% {
        box-shadow: 
            28px 0 0 #FFFFFF, 
            28px 0 0 3px #2F1B14,
            0 0 8px rgba(255, 0, 0, 0.4),
            28px 0 8px rgba(255, 0, 0, 0.4);
    }
    50% {
        box-shadow: 
            28px 0 0 #FFFFFF, 
            28px 0 0 3px #2F1B14,
            0 0 16px rgba(255, 0, 0, 0.8),
            28px 0 16px rgba(255, 0, 0, 0.8);
    }
}

@keyframes fuseGlow {
    0%, 100% { 
        box-shadow: 
            0 0 4px rgba(205, 133, 63, 0.6),
            inset -1px 0 2px rgba(0, 0, 0, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 8px rgba(255, 165, 0, 0.8),
            0 0 12px rgba(255, 69, 0, 0.6),
            inset -1px 0 2px rgba(0, 0, 0, 0.3);
    }
}

.selected-bird-avatar .bird-visual-blues {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent; /* Let the main container handle the background */
    border-radius: 50%;
}

.selected-bird-avatar .bird-visual-blues::before {
    /* Remove eyes - handled by main container */
    display: none;
}

.selected-bird-avatar .bird-visual-blues::after {
    /* Remove beak - handled by main container */
    display: none;
}

.selected-bird-avatar .bird-visual-matilda {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFFFFF, #F5F5F5, #E8E8E8);
    border-radius: 50%;
    box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.2);
}

.selected-bird-avatar .bird-visual-matilda::before {
    /* Enhanced white belly with subtle shading */
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #FFFFFF, #F8F8F8, #F0F0F0);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.1);
}

.selected-bird-avatar .bird-visual-matilda::after {
    /* Enhanced brown/orange crest feathers */
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 16px solid #D2691E;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.selected-bird-avatar .bird-visual-stella {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF1493, #DC143C, #C71585);
    border-radius: 50%;
    box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.2);
}

.selected-bird-avatar .bird-visual-stella::before {
    /* Enhanced coral-pink belly with subtle shading */
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #FFE4E1, #FFCCCB, #FFB6C1);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.1);
}

.selected-bird-avatar .bird-visual-stella::after {
    /* Enhanced pink crest feathers */
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 16px solid #C71585;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Stella's bubble effect */
.selected-bird-avatar .bird-visual-stella .bubble {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 228, 225, 0.8) 60%, rgba(255, 182, 193, 0.6) 100%);
    border-radius: 50%;
    opacity: 0.7;
    box-shadow: 0 0 10px 4px rgba(255, 228, 225, 0.4);
    animation: stellaBubbleFloat 3s ease-in-out infinite;
    z-index: 3;
}

@keyframes stellaBubbleFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-3px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes birdHover {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-5deg); }
}

.bird-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.bird-special {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    font-weight: bold;
}

.bird-trail-animation {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    animation: trailMove 3s linear infinite;
}

@keyframes trailMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Character Carousel Display - Right Side */
.character-carousel-display {
    width: 800px;
    max-width: 800px;
    margin: 0;
    padding: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.carousel-title {
    text-align: center;
    font-size: 2.8rem;
    color: #333;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    font-family: 'Fredoka One', cursive;
    animation: carouselTitleFloat 3s ease-in-out infinite;
}

@keyframes carouselTitleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.character-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 50px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.character-carousel-track {
    display: flex;
    gap: 30px;
    animation: carouselSlide 15s linear infinite;
    width: fit-content;
    align-items: center;
    height: 100%;
}

@keyframes carouselSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.carousel-character {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: carouselCharacterFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Character avatar within carousel */
.carousel-character .character-avatar {
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    position: relative;
}

/* Special triangular styling for Chuck in carousel */
.carousel-character .character-avatar.chuck {
    border-radius: 0;
    background: transparent;
    position: relative;
    overflow: visible;
}

/* Chuck's custom triangle body in carousel - LARGER */
.carousel-character .character-avatar.chuck .chuck-triangle-body {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 85px solid transparent;
    border-right: 85px solid transparent;
    border-bottom: 150px solid #FFA500;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    z-index: 1;
    transition: all 0.3s ease;
}

/* Add gradient effect to Chuck's triangle using pseudo-element - LARGER */
.carousel-character .character-avatar.chuck .chuck-triangle-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: -85px;
    width: 0;
    height: 0;
    border-left: 85px solid transparent;
    border-right: 85px solid transparent;
    border-bottom: 150px solid #FF8C00;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    z-index: -1;
}

/* Chuck's triangular belly in carousel - LARGER */
.carousel-character .character-avatar.chuck .chuck-triangle-belly {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 45px solid transparent;
    border-right: 45px solid transparent;
    border-bottom: 50px solid #FFFF99;
    z-index: 2;
}

/* Chuck's eyes in carousel - LARGER */
.carousel-character .character-avatar.chuck .chuck-triangle-eyes {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.carousel-character .character-avatar.chuck .chuck-triangle-eyes::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 0;
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 3px solid #2F1B14;
    box-shadow: 0 0 0 1px #FFFFFF inset;
}

.carousel-character .character-avatar.chuck .chuck-triangle-eyes::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 0;
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 3px solid #2F1B14;
    box-shadow: 0 0 0 1px #FFFFFF inset;
}

/* Chuck's pupils */
.carousel-character .character-avatar.chuck .chuck-triangle-eyes::before {
    background: radial-gradient(circle at 40% 30%, #FFFFFF 20%, #000000 25%, #000000 70%, #FFFFFF 75%);
}

.carousel-character .character-avatar.chuck .chuck-triangle-eyes::after {
    background: radial-gradient(circle at 40% 30%, #FFFFFF 20%, #000000 25%, #000000 70%, #FFFFFF 75%);
}

/* Chuck's beak in carousel - LARGER */
.carousel-character .character-avatar.chuck .chuck-triangle-beak {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 18px solid #FF4500;
    z-index: 3;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

/* Chuck's angry eyebrow in carousel - LARGER */
.carousel-character .character-avatar.chuck .chuck-triangle-eyebrow {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.carousel-character .character-avatar.chuck .chuck-triangle-eyebrow::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    width: 18px;
    height: 5px;
    background: #B8860B;
    border-radius: 2px;
    transform: rotate(-20deg);
}

.carousel-character .character-avatar.chuck .chuck-triangle-eyebrow::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 0;
    width: 18px;
    height: 5px;
    background: #B8860B;
    border-radius: 2px;
    transform: rotate(20deg);
}

/* Make Chuck's carousel container triangular to match his shape */
.carousel-character.chuck {
    border-radius: 0;
    clip-path: polygon(50% 5%, 5% 95%, 95% 95%);
    border-color: rgba(255, 215, 0, 0.8);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 215, 0, 0.1));
    overflow: visible;
}

/* Chuck gets a gentle floating animation */
@keyframes carouselCharacterFloatTriangle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

.carousel-character.chuck {
    animation: carouselCharacterFloatTriangle 4s ease-in-out infinite;
}

/* Chuck carousel hover effect - UPDATED FOR LARGER SIZE */
.carousel-character.chuck:hover .chuck-triangle-body {
    border-bottom-color: #FFD700;
    transform: translateX(-50%) scale(1.02);
}

.carousel-character.chuck:hover .chuck-triangle-eyes::before,
.carousel-character.chuck:hover .chuck-triangle-eyes::after {
    transform: scale(1.1);
    border-color: #1F0A09;
}

/* Enhanced Bomb Bird Carousel Effects */
.carousel-character .character-avatar.bomb {
    animation: bombPulse 3s ease-in-out infinite;
}

@keyframes bombPulse {
    0%, 100% { 
        box-shadow: 
            0 0 0 8px rgba(74, 74, 74, 0.2), 
            0 8px 25px rgba(0, 0, 0, 0.5);
    }
    50% { 
        box-shadow: 
            0 0 0 12px rgba(255, 69, 0, 0.3), 
            0 12px 35px rgba(255, 0, 0, 0.4);
    }
}

.carousel-character.bomb {
    border-color: rgba(255, 69, 0, 0.6);
    animation: carouselBombFloat 4s ease-in-out infinite;
}

@keyframes carouselBombFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: translateY(-8px) rotate(-2deg);
        box-shadow: 
            0 12px 35px rgba(255, 69, 0, 0.4),
            0 0 20px rgba(255, 0, 0, 0.3);
    }
}

.carousel-character.bomb:hover {
    border-color: #FF4500 !important;
    box-shadow: 
        0 0 30px rgba(255, 69, 0, 0.8),
        0 12px 40px rgba(255, 0, 0, 0.5) !important;
}

.carousel-character.bomb:hover .character-avatar.bomb::after {
    animation-duration: 1s;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 1),
        0 0 30px rgba(255, 69, 0, 0.8),
        inset -1px 0 2px rgba(0, 0, 0, 0.4);
}

/* Blues Carousel - No Background Override and No Golden Glow */
.carousel-character .character-avatar.blues {
    background: transparent;
}

.carousel-character.blues {
    background: transparent;
    border-color: rgba(135, 206, 235, 0.6);
}

.carousel-character.blues:hover {
    border-color: #4A90E2;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

/* Remove golden glow when Blues are current character */
.carousel-character.blues.current {
    border-color: #4A90E2 !important;
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.6) !important;
    animation: bluesCurrentGlow 2s ease-in-out infinite !important;
}

@keyframes bluesCurrentGlow {
    0%, 100% { 
        box-shadow: 0 8px 30px rgba(74, 144, 226, 0.6);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 12px 40px rgba(74, 144, 226, 0.8);
        transform: scale(1.1);
    }
}

.carousel-character:nth-child(1) { animation-delay: 0s; }
.carousel-character:nth-child(2) { animation-delay: 0.8s; }
.carousel-character:nth-child(3) { animation-delay: 1.6s; }
.carousel-character:nth-child(4) { animation-delay: 2.4s; }
.carousel-character:nth-child(5) { animation-delay: 3.2s; }
.carousel-character:nth-child(6) { animation-delay: 4s; }
.carousel-character:nth-child(7) { animation-delay: 4.8s; }
.carousel-character:nth-child(8) { animation-delay: 5.6s; }
.carousel-character:nth-child(9) { animation-delay: 6.4s; }
.carousel-character:nth-child(10) { animation-delay: 7.2s; }

@keyframes carouselCharacterFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-3deg); }
}

.carousel-character.locked {
    opacity: 0.6;
    border-color: rgba(150, 150, 150, 0.5);
}

.carousel-character.locked::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.carousel-character.current {
    border-color: #FFD700;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    animation: carouselCurrentGlow 2s ease-in-out infinite;
}

@keyframes carouselCurrentGlow {
    0%, 100% { 
        box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 12px 40px rgba(255, 215, 0, 0.8);
        transform: scale(1.1);
    }
}

/* Carousel Bird Styles - DEPRECATED: Now using unified character-avatar system */
/* 
   The carousel now uses the same character-avatar classes as the character selection screen
   for consistent styling across all UI elements
*/

/* Character Gallery Section - Removed (replaced with character selection panel) */

/* Score Display */
.score-display {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    gap: 18px;
    flex-wrap: wrap;
}

.score-item {
    background: rgba(255, 255, 255, 0.3);
    padding: 12px 18px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    flex: 1;
    min-width: 120px;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    animation: scoreGlow 3s ease-in-out infinite;
}

@keyframes scoreGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
}

.score-item i {
    margin-right: 8px;
    color: #FF6B35;
}

/* Menu Buttons */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.menu-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #FF4500 50%, #DC143C 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 320px;
    width: 100%;
    height: 60px;
}

.menu-btn.primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 50%, #2E7D32 100%);
    font-size: 1.4rem;
    padding: 20px 30px;
    animation: primaryButtonPulse 2s ease-in-out infinite;
    min-width: 350px;
    width: 100%;
    height: 70px;
}

.menu-btn.secondary {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 50%, #6A1B9A 100%);
    padding: 19px 28px;
    min-width: 350px;
    width: 100%;
    height: 65px;
}

.menu-btn.debug {
    background: linear-gradient(135deg, #FF6B35 0%, #FF4500 50%, #DC143C 100%);
    padding: 16px 24px;
    min-width: 280px;
    width: 100%;
    height: 55px;
    font-size: 1rem;
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: debugPulse 2s ease-in-out infinite;
}

.menu-btn.debug:hover {
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 50%, #FF4500 100%);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    transform: translateY(-3px) scale(1.05);
}

@keyframes debugPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

@keyframes primaryButtonPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 12px 30px rgba(76, 175, 80, 0.5);
    }
}

.menu-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.menu-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Back Button - For character selection screen */
.back-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #FF4500 50%, #DC143C 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 320px;
    width: auto;
    height: 55px;
}

.back-btn:hover {
    transform: translateX(-50%) translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 50%, #FF4500 100%);
}

.back-btn:active {
    transform: translateX(-50%) translateY(-1px) scale(0.98);
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.back-btn:hover::before {
    left: 100%;
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Game Over Screen Styles */
#gameOver {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(255, 50, 50, 0.95) 0%, 
        rgba(255, 100, 0, 0.95) 50%, 
        rgba(255, 150, 50, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 30;
    animation: gameOverSlideIn 0.8s ease-out;
}

@keyframes gameOverSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#gameOver.show {
    display: flex;
}

#gameOver h2 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    animation: gameOverShake 0.5s ease-in-out;
}

/* Game Over Button Container */
.game-over-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    animation: gameOverButtonsSlideIn 0.8s ease-out 0.3s both;
}

@keyframes gameOverButtonsSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

#gameOver .menu-btn {
    margin: 0;
    max-width: 300px;
    min-width: 260px;
    width: 100%;
    height: 55px;
    font-size: 1.1rem;
    padding: 16px 24px;
}

#gameOver .menu-btn.primary {
    max-width: 300px;
    min-width: 260px;
    width: 100%;
    height: 60px;
    font-size: 1.2rem;
    padding: 18px 26px;
    animation: none; /* Remove the pulse animation for game over */
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

#gameOver .menu-btn.secondary {
    max-width: 300px;
    min-width: 260px;
    width: 100%;
    height: 55px;
    font-size: 1.1rem;
    padding: 16px 24px;
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
}

/* Game Over Button Hover Effects */
#gameOver .menu-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

#gameOver .menu-btn.primary:hover {
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
}

#gameOver .menu-btn.secondary:hover {
    box-shadow: 0 12px 35px rgba(156, 39, 176, 0.6);
}

@keyframes gameOverShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

#gameOver p {
    font-size: 1.5rem;
    color: #FFE4B5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    margin: 10px 0;
    text-align: center;
}

#newHighScoreMsg {
    animation: newHighScoreGlow 1s ease-in-out infinite;
}

@keyframes newHighScoreGlow {
    0%, 100% { 
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
        transform: scale(1.05);
    }
}

/* Additional Button Animations */
.menu-btn:hover .button-shine {
    animation: buttonShineHover 0.6s ease-out;
}

@keyframes buttonShineHover {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Floating Animation for Various Elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        border-color: rgba(255, 215, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
        border-color: rgba(255, 215, 0, 0.9);
    }
}

/* Instructions specific styling */
#instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1rem;
    animation: instructionsPulse 2s ease-in-out infinite;
    z-index: 20;
}

@keyframes instructionsPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Additional hover effects for menu elements */
.score-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.4);
}

.current-bird-display:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.current-bird-display:hover .bird-trail-animation {
    animation-duration: 1.5s;
}

/* Ensure proper stacking and visibility */
.main-menu-container * {
    position: relative;
    z-index: 2;
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
.menu-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Prevent text selection on UI elements */
.main-menu-container, .menu-background, #gameOver {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#restartBtn:hover {
    background: linear-gradient(135deg, #45a049 0%, #2E7D32 50%, #4CAF50 100%);
}

#mainMenuBtn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 50%, #0D47A1 100%);
}

#mainMenuBtn:hover {
    background: linear-gradient(135deg, #1976D2 0%, #0D47A1 50%, #2196F3 100%);
}

.menu-btn::before, #charactersBtn::before, #startBtn::before, #restartBtn::before, #mainMenuBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.menu-btn:hover::before, #charactersBtn:hover::before, #startBtn:hover::before, #restartBtn:hover::before, #mainMenuBtn:hover::before {
    left: 100%;
}

.menu-btn:hover, #charactersBtn:hover, #startBtn:hover, #restartBtn:hover, #mainMenuBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.menu-btn:active, #charactersBtn:active, #startBtn:active, #restartBtn:active, #mainMenuBtn:active {
    transform: translateY(-1px);
}

/* Stats Display */
.stats-display {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.stats-display h3 {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    color: white;
    font-size: 1.1rem;
}

.stat-value {
    color: #FFD700;
    font-weight: bold;
}

/* Menu Navigation */
.menu-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #startScreen .title {
        font-size: 2.5rem;
    }
    
    #startScreen .subtitle {
        font-size: 1.2rem;
    }
    
    .menu-container {
        padding: 20px;
        margin: 20px;
    }
    
    .menu-btn {
        padding: 15px 30px;
        font-size: 1rem;
        margin: 8px;
    }
    
    .menu-btn.primary {
        padding: 18px 35px;
        font-size: 1.2rem;
    }
    
    /* New responsive styles for character gallery */
    .main-menu-container {
        padding: 20px;
        width: 95%;
    }
    
    .angry-birds-logo {
        font-size: 2.5rem;
    }
    
    .selected-bird-avatar {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .birds-showcase {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 8px;
    }
    
    .showcase-bird {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .character-gallery-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .gallery-title {
        font-size: 1.2rem;
    }
    
    .score-display {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .angry-birds-logo {
        font-size: 2rem;
    }
    
    .selected-bird-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .birds-showcase {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 6px;
        max-height: 150px;
    }
    
    .showcase-bird {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .character-gallery-section {
        margin: 15px 0;
        padding: 10px;
    }
    
    .gallery-title {
        font-size: 1rem;
    }
    
    .game-instructions {
        font-size: 0.9rem;
    }
    
    /* Mobile: Stack vertically instead of side by side */
    #startScreen {
        padding: 10px;
        justify-content: flex-start;
    }
    
    .menu-content-wrapper {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    /* Mobile styles for character carousel display */
    .character-carousel-display {
        width: 95%;
        max-width: none;
        margin: 0;
        padding: 15px;
    }
    
    .carousel-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .carousel-character {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .carousel-character.locked::after {
        font-size: 1.2rem;
        width: 25px;
        height: 25px;
    }
    
    .character-carousel-track {
        gap: 15px;
        padding: 15px;
    }
    
    .character-carousel-container {
        padding: 15px;
    }
    
    .main-menu-container {
        width: 95%;
        max-width: none;
        padding: 20px;
        margin: 0;
    }
}

/* Game Over Screen */
#gameOver {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(255, 0, 0, 0.95) 0%, 
        rgba(139, 0, 0, 0.95) 50%, 
        rgba(69, 0, 0, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 40;
    animation: fadeIn 0.5s ease-out;
}

/* Achievement Notification Styles */
@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.achievement-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Nunito', sans-serif;
}

.debug-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Nunito', sans-serif;
}

.debug-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.debug-text h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.debug-text p {
    margin: 2px 0;
    font-size: 1rem;
    font-weight: 600;
}

.debug-text small {
    font-size: 0.9rem;
    opacity: 0.8;
}

.achievement-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.achievement-text h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.achievement-text p {
    margin: 2px 0;
    font-size: 1rem;
    font-weight: 600;
}

.achievement-text small {
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-3px);
    }
}

/* Achievements Display Section */
.achievements-display {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 15px;
    margin-top: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: visible;
    width: 100%;
}

.achievements-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    animation: rotateBackground 20s linear infinite;
    z-index: 1;
}

.achievements-display > * {
    position: relative;
    z-index: 2;
}

.achievements-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.achievements-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: visible;
}

.achievements-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
    gap: 8px;
    justify-items: center;
    align-items: center;
    min-height: 50px;
}

.achievement-item {
    position: relative;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.achievement-item.unlocked {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FFD700;
    animation: achievementGlow 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.achievement-item.locked {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.4), rgba(60, 60, 60, 0.4));
    border-color: #666;
    color: #888;
    filter: grayscale(1);
    opacity: 0.7;
}

.achievement-item:hover {
    transform: scale(1.2);
    z-index: 1000;
    transition: all 0.2s ease;
    position: relative;
}

.achievement-item.unlocked:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 0 3px 12px rgba(0, 0, 0, 0.4);
}

.achievement-item.locked:hover {
    filter: grayscale(0.5);
    border-color: #999;
    opacity: 0.9;
}

.achievement-tooltip {
    position: fixed;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.5);
    min-width: 140px;
    text-align: center;
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
}

.achievement-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
}

.achievement-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.achievement-description {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 4px;
    color: #FFD700;
}

.achievements-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    width: 0%;
    transition: width 0.8s ease;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

@keyframes achievementGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 0 3px 12px rgba(0, 0, 0, 0.4);
    }
}

@keyframes achievementHover {
    0% { transform: scale(1.2); }
    50% { transform: scale(1.3) rotate(5deg); }
    100% { transform: scale(1.2); }
}

@keyframes titlePulse {
    0%, 100% { 
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        transform: scale(1);
    }
    50% { 
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.8);
        transform: scale(1.02);
    }
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#gameOver h2 {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 30px;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    animation: bounce 2s ease-in-out infinite;
}

#gameOver p {
    font-size: 1.5rem;
    color: white;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#newHighScoreMsg {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 15px 30px;
    border-radius: 25px;
    margin: 20px 0;
    font-weight: bold;
    animation: glow 1.5s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

/* Game Over Responsive Design */
@media (max-width: 768px) {
    #gameOver h2 {
        font-size: 2rem;
    }
    
    #gameOver p {
        font-size: 1.2rem;
    }
}
