:root {
    --balloon-color: #ff4757;
    --pump-color: #2f3542;
    --pump-accent: #747d8c;
    --bg-color: #a29bfe;
}

body {
    background-color: var(--bg-color);
    margin: 0;
    overflow: hidden;
    font-family: 'Fredoka One', cursive, sans-serif;
    touch-action: none;
    /* Prevent default touch actions like scroll */
}

#game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    background: url('../../upload/img/balloon_game_bg.png') no-repeat center bottom / cover;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    text-decoration: none;
    color: #333;
}

.arrow-icon {
    width: 24px;
    height: 24px;
}

#scene {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 50px;
}

/* Balloon Styles */
#balloon-anchor {
    position: relative;
    width: 10px;
    height: 10px;
    margin-bottom: 20px;
    /* Space between pump and balloon anchor */
    z-index: 10;
}

#balloon {
    width: 100px;
    height: 120px;
    background-color: var(--balloon-color);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    position: absolute;
    bottom: 0;
    left: -50px;
    /* Center horizontally relative to anchor */
    transform-origin: bottom center;
    transform: scale(0.5);
    /* Start small */
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s linear, bottom 0.5s ease-in;
    will-change: transform;
}

#balloon.flying {
    transition: transform 3s ease-in, bottom 3s ease-in, left 3s ease-in-out;
}

.reflection {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 20px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: rotate(45deg);
}

.knot {
    position: absolute;
    bottom: -8px;
    left: 42px;
    width: 16px;
    height: 12px;
    background-color: inherit;
    border-radius: 40%;
}

.string {
    position: absolute;
    bottom: -60px;
    left: 50px;
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    /* Hidden initially, shown when flying */
}

/* Pump Styles */
#pump-container {
    position: relative;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5vh;
}

#pump-handle {
    width: 30px;
    height: 80px;
    position: relative;
    top: 20px;
    z-index: 5;
    transition: transform 0.1s;
}

.handle-bar {
    width: 80px;
    height: 12px;
    background-color: var(--pump-color);
    border-radius: 6px;
    position: absolute;
    top: 0;
    left: -25px;
}

.handle-stem {
    width: 10px;
    height: 100%;
    background-color: #bdc3c7;
    margin: 0 auto;
}

#pump-body {
    width: 40px;
    height: 120px;
    background-color: var(--pump-color);
    border-radius: 4px;
    position: relative;
    z-index: 6;
    background: linear-gradient(90deg, #2f3542 0%, #57606f 50%, #2f3542 100%);
}

#pump-base {
    width: 80px;
    height: 15px;
    background-color: var(--pump-color);
    border-radius: 10px;
    margin-top: -5px;
    z-index: 6;
}

.pump-hose {
    position: absolute;
    bottom: 20px;
    right: -25px;
    width: 30px;
    height: 40px;
    border-left: 6px solid #57606f;
    border-bottom: 6px solid #57606f;
    border-radius: 0 0 0 10px;
    transform: rotate(-10deg);
    display: none;
    /* Simplified pump for now, maybe remove */
}

/* Interaction Feedback */
.pumping #pump-handle {
    transform: translateY(60px);
}

#instruction-text {
    position: absolute;
    top: 20%;
    font-size: 2rem;
    color: #57606f;
    opacity: 0.8;
    pointer-events: none;
    text-shadow: 2px 2px 0px white;
    user-select: none;
}

/* Confetti */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: gold;
    border-radius: 50%;
    pointer-events: none;
}