/* Đường viền đứt nét cho phần Tên/Ngày */
.border-dashed {
    border-style: dashed !important;
}

/* Tạo bóng đen (silhouette) từ Emoji */
.silhouette {
    filter: brightness(0) drop-shadow(2px 4px 4px rgba(0,0,0,0.2));
    user-select: none;
    font-size: 5.5rem;
}

/* Các nút lựa chọn */
.option-btn {
    font-size: 4.5rem;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 20px;
    line-height: 1;
}

.option-btn:hover {
    transform: scale(1.15);
    background-color: #f0f8ff;
}

.option-btn:active {
    transform: scale(0.95);
}

/* Hiệu ứng chọn sai (Rung lắc) */
.shake {
    animation: shake 0.4s ease-in-out;
    background-color: #f8d7da !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px) rotate(-5deg); }
    75% { transform: translateX(10px) rotate(5deg); }
}

/* Hiệu ứng chọn đúng */
.correct-pick {
    transform: scale(1.25) !important;
    background-color: #d1e7dd !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* Làm mờ các hình khác khi đã chọn đúng */
.faded {
    opacity: 0.25;
    filter: grayscale(100%);
    pointer-events: none;
    transform: scale(0.9) !important;
}

/* Viền đổi sang xanh lá khi hoàn thành 1 hàng */
.row-solved {
    background-color: #f0fdf4 !important;
    border-color: #198754 !important; /* Bootstrap success color */
}

/* Hiệu ứng nảy cho sao chiến thắng */
.star-win {
    animation: bounce 0.8s infinite alternate;
    text-shadow: 1px 2px 3px rgba(0,0,0,0.2);
}
.win-text, .empty-stars-text {
    font-size: 2rem;
}
@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-15px); }
}
/* Kích thước mặc định cho máy tính */


/* --- Bổ sung Responsive cho Mobile (iPhone) --- */
@media (max-width: 767px) {
    .silhouette {
        font-size: 3.5rem !important; /* Thu nhỏ bóng đen */
    }
    .option-btn {
        font-size: 3rem !important; /* Thu nhỏ các icon lựa chọn */
        padding: 5px 10px;
    }
    .game-container {
        padding: 15px !important;
        margin-top: 1rem !important;
    }
    .game-title {
        font-size: 2rem !important;
    }
    .win-text, .empty-stars-text {
        font-size: 1.5rem !important;
    }
    #restart-btn {
        width: 100%; /* Kéo dài nút Chơi lại ra toàn chiều ngang để dễ bấm */
        font-size: 1.2rem;
    }
    /* Đảm bảo các lựa chọn không bị tràn viền */
    .row-container > div:last-child > div {
        flex-wrap: wrap;
        padding: 10px 0;
    }
}