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

body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    background: #1a1a1a;
}

.literary-title {
    font-family: 'Merriweather', serif;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 20px rgba(255, 107, 53, 0.5);
}

.narrative-box {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(255, 107, 53, 0.5);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(255, 107, 53, 0.3);
    animation: fadeIn 1s ease-in-out;
}

.stat-card {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(139, 69, 19, 0.4);
    border-radius: 0.75rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(255, 107, 53, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

#scene-container {
    width: 100vw;
    height: 100vh;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.8);
}

/* Smooth transitions */
* {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Literary text styling */
.font-serif {
    font-family: 'Merriweather', serif;
}

/* Handwritten Earthseed style */
.font-handwritten {
    font-family: 'Caveat', cursive;
}

/* Glow effects */
.text-glow {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

button:active {
    transform: translateY(0);
}