/* --- BỐ CỤC PHÒNG THÍ NGHIỆM --- */
.lab-arena {
    height: 220px;
    background: linear-gradient(180deg, #3f51b5 0%, #1a237e 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
    position: relative; 
    overflow: hidden;
}

/* Nền lưới công nghệ */
.lab-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

/* Cỗ máy nhân bản */
.cloning-machine {
    position: absolute;
    top: 50%; left: 55%;
    transform: translate(-50%, -50%);
    width: 120px; height: 140px;
    background: #9e9e9e;
    border: 5px solid #424242;
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.5);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.machine-screen {
    width: 80%; height: 50px;
    background: #000;
    border: 3px solid #81c784;
    border-radius: 6px;
    color: #69f0ae;
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px #4caf50;
    margin-bottom: 10px;
}

.machine-btn {
    width: 60px; height: 30px;
    background: #ff5252;
    border: 2px solid #b71c1c;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #b71c1c;
}

/* Hiệu ứng máy chạy khi trả lời đúng */
.machine-working {
    animation: flash-screen 0.5s ease-out forwards;
}
@keyframes flash-screen {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(2) drop-shadow(0 0 20px #69f0ae); }
}

/* Nhân vật Bác học */
.scientist-char {
    position: absolute;
    bottom: 20px;
    left: 15%;
    font-size: 4.5rem;
    z-index: 5;
    filter: drop-shadow(3px 5px 4px rgba(0,0,0,0.5));
}

/* 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; }
.text-indigo { color: #3f51b5 !important; }