/* 
 * Math Pet Adventures - Common Styles
 * Shared Variables, Resets, and Backgrounds
 */

:root {
    --primary-hue: 250;
    --primary-color: hsl(var(--primary-hue), 85%, 60%);
    --primary-dark: hsl(var(--primary-hue), 85%, 40%);
    --accent-color: hsl(35, 95%, 60%);
    --warning-color: hsl(35, 95%, 60%);
    --success-color: hsl(150, 80%, 45%);
    --error-color: hsl(340, 85%, 55%);
    --secondary: #a5d8ff;

    --bg-dark: hsl(240, 20%, 10%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-light: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);

    --font-main: 'Outfit', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --primary-light: rgba(100, 100, 255, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100vh;
    overflow: hidden;
    overflow-x: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Background Effects */
.app-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(42, 42, 64, 0.85), rgba(26, 26, 32, 0.85));
    overflow: hidden;
    z-index: 10;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-container::-webkit-scrollbar {
    display: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -50px;
    left: -50px;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    bottom: -50px;
    right: -50px;
}

/* Math Magic Background Animation (Big Screen) */
.math-magic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    /* behind app container (z-index 10) */
    overflow: hidden;
    opacity: 0.5;
    /* Increased from 0.2 for better visibility */
}

#math-magic-bg {
    display: none;
    /* Hidden by default (Mobile) */
}

@media (min-width: 1024px) {
    #math-magic-bg {
        display: block;
        /* Visible on Desktop */
    }
}

/* Animated Math Symbols */
.math-magic-symbol {
    position: absolute;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Chrome / Safari */
    background-clip: text;
    /* Firefox */
    color: transparent;
    /* Firefox */
    font-weight: 800;
    font-size: 2rem;
    animation: mathFloat linear infinite;
    user-select: none;
    filter: blur(0.5px);
    /* Slight blur for FF */
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
    /* Cross-browser shadow */
    opacity: 0.8;
    will-change: transform, opacity;
    /* Performance hint */
}

/* Float Animation */
@keyframes mathFloat {
    0% {
        transform: translateY(-10vh) rotate(0deg);
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
    }
}