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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 2px solid #333;
}

.game-header h1 {
    font-size: 3.5em;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    margin-bottom: 10px;
    font-weight: bold;
}

.subtitle {
    font-size: 1.2em;
    color: #888;
    font-style: italic;
}

.game-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.story-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.chapter-title {
    font-size: 2.2em;
    color: #00d4ff;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.story-text {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.story-text p {
    margin-bottom: 15px;
}

.story-text strong {
    color: #ff6b6b;
    font-weight: bold;
}

.story-text em {
    color: #ffd93d;
    font-style: italic;
}

.story-text blockquote {
    border-left: 4px solid #00d4ff;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #b0b0b0;
}

.choices-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.choice-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.choice-btn:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.choice-btn:active {
    transform: translateY(0);
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid #555;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #777;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal.show {
    display: block;
}

.modal-content {
    background: #1a1a2e;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #333;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    color: #e0e0e0;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

.hidden {
    display: none;
}

.ending-text {
    color: #ff6b6b;
    font-weight: bold;
    text-align: center;
    font-size: 1.3em;
    margin: 20px 0;
}

.glitch-text {
    color: #ff0080;
    text-shadow: 2px 0 #00ff00, -2px 0 #0080ff;
    animation: glitch 0.5s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .game-header h1 {
        font-size: 2.5em;
    }
    
    .story-section {
        padding: 20px;
    }
    
    .choice-btn {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
    }
}
