/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0000 0%, #1a0505 50%, #0a0000 100%);
    font-family: 'Courier New', monospace;
    color: #ff4444;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Animated flame background */
.flames-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(255, 50, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(200, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(150, 0, 0, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: flameFlicker 3s ease-in-out infinite;
}

@keyframes flameFlicker {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.15; }
}

/* Dark vignette */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Blood drip scanlines */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(100, 0, 0, 0.05),
        rgba(100, 0, 0, 0.05) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.skull-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.8));
    animation: skullPulse 2s ease-in-out infinite;
    transition: transform 0.1s;
}

@keyframes skullPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.8));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(255, 0, 0, 1));
    }
}

header h1 {
    font-size: 42px;
    color: #ff4444;
    text-shadow: 
        0 0 20px rgba(255, 0, 0, 0.8),
        2px 2px 0px rgba(200, 0, 0, 0.5),
        -2px -2px 0px rgba(100, 0, 0, 0.5);
    letter-spacing: 4px;
    margin-bottom: 10px;
    animation: bloodGlow 3s ease-in-out infinite;
}

@keyframes bloodGlow {
    0%, 100% { 
        text-shadow: 
            0 0 20px rgba(255, 0, 0, 0.8),
            2px 2px 0px rgba(200, 0, 0, 0.5);
    }
    50% { 
        text-shadow: 
            0 0 40px rgba(255, 0, 0, 1),
            2px 2px 0px rgba(200, 0, 0, 0.7);
    }
}

.subtitle {
    color: rgba(255, 100, 100, 0.7);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Terminal box */
.terminal {
    background: rgba(10, 0, 0, 0.95);
    border: 2px solid #ff4444;
    border-left: 4px solid #ff4444;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 0 40px rgba(255, 0, 0, 0.4),
        inset 0 0 80px rgba(100, 0, 0, 0.1);
    position: relative;
}

.terminal::before {
    content: "[TARTARUS_DEPTH_999]";
    position: absolute;
    top: -12px;
    left: 20px;
    background: #0a0000;
    padding: 0 10px;
    color: #ff6666;
    font-size: 11px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.boon-icon {
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 48px;
    filter: drop-shadow(0 0 15px rgba(255, 200, 0, 0.8));
    animation: boonFloat 3s ease-in-out infinite;
}

@keyframes boonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ASCII art */
.ascii-art {
    color: rgba(255, 50, 50, 0.7);
    font-size: 9px;
    line-height: 1;
    overflow-x: auto;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    text-align: center;
}

/* Quote box */
.quote-box {
    text-align: center;
    padding: 30px;
    margin: 30px 0;
    background: rgba(100, 0, 0, 0.2);
    border-top: 2px solid rgba(255, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 0, 0, 0.5);
}

.quote-large {
    font-size: 32px;
    color: #ff6666;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    animation: quotePulse 4s ease-in-out infinite;
}

@keyframes quotePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.quote-attribution {
    color: rgba(255, 100, 100, 0.8);
    font-size: 14px;
    font-style: italic;
}

/* Message box */
.message-box {
    margin: 30px 0;
    padding: 25px;
    background: rgba(50, 0, 0, 0.3);
    border-left: 3px solid #ff4444;
}

.death-count {
    color: #ff6666;
    font-size: 14px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.flavor-text {
    color: rgba(255, 100, 100, 0.9);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.revelation {
    color: rgba(255, 150, 150, 0.9);
    font-size: 15px;
    line-height: 1.8;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 0, 0, 0.3);
    font-style: italic;
}

.glow-text {
    color: #ffaa44;
    text-shadow: 0 0 15px rgba(255, 150, 0, 0.8);
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 15px rgba(255, 150, 0, 0.8); }
    50% { text-shadow: 0 0 25px rgba(255, 150, 0, 1); }
}

/* Boon reward */
.boon-reward {
    background: linear-gradient(135deg, rgba(50, 0, 50, 0.3) 0%, rgba(100, 0, 0, 0.3) 100%);
    border: 2px solid #ff8844;
    padding: 25px;
    margin: 30px 0;
    position: relative;
    box-shadow: 
        0 0 30px rgba(255, 100, 0, 0.3),
        inset 0 0 40px rgba(255, 100, 0, 0.05);
}

.boon-title {
    color: #ffaa44;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255, 150, 0, 0.8);
}

.boon-name {
    color: #ff8844;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.boon-description {
    color: rgba(255, 180, 100, 0.9);
    font-size: 14px;
    text-align: center;
    font-style: italic;
    margin-bottom: 20px;
}

.boon-effect {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 100, 0, 0.1);
    border-radius: 5px;
}

.effect-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(255, 150, 0, 0.8));
}

.boon-effect span:last-child {
    color: #ffaa44;
    font-size: 14px;
}

/* Godly whisper */
.godly-whisper {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 20, 40, 0.3);
    border: 1px solid rgba(100, 150, 200, 0.3);
    border-left: 3px solid #6699cc;
}

.godly-whisper p:first-child {
    color: rgba(100, 150, 200, 0.7);
    font-size: 12px;
    margin-bottom: 10px;
}

.whisper-text {
    color: rgba(150, 180, 220, 0.9);
    font-size: 14px;
    line-height: 1.8;
    font-style: italic;
}

.thanatos-signature {
    color: #6699cc;
    display: block;
    margin-top: 10px;
    text-align: right;
    text-shadow: 0 0 10px rgba(100, 150, 200, 0.6);
}

/* Navigation */
.navigation {
    text-align: center;
    padding: 20px;
    background: rgba(100, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    color: #ff6666;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid transparent;
    transition: all 0.3s;
    font-size: 14px;
}

.nav-link:hover {
    color: #ffaa44;
    border: 1px solid #ff6666;
    background: rgba(255, 0, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

.nav-link.highlight {
    color: #ffaa44;
    border: 1px solid #ffaa44;
    background: rgba(255, 150, 0, 0.05);
}

.nav-link.highlight:hover {
    color: #ff6666;
    border-color: #ff6666;
    background: rgba(255, 0, 0, 0.1);
}

.divider {
    color: rgba(255, 100, 100, 0.5);
    font-size: 18px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 0, 0, 0.3);
    color: rgba(255, 100, 100, 0.6);
    font-size: 11px;
}

.footer-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 11px;
}

.footer-quote {
    font-style: italic;
    margin: 10px 0;
    color: rgba(255, 150, 150, 0.7);
}

.footer-signature {
    margin: 10px 0;
}

.hex-code {
    margin-top: 10px;
    color: rgba(255, 100, 100, 0.4);
    font-size: 10px;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeInUp 1s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 28px;
    }
    
    .skull-icon {
        font-size: 48px;
    }
    
    .ascii-art {
        font-size: 6px;
    }
    
    .quote-large {
        font-size: 22px;
    }
    
    .terminal {
        padding: 25px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 10px;
    }
}

/* Blood drip effect */
@keyframes bloodDrip {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Add occasional blood drips */
.terminal::after {
    content: "▼";
    position: absolute;
    top: -10px;
    left: 50%;
    color: rgba(200, 0, 0, 0.3);
    font-size: 8px;
    animation: bloodDrip 3s ease-in infinite;
    animation-delay: 2s;
}