:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-blue: #2d3436;
    --bg-color: #f7f9fc;
    --spikes-color: #636e72;
}

.game-container {
    padding-top: 100px;
    padding-bottom: 50px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    margin-bottom: 2rem;
}

.game-title {
    font-size: 2.5rem;
    color: var(--dark-blue);
    font-family: 'Playfair Display', serif;
    margin: 0;
}

.highlight {
    color: var(--primary-color);
}

.stat-badge {
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.score-badge i {
    color: #f1c40f;
}

.lives-badge i {
    color: #ff7675;
}

.btn-back {
    text-decoration: none;
    color: #636e72;
    font-weight: 600;
}

/* Game Area */
.game-area {
    flex: 1;
    margin: 0 40px 40px;
    background: linear-gradient(to bottom, #87CEEB, #E0F7FA);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
}

.spikes {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background:
        linear-gradient(45deg, transparent 33.333%, var(--spikes-color) 33.333%, var(--spikes-color) 66.667%, transparent 66.667%),
        linear-gradient(-45deg, transparent 33.333%, var(--spikes-color) 33.333%, var(--spikes-color) 66.667%, transparent 66.667%);
    background-size: 20px 40px;
    z-index: 10;
}

/* Balloon */
.balloon {
    position: absolute;
    width: 80px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 20%),
        linear-gradient(to bottom right, var(--balloon-color), #444);
    background-color: var(--balloon-color);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.1), 5px 10px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 5;
    animation: wobble 2s ease-in-out infinite alternate;
    cursor: default;
    user-select: none;
    text-transform: capitalize;
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 10px solid var(--balloon-color);
}

.balloon::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
}

.popped {
    transform: scale(1.4);
    opacity: 0;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    /* Faster pop */
}

@keyframes wobble {
    0% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(5deg);
    }
}

/* Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    background: #fff;
    padding: 40px;
    border-radius: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: popIn 0.3s;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(78, 205, 196, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.icon-circle.error {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
}

.btn-play {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 1rem;
    transition: 0.2s;
}

.btn-play:hover {
    transform: scale(1.05);
}

.mic-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 50;
}

.listening {
    color: var(--secondary-color);
    animation: pulse 1s infinite;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .game-container {
        padding-top: 80px;
    }

    .game-header {
        padding: 0 15px;
        margin-bottom: 0.5rem;
        flex-direction: column;
        gap: 10px;
    }

    .game-title {
        font-size: 1.4rem;
    }

    .game-area {
        margin: 0 10px 10px;
    }

    .balloon {
        width: 55px;
        height: 70px;
        font-size: 0.75rem;
    }

    .stat-badge {
        padding: 5px 15px;
        font-size: 1rem;
    }

    .mic-indicator {
        top: 10px;
        right: 10px;
        padding: 5px 15px;
        font-size: 0.9rem;
    }
}

@media (max-height: 600px) {
    .game-container {
        padding-top: 70px;
    }

    .game-header {
        flex-direction: row;
    }

    .game-title {
        display: none;
    }
}