/* --- BỐ CỤC NÔNG TRẠI --- */
.farm-arena {
    height: 220px;
    background: linear-gradient(180deg, #81d4fa 0%, #4fc3f7 50%, #8bc34a 50%, #558b2f 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
    position: relative; 
    overflow: hidden;
}

/* Các luống đất lượn sóng */
.farm-bg {
    position: absolute;
    bottom: 0; left: 0;
    width: 200%; height: 50%;
    background-image: 
        radial-gradient(circle at 30px 10px, rgba(0,0,0,0.1) 15px, transparent 16px),
        radial-gradient(circle at 80px 20px, rgba(0,0,0,0.1) 10px, transparent 11px);
    background-repeat: repeat;
    animation: pan-bg 10s linear infinite;
    z-index: 1;
}

@keyframes pan-bg {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

/* Các giỏ nông sản */
.crop-item {
    position: relative;
    width: 50px;
    height: 60px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    animation: pop-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop-up {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.crop-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 2px rgba(0,0,0,0.3));
}

.crop-label {
    position: absolute;
    bottom: -15px;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Hiệu ứng thu hoạch bay lên */
.harvested {
    animation: fly-away 0.8s ease-in forwards !important;
}
@keyframes fly-away {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-150px) scale(0.5); opacity: 0; }
}

/* Nhân vật Bác nông dân */
.farmer-char {
    position: absolute;
    bottom: 50px;
    left: 10%;
    font-size: 4rem;
    z-index: 5;
    filter: drop-shadow(3px 5px 4px rgba(0,0,0,0.4));
}

/* Nhảy mừng */
.happy-jump {
    animation: build-jump 0.8s ease-out forwards !important;
}
@keyframes build-jump {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-40px) rotate(-10deg); }
    100% { transform: translateY(0) rotate(0); }
}

/* Rung lắc khi sai */
.shake-error { animation: shake-char 0.4s !important; }
@keyframes shake-char {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

.min-h-75 { min-height: 85px; }