.game-chat {
            background: rgba(255,255,255,0.5);
            border-radius: 16px;
            overflow: hidden;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.3);
            margin-top: 0;
            display: flex;
            flex-direction: column;
        }

        .game-chat .chat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background: linear-gradient(135deg, #1a2535, #283852);
            color: white;
            flex-shrink: 0;
        }

        .game-chat .chat-header h4 {
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
        }

        .game-chat .chat-online {
            font-size: 12px;
            background: rgba(255,255,255,0.15);
            padding: 2px 10px;
            border-radius: 20px;
            min-width: 40px;
            text-align: center;
        }

        .game-chat .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 12px 14px;
            background: rgba(255,255,255,0.3);
            min-height: 200px;
            max-height: 300px;
        }

        .game-chat .chat-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            min-height: 180px;
            color: #94a3b8;
            text-align: center;
            padding: 20px;
        }

        .game-chat .chat-empty i {
            font-size: 36px;
            color: #cbd5e1;
            margin-bottom: 12px;
        }

        .game-chat .chat-empty p {
            margin: 4px 0;
            font-size: 13px;
        }

        .game-chat .chat-empty .hint {
            font-size: 11px;
            color: #b0c0d0;
        }

        .game-chat .chat-empty .hint a {
            color: #e01a3f;
            text-decoration: none;
        }

        .game-chat .chat-empty .hint a:hover {
            text-decoration: underline;
        }

        .game-chat .chat-message {
            display: flex;
            justify-content: flex-start;
            margin-bottom: 10px;
            animation: fadeIn 0.3s ease;
            min-width: 0;
        }

        .game-chat .chat-message.mine {
            justify-content: flex-end;
        }

        .game-chat .chat-bubble {
            max-width: 88%;
            padding: 8px 10px;
            border: 1px solid rgba(148, 163, 184, .24);
            border-radius: 12px 12px 12px 4px;
            background: rgba(255, 255, 255, .72);
            box-shadow: 0 2px 6px rgba(15, 23, 42, .05);
        }

        .game-chat .chat-message.mine .chat-bubble {
            border-color: rgba(100, 116, 139, .28);
            border-radius: 12px 12px 4px 12px;
            background: #e8eef5;
        }

        .game-chat .chat-message.warning {
            background: rgba(224, 26, 63, 0.1);
            padding: 4px 10px;
            border-radius: 6px;
            margin-bottom: 6px;
            border-left: 3px solid #e01a3f;
            font-size: 12px;
        }

        .game-chat .chat-meta {
            display: flex;
            align-items: center;
            gap: 7px;
            margin-bottom: 3px;
            line-height: 1.1;
        }

        .game-chat .chat-time {
            color: #94a3b8;
            font-size: 10px;
            font-weight: 400;
        }

        .game-chat .chat-username {
            font-weight: 600;
            color: #e01a3f;
            font-size: 12px;
            white-space: nowrap;
            flex-shrink: 0;
            text-decoration: none;
            transition: color 0.2s;
        }

        .game-chat .chat-username:hover {
            color: #c41535;
            text-decoration: underline;
        }

        .game-chat .chat-username.me {
            color: #3b82f6;
        }

        .game-chat .chat-username.me:hover {
            color: #2563eb;
        }

        .game-chat .chat-text {
            color: #1a2a3f;
            font-size: 13px;
            line-height: 1.4;
            word-break: break-word;
        }

        .game-chat .chat-input-area {
            position: relative;
            display: flex;
            padding: 10px 14px;
            gap: 8px;
            background: rgba(255,255,255,0.3);
            border-top: 1px solid rgba(0,0,0,0.05);
            flex-shrink: 0;
        }

        .game-chat .chat-input-area input {
            width: 100%;
            box-sizing: border-box;
            padding: 8px 58px 8px 12px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            font-size: 13px;
            outline: none;
            background: white;
        }

        .game-chat .chat-input-wrap {
            position: relative;
            flex: 1;
            min-width: 0;
        }

        .game-chat .chat-input-area input:focus {
            border-color: #e01a3f;
            box-shadow: 0 0 0 3px rgba(224,26,63,0.1);
        }

        .game-chat .chat-input-area input:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .game-chat .chat-input-area button {
            padding: 8px 14px;
            background: linear-gradient(135deg, #64748b, #475569);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
        }

        .game-chat .chat-input-area button:hover:not(:disabled) {
            background: linear-gradient(135deg, #475569, #334155);
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
        }

        .game-chat .chat-input-area button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none !important;
        }

        .game-chat .chat-counter {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 11px;
            color: #94a3b8;
            pointer-events: none;
            user-select: none;
            transition: color 0.2s;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .game-chat .chat-messages::-webkit-scrollbar {
            width: 4px;
        }

        .game-chat .chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }

        .game-chat .chat-messages::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }
