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

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

@keyframes glow {
    0% { text-shadow: 0 0 20px #ff00ff, 0 0 30px #ff00ff, 0 0 40px #ff00ff; }
    100% { text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff; }
}

.quiz-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 0, 255, 0.2);
}

.question-counter {
    text-align: center;
    font-size: 1.2rem;
    color: #00ffff;
    margin-bottom: 1rem;
}

.question {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

.options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option {
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.1), rgba(0, 255, 255, 0.1));
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.option:hover {
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3));
    border-color: #00ffff;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

.option.selected {
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.5), rgba(0, 255, 255, 0.5));
    border-color: #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.btn {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    border-radius: 25px;
    padding: 1rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin: 0.5rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 25px rgba(255, 0, 255, 0.5);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.start-screen {
    text-align: center;
}

.start-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #cccccc;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.quiz-screen {
    display: none;
}

.result-screen {
    display: none;
    text-align: center;
}

.character-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 2rem auto;
    border: 3px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    object-fit: cover;
}

.character-name {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.character-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.share-btn {
    background: linear-gradient(45deg, #333, #555);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.loading {
    display: none;
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ff00ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

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

.attempts-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #00ffff;
}

@media (max-width: 768px) {
    .title { 
        font-size: 2rem; 
    }
    
    .container { 
        padding: 10px; 
    }
    
    .quiz-card { 
        padding: 1.5rem; 
    }
    
    .question { 
        font-size: 1.2rem; 
    }
    
    .character-image { 
        width: 150px; 
        height: 150px; 
    }
    
    .character-name { 
        font-size: 2rem; 
    }
    
    .share-buttons { 
        flex-direction: column; 
        align-items: center; 
    }
}

.hidden { 
    display: none !important; 
}
