.gc-main_div {
    height: 500px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .gc-main_div {
        margin-bottom: 15px;
    }
}

.gc-main_div h2 {
    font-size: 14px;
}

.gc-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 13px;
    box-sizing: border-box;
    border-radius: 5px;
    background-color: #eaf4f8;
}

.gc-header {
    padding: 10px;
    background: #FFFFFF;
    border-bottom: 1px dotted #ddd;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px 5px 0 0;
}

.gc-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}

.gc-status-dot.connected {
    background: #4CAF50;
}

.gc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.gc-message,
.gc-author {
    line-height: 23px;
    word-wrap: break-word;
    text-align: left;
    margin-bottom: 8px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

.gc-message.system,
.gc-author.system {
    color: #999;
    font-size: 0.9em;
}

.gc-author {
    font-weight: bold;
    color: #7d7b7b;
    margin-right: 5px;
}

.gc-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.gc-input-area {
    padding: 10px;
    background: #FFFFFF;
    border-top: 1px dotted #ddd;
    display: flex;
    gap: 5px;
    border-radius: 0 0 5px 5px;
}

.gc-input-area textarea {
    flex: 1;
    resize: none;
    height: 32px;
    margin: 0;
    border-radius: 3px;
    background: initial;
    border: 1px #d9d9d9 solid;
    padding: 5px;
    color: #000000;
    font: 16px/20px "Open Sans", Arial, Helvetica, sans-serif;
    background-color: #fafafa;
}

.gc-input-area button {
    color: #FFFFFF;
    background-color: #5ac6f4;
    background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05));
    border: 1px #2bb5f0 solid;
    padding: 5px 10px 6px;
    font-size: 13px;
    line-height: 16px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
}

.gc-input-area button:hover {
    background-color: #30afe6;
    border: 1px #1da1f2 solid;
}

.gc-input-area button:disabled {
    background: #ccc;
    border-color: #ccc;
}

@media (max-width: 768px) {
    .ludo-chat-container .gc-header {
        height: 26px;
    }

    .ludo-chat-container .gc-input-area textarea {
        height: 20px;
    }

    .ludo-chat-container .gc-input-area button {
        height: 32px;
    }
}

/* * In-game chat styles */
.ludo-chat-container {
    z-index: 10;
    position: absolute;
    top: 55px;
    left: 0;
    height: calc(100% - 55px);
    background-color: #385a5b;
}

.ludo-chat-container .gc-container {
    background-color: #FFF;
}

.ludo-chat-container .gc-main_div {
    width: 250px;
    margin: 10px;
    height: calc(100% - 24px);
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.1);
}

.ludo-chat-container .gc-input-area {
    background: #d3dbde;
    padding: 5px;
}

.ludo-chat-container .gc-input-area button {
    background: linear-gradient(90deg, #FDB714 0%, #F8951D 100%);
    border-color: #F8951D;
}

.ludo-chat-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    width: 38px;
    height: 38px;
    background: #ccc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 17px;
    box-shadow: var(--ludo-shadow-sm);
    margin-left: 10px;
}

#game-chat-root { display: none; } /* pandachat */
#game-chat-root.active { display: block; }