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

body {
    font-family: 'Courier New', monospace;
    background: #0a0a1a;
    overflow: hidden;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-canvas {
    display: block;
    background: #000;
    cursor: crosshair;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #00ffff;
    font-size: 14px;
    background: rgba(10, 20, 30, 0.9);
    padding: 15px;
    border: 2px solid #00aaff;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

#health-bar {
    width: 200px;
    height: 20px;
    border: 2px solid #00aaff;
    background: rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    box-shadow: inset 0 0 5px rgba(0, 170, 255, 0.3);
}

#health-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ff4444 0%, #ff8800 100%);
    transition: width 0.3s;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}

#shields-bar {
    width: 200px;
    height: 20px;
    border: 2px solid #00aaff;
    background: rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    box-shadow: inset 0 0 5px rgba(0, 170, 255, 0.3);
}

#shields-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00aaff 0%, #00ffff 100%);
    transition: width 0.3s;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.6);
}

#status-text {
    margin-top: 10px;
}

#ammo-text,
#health-packs-text {
    margin-top: 8px;
    font-size: 12px;
    color: #88aaff;
    text-shadow: 0 0 3px rgba(136, 170, 255, 0.5);
}

#interior-info {
    margin-top: 12px;
    padding: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(5, 15, 30, 0.8);
    font-size: 12px;
    line-height: 1.4;
}

#interior-info div {
    margin-bottom: 2px;
}

#interior-info div:last-child {
    margin-bottom: 0;
}

#status-text {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
    font-weight: bold;
    letter-spacing: 0.5px;
}

#interaction-prompt,
#landing-prompt,
#exit-prompt,
#eject-prompt {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 20, 30, 0.95);
    color: #00ffff;
    padding: 12px 24px;
    border: 2px solid #00aaff;
    border-radius: 4px;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.6);
    letter-spacing: 1px;
}

#interaction-prompt::before,
#landing-prompt::before,
#exit-prompt::before,
#eject-prompt::before {
    content: '▶ ';
    color: #00ff88;
    margin-right: 5px;
}

#eject-prompt {
    bottom: 100px;
    border-color: #ffaa00;
    color: #ffaa00;
}

.hidden {
    display: none;
}

.hud-button {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(0, 170, 255, 0.2);
    border: 1px solid #00ffff;
    color: #00ffff;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: all;
    border-radius: 4px;
}

#inventory-btn::after {
    content: attr(data-count);
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    background: #ff00aa;
    border-radius: 10px;
    font-size: 10px;
    color: #fff;
}

.inventory-panel {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 260px;
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(10, 10, 30, 0.95);
    border: 2px solid #00aaff;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    pointer-events: all;
    padding: 16px;
    color: #e3f6ff;
}

.inventory-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

#inventory-close-btn {
    background: transparent;
    border: none;
    color: #ff6688;
    font-size: 18px;
    cursor: pointer;
}

.inventory-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inventory-section {
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding-top: 8px;
}

.inventory-section:first-child {
    border-top: none;
    padding-top: 0;
}

.inventory-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.inventory-item-info {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.inventory-item-name {
    font-weight: bold;
}

.inventory-item-qty {
    color: #8fd2ff;
    font-size: 11px;
}

.inventory-use-btn {
    background: rgba(0, 255, 200, 0.2);
    border: 1px solid #00ffcc;
    color: #00ffcc;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 3px;
}

.inventory-use-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.inventory-empty {
    text-align: center;
    font-size: 12px;
    color: #7aa6c9;
}

@media (max-width: 768px) {
    .inventory-panel {
        right: auto;
        left: 10px;
        bottom: 10px;
        top: auto;
        width: calc(100% - 20px);
        max-height: 50vh;
    }
}

