@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(to top, #87ceeb, #add8e6);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-top: 20px;
}

header h1 {
    font-size: 2em;
    color: #ffcb6b;
    text-shadow: 2px 2px #ff6b6b;
}

#score-panel {
    background: #000000bb;
    padding: 10px 20px;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    font-size: 1em;
    margin-top: 10px;
}

#game-area {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 500px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.balloon {
    position: absolute;
    width: 60px;
    height: 85px;
    background: var(--balloon-color);
    border-radius: 55% 55% 45% 45% / 65% 65% 35% 35%;
    box-shadow: inset -3px -5px 10px rgba(0, 0, 0, 0.25), 0 3px 8px rgba(0, 0, 0, 0.3);
    animation: floatUp 8s linear forwards;
    transition: transform 0.15s;
    z-index: 2;
}

.balloon::before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 8px;
    background: var(--balloon-color);

    border-radius: 50% 50% 0 0;
    z-index: 1;
}

.balloon::after {
    content: "";
    position: absolute;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 90px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='90'><path d='M2 0 Q1 25 3 50 Q2 75 2 90' stroke='%23666' stroke-width='1.2' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.8;
    z-index: 0;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}


.balloon:hover {
    transform: scale(1.1) translateY(-6px);
}

@keyframes floatUp {
    from {
        bottom: -100px;
    }

    to {
        bottom: 520px;
    }
}

footer {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #fff;
}