:root {
    --primary-color: #8B5CF6;
    --secondary-color: #EC4899;
    --accent-color: #F59E0B;
    --accent-dark: #D97706;
    --dark-bg: #1a1a2e;
    --light-text: #f8f9fa;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--light-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Pages System */
.page {
    display: none;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.page.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container */
.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== PAGE 1: DISCLAIMER ========== */
.disclaimer-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.disclaimer-box h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.disclaimer-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.disclaimer-text p {
    margin-bottom: 20px;
}

.disclaimer-text strong {
    color: var(--accent-color);
    font-weight: 600;
}

.accept-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.accept-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.accept-btn:active {
    transform: translateY(-1px);
}

/* ========== PAGE 2: VIDEO ========== */
.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#quest-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.video-overlay.hidden {
    opacity: 0;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========== QUEST PAGE ========== */
.quest-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quest-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.quest-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 40px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite;
}

.quest-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.quest-description p {
    margin-bottom: 20px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.8));
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .disclaimer-box {
        padding: 40px 30px;
    }

    .disclaimer-box h1 {
        font-size: 2rem;
    }

    .disclaimer-text {
        font-size: 1rem;
    }

    .quest-title {
        font-size: 2.5rem;
    }

    .quest-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .disclaimer-box {
        padding: 30px 20px;
    }

    .disclaimer-box h1 {
        font-size: 1.8rem;
    }

    .accept-btn {
        font-size: 1.1rem;
        padding: 15px 30px;
    }
}
