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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #e94560;
    min-height: 100vh;
    overflow-x: hidden;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.game-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    border-bottom: 2px solid #e94560;
    backdrop-filter: blur(10px);
}

.game-header h1 {
    color: #f5f5f5;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.game-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat {
    background: rgba(233, 69, 96, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.stat-label {
    font-weight: bold;
    color: #f5f5f5;
}

/* Screen Management */
.screen {
    display: none;
    flex: 1;
    padding: 2rem;
}

.screen.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Start Screen */
.start-content {
    text-align: center;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    backdrop-filter: blur(10px);
}

.start-content h2 {
    color: #f5f5f5;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(233, 69, 96, 0.7);
}

.start-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #cccccc;
}

.crew-info {
    margin: 2rem 0;
    text-align: left;
}

.crew-info h3 {
    color: #f5f5f5;
    margin-bottom: 1rem;
    text-align: center;
}

.character {
    background: rgba(233, 69, 96, 0.1);
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.health-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
}

/* Button Styles */
.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #e94560, #f27121);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
}

.btn-secondary {
    background: rgba(233, 69, 96, 0.2);
    color: #f5f5f5;
    border: 2px solid rgba(233, 69, 96, 0.5);
}

.btn-secondary:hover {
    background: rgba(233, 69, 96, 0.3);
    transform: translateY(-1px);
}

/* Map Screen */
.map-layout {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    align-items: flex-start;
}

.map-container {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    backdrop-filter: blur(10px);
}

.character-panel {
    width: 300px;
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    backdrop-filter: blur(10px);
}

.character-panel h3 {
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.character-card {
    display: flex;
    align-items: center;
    background: rgba(233, 69, 96, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(233, 69, 96, 0.3);
    transition: all 0.3s ease;
}

.character-card:hover {
    background: rgba(233, 69, 96, 0.15);
    transform: translateX(3px);
}

.character-avatar {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: 50%;
    background: linear-gradient(45deg, #e94560, #f27121);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(233, 69, 96, 0.5);
}

.avatar-placeholder {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.character-info {
    flex: 1;
}

.character-info strong {
    display: block;
    color: #f5f5f5;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.character-role {
    display: block;
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.health-text {
    display: block;
    color: #f5f5f5;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    text-align: right;
}

.map-container h2 {
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.path-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.path-option {
    background: rgba(233, 69, 96, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.path-option:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: rgba(233, 69, 96, 0.6);
    transform: translateY(-2px);
}

.path-option h3 {
    color: #f5f5f5;
    margin-bottom: 0.5rem;
}

.path-option p {
    color: #cccccc;
    line-height: 1.4;
}

.current-location {
    text-align: center;
    font-size: 1.1rem;
    color: #f5f5f5;
    background: rgba(233, 69, 96, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

/* Event Screen */
.event-container {
    width: 100%;
    max-width: 700px;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    backdrop-filter: blur(10px);
}

.event-container h2 {
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.event-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #cccccc;
    text-align: center;
}

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

.event-choice {
    background: rgba(233, 69, 96, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.event-choice:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: rgba(233, 69, 96, 0.6);
    transform: translateX(5px);
}

.event-choice strong {
    color: #f5f5f5;
    display: block;
    margin-bottom: 0.5rem;
}

.event-choice span {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Game Over Screen */
.game-over-content {
    text-align: center;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    backdrop-filter: blur(10px);
}

.game-over-content h2 {
    color: #f5f5f5;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.game-over-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #cccccc;
}

.final-stats {
    background: rgba(233, 69, 96, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(233, 69, 96, 0.3);
    margin-bottom: 2rem;
}

.final-stats p {
    margin: 0.5rem 0;
    color: #f5f5f5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-header {
        padding: 1rem;
    }
    
    .game-stats {
        justify-content: center;
    }
    
    .screen {
        padding: 1rem;
    }
    
    .map-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .character-panel {
        width: 100%;
        order: -1; /* Show character panel above map on mobile */
    }
    
    .character-card {
        flex-direction: row;
        padding: 0.8rem;
    }
    
    .character-avatar {
        width: 40px;
        height: 40px;
    }
    
    .avatar-placeholder {
        font-size: 1rem;
    }
    
    .start-content,
    .map-container,
    .event-container,
    .game-over-content {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.screen.active {
    animation: fadeIn 0.5s ease-out;
}

/* Resource Warning Colors */
.stat.warning {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
}

.stat.danger {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
}

.health-fill.injured {
    background: linear-gradient(90deg, #FF9800, #FFC107);
}

.health-fill.critical {
    background: linear-gradient(90deg, #F44336, #E91E63);
}
