#game-container {
    padding: 0;
    overflow: hidden;
    background: #1e1e1e;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

#console-output {
    background-color: #1e1e1e;
    color: #f1f1f1;
    font-family: 'Courier New', Courier, monospace;
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    line-height: 1.6;
    white-space: pre-wrap;
    border-bottom: 1px solid #333;
    font-size: 0.95rem;
}

.system {
    color: #f1f1f1;
}

.user {
    color: #61dafb;
    font-weight: bold;
}

.prompt {
    color: #a6e22e;
}

.error {
    color: #ff5555;
}

.victory {
    color: #f1fa8c;
    font-weight: bold;
}


.input-area {
    display: flex;
    background-color: #252526;
    padding: 10px;
    gap: 10px;
    align-items: center;
}

#prompt-label {
    font-family: 'Courier New', Courier, monospace;
    color: #a6e22e;
    font-weight: bold;
    font-size: 1.1rem;
}

#user-input {
    flex-grow: 1;
    border: none;
    background: #2d2d2d;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: background 0.2s;
}

#user-input:focus {
    background: #383838;
}

#submit-button {
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--accent, #3b82f6);
    color: white;
    transition: background 0.2s;
    white-space: nowrap;
}

#submit-button:hover {
    background: #2563eb;
}

@media (max-width: 600px) {

    #console-output {
        height: 300px;
        font-size: 0.85rem;
        padding: 15px;
    }

    .input-area {
        flex-direction: column;
        padding: 15px;
        gap: 8px;
        background: #222;
    }

    #prompt-label {
        display: none;
    }

    #user-input {
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
        padding: 15px;
    }

    #submit-button {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
        margin-top: 5px;
    }
}