/* M2: Đếm Số Cơ Bản - Style */
.theme-mam-non {
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 40%, #A8E6CF 40%, #56C596 100%);
    user-select: none;
    -webkit-user-select: none;
}

h1, h2, h3 {
    font-family: 'Baloo 2', cursive;
}



.header-element {
    position: relative;
    z-index: 10;
}

/* Clouds Animation */
.clouds {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 30%;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    position: absolute;
    font-size: 4rem;
    opacity: 0.8;
    animation: drift linear infinite;
}

.cloud-1 { top: 5%; left: -10%; animation-duration: 40s; }
.cloud-2 { top: 15%; left: -20%; animation-duration: 30s; animation-delay: 10s; font-size: 3rem; }
.cloud-3 { top: 25%; left: -30%; animation-duration: 50s; animation-delay: 5s; font-size: 5rem; }

@keyframes drift {
    from { transform: translateX(-100px); }
    to { transform: translateX(110vw); }
}

/* Meadow Area */
/* game-area flex handled by game-layout.css */

.meadow {
    flex: 1;
    position: relative;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.cow {
    font-size: 4rem;
    position: absolute;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.cow:hover { transform: scale(1.1) rotate(-5deg); }
.cow:active { transform: scale(0.9); }

.cow.fade-out {
    animation: zoomOut 0.5s forwards;
}

@keyframes zoomOut {
    to { transform: scale(0); opacity: 0; }
}

/* Numbers Panel */
.numbers-panel {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.number-btn {
    width: 60px; height: 60px;
    border-radius: 20px;
    border: none;
    background: #4A90E2;
    color: white;
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 0px #2A6EBB;
    transition: all 0.1s;
}

.number-btn:active {
    transform: translateY(6px);
    box-shadow: 0 0px 0px #2A6EBB;
}

.number-btn.wrong {
    animation: shake 0.4s;
    background: #FF4D4D;
    box-shadow: 0 6px 0px #CC0000;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.modal-overlay.show {
    opacity: 1; pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90%; width: 400px;
}

.modal-overlay.show .modal-content { transform: scale(1); }

.modal-icon { font-size: 5rem; margin-bottom: 20px; }

.btn-primary {
    background: #FF5A79; color: white;
    border: none; padding: 12px 30px;
    font-size: 1.2rem; font-family: 'Baloo 2', cursive;
    border-radius: 99px; cursor: pointer;
    box-shadow: 0 6px 0px #D83A5A; margin: 10px;
}
.btn-secondary {
    display: inline-block;
    background: #E2E8F0; color: #4A5568;
    border: none; padding: 12px 30px;
    font-size: 1.2rem; font-family: 'Baloo 2', cursive;
    border-radius: 99px; cursor: pointer;
    box-shadow: 0 6px 0px #CBD5E0; margin: 10px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .cow { font-size: 3rem; }
    .number-btn { width: 50px; height: 50px; font-size: 1.5rem; }
    .game-header h1 { font-size: 2rem; }
    .game-header p { font-size: 1rem; }
}
