* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.header h1 {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.score-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    border-radius: 15px;
    color: white;
    font-weight: bold;
}

.next-fruit span {
    font-size: 1.2em;
    margin-left: 10px;
    letter-spacing: 2px;
}

.game-area {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

#gameCanvas {
    border: 3px solid #ff6b6b;
    border-radius: 15px;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
    cursor: crosshair;
}

.drop-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 107, 107, 0.5);
    pointer-events: none;
    transform: translateX(-50%);
    z-index: 10;
}

.controls {
    margin-bottom: 20px;
}

.controls button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.controls button:active {
    transform: translateY(0);
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
}

.game-over h2 {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 2em;
}

.game-over button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.fruit-guide {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 15px;
    margin-top: 20px;
}

.fruit-guide h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

.fruit-chain {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.fruit-chain span {
    font-size: 1.2em;
    padding: 5px;
}

@media (max-width: 600px) {
    .game-container {
        padding: 15px;
    }
    
    #gameCanvas {
        width: 100%;
        max-width: 350px;
        height: auto;
    }
    
    .score-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .fruit-chain {
        font-size: 0.9em;
    }
}