:root {
    --bg-dark: #0a0a0a;
    --bg-panel: #1a1510;
    --text-gold: #c9a961;
    --text-faded: #8a7a5a;
    --text-light: #e8dcc8;
    --danger: #8b0000;
    --danger-glow: #ff3333;
    --success: #4a7c59;
    --border: #3a3020;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
        radial-gradient(ellipse at top, #1a1510 0%, transparent 50%),
        radial-gradient(ellipse at bottom, #0d0a08 0%, transparent 50%);
}

.container {
    width: 90%;
    max-width: 800px;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

.title {
    font-size: 3.5rem;
    color: var(--text-gold);
    text-shadow: 0 0 20px rgba(201, 169, 97, 0.5);
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.subtitle {
    color: var(--text-faded);
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

#game-screen {
    background: var(--bg-panel);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.8),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

#game-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-gold), transparent);
}

#story-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    min-height: 150px;
    color: var(--text-light);
}

#story-text .scene-title {
    color: var(--text-gold);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

#story-text .death-message {
    color: var(--danger-glow);
    font-size: 2rem;
    text-align: center;
    margin: 1rem 0;
    text-shadow: 0 0 10px var(--danger);
    animation: pulse 2s infinite;
}

#story-text .ending-message {
    color: var(--text-gold);
    font-size: 1.5rem;
    text-align: center;
    margin: 1rem 0;
    text-shadow: 0 0 15px rgba(201, 169, 97, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#choices {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.choice-btn {
    background: linear-gradient(180deg, #2a2015 0%, #1a1510 100%);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    border-radius: 4px;
}

.choice-btn:hover {
    border-color: var(--text-gold);
    box-shadow: 0 0 15px rgba(201, 169, 97, 0.3);
    transform: translateX(5px);
}

.choice-btn::before {
    content: '> ';
    color: var(--text-gold);
}

#stats {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-faded);
    font-size: 0.9rem;
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-faded);
}

.flavor {
    font-style: italic;
    opacity: 0.7;
}

/* Death screen styling */
.death-screen {
    background: linear-gradient(180deg, #1a0a0a 0%, #0a0a0a 100%);
}

/* Victory screen styling */
.victory-screen {
    background: linear-gradient(180deg, #1a2015 0%, #0a0a0a 100%);
}

/* Responsive */
@media (max-width: 600px) {
    .title {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }
    
    #game-screen {
        padding: 1rem;
    }
    
    #story-text {
        font-size: 1rem;
    }
}
