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

body {
    font-family: 'Courier New', monospace;
    background: #1a0a1a;
    color: #ffcc00;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    position: relative;
    max-width: 800px;
    width: 100%;
}

/* Title Screen */
.title-screen {
    text-align: center;
    padding: 40px;
    background: linear-gradient(180deg, #4a1a4a 0%, #2a0a2a 100%);
    border: 4px solid #8b2a5b;
    box-shadow: 0 0 20px rgba(139, 42, 91, 0.5);
}

.title-screen h1 {
    font-size: 4em;
    color: #ffcc00;
    text-shadow: 3px 3px 0 #8b2a5b, 6px 6px 0 #4a1a4a;
    margin-bottom: 20px;
    letter-spacing: 8px;
}

.subtitle {
    font-size: 1.2em;
    color: #d4af37;
    margin-bottom: 40px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.menu-button {
    background: linear-gradient(180deg, #8b2a5b 0%, #5a1a3b 100%);
    border: 3px solid #ffcc00;
    color: #ffcc00;
    padding: 15px 40px;
    font-size: 1.2em;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 250px;
}

.menu-button:hover {
    background: linear-gradient(180deg, #a3325f 0%, #6a2047 100%);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
    transform: scale(1.05);
}

.menu-button:active {
    transform: scale(0.95);
}

.controls-info {
    margin-top: 20px;
    padding: 20px;
    background: rgba(42, 10, 42, 0.9);
    border: 2px solid #8b2a5b;
}

.controls-info h2 {
    margin-bottom: 15px;
}

.controls-info p {
    margin: 10px 0;
    font-size: 1.1em;
}

/* Game Screen */
.game-screen {
    background: #000;
    position: relative;
}

#gameCanvas {
    display: block;
    border: 4px solid #8b2a5b;
    background: #1a0a1a;
}

/* HUD */
.hud {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: linear-gradient(180deg, #4a1a4a 0%, #2a0a2a 100%);
    border: 2px solid #8b2a5b;
    border-bottom: none;
    font-size: 0.9em;
}

.health-container, .ammo-container, .items-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.health-bar {
    width: 200px;
    height: 20px;
    background: #2a0a2a;
    border: 2px solid #8b2a5b;
    position: relative;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffcc00 0%, #ff9900 100%);
    transition: width 0.3s;
    width: 100%;
}

#ammoCount {
    font-size: 1.5em;
    color: #ffcc00;
}

.items-list {
    display: flex;
    gap: 5px;
}

.item-icon {
    width: 24px;
    height: 24px;
    background: #8b2a5b;
    border: 2px solid #ffcc00;
}

/* Minimap */
.minimap {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 150px;
    height: 100px;
    background: rgba(42, 10, 42, 0.8);
    border: 2px solid #8b2a5b;
    pointer-events: none;
}

/* Pause Menu */
.pause-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, #4a1a4a 0%, #2a0a2a 100%);
    border: 4px solid #8b2a5b;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.pause-menu h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ffcc00;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 850px) {
    #gameCanvas {
        width: 100%;
        height: auto;
    }
    
    .title-screen h1 {
        font-size: 2.5em;
    }
    
    .minimap {
        width: 100px;
        height: 70px;
    }
}
