* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Courier New', monospace;
    overflow: hidden;
}
#container {
    position: relative;
}
canvas {
    border: 2px solid #333;
    image-rendering: pixelated;
}
#minimap {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 2px solid #0f0;
    background: rgba(0, 0, 0, 0.7);
}
#hud {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #0f0;
    font-size: 14px;
    text-shadow: 2px 2px 4px #000;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border: 2px solid #0f0;
}
#controls {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border: 2px solid #666;
}
.key {
    color: #ff0;
}
#readme-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: auto;
}
#readme-overlay.active {
    display: flex;
}
#readme-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    background: #1e1e1e;
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px #FFD700;
    display: flex;
    flex-direction: column;
}
#readme-header {
    background: #FFD700;
    color: #000;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
}
#readme-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #1e1e1e;
    color: #e0e0e0;
}
#readme-content a {
    color: #58a6ff;
}
#readme-content code {
    background: #2d2d2d;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}
#readme-content pre {
    background: #2d2d2d;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
#readme-content h1, #readme-content h2, #readme-content h3 {
    color: #FFD700;
    margin-top: 20px;
    margin-bottom: 10px;
}
#readme-description {
    background: #333;
    color: #FFD700;
    padding: 15px;
    font-size: 14px;
    border-top: 2px solid #FFD700;
    flex-shrink: 0;
}
#close-readme {
    background: #f00;
    color: #fff;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
}
#close-readme:hover {
    background: #ff4444;
}
#door-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFD700;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px #000;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border: 3px solid #FFD700;
    display: none;
    z-index: 100;
    text-align: center;
    max-width: 500px;
}
#door-text.show {
    display: block;
}
#door-description {
    font-size: 14px;
    margin-top: 10px;
    color: #fff;
}