* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Georgia', serif;
    background: #1a1a2e;
    color: #eee;
    overflow: hidden;
}

#app {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    width: 100%;
    height: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.title {
    font-size: 28px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
}

.label {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}

.value {
    display: block;
    font-size: 20px;
    font-weight: bold;
}

#health { color: #ff6b6b; }
#stamina { color: #4ecdc4; }
#time { color: #ffd700; }

.game-area {
    flex: 1;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.story-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.recent-events {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.event {
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border-left: 3px solid #ffd700;
}

.event-success {
    border-left-color: #4ecdc4;
}

.event-failure {
    border-left-color: #ff6b6b;
}

.input-area {
    display: flex;
    gap: 10px;
}

#actionInput {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #eee;
    outline: none;
}

#actionInput:focus {
    border-color: #ffd700;
}

#submitBtn {
    padding: 15px 30px;
    font-size: 16px;
    background: #ffd700;
    color: #1a1a2e;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#submitBtn:hover {
    background: #ffed4e;
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.game-over h2 {
    color: #ffd700;
    font-size: 36px;
    margin-bottom: 20px;
}

.game-over p {
    font-size: 18px;
    margin-bottom: 30px;
}

#restartBtn {
    padding: 15px 30px;
    font-size: 18px;
    background: #4ecdc4;
    color: #1a1a2e;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .stats {
        gap: 15px;
    }
}

