body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 300px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.upgrades-panel {
    position: absolute;
    right: -250px;
    top: 0;
    width: 200px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.3s;
    z-index: 5;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px #ffd93d; }
    50% { box-shadow: 0 0 20px #ffd93d; }
    100% { box-shadow: 0 0 5px #ffd93d; }
}
.chicken {
    width: 200px;
    height: 200px;
    background: url('chicken.png') center/contain no-repeat;
    transition: transform 0.3s;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
}

.chicken.golden {
    filter: sepia(100%) hue-rotate(10deg) saturate(1000%);
    animation: float 3s ease-in-out infinite;
}

.squeeze-meter {
    width: 80%;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.meter-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffd93d, #ff6b6b);
    transition: width 0.3s;
}

.squeak-counter {
    color: white;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.glass-button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    font-family: 'Arial', sans-serif;
}

.game-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.upgrades-panel {
    position: static;
    width: 200px;
    height: 400px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    z-index: 5;
}
.upgrade-item {
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.upgrade-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.upgrade-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}


.particle {
    position: absolute;
    pointer-events: none;
    animation: particle 1s ease-out forwards;
}

@keyframes particle {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; }
}

@keyframes popIn {
    0% { 
        transform: translateX(-50%) scale(0.5); 
        opacity: 0;
    }
    100% { 
        transform: translateX(-50%) scale(1); 
        opacity: 1;
    }
}

@keyframes colorPulse {
    0% { background-color: rgba(255, 255, 255, 0.2); }
    100% { background-color: rgba(255, 215, 0, 0.3); }
}

@keyframes fadeOut {
    0% { 
        opacity: 1; 
        transform: translateX(-50%) scale(1);
    }
    100% { 
        opacity: 0; 
        transform: translateX(-50%) scale(0.5);
    }
}

.achievement-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 300px;
}

.achievement-popup.pop-in {
    transform: translateX(-50%) scale(1);
}

.achievement-popup.pop-out {
    transform: translateX(-50%) scale(0);
    opacity: 0;
}

.achievement-popup h3 {
    margin: 0 0 10px 0;
    color: #ffd700;
}

.achievement-popup h4 {
    margin: 0 0 10px 0;
    color: #ff6b6b;
}

.achievement-popup p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
}


@keyframes slideUp {
    to { transform: translateX(-50%) translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.upgrade-item:hover {
    /* existing styles */
    animation: rainbow 3s infinite;
}

.meter-fill {
    /* existing styles */
    animation: rainbow 5s infinite linear;
}

.squeak-counter {
    /* existing styles */
    animation: shake 0.5s ease-in-out;
}

.glass-button:active {
    animation: spin 0.5s ease-out;
}

/* New sparkle effect for achievements */
.sparkle {
    position: absolute;
    pointer-events: none;
    font-size: 20px;
    animation: sparkleFloat 1.5s ease-out forwards;
}

@keyframes sparkleFloat {
    0% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 1; 
    }
    100% { 
        transform: translate(var(--x), var(--y)) rotate(360deg); 
        opacity: 0; 
    }
}
