/* Translucent chat follows the compact two-tab reference. */
#gold.wallet{display:none!important}
#game-chat{position:fixed;left:18px;bottom:24px;width:440px;max-width:calc(100vw - 16px);height:270px;max-height:calc(100vh - 16px);z-index:22;display:flex;flex-direction:column;color:#eee3c8;font:14px/1.25 'Segoe UI',sans-serif;pointer-events:auto;text-shadow:0 1px 2px #000}
#game-chat[hidden],#game-chat [hidden],.in-character-menu #game-chat{display:none!important}
#game-chat button{min-width:0;margin:0;border:1px solid #88764e;border-radius:3px 3px 0 0;background:linear-gradient(#39372ddd,#151b17e8);color:#e6d5a6;font:14px Georgia,serif;box-shadow:inset 0 0 0 1px #0b100c;cursor:pointer;padding:6px 13px}
#game-chat button:hover{color:#fff2cb;background:#484532}#game-chat button[aria-selected=true]{border-color:#c6ac6a;border-bottom-color:#262a21;background:linear-gradient(#58513b,#262a21);color:#fff0bf}
#game-chat .chat-tabs{display:flex;align-items:end;gap:3px;padding-left:4px;flex-shrink:0}
#game-chat .chat-move{width:30px;padding:5px 0;font:20px/20px Georgia;cursor:move;touch-action:none;user-select:none}
#game-chat .chat-history{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8b7950 #18201ccc;border:1px solid #756544;border-radius:3px;background:#101611bd;padding:8px;box-shadow:inset 0 0 15px #0005}
#game-chat p{margin:0;overflow-wrap:anywhere;color:#e5e2d4;font:inherit}#game-chat time{color:#9caa9b;font-size:12px}#game-chat strong{color:#e9c675;font-weight:600}
#game-chat .chat-form{display:flex;align-items:center;gap:7px;height:31px;flex-shrink:0;border:1px solid #9e8a57;border-radius:3px;background:#0c140de8;margin-top:3px;padding-left:7px;color:#c5ae74}
#game-chat input{flex:1;min-width:0;border:0;outline:0;box-shadow:none;background:transparent;color:#fff0d0;font:14px 'Segoe UI',sans-serif;padding:4px 0;margin:0;width:auto}#game-chat input::placeholder{color:#9da38e}#game-chat .chat-form:focus-within{border-color:#e6cb83;box-shadow:0 0 5px #c4ab5244}#game-chat .chat-form button{border:0;border-left:1px solid #756544;border-radius:0;padding:4px 10px;height:29px}#game-chat button:disabled{opacity:.5}
#game-chat .chat-status{font:12px/16px 'Segoe UI',sans-serif;color:#e9c185;background:#101611cf;overflow-wrap:anywhere}#game-chat .chat-status:empty{display:none}
@media(max-width:700px){#game-chat{width:330px;height:220px;left:8px;bottom:12px}}
#game-chat .chat-history{padding-left:30px;padding-right:8px;overflow-y:scroll;scrollbar-width:auto;direction:rtl}
#game-chat .chat-body{position:relative;display:flex;flex:1;min-height:0}
#game-chat .chat-body .chat-history{margin-bottom:0}
#game-chat .chat-controls{position:absolute;left:0;bottom:0;height:21px;pointer-events:none}
#game-chat .chat-controls button{pointer-events:auto;padding:0;width:20px;height:21px;border-radius:2px;font:12px/19px Georgia;background:#253027e8;color:#d6c48e}
#game-chat .chat-history::-webkit-scrollbar{width:12px}
#game-chat .chat-history::-webkit-scrollbar-track{background:#0c140edb;border-right:1px solid #6f6041;margin-bottom:24px}
#game-chat .chat-history::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#574d33,#a39161,#574d33);border:2px solid #172018;border-radius:5px;min-height:28px}

#game-chat .chat-history>p{direction:ltr;text-align:left}
#chat-clear-tip{display:none;position:absolute;left:25px;bottom:0;width:240px;padding:9px 12px;border:1px solid #ad935b;border-radius:4px;background:#0d1a13fa;box-shadow:0 3px 12px #0009;color:#f0dfb4;font:14px/1.35 'Segoe UI',sans-serif;z-index:3;pointer-events:none;text-shadow:none}
#chat-clear-tip small{color:#bbc4b6;font:12px/1.35 'Segoe UI',sans-serif}
#game-chat .chat-controls button:hover+#chat-clear-tip,#game-chat .chat-controls button:focus-visible+#chat-clear-tip{display:block}

#game-chat p.chat-damage-received,#game-chat p.chat-damage-received time{color:#ff7b72}


#game-chat p.chat-damage-dealt,#game-chat p.chat-damage-dealt time{color:#ffdf66}


#game-chat p.chat-reward,#game-chat p.chat-reward time{color:#78d4ff}

#game-chat{box-sizing:border-box;max-width:100vw;max-height:100vh}
#game-chat .chat-resize{position:absolute;z-index:6;touch-action:none;user-select:none}
#game-chat .chat-resize-n,#game-chat .chat-resize-s{left:7px;right:7px;height:6px;cursor:ns-resize!important}
#game-chat .chat-resize-n{top:-3px}#game-chat .chat-resize-s{bottom:-3px}
#game-chat .chat-resize-e,#game-chat .chat-resize-w{top:7px;bottom:7px;width:6px;cursor:ew-resize!important}
#game-chat .chat-resize-e{right:-3px}#game-chat .chat-resize-w{left:-3px}
#game-chat .chat-resize-ne,#game-chat .chat-resize-nw,#game-chat .chat-resize-se,#game-chat .chat-resize-sw{width:10px;height:10px}
#game-chat .chat-resize-ne{right:-3px;top:-3px;cursor:nesw-resize!important}
#game-chat .chat-resize-sw{left:-3px;bottom:-3px;cursor:nesw-resize!important}
#game-chat .chat-resize-nw{left:-3px;top:-3px;cursor:nwse-resize!important}
#game-chat .chat-resize-se{right:-3px;bottom:-3px;cursor:nwse-resize!important}
#game-chat.chat-resizing{user-select:none}
/* Keep the upper grips inside the viewport, including above the history pane. */
#game-chat .chat-resize-n{top:0;height:8px}
#game-chat .chat-resize-ne,#game-chat .chat-resize-nw{top:0;width:12px;height:12px}
#game-chat .chat-body .chat-history-resize{top:-3px;height:8px}
#game-chat .chat-body .chat-resize-ne.chat-history-resize,#game-chat .chat-body .chat-resize-nw.chat-history-resize{height:12px}

.speech-bubbles{position:fixed;inset:0;pointer-events:none;z-index:12}.speech-bubbles[hidden],.speech-bubble[hidden]{display:none}.speech-bubble{position:absolute;left:0;top:0;max-width:260px;min-width:32px;padding:9px 13px;border:1px solid #85683d;border-radius:9px;background:linear-gradient(#f7edd6,#e8d4ae);box-shadow:0 3px 9px #0005,inset 0 0 0 1px #fff8;color:#34281c;font:14px/1.35 Georgia,serif;overflow-wrap:anywhere;text-align:center;white-space:pre-wrap}.speech-bubble:after{content:'';position:absolute;left:calc(50% - 5px);bottom:-6px;width:10px;height:10px;background:#e8d4ae;border-right:1px solid #85683d;border-bottom:1px solid #85683d;transform:rotate(45deg)}

#game-chat .chat-form{position:relative;padding-left:0}
#game-chat .chat-form .chat-channel{border:0;border-right:1px solid #756544;width:28px;height:29px;padding:0;border-radius:2px 0 0 2px;color:#d4bd7d}
#game-chat .chat-channel-menu{position:absolute;left:0;bottom:calc(100% + 5px);padding:5px;min-width:155px;background:#101e16fa;border:1px solid #b79b5d;border-radius:3px;box-shadow:0 4px 14px #0009;z-index:8}
#game-chat .chat-channel-menu button{display:block;width:100%;height:auto;border:0;border-radius:2px;padding:9px 13px;text-align:left;background:#344531}
#game-chat button.chat-item-link{display:inline;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#e8c66c;font:inherit;text-decoration:underline;text-underline-offset:2px;text-align:left}
#game-chat button.chat-item-link:hover{color:#fff0b5}
#game-chat .chat-draft-links{padding:5px 8px;background:#102016f2;border:1px solid #827044;flex-shrink:0;display:flex;gap:8px;flex-wrap:wrap}

#game-chat .chat-editor{flex:1;min-width:0;min-height:23px;max-height:29px;padding:4px 0;outline:0;border:0;background:transparent;color:#fff0d0;font:14px/21px 'Segoe UI',sans-serif;white-space:pre;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;cursor:text}
#game-chat .chat-editor:empty::before{content:attr(data-placeholder);color:#9da38e;pointer-events:none}
#game-chat .chat-editor .chat-item-link{display:inline;color:#e8c66c;text-decoration:underline;text-underline-offset:2px;cursor:pointer;white-space:nowrap}

#game-chat .chat-history{scrollbar-width:none}
#game-chat .chat-history::-webkit-scrollbar{display:none}
#game-chat .chat-scroll-track{position:absolute;left:3px;top:5px;bottom:26px;width:12px;background:#0c140edb;touch-action:none}
#game-chat .chat-scroll-track[hidden]{display:none}
#game-chat .chat-scroll-thumb{position:absolute;left:1px;width:10px;min-height:24px;background:linear-gradient(90deg,#574d33,#a39161,#574d33);border:1px solid #172018;border-radius:5px;box-sizing:border-box}

#game-chat p.chat-quest,#game-chat p.chat-quest time{color:#f1d368}
