/* --- BỐ CỤC VĂN PHÒNG THÁM TỬ --- */
.detective-arena {
    height: 220px;
    background: linear-gradient(180deg, #607d8b 0%, #37474f 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
    position: relative; 
    overflow: hidden;
}

/* Nền văn phòng với họa tiết giấy dán tường cổ điển */
.detective-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 20px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 20px);
    z-index: 1;
}

/* Bảng hồ sơ điều tra (Clue Board) */
.clue-board {
    position: absolute;
    top: 50%; left: 55%;
    transform: translate(-50%, -50%);
    width: 180px; height: 110px;
    background: #d7ccc8; /* Màu bảng bần */
    border: 6px solid #5d4037;
    border-radius: 4px;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 15px rgba(0,0,0,0.5);
}

/* Sợi dây đỏ nối các manh mối */
.clue-board::before {
    content: '';
    position: absolute;
    top: 50%; left: 10%;
    width: 80%; height: 2px;
    background-color: #d32f2f; /* Dây đỏ đặc trưng của thám tử */
    transform: rotate(5deg);
    z-index: 0;
}

.clue-item {
    font-size: 2.5rem;
    z-index: 2;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transform: rotate(-5deg);
}
.clue-item:nth-child(2) {
    transform: rotate(10deg);
}

.magnifier {
    position: absolute;
    bottom: -15px; right: -15px;
    font-size: 3rem;
    z-index: 3;
    animation: search-hover 3s ease-in-out infinite alternate;
}

@keyframes search-hover {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -10px) rotate(-15deg); }
}

/* Hiệu ứng khi trả lời đúng */
.glow-success {
    animation: flash-board 0.8s ease-out forwards;
}
@keyframes flash-board {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.4) drop-shadow(0 0 20px #ffeb3b); }
}

/* Nhân vật Thám tử */
.detective-char {
    position: absolute;
    bottom: 20px;
    left: 10%;
    font-size: 4rem;
    z-index: 5;
    filter: drop-shadow(3px 5px 4px rgba(0,0,0,0.6));
}

/* 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(-30px) 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; }