/* --- BỐ CỤC TRẠM CỨU HỘ --- */
.rescue-arena {
    height: 220px;
    background: linear-gradient(180deg, #c8e6c9 0%, #4caf50 50%, #2e7d32 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    position: relative; 
    overflow: hidden;
}

/* Nền rừng cây */
.jungle-bg {
    position: absolute;
    bottom: 0; left: 0;
    width: 200%; height: 60%;
    background-image: 
        radial-gradient(circle at 40px 10px, rgba(255,255,255,0.1) 30px, transparent 31px),
        radial-gradient(circle at 100px 30px, rgba(255,255,255,0.1) 20px, transparent 21px);
    background-repeat: repeat;
    animation: pan-jungle 15s linear infinite;
    z-index: 1;
}
@keyframes pan-jungle {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Chuồng động vật */
.animal-cage {
    position: relative;
    width: 70px;
    height: 80px;
    background: #795548;
    border: 4px solid #3e2723;
    border-radius: 8px 8px 0 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.4);
    overflow: hidden;
}

/* Các thanh chắn của chuồng */
.cage-bars {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 15px,
        #212121 15px,
        #212121 20px
    );
    z-index: 4;
}

.animal-icon {
    font-size: 3rem;
    z-index: 3;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
    transition: transform 0.3s;
}

/* Hiệu ứng khi trả lời đúng (Động vật vui vẻ nhảy lên) */
.happy-animal .animal-icon {
    animation: jump-animal 0.6s ease-out infinite alternate;
}
@keyframes jump-animal {
    0% { transform: translateY(5px); }
    100% { transform: translateY(-10px); }
}

/* Nhân vật Cứu hộ */
.rescuer-char {
    position: absolute;
    bottom: 20px;
    left: 5%;
    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); }
    50% { transform: translateY(-40px) scale(1.1); }
    100% { transform: translateY(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; }