:root {
    /* Global Palette */
    --bg-dark: #0a0a0c;
    --text-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Kat Summers (Cozy) */
    --kat-primary: #e6a4b4;
    /* Soft Rose */
    --kat-secondary: #fff5e0;
    --kat-accent: #607274;
    --kat-gradient: linear-gradient(135deg, #e6a4b4 0%, #f3d7ca 100%);

    /* Lola Dresden (Mafia) */
    --lola-primary: #8b0000;
    /* Dark Red */
    --lola-secondary: #000000;
    --lola-accent: #d4af37;
    /* Gold */
    --lola-gradient: linear-gradient(135deg, #420303 0%, #000000 100%);

    /* Kate Seger (Fantasy) */
    --kate-primary: #4a148c;
    /* Royal Purple */
    --kate-secondary: #121212;
    --kate-accent: #00e5ff;
    /* Cyan glow */
    --kate-gradient: linear-gradient(135deg, #1a0b2e 0%, #4a148c 100%);

    /* Dynamics */
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --transition-speed: 0.5s;
}

/* Audio Controls */
.audio-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    display: none;
    /* Hidden on intro */
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: white;
    transition: width 0.5s ease;
}

/* Intro Elevate */
.theme-default .header h1 {
    font-size: 4rem;
    letter-spacing: 12px;
    animation: pulseGlow 4s infinite alternate;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
}

#intro-screen p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 3.5rem;
    letter-spacing: 1.5px;
    opacity: 0.7;
    font-weight: 300;
}

#intro-screen {
    max-width: 800px;
}

/* Question Polish */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-btn {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Background Layers */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out, transform 1s ease-out;
    opacity: 0.3;
    /* Base opacity for non-selected authors */
}

.overlay-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* Particle Effects (Dynamic) */
.particle {
    position: absolute;
    pointer-events: none;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    animation: float var(--speed) linear infinite;
}

@keyframes float {
    from {
        transform: translateY(100vh) scale(1);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    to {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    perspective: 1000px;
    /* For 3D Tilt */
}

.app-container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.glow-text {
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
    }

    100% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    padding: 3.5rem;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: none;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    /* For JS tilt */
}

.glass-card.active {
    display: block;
}

.result-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;

    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 700;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.primary-btn {
    background: white;
    color: black;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.option-btn {
    display: block;
    width: 100%;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease backwards;
}

.option-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.option-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.option-btn:nth-child(3) {
    animation-delay: 0.3s;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(10px);
}

/* Theme Transitions */
body {
    transition: background 1.5s ease-in-out;
}

.theme-kat {
    background: var(--kat-gradient);
}

.theme-lola {
    background: var(--lola-gradient);
}

.theme-kate {
    background: var(--kate-gradient);
}

.theme-kat .primary-btn {
    background: var(--kat-primary);
    color: white;
}

.theme-lola .primary-btn {
    background: var(--lola-primary);
    color: white;
}

.theme-kate .primary-btn {
    background: var(--kate-primary);
    color: white;
}

/* Responsive */
@media (max-width: 480px) {
    .glass-card {
        padding: 2rem 1.5rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}