/* Vùng nông trại */
.farm-container {
    height: 150px;
    background-color: #dcedc8; /* Màu cỏ xanh nhạt */
}

.farm-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gợi ý: Chèn url ảnh AI nông trại vào đây */
    /* background-image: url('/images/nong-trai-bg.jpg'); */ 
    background-size: cover;
    background-position: center bottom;
    opacity: 0.6;
    z-index: 1;
    border-bottom: 30px solid #795548; /* Lớp đất nâu */
}

/* Vị trí trồng cà rốt */
.carrots-container {
    position: absolute;
    top: 0; left: 0; width: 100%;
    z-index: 2;
}
.carrot-spot {
    width: 30px;
    height: 30px;
    position: relative;
}
.carrot {
    font-size: 1.8rem;
    position: absolute;
    bottom: -15px; /* Cắm chìm xuống đất */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s;
}

/* Class thêm vào khi nhổ cà rốt thành công */
.harvested {
    transform: translateY(-40px) scale(1.2);
    opacity: 0; /* Bay lên rồi biến mất vào giỏ */
}

/* Bé Thỏ */
.character {
    position: absolute;
    bottom: 20px; 
    left: 2%; /* Vị trí xuất phát */
    font-size: 2.5rem;
    z-index: 3;
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), bottom 0.3s ease-in-out;
    filter: drop-shadow(0px 4px 2px rgba(0,0,0,0.3));
}
.empty-box {
    display: inline-block;
    width: 45px;
    height: 45px;
    border: 3px dashed #fd7e14; /* Viền cam nét đứt */
    border-radius: 10px;
    vertical-align: middle;
    background-color: #fff;
    margin: 0 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.vertical-math {
    display: inline-block;
    font-family: Consolas, "Courier New", monospace; /* Phông chữ giúp các số thẳng cột 100% */
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
    text-align: right;
    color: #0d6efd; /* Màu xanh primary */
    letter-spacing: 8px; /* Tạo khoảng cách cho các số dễ nhìn */
    margin-top: 10px;
}

.math-operand-2 {
    border-bottom: 5px solid #dc3545; /* Dấu gạch ngang màu đỏ */
    position: relative;
    padding-left: 60px; /* Dành chỗ cho dấu cộng/trừ */
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.math-sign {
    position: absolute;
    left: 0;
    color: #dc3545; /* Màu đỏ cho dấu phép tính */
}
/* Rung lắc khi trả lời sai */
.shake-error { animation: shake 0.4s; }
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
.min-h-75 { min-height: 75px; }