* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    color: #00ff00;
    overflow: hidden;
}

#game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
}

/* HUD */
#hud {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid #00ff00;
    padding: 10px 20px;
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    font-size: 14px;
    min-width: 120px;
}

.bar-container {
    width: 200px;
    height: 20px;
    background: #1a1a1a;
    border: 1px solid #00ff00;
    border-radius: 3px;
    overflow: hidden;
}

.bar {
    height: 100%;
    transition: width 0.3s ease;
}

.health-bar {
    background: linear-gradient(90deg, #ff0000, #ff4444);
}

.thirst-bar {
    background: linear-gradient(90deg, #0088ff, #44aaff);
}

.hunger-bar {
    background: linear-gradient(90deg, #ff8800, #ffaa44);
}

.location-info {
    margin-left: auto;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
}

/* Hauptspielbereich */
#game-area {
    flex: 1;
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow: hidden;
}

.side-panel {
    width: 250px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    border-radius: 5px;
    padding: 15px;
    overflow-y: auto;
}

.side-panel h3 {
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px #00ff00;
}

/* Charakter-Panel */
#character-display {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.equipment-slot {
    background: rgba(0, 50, 0, 0.3);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 10px;
}

.slot-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #00ff00;
}

.slot-content {
    min-height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed #006600;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

/* Inventar */
#inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.inventory-item {
    background: rgba(0, 50, 0, 0.3);
    border: 1px solid #00ff00;
    border-radius: 3px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.inventory-item:hover {
    background: rgba(0, 100, 0, 0.5);
    transform: scale(1.05);
}

.inventory-item .item-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.inventory-item .item-name {
    font-size: 10px;
    display: block;
}

.inventory-item .item-quantity {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
}

/* Map Container */
#map-container {
    flex: 1;
    position: relative;
    background: #000;
    border: 2px solid #00ff00;
    border-radius: 5px;
    overflow: hidden;
}

#game-canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#interaction-prompt {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    padding: 10px 20px;
    border-radius: 5px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Nachrichten-Log */
#message-log {
    height: 100px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 2px solid #00ff00;
    padding: 10px 20px;
    overflow-y: auto;
}

#messages {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.message {
    font-size: 12px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.message.info { color: #00ff00; }
.message.warning { color: #ffaa00; }
.message.error { color: #ff0000; }
.message.success { color: #00ffff; }

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff88;
}

/* Responsive */
@media (max-width: 1200px) {
    .side-panel {
        width: 200px;
    }
    
    #hud {
        font-size: 12px;
    }
    
    .bar-container {
        width: 150px;
    }
}

@media (max-width: 768px) {
    #game-area {
        flex-direction: column;
    }
    
    .side-panel {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    #character-panel {
        order: 2;
    }
    
    #map-container {
        order: 1;
        min-height: 400px;
    }
    
    #inventory-panel {
        order: 3;
    }
}