/* Jelly Bounce Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: #f0f8ff; /* Alice Blue */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite alternate;
}

.blob-1 { width: 400px; height: 400px; background: #ff99cc; top: -100px; left: -100px; }
.blob-2 { width: 500px; height: 500px; background: #99ccff; bottom: -200px; right: -100px; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #ffff99; top: 40%; left: 30%; animation-delay: -2s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

#game-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 600px;
    pointer-events: none; /* Let clicks pass through to canvas if needed */
    z-index: 10;
}

canvas {
    background-color: transparent;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 4px solid #fff;
    z-index: 5;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 100%);
}

.score-board {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #333;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.score-board h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #ff3366;
}

.score-board p {
    margin: 0;
    font-weight: 600;
    color: #666;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.85);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto; /* Re-enable clicks for buttons */
    backdrop-filter: blur(5px);
    transition: opacity 0.3s;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay h1 {
    font-size: 3rem;
    color: #ff3366;
    margin: 0 0 10px 0;
    text-align: center;
    text-shadow: 0 4px 10px rgba(255,51,102,0.3);
}

.overlay p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    padding: 0 20px;
}

.btn {
    background: #ff3366;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255,51,102,0.3);
    transition: 0.2s;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 15px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255,51,102,0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: #ff3366;
    border: 2px solid #ff3366;
    box-shadow: none;
}

.btn-outline:hover {
    background: #ff3366;
    color: #fff;
}
