.game-chat-wrapper{margin:0 0 18px 0;width:100%;clear:both;font-family:inherit;box-sizing:border-box}.game-chat-card{background:#fff;border:1px solid #dcdfe4;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.04);overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease}.game-chat-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.07)}.game-chat-header{display:flex;align-items:center;justify-content:space-between;padding:7px 10px;background:linear-gradient(180deg,#f8fafc 0,#edf2f7 100%);border-bottom:1px solid #e2e8f0;user-select:none}.game-chat-header-left{display:flex;align-items:center;gap:6px;min-width:0}.game-chat-icon{font-size:15px;line-height:1;flex-shrink:0}.game-chat-title{margin:0;padding:0;font-size:13px;font-weight:700;color:#1e293b;line-height:1.2;white-space:nowrap}.game-chat-online-indicator{display:inline-flex;align-items:center;gap:4px;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;font-size:10px;font-weight:700;padding:1px 5px;border-radius:10px;line-height:1;flex-shrink:0}.online-pulse{width:6px;height:6px;background-color:#10b981;border-radius:50%;display:inline-block;box-shadow:0 0 0 0 rgba(16,185,129,.7);animation:chatPulse 2s infinite}@keyframes chatPulse{0{transform:scale(0.95);box-shadow:0 0 0 0 rgba(16,185,129,.7)}70%{transform:scale(1);box-shadow:0 0 0 5px rgba(16,185,129,0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(16,185,129,0)}}.game-chat-header-right{display:flex;align-items:center;gap:4px;flex-shrink:0}.chat-btn-tool{background:#fff;border:1px solid #cbd5e1;border-radius:4px;padding:2px 6px;font-size:11px;color:#475569;cursor:pointer;line-height:1.2;display:inline-flex;align-items:center;justify-content:center;transition:all .15s ease}.chat-btn-tool:hover{background:#f1f5f9;border-color:#94a3b8;color:#0f172a}.chat-btn-tool.active{background:#eff6ff;border-color:#3b82f6;color:#1d4ed8;font-weight:700}.chat-btn-tool.muted{opacity:.6}.game-chat-active-bar{padding:6px 8px;background:#f8fafc;border-bottom:1px solid #e2e8f0;max-height:130px;overflow-y:auto;font-size:11px}.active-bar-label{font-weight:700;color:#64748b;font-size:10px;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}.active-players-list{display:flex;flex-direction:column;gap:4px}.active-player-pill{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e2e8f0;padding:3px 6px;border-radius:4px;font-size:11px;box-shadow:0 1px 2px rgba(0,0,0,.02)}.pill-player{display:inline-flex;align-items:center;gap:4px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pill-dot{width:6px;height:6px;border-radius:50%;background:#22c55e;flex-shrink:0}.pill-nick{font-weight:600}.tag-you{color:#0284c7;font-size:10px}.pill-game{display:inline-flex;align-items:center;gap:2px;background:#f1f5f9;border-radius:4px;padding:1px 5px;color:#334155;font-size:10px;text-decoration:none;font-weight:500;flex-shrink:0;transition:background .15s ease,color .15s ease}.pill-game:hover{background:#e2e8f0;color:#0284c7;text-decoration:none}.empty-players-notice{color:#94a3b8;font-style:italic;font-size:11px;padding:2px 0}.game-chat-messages-container{position:relative;background:#fbfcfe}.game-chat-messages{max-height:380px;min-height:220px;overflow-y:auto;padding:8px;display:flex;flex-direction:column;gap:6px;box-sizing:border-box}.game-chat-messages::-webkit-scrollbar{width:5px}.game-chat-messages::-webkit-scrollbar-track{background:transparent}.game-chat-messages::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.game-chat-messages::-webkit-scrollbar-thumb:hover{background:#94a3b8}.game-chat-loading,.chat-empty-state{text-align:center;padding:24px 6px;color:#64748b;font-size:11.5px}.chat-spinner{display:inline-block;width:12px;height:12px;border:2px solid #cbd5e1;border-top-color:#3b82f6;border-radius:50%;animation:chatSpin .7s linear infinite;vertical-align:-2px;margin-right:4px}@keyframes chatSpin{to{transform:rotate(360deg)}}.game-chat-scroll-btn{position:absolute;bottom:8px;right:12px;background:#2563eb;color:#fff;border:0;padding:4px 10px;border-radius:16px;font-size:10px;font-weight:600;cursor:pointer;box-shadow:0 2px 8px rgba(37,99,235,.4);transition:background .15s ease,transform .15s ease;z-index:10}.game-chat-scroll-btn:hover{background:#1d4ed8;transform:translateY(-1px)}.chat-msg-row{display:flex;gap:7px;padding:5px 6px;border-radius:5px;background:#fff;border:1px solid #f1f5f9;transition:background .12s ease,border-color .12s ease}.chat-msg-row:hover{background:#f8fafc;border-color:#e2e8f0}.chat-msg-row.is-me{background:#f0f7ff;border-color:#dbeafe}.chat-msg-avatar{flex-shrink:0}.chat-msg-avatar img{width:26px;height:26px;border-radius:50%;object-fit:cover;border:1px solid #e2e8f0;background:#f1f5f9;display:block}.chat-msg-body{flex:1 1 auto;min-width:0}.chat-msg-header{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:2px}.chat-msg-author{font-weight:700;font-size:11.5px;line-height:1.2}.chat-msg-author a{text-decoration:none}.chat-msg-author a:hover{text-decoration:underline}.chat-game-badge{display:inline-flex;align-items:center;gap:3px;background:#e2e8f0;color:#334155;font-size:9.5px;font-weight:600;padding:1px 5px;border-radius:4px;text-decoration:none;transition:all .15s ease;line-height:1.2}.chat-game-badge:hover{background:#cbd5e1;color:#0f172a;text-decoration:none}.badge-icon{font-size:10px}.chat-msg-time{font-size:9.5px;color:#94a3b8;margin-left:auto;white-space:nowrap}.chat-msg-del{background:transparent;border:0;color:#cbd5e1;font-size:11px;padding:0 2px;cursor:pointer;line-height:1;transition:color .15s ease}.chat-msg-del:hover{color:#ef4444}.chat-msg-text{font-size:11.5px;line-height:1.4;color:#1e293b;word-break:break-word}.chat-msg-text a{color:#2563eb;text-decoration:underline}.chat-msg-text img{vertical-align:middle;max-height:18px}.game-chat-form{padding:6px 8px;background:#fff;border-top:1px solid #e2e8f0;position:relative;margin:0}.current-game-tag-bar{margin-bottom:4px}.current-game-tag{display:inline-flex;align-items:center;gap:4px;background:#f1f5f9;border:1px solid #e2e8f0;color:#475569;font-size:10px;font-weight:600;padding:1px 6px;border-radius:4px;white-space:nowrap}.game-chat-input-row{display:flex;align-items:center;gap:4px;position:relative;width:100%}.game-chat-input{flex:1 1 auto;min-width:0;height:28px;padding:4px 7px;font-size:11.5px;border:1px solid #cbd5e1;border-radius:4px;outline:0;background:#fff;color:#1e293b;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}.game-chat-input:focus{border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59,130,246,.15)}.chat-emojis-btn{background:#f8fafc;border:1px solid #cbd5e1;border-radius:4px;width:28px;height:28px;font-size:15px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;transition:background .15s ease}.chat-emojis-btn:hover{background:#f1f5f9;border-color:#94a3b8}.game-chat-send-btn{background:linear-gradient(135deg,#3b82f6 0,#2563eb 100%);color:#fff;border:0;border-radius:4px;width:30px;height:28px;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;box-shadow:0 1px 4px rgba(37,99,235,.25);transition:all .15s ease}.game-chat-send-btn:hover{background:linear-gradient(135deg,#2563eb 0,#1d4ed8 100%);box-shadow:0 2px 6px rgba(37,99,235,.35)}.game-chat-send-btn:disabled,.game-chat-send-btn.loading{opacity:.6;cursor:not-allowed}.game-chat-form-meta{display:flex;justify-content:space-between;align-items:center;font-size:9.5px;color:#94a3b8;margin-top:4px;padding:0 1px}.meta-tip{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta-counter.warn{color:#ef4444;font-weight:700}.game-chat-emojis-popup{position:absolute;bottom:42px;right:8px;left:8px;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px;box-shadow:0 4px 14px rgba(0,0,0,.15);display:grid;grid-template-columns:repeat(5,1fr);gap:4px;z-index:50}.emoji-opt{font-size:16px;text-align:center;cursor:pointer;padding:3px;border-radius:3px;transition:background .12s ease,transform .12s ease;line-height:1}.emoji-opt:hover{background:#f1f5f9;transform:scale(1.2)}.game-chat-guest-box{padding:8px 10px;background:#f0fdf4;border-top:1px solid #bbf7d0;color:#166534;font-size:11px;line-height:1.35;display:flex;align-items:center;gap:6px}.game-chat-guest-box a{color:#15803d;font-weight:700;text-decoration:underline}@media(prefers-color-scheme:dark){.game-chat-card{background:#1e252d;border-color:#2e3846;box-shadow:0 2px 8px rgba(0,0,0,.25)}.game-chat-header{background:linear-gradient(180deg,#191f27 0,#151b22 100%);border-bottom-color:#2e3846}.game-chat-title{color:#e2e8f0}.game-chat-online-indicator{background:rgba(16,185,129,.15);border-color:rgba(16,185,129,.3);color:#34d399}.chat-btn-tool{background:#252e39;border-color:#3b4758;color:#cbd5e1}.chat-btn-tool:hover{background:#2f3b49;border-color:#4b5a6f;color:#fff}.chat-btn-tool.active{background:#1e3a5f;border-color:#3b82f6;color:#93c5fd}.game-chat-active-bar{background:#181e26;border-bottom-color:#2a3442}.active-player-pill{background:#212a35;border-color:#2e3a49}.pill-game{background:#2c3746;color:#cbd5e1}.pill-game:hover{background:#374558;color:#fff}.game-chat-messages-container{background:#161c23}.chat-msg-row{background:#1e252d;border-color:#26313d}.chat-msg-row:hover{background:#232c37;border-color:#2e3c4a}.chat-msg-row.is-me{background:#1c2a3c;border-color:#27405f}.chat-msg-text{color:#e2e8f0}.chat-game-badge{background:#2d3847;color:#94a3b8}.chat-game-badge:hover{background:#3b485b;color:#f1f5f9}.game-chat-form{background:#191f27;border-top-color:#2e3846}.current-game-tag{background:#252e39;border-color:#354252;color:#cbd5e1}.game-chat-input{background:#13171e;border-color:#334050;color:#f1f5f9}.game-chat-input:focus{border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59,130,246,.25)}.chat-emojis-btn{background:#252e39;border-color:#354252}.chat-emojis-btn:hover{background:#2f3b49}.game-chat-emojis-popup{background:#1e252d;border-color:#334050}.emoji-opt:hover{background:#2a3442}.meta-tip{color:#64748b}.game-chat-guest-box{background:#13241b;border-top-color:#1e3a2b;color:#86efac}.game-chat-guest-box a{color:#4ade80}}body.dark-mode .game-chat-card,body.theme-dark .game-chat-card{background:#1e252d;border-color:#2e3846}