body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #006994;
    font-family: sans-serif;
    touch-action: none;
    /* Prevent default touch actions like scrolling */
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center bottom;
    overflow: hidden;
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 30px;
    z-index: 200;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
    color: #fff;
    transition: 0.2s;
}

.back-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.fish {
    position: absolute;
    transform-origin: center;
    will-change: transform, left, top;
    /* content handled by inner div */
}

@keyframes swim {

    0%,
    100% {
        transform: scaleY(1) rotate(0deg);
    }

    25% {
        transform: scaleY(1.05) rotate(5deg);
    }

    /* Slight squish and tilt */
    75% {
        transform: scaleY(0.95) rotate(-5deg);
    }
}

@keyframes whale-swim {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(2deg);
        /* Very subtle tilt for giant whale */
    }
}

/* Fish types will handle dimensions and background image */

.food-source {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-image: url('food.png?v=2');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 100;
    cursor: grab;
    filter: drop-shadow(0 0 10px gold);
    animation: float 3s ease-in-out infinite;
}

.food-source:active {
    cursor: grabbing;
    transform: translateY(-50%) scale(0.9);
}

.food {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('food.png?v=2');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 50;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-50%) translateY(-10px);
    }
}

@keyframes eating {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.3);
        filter: brightness(1.5) drop-shadow(0 0 15px white);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.eating-anim {
    animation: eating 0.5s ease-out;
}