@font-face {
    font-family: 'GameFont';
    src: local('Courier New'), local('Courier'), local('monospace');
}

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

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

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#game-canvas {
    border: 4px solid #2a2a4a;
    border-radius: 4px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background: #000;
    cursor: none;
}

#controls-hint {
    color: #5a5a8a;
    font-size: 12px;
    letter-spacing: 1px;
    text-align: center;
}

#guide-link {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    color: #5a5a8a;
    text-decoration: none;
    letter-spacing: 1px;
}
#guide-link:hover {
    color: #a0a0ff;
}

#coord-prompt-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#coord-prompt-box {
    background: #0a0a2e;
    border: 2px solid #f0f;
    border-radius: 8px;
    padding: 20px;
    width: 440px;
    box-shadow: 0 0 30px rgba(255,0,255,0.3);
}

#coord-prompt-header {
    color: #f0f;
    font-size: 16px;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

#coord-prompt-context {
    color: #aaa;
    font-size: 11px;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 10px;
    line-height: 1.5;
    max-height: 100px;
    overflow-y: auto;
}

#coord-prompt-label {
    color: #ff0;
    font-size: 12px;
    margin-bottom: 6px;
}

#coord-prompt-input {
    width: 100%;
    background: #1a1a3e;
    color: #fff;
    border: 1px solid #55f;
    border-radius: 4px;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: none;
    outline: none;
}

#coord-prompt-input:focus {
    border-color: #f0f;
    box-shadow: 0 0 8px rgba(255,0,255,0.3);
}

#coord-prompt-hint {
    color: #666;
    font-size: 10px;
    margin: 6px 0 12px;
    font-style: italic;
}

#coord-prompt-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#coord-prompt-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
}

#coord-prompt-submit {
    background: #a0f;
    color: #fff;
}
#coord-prompt-submit:hover { background: #c0f; }

#coord-prompt-cancel {
    background: #333;
    color: #aaa;
}
#coord-prompt-cancel:hover { background: #555; color: #fff; }

#coord-prompt-status {
    text-align: center;
    color: #f0f;
    font-size: 12px;
    margin-top: 12px;
    animation: pulse-glow 1s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
