* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
}

body {
    background: linear-gradient(180deg, #87CEEB 0%, #E0F7FA 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: center;
}

.back-btn {
    font-size: 32px;
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: scale(1.1);
}

#game-area {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.balloon {
    position: absolute;
    width: 120px;
    height: 160px;
    cursor: pointer;
    transition: transform 0.1s;
    animation: float 4s ease-in-out infinite;
    user-select: none;
    -webkit-user-select: none;
}

.balloon:active {
    transform: scale(0.95);
}

.balloon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(3px 5px 5px rgba(0,0,0,0.2));
}

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

@keyframes pop {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.popped {
    animation: pop 0.3s ease-out forwards;
    pointer-events: none;
}

.score {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 48px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.confetti-particle {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    animation: confettiBurst 0.8s ease-out forwards;
}

@keyframes confettiBurst {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--vx), var(--vy)) rotate(720deg); opacity: 0; }
}

.fullscreen-btn {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}
.fullscreen-btn:active {
    transform: scale(0.9);
}