:root {
    --primary-red: #ff1a1a;
    --dark-red: #8b0000;
    --glow-red: #ff4444;
    --background-dark: #0a0a0f;
    --background-gradient: linear-gradient(180deg, #0b060e 0%, #1a1923 50%, #0d0a12 100%);
    --text-primary: #ffffff;
    --text-secondary: #b8b8c8;
    --text-bright: #f0f0f5;
    --accent-blue: #4a90d9;
    --card-background: rgba(25, 20, 35, 0.95);
    --card-border: rgba(255, 26, 26, 0.4);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Special Elite', 'Courier New', monospace;
    background: var(--background-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Disclaimer Banner */
.disclaimer-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(139, 0, 0, 0.95);
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--primary-red);
}

.disclaimer-banner p {
    margin: 0;
    letter-spacing: 0.1em;
}

/* Cookie Consent */
.cookie-consent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: rgba(10, 10, 15, 0.98);
    padding: 1.5rem;
    border-top: 1px solid var(--primary-red);
}

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.6rem 1.5rem;
    font-family: 'Special Elite', monospace;
    font-size: 0.85rem;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    border: none;
}

.cookie-accept {
    background: var(--primary-red);
    color: var(--text-primary);
}

.cookie-accept:hover {
    background: var(--glow-red);
    box-shadow: 0 0 15px var(--primary-red);
}

.cookie-learn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
}

.cookie-learn:hover {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

/* Particle Animation */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-red);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title Styling */
.title-container {
    text-align: center;
    margin-bottom: 2rem;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--primary-red);
    text-shadow: 
        0 0 10px var(--primary-red),
        0 0 20px var(--primary-red),
        0 0 40px var(--dark-red),
        0 0 80px var(--dark-red),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.15em;
    line-height: 1.2;
    position: relative;
}

.title-break {
    display: block;
    height: 0.5rem;
}

/* Flickering Effect */
.flicker {
    animation: flicker 3s infinite alternate;
}

.flicker-delay {
    animation: flicker 3s infinite alternate;
    animation-delay: 1.5s;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow: 
            0 0 10px var(--primary-red),
            0 0 20px var(--primary-red),
            0 0 40px var(--dark-red),
            0 0 80px var(--dark-red);
    }
    20%, 24%, 55% {
        opacity: 0.7;
        text-shadow: 
            0 0 5px var(--primary-red),
            0 0 10px var(--dark-red);
    }
}

.subtitle {
    font-family: 'Special Elite', monospace;
    font-size: clamp(0.9rem, 3vw, 1.4rem);
    color: var(--text-secondary);
    letter-spacing: 0.5em;
    margin-top: 1rem;
    text-transform: uppercase;
}

/* Intro Text */
.intro-text {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.intro-text .highlight {
    color: var(--primary-red);
    font-size: 1.4rem;
    margin-top: 1rem;
    text-shadow: 0 0 10px var(--dark-red);
}

/* Quiz Description Box */
.quiz-description {
    background: linear-gradient(145deg, rgba(30, 25, 45, 0.8), rgba(15, 12, 25, 0.9));
    border: 1px solid rgba(255, 26, 26, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.quiz-description h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.quiz-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.quiz-description p:last-child {
    margin-bottom: 0;
}

/* Homepage Content */
.homepage-content {
    background: linear-gradient(145deg, rgba(30, 25, 45, 0.8), rgba(15, 12, 25, 0.9));
    border: 1px solid rgba(255, 26, 26, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.homepage-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    margin-top: 0;
}

.homepage-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--primary-red);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.homepage-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Button Wrapper */
.button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Neon Button */
.neon-button {
    position: relative;
    display: inline-block;
    padding: 1.2rem 3rem;
    font-family: 'Special Elite', monospace;
    font-size: 1.1rem;
    color: var(--text-primary);
    background: linear-gradient(145deg, rgba(139, 0, 0, 0.4), rgba(139, 0, 0, 0.15));
    border: 2px solid var(--primary-red);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 
        0 0 20px rgba(255, 26, 26, 0.4),
        0 0 40px rgba(255, 26, 26, 0.2),
        inset 0 0 20px rgba(255, 26, 26, 0.15);
}

.neon-button:hover {
    background: linear-gradient(145deg, rgba(255, 26, 26, 0.5), rgba(139, 0, 0, 0.3));
    box-shadow: 
        0 0 30px rgba(255, 26, 26, 0.6),
        0 0 60px rgba(255, 26, 26, 0.4),
        0 0 100px rgba(255, 26, 26, 0.2),
        inset 0 0 25px rgba(255, 26, 26, 0.25);
    transform: translateY(-3px) scale(1.02);
    border-color: #ff4444;
}

.neon-button:active {
    transform: translateY(0) scale(1);
}

.neon-button .button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.neon-button:hover .button-glow {
    left: 100%;
}

.neon-button.secondary {
    background: linear-gradient(145deg, rgba(80, 80, 100, 0.3), rgba(50, 50, 70, 0.2));
    border-color: var(--text-secondary);
    box-shadow: 
        0 0 15px rgba(184, 184, 200, 0.2),
        inset 0 0 15px rgba(184, 184, 200, 0.1);
}

.neon-button.secondary:hover {
    border-color: var(--primary-red);
    background: rgba(255, 26, 26, 0.15);
    box-shadow: 
        0 0 25px rgba(255, 26, 26, 0.4),
        inset 0 0 20px rgba(255, 26, 26, 0.1);
}

/* Decorative Line */
.decorative-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 2rem auto;
    box-shadow: 0 0 15px var(--primary-red);
}

/* Secondary Links */
.secondary-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.text-link {
    font-family: 'Special Elite', monospace;
    font-size: 0.95rem;
    color: var(--primary-red);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.text-link:hover {
    border-color: var(--primary-red);
    background: rgba(255, 26, 26, 0.1);
    text-shadow: 0 0 10px var(--primary-red);
}

.text-link-subtle {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.text-link-subtle:hover {
    color: var(--primary-red);
}

.link-divider {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
    position: relative;
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--glow-red));
    border-radius: 2px;
    transition: width 0.4s ease;
    box-shadow: 0 0 15px var(--primary-red);
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* Question Container */
.question-container {
    background: linear-gradient(145deg, rgba(30, 25, 45, 0.95), rgba(15, 12, 25, 0.98));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 26, 26, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.question-number {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--primary-red);
    opacity: 0.4;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 26, 26, 0.5);
}

.question-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Answer Options */
.answers-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-option {
    position: relative;
    padding: 1.3rem 1.5rem 1.3rem 3.5rem;
    background: linear-gradient(145deg, rgba(45, 40, 65, 0.9), rgba(35, 30, 55, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.05rem;
    text-align: left;
    color: var(--text-bright);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.answer-option:hover {
    background: linear-gradient(145deg, rgba(139, 30, 50, 0.6), rgba(80, 40, 60, 0.7));
    border-color: var(--primary-red);
    transform: translateX(10px) scale(1.01);
    box-shadow: 
        0 8px 25px rgba(255, 26, 26, 0.25),
        0 0 30px rgba(255, 26, 26, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.answer-option:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 
        0 0 25px rgba(255, 26, 26, 0.5),
        inset 0 0 10px rgba(255, 26, 26, 0.1);
}

.answer-option::before {
    content: '';
    position: absolute;
    left: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    transition: var(--transition-smooth);
    background: transparent;
    box-shadow: 0 0 8px rgba(255, 26, 26, 0.3);
}

.answer-option:hover::before {
    background: var(--primary-red);
    box-shadow: 
        0 0 15px var(--primary-red),
        0 0 25px rgba(255, 26, 26, 0.5);
}

.answer-text {
    display: block;
    line-height: 1.5;
}

/* Results Screen */
.results-container {
    text-align: center;
}

.results-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.character-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--primary-red);
    text-shadow: 
        0 0 10px var(--primary-red),
        0 0 20px var(--dark-red),
        0 0 40px var(--dark-red);
    margin-bottom: 2rem;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    from {
        text-shadow: 
            0 0 10px var(--primary-red),
            0 0 20px var(--dark-red);
    }
    to {
        text-shadow: 
            0 0 20px var(--primary-red),
            0 0 40px var(--dark-red),
            0 0 60px var(--dark-red);
    }
}

/* Character Icon (replaces image) */
.character-icon-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
}

.character-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-red);
    background: linear-gradient(145deg, rgba(30, 25, 45, 0.95), rgba(15, 12, 25, 0.98));
    border-radius: 50%;
    border: 4px solid var(--primary-red);
    box-shadow: 
        0 0 25px var(--primary-red),
        0 0 50px rgba(255, 26, 26, 0.4),
        inset 0 0 30px rgba(255, 26, 26, 0.1);
    text-shadow: 0 0 20px var(--primary-red);
}

.character-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.character-traits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.trait-tag {
    padding: 0.6rem 1.4rem;
    background: linear-gradient(145deg, rgba(255, 26, 26, 0.25), rgba(139, 0, 0, 0.2));
    border: 1px solid var(--primary-red);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 0 10px rgba(255, 26, 26, 0.2);
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.results-explore {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 26, 26, 0.2);
}

.results-explore p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Site Footer */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 26, 26, 0.2);
    padding: 2rem;
    text-align: center;
    background: rgba(10, 10, 15, 0.8);
    margin-top: 2rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-disclaimer {
    font-size: 0.9rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-red);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 4rem 1.5rem 1.5rem;
    }
    
    .question-container {
        padding: 1.5rem;
        border-radius: 18px;
    }
    
    .neon-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .answer-option {
        padding: 1.1rem 1.2rem 1.1rem 3rem;
        font-size: 1rem;
        border-radius: 14px;
    }
    
    .answer-option::before {
        left: 1rem;
        width: 12px;
        height: 12px;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .results-actions .neon-button {
        width: 100%;
        max-width: 300px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        min-width: auto;
    }
    
    .footer-nav {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        letter-spacing: 0.08em;
    }
    
    .subtitle {
        letter-spacing: 0.2em;
    }
    
    .answer-option {
        padding: 1rem 1rem 1rem 2.8rem;
    }
    
    .question-text {
        font-size: 1.15rem;
    }
    
    .secondary-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .link-divider {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.neon-button:focus-visible,
.answer-option:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
}