:root {
    --bg-color: #0A1A1A;
    --primary-color: #00CEC9;
    --secondary-color: #81ECEC;
    --accent-color: #E17055;
    --surface-color: #1e293b;
    --text-color: #ffffff;
    --border-radius: 12px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 960px;
    height: 640px;
    background-color: #000;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0, 206, 201, 0.2);
}

canvas {
    display: block;
}

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

#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(30, 41, 59, 0.85);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid var(--secondary-color);
    pointer-events: auto;
    font-weight: bold;
    color: var(--primary-color);
}

#minimap-container {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 150px;
    height: 150px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    pointer-events: auto;
}

#minimap-canvas {
    width: 100%;
    height: 100%;
}

#message-log {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 350px;
    height: 120px;
    overflow-y: auto;
    background: rgba(30, 41, 59, 0.85);
    padding: 10px;
    border-radius: var(--border-radius);
    font-size: 0.9em;
    pointer-events: auto;
    border: 1px solid var(--secondary-color);
}

#message-log p {
    margin: 2px 0;
    color: #ccc;
}

#message-log p.important {
    color: var(--accent-color);
    font-weight: bold;
}

#inventory {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background: rgba(10, 26, 26, 0.95);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    pointer-events: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.hidden {
    display: none !important;
}

#inventory h3 {
    margin-top: 0;
    color: var(--primary-color);
    text-align: center;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 10px;
}

#inventory-list {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

#inventory-list li {
    padding: 8px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

#inventory-list li:hover {
    background: var(--surface-color);
}
