/* Dedicated styling for in-game buttons and chat to override 98.css rules */

/* Game toolbar buttons (shrunk to requested compact width) */
.game-button,
.toggle-website-button {
    all: unset;
    display: inline-block;
    box-sizing: border-box;
    padding: 0 6px !important;
    width: 100px !important; /* toolbar buttons widened to 100px */
    height: 15px !important;
    min-height: 15px !important;
    background-color: rgba(167, 171, 174, 0.9) !important;
    border: none !important;
    color: white !important;
    font-family: 'Comic Sans MS', cursive, sans-serif !important;
    font-size: 12px !important;
    line-height: 15px !important;
    text-align: center !important;
    cursor: pointer !important;
}

/* Safechat buttons: keep usability but restored presence */
.safechat-button {
    all: unset;
    display: inline-block;
    box-sizing: border-box;
    padding: 0 6px !important;
    width: 94px !important;
    height: 20px !important;
    min-height: 20px !important;
    background-color: #fff !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    font-family: 'Comic Sans MS', cursive, sans-serif !important;
    font-size: 12px !important;
    line-height: 20px !important;
    text-align: center !important;
    cursor: pointer !important;
}

/* Ensure the safechat icon is visible and usable */
.chat-icon-button {
    display: block !important;
    pointer-events: auto !important;
}

/* Restore the bottom chat input bar so it's visible again */
.chat-bar {
    display: flex !important;
    align-items: center !important;
    height: 15px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
}

/* Dark-text variant */
.game-button.dark-text {
    color: #444444 !important;
}

/* Safechat-specific small buttons */
.safechat-button {
    background-color: #fff !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    width: 94px !important;
    height: 20px !important;
    line-height: 20px !important;
    font-size: 11px !important;
}

/* Chat input */
.chat-input {
    all: unset;
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    padding: 0 6px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: white !important;
    font-family: 'Comic Sans MS', cursive, sans-serif !important;
    font-size: 12px !important;
}

/* Make chat message borders/background invisible (visual only) */
.chat-message {
    border: none !important;
    background: transparent !important;
    padding: 2px 6px !important;
    box-shadow: none !important;
}

/* Restrict resets to in-game toolbar buttons only so the Windows 98 titlebar controls keep 98.css styling */
.game-button, .safechat-button, .visit-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

/* Ensure focus styles are visible but minimal */
.game-button:focus, .safechat-button:focus, .visit-button:focus, .chat-input:focus {
    outline: 1px dotted #222 !important;
    outline-offset: 1px !important;
}