/* Nutrition Sheriff Styles */

.game-container {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='16'/><line x1='8' y1='12' x2='16' y2='12'/></svg>") 20 20, crosshair;
}

.food-item {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    user-select: none;
    /* Soft shadow to lift it off background */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
}

.food-item:active {
    transform: scale(0.9);
}

/* Animation for spawning */
.pop-in {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animation for hit */
.hit-anim {
    animation: shrinkAndFade 0.2s forwards;
}

@keyframes shrinkAndFade {
    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Floating combat text */
.float-text {
    position: absolute;
    font-weight: bold;
    font-size: 1.25rem;
    pointer-events: none;
    animation: floatUp 0.8s forwards;
    z-index: 20;
}

.text-positive {
    color: var(--success);
}

.text-negative {
    color: var(--danger);
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

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