/* Base Styles & Resets */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
    background-image:
        radial-gradient(ellipse at top, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(253, 121, 168, 0.1) 0%, transparent 50%);
}

/* Animations */
@keyframes pop {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(108, 92, 231, 0.8);
    }
}

@keyframes cardReveal {
    0% {
        transform: rotateY(90deg) scale(0.5);
        opacity: 0;
    }

    50% {
        transform: rotateY(-10deg) scale(1.1);
    }

    100% {
        transform: rotateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rainbowGlow {
    0% {
        box-shadow: 0 0 80px rgba(255, 0, 0, 0.6);
    }

    20% {
        box-shadow: 0 0 80px rgba(255, 165, 0, 0.6);
    }

    40% {
        box-shadow: 0 0 80px rgba(255, 255, 0, 0.6);
    }

    60% {
        box-shadow: 0 0 80px rgba(0, 128, 0, 0.6);
    }

    80% {
        box-shadow: 0 0 80px rgba(0, 0, 255, 0.6);
    }

    100% {
        box-shadow: 0 0 80px rgba(138, 43, 226, 0.6);
    }
}

@keyframes pulseGold {
    0% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 80px rgba(255, 215, 0, 0.8);
    }

    100% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--card-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Scrollbar */
.screen::-webkit-scrollbar {
    width: 6px;
}

.screen::-webkit-scrollbar-track {
    background: transparent;
}

.screen::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 3px;
}

/* Section Titles */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Screen Containers */
.screen {
    display: none;
    height: calc(100vh - 80px);
    padding: 20px;
    overflow-y: auto;
    animation: pop 0.3s ease-out;
}

.screen.active {
    display: block;
}

@media (min-width: 1024px) {
    .screen {
        max-width: 800px;
        margin: 0 auto;
    }
}