/* Live chat widget — neon theme */
#neonLiveChatPanel {
    width: min(360px, calc(100vw - 24px));
    max-height: min(520px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 16px;
    background: rgba(2, 16, 29, 0.98);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.2);
    overflow: hidden;
    margin-bottom: 12px;
}

#neonLiveChatPanel.hidden { display: none !important; }

.neon-live-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.15);
    background: rgba(34, 211, 238, 0.06);
}

.neon-live-chat-head strong {
    color: #22d3ee;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.neon-live-chat-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.neon-live-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 220px;
    max-height: 340px;
}

.neon-live-chat-msg { margin-bottom: 10px; }
.neon-live-chat-msg.is-staff { text-align: left; }
.neon-live-chat-msg.is-player { text-align: right; }

.neon-live-chat-bubble {
    display: inline-block;
    max-width: 88%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: left;
}

.neon-live-chat-msg.is-player .neon-live-chat-bubble {
    background: rgba(34, 211, 238, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: #f8fafc;
}

.neon-live-chat-msg.is-staff .neon-live-chat-bubble {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.neon-live-chat-meta {
    margin-top: 4px;
    font-size: 0.72rem;
    color: #64748b;
}

.neon-live-chat-guest {
    padding: 24px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.92rem;
}

.neon-live-chat-guest button {
    margin-top: 12px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    color: #020617;
    font-weight: 700;
    cursor: pointer;
}

.neon-live-chat-compose {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(34, 211, 238, 0.15);
}

.neon-live-chat-compose textarea {
    flex: 1;
    min-height: 42px;
    max-height: 100px;
    resize: none;
    border-radius: 8px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: #041824;
    color: #fff;
    padding: 10px;
    font-size: 0.9rem;
}

.neon-live-chat-compose button {
    align-self: flex-end;
    padding: 0 14px;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    color: #020617;
    font-weight: 700;
    cursor: pointer;
}

#neonChatBtn .neon-live-chat-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}
