body {
    background: #5D4037;
    /* Muddy brown */
    overflow: hidden;
    margin: 0;
    touch-action: none;
    /* Prevent default touch actions like scrolling */
}

#game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Ensure full viewport height */
    overflow: hidden;
}

#ant-world {
    background: radial-gradient(circle at 50% 50%, #8D6E63 0%, #5D4037 100%);
    width: 100%;
    height: 100%;
    display: block;
    cursor: default;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through empty areas */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 20px;
    z-index: 100;
}

#food-panel {
    background: #FFF8E1;
    border: 4px solid #8D6E63;
    border-radius: 20px;
    padding: 10px 20px;
    pointer-events: auto;
    /* Re-enable pointer events for the panel */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-top: 25px;
    width: 90%;
    max-width: 400px;
}

.panel-title {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFCA28;
    color: #3E2723;
    font-family: 'Fredoka One', cursive;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.2em;
    white-space: nowrap;
    box-shadow: 0 4px 0 #F57F17;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.food-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

.food-item {
    font-size: 3em;
    cursor: grab;
    transition: transform 0.1s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    /* Crucial for custom drag handling */
}

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