/* Stella Avatar Styles */
.character-avatar.stella {
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    position: relative;
    box-shadow: 0 0 0 8px rgba(255,182,193,0.2), 0 8px 25px rgba(255, 105, 180, 0.3);
}

.character-avatar.stella .bubble {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #FFD1DC 60%, #FFB6C1 100%);
    border-radius: 50%;
    opacity: 0.7;
    box-shadow: 0 0 20px 8px #FFD1DC;
    z-index: 1;
}

.character-avatar.stella .stella-eye {
    position: absolute;
    top: 40px;
    left: 38px;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    border: 2px solid #C71585;
    z-index: 2;
}

.character-avatar.stella .stella-beak {
    position: absolute;
    top: 60px;
    left: 44px;
    width: 14px;
    height: 10px;
    background: #FFD700;
    border-radius: 50% 50% 60% 60% / 60% 60% 40% 40%;
    border: 2px solid #C71585;
    z-index: 2;
}
/* Character Selection Screen - Angry Birds Theme */
#characterScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        #87CEEB 0%, 
        #98D8E8 25%, 
        #B8E6B8 50%, 
        #90EE90 75%, 
        #7FFF7F 100%);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 30;
    overflow-y: auto;
    animation: characterScreenSlideIn 0.8s ease-out;
}

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

/* Character Screen Background Elements */
#characterScreen::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.character-header {
    text-align: center;
    padding: 30px;
    color: white;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.character-header h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    margin-bottom: 10px;
    animation: characterHeaderBounce 2s ease-in-out infinite;
    color: #333;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

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

.character-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    color: #444;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Character Card */
.character-card {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    color: #333;
    transition: all 0.4s ease;
    border: 3px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: cardFloatIn 0.6s ease-out;
}

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

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s;
}

.character-card:hover::before {
    transform: translateX(100%);
}

.character-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.35);
}

.character-card.owned {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.3);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.character-card.selected {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.3);
    animation: selectedCardGlow 2s ease-in-out infinite;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
}

@keyframes selectedCardGlow {
    0%, 100% { 
        box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
        border-color: rgba(255, 215, 0, 0.8);
    }
    50% { 
        box-shadow: 0 20px 45px rgba(255, 215, 0, 0.6);
        border-color: rgba(255, 215, 0, 1);
    }
}

.character-card.locked {
    opacity: 0.7;
    background: rgba(150, 150, 150, 0.3);
    border-color: rgba(150, 150, 150, 0.5);
}

.character-card.locked:hover {
    transform: translateY(-3px) scale(1.01);
}

/* Character Avatar */
.character-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #FF6B35, #FF4500);
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    animation: avatarFloat 3s ease-in-out infinite;
}

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

.character-avatar:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.character-avatar.red {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    position: relative;
    box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.3);
}

.character-avatar.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);
}

.character-avatar.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;
}

/* Red's angry eyebrows */
/* (Now handled by ::after pseudo-element above) */

/* Red's eyes in avatar */
.character-avatar.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;
}

/* Red's beak in avatar */
.character-avatar.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));
}

.character-avatar.chuck {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 0; /* Remove circular border radius for triangle */
}

.character-avatar.chuck::before {
    /* Light yellow triangular belly */
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 25px;
    background: #FFFF99;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Chuck's beak in avatar - positioned for triangle shape */
.character-avatar.chuck .beak {
    position: absolute;
    bottom: 20px;
    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));
}

/* Enhanced Bomb Bird Design */
.character-avatar.bomb {
    background: radial-gradient(circle at 25% 25%, #4A4A4A, #2A2A2A, #0A0A0A);
    box-shadow: 
        0 0 0 8px rgba(74, 74, 74, 0.2), 
        0 8px 25px rgba(0, 0, 0, 0.5),
        inset -8px -8px 16px rgba(0, 0, 0, 0.6),
        inset 4px 4px 8px rgba(255, 255, 255, 0.1);
}

/* Bomb Bird Eyes for character selection */
.character-avatar.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;
    box-shadow: 
        24px 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 for character selection */
.character-avatar.bomb .eye::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    box-shadow: 24px 0 0 #000;
}

/* Bomb Bird Eyebrows for character selection */
.character-avatar.bomb .eye::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -1px;
    width: 10px;
    height: 3px;
    background: #2F1B14;
    border-radius: 2px;
    transform: rotate(-25deg);
    box-shadow: 26px 3px 0 #2F1B14;
}

@keyframes characterBombEyeGlow {
    0%, 100% {
        box-shadow: 
            24px 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);
    }
    50% {
        box-shadow: 
            24px 0 0 #FFFFFF, 
            24px 0 0 3px #2F1B14,
            0 0 12px rgba(255, 0, 0, 0.8),
            24px 0 12px rgba(255, 0, 0, 0.8);
    }
}

/* Enhanced metallic belly */
.character-avatar.bomb::before {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 38px;
    background: linear-gradient(135deg, #5A5A5A, #3A3A3A, #2A2A2A);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 
        inset 0 3px 6px rgba(255, 255, 255, 0.2),
        inset 0 -3px 6px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Enhanced animated fuse */
.character-avatar.bomb::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 20px;
    background: linear-gradient(180deg, #FFB347, #CD853F, #8B4513, #654321);
    border-radius: 3px;
    box-shadow: 
        0 0 8px rgba(255, 165, 0, 0.6),
        inset -1px 0 2px rgba(0, 0, 0, 0.4);
    animation: characterFuseGlow 2.5s ease-in-out infinite;
    z-index: 2;
}

@keyframes characterFuseGlow {
    0%, 100% { 
        box-shadow: 
            0 0 8px rgba(255, 165, 0, 0.6),
            inset -1px 0 2px rgba(0, 0, 0, 0.4);
        background: linear-gradient(180deg, #FFB347, #CD853F, #8B4513, #654321);
    }
    50% { 
        box-shadow: 
            0 0 16px rgba(255, 69, 0, 0.9),
            0 0 24px rgba(255, 0, 0, 0.7),
            inset -1px 0 2px rgba(0, 0, 0, 0.4);
        background: linear-gradient(180deg, #FF6347, #FF4500, #CD853F, #8B4513);
    }
}

.character-avatar.blues {
    background: transparent;
    position: relative;
    animation: bluesHover 3s ease-in-out infinite;
}

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

/* The Blues - Three Birds Design */
.character-avatar.blues::before {
    /* Center bird */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;  /* Increased from 35px to 42px */
    height: 42px; /* Increased from 35px to 42px */
    background: linear-gradient(135deg, #4A90E2, #1E3A8A);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.character-avatar.blues::after {
    /* Left and right birds - closer together */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;  /* Increased from 30px to 36px */
    height: 36px; /* Increased from 30px to 36px */
    background: linear-gradient(135deg, #4A90E2, #1E3A8A);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.15),
        /* Left bird */
        -42px 0 0 0 #4A90E2,      /* Adjusted from -35px to -42px */
        -42px 0 0 2px white,
        -42px 2px 6px 0 rgba(0, 0, 0, 0.15),
        /* Right bird */
        42px 0 0 0 #4A90E2,       /* Adjusted from 35px to 42px */
        42px 0 0 2px white,
        42px 2px 6px 0 rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Blues Eyes and Beaks */
.character-avatar.blues .blues-eyes {
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border: 1px solid #000;
    border-radius: 50%;
    z-index: 4;
    animation: bluesEyeBlink 4s infinite;
    /* Second eye for center bird */
    box-shadow: 
        8px 0 0 0 white, 
        8px 0 0 1px #000,
        /* Left bird eyes - adjusted for larger size */
        -42px 0 0 0 white,  /* Changed from -35px to -42px */
        -34px 0 0 0 white,  /* Changed from -27px to -34px */
        -42px 0 0 1px #000,
        -34px 0 0 1px #000,
        /* Right bird eyes - adjusted for larger size */
        42px 0 0 0 white,   /* Changed from 35px to 42px */
        50px 0 0 0 white,   /* Changed from 43px to 50px */
        42px 0 0 1px #000,
        50px 0 0 1px #000;
}

.character-avatar.blues .blues-eyes::after {
    /* Pupils for all birds */
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 2px;
    height: 2px;
    background: #000;
    border-radius: 50%;
    box-shadow: 
        /* Center bird pupils */
        8px 0 0 0 #000,
        /* Left bird pupils - adjusted for larger size */
        -42px 0 0 0 #000,   /* Changed from -35px to -42px */
        -34px 0 0 0 #000,   /* Changed from -27px to -34px */
        /* Right bird pupils - adjusted for larger size */
        42px 0 0 0 #000,    /* Changed from 35px to 42px */
        50px 0 0 0 #000;    /* Changed from 43px to 50px */
}

.character-avatar.blues .blues-beaks {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 4px;
    background: #FFA500;
    border-radius: 50% 50% 60% 60% / 60% 60% 40% 40%;
    z-index: 4;
    /* All three beaks - adjusted for larger size */
    box-shadow: 
        /* Left bird beak */
        -42px 0 0 0 #FFA500,  /* Changed from -35px to -42px */
        /* Right bird beak */
        42px 0 0 0 #FFA500;   /* Changed from 35px to 42px */
}

@keyframes bluesEyeBlink {
    0%, 90%, 100% { 
        transform: scaleY(1); 
    }
    95% { 
        transform: scaleY(0.1); 
    }
}

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

.character-avatar.matilda {
    background: linear-gradient(135deg, #FFFFFF, #F5F5F5, #E8E8E8);
    color: #333;
    position: relative;
    box-shadow: 0 0 0 8px rgba(255,255,255,0.3), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.character-avatar.matilda::before {
    /* Enhanced white belly with subtle shading */
    content: '';
    position: absolute;
    bottom: 12px;
    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);
    z-index: 1;
}

.character-avatar.matilda::after {
    /* Enhanced brown/orange crest feathers */
    content: '';
    position: absolute;
    top: 5px;
    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));
    z-index: 2;
}

/* Matilda's eyes in avatar */
.character-avatar.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;
    z-index: 3;
}

/* Matilda's pupils */
.character-avatar.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 */
.character-avatar.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;
}

/* Matilda's beak in avatar */
.character-avatar.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));
    z-index: 3;
}

.character-avatar.stella {
    background: linear-gradient(135deg, #FF1493, #DC143C, #C71585);
    position: relative;
    box-shadow: 0 0 0 8px rgba(255, 20, 147, 0.3), 0 8px 25px rgba(199, 21, 133, 0.4);
}

.character-avatar.stella::before {
    /* Enhanced coral-pink belly with subtle shading */
    content: '';
    position: absolute;
    bottom: 12px;
    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);
    z-index: 1;
}

.character-avatar.stella::after {
    /* Enhanced pink crest feathers */
    content: '';
    position: absolute;
    top: 5px;
    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));
    z-index: 2;
}

/* Stella's eyes in avatar */
.character-avatar.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;
    z-index: 3;
}

/* Stella's pupils */
.character-avatar.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 */
.character-avatar.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;
}

/* Stella's beak in avatar */
.character-avatar.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));
    z-index: 3;
}

/* Stella's bubble effect in avatar */
.character-avatar.stella .bubble {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    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 15px 6px rgba(255, 228, 225, 0.4);
    animation: stellaBubbleFloat 3s ease-in-out infinite;
    z-index: 1;
}

.character-avatar.bubbles {
    background: linear-gradient(135deg, #FF8C00, #FF4500);
}

.character-avatar.ruby {
    background: linear-gradient(135deg, #DC143C, #B22222);
}

.character-avatar.silver {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #333;
}

.character-avatar.mighty {
    background: linear-gradient(135deg, #8B4513, #654321);
    border-color: #FFD700;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.5);
}

/* Bird Visual Elements for Character Screen */
.bird-visual-red,
.bird-visual-bomb,
.bird-visual-blues,
.bird-visual-matilda,
.bird-visual-stella {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.2);
}

/* Chuck gets special triangular treatment */
.bird-visual-chuck {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 0;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.3);
}

.bird-visual-red {
    background: linear-gradient(135deg, #DC143C, #8B0000);
}

.bird-visual-chuck {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
}

.bird-visual-bomb {
    background: radial-gradient(circle at 25% 25%, #4A4A4A, #2A2A2A, #0A0A0A);
    box-shadow: 
        inset 0 -8px 0 rgba(0, 0, 0, 0.6),
        inset -8px -8px 16px rgba(0, 0, 0, 0.4),
        inset 4px 4px 8px rgba(255, 255, 255, 0.1);
}

.bird-visual-blues {
    background: transparent;
    position: relative;
}

/* The Blues - Three Birds Visual for Carousel */
.bird-visual-blues::before {
    /* Center bird - made much bigger, no border */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;  /* Increased from 45px to 55px */
    height: 55px; /* Increased from 45px to 55px */
    background: linear-gradient(135deg, #4A90E2, #1E3A8A);
    border-radius: 50%;
    border: none; /* Removed white border */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.bird-visual-blues::after {
    /* Left and right birds - made much bigger, no borders, adjusted positioning */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;  /* Increased from 38px to 48px */
    height: 48px; /* Increased from 38px to 48px */
    background: linear-gradient(135deg, #4A90E2, #1E3A8A);
    border-radius: 50%;
    border: none; /* Removed white border */
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.2),
        /* Left bird - adjusted position for much bigger size, no border */
        -45px 0 0 0 #4A90E2,      /* Moved from -40px to -45px */
        -45px 3px 6px 0 rgba(0, 0, 0, 0.2),
        /* Right bird - adjusted position for much bigger size, no border */
        45px 0 0 0 #4A90E2,       /* Moved from 40px to 45px */
        45px 3px 6px 0 rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.bird-visual-matilda {
    background: linear-gradient(135deg, #FFFFFF, #F5F5F5, #E8E8E8);
    position: relative;
}

.bird-visual-stella {
    background: linear-gradient(135deg, #FF1493, #DC143C, #C71585);
    position: relative;
}

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

.bird-visual-chuck::before {
    /* Light yellow belly */
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 25px;
    background: #FFFF99;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bird-visual-bomb::before {
    /* Enhanced metallic belly */
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 25px;
    background: linear-gradient(135deg, #5A5A5A, #3A3A3A, #2A2A2A);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}



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

/* Matilda's eyes for bird visual */
.bird-visual-matilda .eye {
    position: absolute;
    top: 22px;
    left: 20px;
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 2px solid #2F1B14;
    box-shadow: 16px 0 0 #FFFFFF, 16px 0 0 2px #2F1B14;
    z-index: 3;
}

/* Matilda's pupils for bird visual */
.bird-visual-matilda .eye::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    width: 3px;
    height: 3px;
    background: #000;
    border-radius: 50%;
    box-shadow: 16px 0 0 #000;
}

/* Matilda's angry eyebrows for bird visual */
.bird-visual-matilda .eye::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -1px;
    width: 8px;
    height: 2px;
    background: #D2691E;
    border-radius: 1px;
    transform: rotate(-20deg);
    box-shadow: 18px 1px 0 #D2691E;
}

/* Matilda's crest feathers for bird visual */
.bird-visual-matilda::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #D2691E;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

/* Matilda's beak for bird visual */
.bird-visual-matilda .beak {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #FFD700;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
    z-index: 3;
}

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

/* Stella's eyes for bird visual */
.bird-visual-stella .eye {
    position: absolute;
    top: 22px;
    left: 20px;
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 2px solid #2F1B14;
    box-shadow: 16px 0 0 #FFFFFF, 16px 0 0 2px #2F1B14;
    z-index: 3;
}

/* Stella's pupils for bird visual */
.bird-visual-stella .eye::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    width: 3px;
    height: 3px;
    background: #000;
    border-radius: 50%;
    box-shadow: 16px 0 0 #000;
}

/* Stella's determined eyebrows for bird visual */
.bird-visual-stella .eye::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -1px;
    width: 8px;
    height: 2px;
    background: #8B008B;
    border-radius: 1px;
    transform: rotate(-25deg);
    box-shadow: 18px 1px 0 #8B008B;
}

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

/* Stella's beak for bird visual */
.bird-visual-stella .beak {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #FFA500;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
    z-index: 3;
}

/* Stella's bubble effect for bird visual */
.bird-visual-stella .bubble {
    position: absolute;
    top: 10px;
    right: 8px;
    width: 12px;
    height: 12px;
    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 8px 3px rgba(255, 228, 225, 0.4);
    animation: stellaBubbleFloat 3s ease-in-out infinite;
    z-index: 1;
}

.bird-visual-red::after {
    /* Angry eyebrows */
    content: '';
    position: absolute;
    top: 18px;
    left: 15px;
    width: 12px;
    height: 4px;
    background: #2F1B14;
    border-radius: 2px;
    transform: rotate(-15deg);
    box-shadow: 18px 0 0 #2F1B14;
}

/* Red's eyes */
.bird-visual-red .eye {
    position: absolute;
    top: 22px;
    left: 20px;
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 2px solid #2F1B14;
    box-shadow: 16px 0 0 #FFFFFF, 16px 0 0 2px #2F1B14;
}

/* Red's eyebrows - handled by ::after pseudo-element above */

/* Red's beak */
.bird-visual-red .beak {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #FFA500;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.bird-visual-chuck {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.bird-visual-chuck::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 25px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    box-shadow: 8px 0 0 #333;
}

.bird-visual-bomb {
    background: radial-gradient(circle at 25% 25%, #4A4A4A, #2A2A2A, #0A0A0A);
    box-shadow: 
        inset 0 -8px 0 rgba(0, 0, 0, 0.6),
        inset -4px -4px 8px rgba(0, 0, 0, 0.4),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1);
}

.bird-visual-bomb::before {
    /* Enhanced angry red eyes */
    content: '';
    position: absolute;
    top: 22px;
    left: 26px;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 35% 30%, #FFFFFF, #FFE4E4, #FFCCCC);
    border-radius: 50%;
    border: 2px solid #2F1B14;
    box-shadow: 
        16px 0 0 #FFFFFF, 
        16px 0 0 2px #2F1B14,
        0 0 4px rgba(255, 0, 0, 0.4),
        16px 0 4px rgba(255, 0, 0, 0.4);
    animation: smallBombEyeGlow 3s ease-in-out infinite;
}

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

.bird-visual-bomb::after {
    /* Enhanced animated fuse */
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 14px;
    background: linear-gradient(180deg, #FFB347, #CD853F, #8B4513, #654321);
    border-radius: 2px;
    box-shadow: 
        0 0 6px rgba(255, 165, 0, 0.6),
        inset -1px 0 2px rgba(0, 0, 0, 0.4);
    animation: smallFuseGlow 2.5s ease-in-out infinite;
}

@keyframes smallFuseGlow {
    0%, 100% { 
        box-shadow: 
            0 0 6px rgba(255, 165, 0, 0.6),
            inset -1px 0 2px rgba(0, 0, 0, 0.4);
        background: linear-gradient(180deg, #FFB347, #CD853F, #8B4513, #654321);
    }
    50% { 
        box-shadow: 
            0 0 12px rgba(255, 69, 0, 0.9),
            0 0 18px rgba(255, 0, 0, 0.7),
            inset -1px 0 2px rgba(0, 0, 0, 0.4);
        background: linear-gradient(180deg, #FF6347, #FF4500, #CD853F, #8B4513);
    }
}

.bird-visual-blues {
    background: transparent;
    position: relative;
}

.bird-visual-blues::before {
    /* Center bird with simple eyes */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4A90E2, #1E3A8A);
    border-radius: 50%;
    border: 1px solid white;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        /* Left and right birds */
        -18px 0 0 0 #4A90E2,
        -18px 0 0 1px white,
        -18px 2px 4px 0 rgba(0, 0, 0, 0.15),
        18px 0 0 0 #4A90E2,
        18px 0 0 1px white,
        18px 2px 4px 0 rgba(0, 0, 0, 0.15),
        /* Simple eyes for all three birds */
        -2px -4px 0 -8px white,
        2px -4px 0 -8px white,
        -20px -4px 0 -8px white,
        -16px -4px 0 -8px white,
        16px -4px 0 -8px white,
        20px -4px 0 -8px white;
    z-index: 3;
}

.bird-visual-matilda {
    background: linear-gradient(135deg, #FFFFFF, #F5F5F5, #E8E8E8);
    position: relative;
}

.bird-visual-matilda::before {
    /* Enhanced white eyes with proper styling */
    content: '';
    position: absolute;
    top: 22px;
    left: 26px;
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 2px solid #2F1B14;
    box-shadow: 16px 0 0 #FFFFFF, 16px 0 0 2px #2F1B14;
}

.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: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 14px solid #D2691E;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

/* Character Info */
.character-info {
    margin-bottom: 20px;
}

.character-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    font-family: 'Fredoka One', cursive;
}

.character-info p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Character Stats */
.character-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.stat-label {
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.stat-value {
    font-weight: bold;
    color: #FF6B35;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Price Display */
.price {
    background: rgba(46, 125, 50, 0.2);
    border: 2px solid rgba(76, 175, 80, 0.6);
    border-radius: 15px;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1B5E20;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    animation: priceGlow 2s ease-in-out infinite;
}

@keyframes priceGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    }
}

.price i {
    color: #4CAF50;
    margin-right: 5px;
}

/* Character Actions */
.character-actions {
    display: flex;
    justify-content: center;
}

.character-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #FF4500 50%, #DC143C 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.character-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.character-btn.info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 50%, #0D47A1 100%);
    margin-right: 10px;
}

.character-btn.info:hover {
    background: linear-gradient(135deg, #42A5F5 0%, #2196F3 50%, #1976D2 100%);
}

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

.character-btn.buy {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 50%, #6A1B9A 100%);
}

.character-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.character-btn:disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Character Button Actions */

.character-nav .menu-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #FF4500 50%, #DC143C 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    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.4);
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    min-width: 220px;
}

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

.character-nav .menu-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.character-nav .menu-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;
}

.character-nav .menu-btn:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .character-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .character-header h1 {
        font-size: 2.5rem;
    }
    
    .character-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .character-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .character-header h1 {
        font-size: 2rem;
    }
    
    .character-avatar {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .character-card {
        padding: 20px;
    }
}

/* Character Info Popup */
.character-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.character-info-popup {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.3s ease-out;
}

.character-info-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #ddd;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

/* Character avatar in info popup - override size and positioning */
.character-info-header .character-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    flex-shrink: 0;
    position: relative;
}

/* Scale down elements for smaller avatar in popup */
.character-info-header .character-avatar .bubble {
    width: 60px !important;
    height: 60px !important;
    top: 10px !important;
    left: 10px !important;
}

.character-info-header .character-avatar .eye {
    transform: scale(0.8);
}

.character-info-header .character-avatar .beak {
    transform: scale(0.8);
}

.character-info-header .character-avatar .blues-eyes,
.character-info-header .character-avatar .blues-beaks {
    transform: scale(0.8);
}

.character-info-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    flex-shrink: 0;
}

.character-info-title {
    flex: 1;
}

.character-info-title h2 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    font-family: 'Fredoka One', cursive;
}

.character-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.close-info-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-info-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.character-info-content {
    padding: 20px;
}

.character-stats-detailed h3,
.character-ability-info h3,
.character-gameplay-tips h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.character-ability-info {
    margin-top: 25px;
}

.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    min-width: 60px;
    font-weight: bold;
    color: #555;
}

.stat-progress {
    flex: 1;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #FF4500);
    transition: width 0.3s ease;
}

.stat-number {
    min-width: 40px;
    font-weight: bold;
    color: #333;
}

.ability-details {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.ability-description {
    margin-bottom: 15px;
}

.ability-description p {
    margin: 0;
    color: #444;
    font-size: 1rem;
    line-height: 1.4;
}

.ability-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.ability-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ability-label {
    font-weight: bold;
    color: #555;
}

.ability-value {
    color: #333;
    font-weight: bold;
}

.ability-effects h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.ability-effects ul,
.character-gameplay-tips ul {
    margin: 0;
    padding-left: 20px;
}

.ability-effects li,
.character-gameplay-tips li {
    margin-bottom: 5px;
    color: #444;
    line-height: 1.3;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Additional Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@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);
    }
}

.character-avatar.green {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.character-avatar.black {
    background: linear-gradient(135deg, #333333, #000000);
}

.character-card:hover .character-avatar {
    transform: scale(1.1);
}

/* Character Info */
.character-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2E7D32;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

.character-info p {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.character-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.stat-label {
    display: block;
    opacity: 0.8;
    font-size: 0.8rem;
}

.stat-value {
    color: #4CAF50;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Character Actions */
.character-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.character-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Fredoka One', cursive;
}

.character-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.character-btn.buy {
    background: linear-gradient(135deg, #FF6B35, #FF4500);
}

.character-btn.select {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.character-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Price Display */
.price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2E7D32;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Navigation */
.character-nav {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .character-header h1 {
        font-size: 2rem;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .character-card {
        padding: 20px;
    }
    
    .character-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}
