/* Styles moved from index.html for the spatial game showcase */
#spatial-game-container {
    position: relative;
    width: 300px;
    height: 350px; /* Adjusted height to fit button/status better */
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    margin: 1rem auto;
    font-family: monospace;
    user-select: none;
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
}
#spatial-game-area {
    position: relative;
    width: 100%;
    height: 250px; /* Fixed game area size */
    background-color: #e0e0e0;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}
#spatial-game-player {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: blue;
    border-radius: 50%;
    transition: left 0.1s linear, top 0.1s linear;
    box-sizing: border-box;
}
#spatial-game-goal {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: red;
    border: 2px solid darkred;
    box-sizing: border-box;
}
#spatial-game-instructions {
    padding-bottom: 10px;
    font-size: 0.9em;
    text-align: center;
    color: #555;
    flex-shrink: 0;
}
 #spatial-game-status {
    font-size: 0.9em;
    text-align: center;
    margin-top: 5px;
    color: #333;
    min-height: 1.2em; /* Prevent layout shift */
    flex-shrink: 0;
}
#spatial-game-start-button {
    display: block;
    margin: 10px auto 5px auto;
    padding: 8px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}
 #spatial-game-start-button:disabled {
     background-color: #aaa;
     cursor: not-allowed;
 }

/* Ensure container can receive focus for keyboard events */
#spatial-game-container:focus {
    outline: 2px solid dodgerblue;
}