@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #ece5d8;
    /* Light Parchment/Sand */
    --secondary: #d3bc8e;
    /* Genshin Gold/Amber */
    --accent: #4ebfff;
    /* Anemo Blue/Cyan */
    --dark-bg: #1a1c23;
    /* Deep Slate/Navy */
    --glass-bg: rgba(26, 28, 35, 0.7);
    --glass-border: rgba(211, 188, 142, 0.3);
    --glass-highlight: rgba(211, 188, 142, 0.6);
    --neon-glow: 0 0 15px rgba(211, 188, 142, 0.4);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: white;
    overflow-x: hidden;
}

/* Background */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('https://i.postimg.cc/mrKXKL5L/thumb-1920-1124066.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow: hidden;
}

.bg-animated::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* Removed blobs for cleaner Genshin look */
.bg-blob {
    display: none;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: var(--neon-glow);
    background: rgba(255, 255, 255, 0.08);
}

/* Typography & Effects */
.text-glow {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.title-gradient {
    background: linear-gradient(to right, #ece5d8, #d3bc8e, #ece5d8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: 0.15em;
}

/* Custom Animations */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(236, 72, 153, 0.6);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Progress Bar */
.progress-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 999px;
    padding: 4px;
    border: 1px solid var(--glass-border);
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    animation: gradient-move 2s ease infinite;
    border-radius: 999px;
    height: 100%;
    transition: width 0.5s ease-out;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Input Styles */
.glass-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: white;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    outline: none;
}

/* Button Styles */
.btn-neon {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-neon:hover::before {
    opacity: 1;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

/* Marquee */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    animation: marquee 30s linear infinite;
}

/* Popup Styles */
body.popup-active {
    overflow: hidden;
}

body.popup-active>*:not(#ios-popup) {
    filter: blur(8px) brightness(0.5);
    transition: filter 0.3s ease;
}

#ios-popup {
    z-index: 9999;
}

.popup-glass {
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}