/* Additional performance and accessibility styles */

/* Remove will-change as it can cause more problems than benefits */

/* Consolidated contrast rules - main styles.css handles most of this now */
.equation, .sequence, .fraction, .mental-equation, .equation-text,
.blank, .choice, .mental-choice, .true-btn, .false-btn, .game-btn {
    font-weight: bold;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .game-btn {
        border: 3px solid #000000;
        color: #ffffff;
    }
    
    .choice {
        border: 2px solid #000000;
        color: #ffffff;
    }
    
    .blank {
        border: 3px solid #000000;
        color: #000000;
        background: #ffffff;
    }
    
    .equation, .sequence, .fraction {
        border: 3px solid #000000;
        color: #000000;
        background: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .screen {
        animation: none;
    }
    
    .game-btn:hover {
        transform: none;
    }
    
    .choice:hover {
        transform: none;
    }
}

/* Focus indicators for accessibility */
.game-btn:focus,
.choice:focus,
button:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .timer-display,
    .score-display {
        display: none;
    }
    
    .screen {
        box-shadow: none;
        border: 1px solid #ccc;
        color: black;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Optimize for touch devices */
@media (pointer: coarse) {
    .choice, .game-btn, .blank {
        min-height: 48px; /* Improved touch target size */
        min-width: 48px;
        padding: 12px 16px;
    }
    
    .true-btn, .false-btn {
        min-height: 48px;
        min-width: 80px;
        padding: 12px 20px;
    }
}

/* Removed dark mode - app uses consistent light theme */