/* global.css */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input[type="button"],
input[type="submit"],
a {
    touch-action: manipulation;
}

:root {
    
    --primary: #FF6B35;        
    --primary-light: #FF8F65;
    --primary-dark: #E55A2B;
    
    --secondary: #4ECDC4;      
    --secondary-light: #7EDDD6;
    --secondary-dark: #3DBDB5;
    
    --accent-yellow: #FFE66D;  
    --accent-pink: #FF6B9D;    
    --accent-purple: #A855F7;  
    --accent-blue: #60A5FA;    
    --accent-green: #34D399;   
    
    
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    
    --unknown: #FF6B6B;
    --known: #FFD93D;
    --mastered: #6BCB77;
    
    
    --bg-primary: #FFF9F0;     
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --border-color: #E2E8F0;
    
    
    --shadow-sm: 0 2px 8px rgba(255, 107, 53, 0.08);
    --shadow-md: 0 4px 16px rgba(255, 107, 53, 0.12);
    --shadow-lg: 0 8px 32px rgba(255, 107, 53, 0.16);
    --shadow-xl: 0 16px 48px rgba(255, 107, 53, 0.2);
    
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    
    --font-display: 'Nunito', 'Noto Sans SC', sans-serif;
    --font-body: 'Noto Sans SC', 'Nunito', sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, var(--accent-yellow) 2px, transparent 2px),
        radial-gradient(circle at 90% 80%, var(--accent-pink) 3px, transparent 3px),
        radial-gradient(circle at 30% 70%, var(--secondary) 2px, transparent 2px),
        radial-gradient(circle at 70% 30%, var(--primary-light) 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, var(--accent-purple) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 120px 120px, 80px 80px, 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

.include-error {
    margin: var(--space-lg);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    font-weight: 600;
    text-align: center;
}

