.math-game-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Arial Rounded MT Bold', 'Helvetica', sans-serif;
}

.math-game-wrapper .game-container {
    background: white;
    width: 100%;
    max-width: 440px;
    padding: 30px 20px;
    border: 8px solid #7d5fff; 
    border-radius: 45px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.math-game-wrapper .dashboard {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.math-game-wrapper .stat-box {
    font-size: 1.1rem;
    font-weight: bold;
    background: #f0f2f5;
    padding: 8px 16px;
    border-radius: 12px;
    color: #333;
}

.math-game-wrapper .urgent-text { color: #eb4d4b; }

.math-game-wrapper .visual-box {
    background-color: #fdfae6; 
    border: 4px dashed #bdc3c7; 
    border-radius: 25px;
    padding: 20px 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 140px;
}

.math-game-wrapper .icon-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    width: 40%;
}

.math-game-wrapper .icon-wrapper span {
    font-size: 40px;
    line-height: 1;
}

.math-game-wrapper .symbol {
    font-size: 40px;
    font-weight: bold;
    color: #f39c12;
}

.math-game-wrapper input[type="number"] {
    border: 5px solid #7d5fff;
    border-radius: 25px;
    width: 120px;
    height: 80px;
    font-size: 40px;
    font-weight: bold;
    color: #2d3436;
    text-align: center;
    outline: none;
    margin-bottom: 20px;
    background-color: #fff;
}

.math-game-wrapper .primary-btn {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 0 #16a085;
}

.math-game-wrapper .screen-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: white;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 37px;
}

.math-game-wrapper .action-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 70%;
}

.math-game-wrapper .btn-restart, .math-game-wrapper .btn-exit {
    border: none; padding: 14px;
    font-size: 1.1rem; border-radius: 50px; cursor: pointer;
}

.math-game-wrapper .btn-restart { background-color: #1abc9c; color: white; }
.math-game-wrapper .btn-exit { background-color: #bdc3c7; color: #2d3436; }