/* Rừng cây */
.jungle-container {
    height: 200px;
    background: linear-gradient(180deg, #4caf50 0%, #2e7d32 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jungle-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Có thể chèn hình nền bụi cây rậm rạp vào đây */
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 1;
}

/* Lồng sắt chứa thú */
.cage-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Con vật khi chưa giải cứu (bóng đen) */
.animal-shadow {
    font-size: 5rem;
    filter: brightness(1) drop-shadow(0 0 5px rgba(0,0,0,0.8));
    transition: filter 0.5s, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Con vật khi được giải cứu */
.animal-rescued {
    filter: brightness(1) drop-shadow(0 4px 4px rgba(0,0,0,0.4)) !important;
    animation: jump-away 1.5s forwards;
}

@keyframes jump-away {
    0% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(30px, -40px) scale(1.1); }
    60% { transform: translate(80px, -10px) scale(1.1); }
    100% { transform: translate(250px, -30px) scale(1); opacity: 0; }
}

/* Song sắt và Ổ khóa */
.cage-bars {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 6px solid #555;
    border-radius: 10px;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 20px, #555 20px, #555 26px);
    z-index: 4;
    transition: transform 0.5s, opacity 0.5s;
}

.cage-lock {
    position: absolute;
    bottom: -15px;
    font-size: 2.5rem;
    z-index: 5;
    transition: opacity 0.3s;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

/* Hiệu ứng Mở Lồng */
.cage-opened .cage-bars {
    transform: translateY(-150px);
    opacity: 0;
}
.cage-opened .cage-lock {
    opacity: 0;
}

/* Rung lắc khi trả lời sai */
.shake-error { animation: shake-cage 0.4s; }
@keyframes shake-cage {
    0% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-8px); }
    100% { transform: translateX(0); }
}

.min-h-75 { min-height: 85px; }
.hl-num { color: #d81b60; font-weight: 900; }