/* Game TV classic chat. Kept inside the arena, above its skill controls. */
#worldChat{inset:var(--wc-screen-top,8px) 8px var(--wc-screen-bottom,8px);z-index:6;font:12px/1.45 var(--font,'IBM Plex Mono',monospace);color:#e9e1c2;pointer-events:none}
#worldChat.wc-emoji-active{z-index:6}
#worldChat *{box-sizing:border-box}
#worldChat [hidden]{display:none!important}
#worldChat .wc-toggle,#worldChat.wc-maximized .wc-toggle{position:absolute;left:104px;bottom:0;width:auto;min-width:94px;padding:0 8px;white-space:nowrap;height:32px;border:1px solid #a69865;border-radius:3px;background:linear-gradient(#4c4830,#201f13);box-shadow:inset 0 1px #d6cc9622,0 2px 5px #0009;color:#f1dc9b;font:12px var(--font);pointer-events:auto}
#worldChat .wc-panel{position:absolute;inset:auto auto 76px 0;width:min(460px,100%);height:min(350px,calc(100% - 76px));min-height:0;max-height:calc(100% - 76px);display:flex;flex-direction:column;border:1px solid #8a8566;border-radius:3px;background:#11170ff5;box-shadow:inset 0 0 0 1px #333a29,0 3px 12px #0009;backdrop-filter:none;-webkit-backdrop-filter:none;overflow:hidden;pointer-events:auto;transition:none}
#worldChat.wc-maximized{inset:var(--wc-screen-top,8px) 8px var(--wc-screen-bottom,8px)}
#worldChat.wc-maximized::before{display:none}
#worldChat .wc-panel.wc-maximized{inset:0 auto 40px 0;width:min(620px,100%);height:auto;max-height:none;min-height:0;transform:none;background:#11170ffa;backdrop-filter:none;-webkit-backdrop-filter:none}
#worldChat button{font-family:inherit;cursor:pointer;text-shadow:none}
#worldChat :focus-visible{outline:2px solid #efcf70!important;outline-offset:-2px}
#worldChat .wc-topline,#worldChat .wc-panel.wc-maximized .wc-topline{position:relative;display:flex;flex:none;flex-wrap:nowrap;align-items:center;gap:4px;min-height:34px;padding:3px 5px;border-bottom:1px solid #716b4e;background:linear-gradient(#4b4e3f,#252a1e);text-shadow:0 1px #000;opacity:1;visibility:visible;pointer-events:auto;transition:none}
#worldChat .wc-tabs{display:flex;min-width:0;gap:3px;flex:none;visibility:visible}
#worldChat .wc-tab{min-height:27px;padding:3px 9px;border:1px solid #6c7154;border-radius:2px;color:#d2d0b3;background:linear-gradient(#303a28,#1a2418);font:11px/1.4 var(--font);white-space:nowrap}
#worldChat .wc-tab.active{border-color:#c0a961;background:linear-gradient(#887241,#443518);color:#ffe499;box-shadow:inset 0 1px #e3d39733;font-weight:600}
#worldChat .wc-online{margin-left:auto;white-space:nowrap;min-width:0;color:#a5d291;font-size:10px}
#worldChat .wc-maximize,#worldChat .wc-close,#worldChat .wc-panel.wc-maximized .wc-maximize{position:static;display:grid;place-items:center;flex:none;width:27px;height:27px;min-height:27px;margin:0;padding:0;border:1px solid #a49c75;border-radius:2px;background:linear-gradient(#4b503a,#232919);box-shadow:inset 0 1px #d7d2b022;color:#eae0b6;font:17px/1 var(--font);visibility:visible;opacity:1}
#worldChat .wc-header-right{display:flex;flex:none;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:5px;min-width:0;min-height:29px;padding:3px 7px;border-bottom:1px solid #353e2b;background:#192114;line-height:1.3;visibility:visible;overflow-x:auto;scrollbar-width:thin}
#worldChat .wc-header-right button,#worldChat #gameCommunityButton,#worldChat #gameHallButton{flex:none;min-height:23px;margin:0;padding:2px 6px;border:1px solid #566044;border-radius:2px;background:#222e1c;color:#d6d0a6;box-shadow:none;font:10px/1.4 var(--font);white-space:nowrap}
#worldChat .wc-header-right button:hover{border-color:#b6a269;color:#fff0ba;background:#36432b}
#worldChat .wc-header-right .wc-telegram{color:#aecac6}
#worldChat .wc-ai{font-size:9px;color:#a2c8df;margin:0}
#worldChat .wc-context{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#worldChat .wc-list,#worldChat .wc-system-list{position:relative;flex:1;min-height:0;min-width:0;overflow:auto;overflow-x:hidden;padding:5px 8px;background:#0d140df0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#6b7251 #172013;text-shadow:none;user-select:text;-webkit-user-select:text;overflow-anchor:none}
#worldChat .wc-list:empty::before{content:'Chưa có tin nhắn. Gửi lời chào đến các hiệp khách!';display:block;padding:14px 4px;font-size:11px;line-height:1.6;color:#a4ad91;text-align:center}
#worldChat .wc-system-list:empty::before{content:'Chưa có hoạt động mới.';display:block;padding:12px 4px;color:#a4ad91;font-size:11px}
#worldChat .wc-line{padding:3px 0;border-bottom:1px solid #b4bb8810;color:#e9e4cd;font-size:12px;line-height:1.6;overflow-wrap:anywhere;word-break:normal}
#worldChat .wc-line:last-child{border-bottom:0}
#worldChat .wc-time{color:#919e83;font-size:10px;font-variant-numeric:tabular-nums}
#worldChat .wc-name,#worldChat .wc-name.wc-member-link{color:#f0d47b;font-weight:600}
#worldChat .wc-name.wc-ai-name{color:#9acfe9}
#worldChat .wc-name.wc-gm-name{color:#ffc45c;-webkit-text-stroke:0;text-shadow:none}
#worldChat .wc-faction,#worldChat .wc-level{font-size:10px;color:#9bb99b}
#worldChat .wc-message-text{color:#eee8d0}
#worldChat .wc-line.wc-notice-line{margin:6px 0;padding:9px 11px;border:1px solid #b8a06340;border-left:3px solid #b8a063;border-radius:5px;background:linear-gradient(110deg,#283525,#17241a);min-width:0}
#worldChat .wc-notice-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:4px;min-width:0}
#worldChat .wc-notice-title{color:#ecd591;font-size:12px;line-height:1.5;min-width:0;overflow-wrap:anywhere}
#worldChat .wc-notice-header .wc-time{flex:0 0 auto;font-size:10px;color:#a8b29c}
#worldChat .wc-notice-line .wc-message-text{display:block;white-space:pre-wrap;line-height:1.65;overflow-wrap:anywhere}
#worldChat .wc-notice-line .wc-message-text strong{color:#f5df9f;font-weight:700}
#worldChat .wc-notice-line .wc-message-text em{color:#bcc4ad}
#worldChat .wc-shared-item-link{color:#e4beff;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px;text-shadow:none}
#worldChat .wc-system-list{color:#b3b49c;font-size:11px;line-height:1.5}
#worldChat .wc-system-list>div{padding:3px 0;overflow-wrap:anywhere}
#worldChat .wc-latest{flex:none;align-self:center;max-width:100%;padding:3px 12px;min-height:26px;margin:2px 0;border:1px solid #988453;border-radius:2px;color:#ffe0a0;background:#46391c;font-size:11px}
#worldChat .wc-form{flex:none;margin:0;padding:6px 7px 3px;border-top:1px solid #6f704e;background:#212b1a;opacity:1;visibility:visible;pointer-events:auto;transition:none}
#worldChat .wc-compose{display:flex;align-items:center;gap:5px}
#worldChat .wc-input{min-width:0;flex:1;height:32px;min-height:32px;padding:0 7px;border:1px solid #777b58;border-radius:2px;background:#080f08;color:#f4ecd2;box-shadow:inset 0 1px 4px #0009;font:12px var(--font);transition:none}
#worldChat .wc-input::placeholder{color:#a1ab91;font-size:11px}
#worldChat .wc-emoji-toggle,#worldChat .wc-send{flex:none;height:32px;min-height:32px;padding:0 10px;border:1px solid #aaa16b;border-radius:2px;background:linear-gradient(#595b3c,#2d331d);color:#eee3b0;font:12px var(--font);transition:none}
#worldChat .wc-emoji-toggle{width:32px;padding:0;font-size:21px}
#worldChat .wc-send{background:linear-gradient(#796636,#403117);border-color:#b6a163;color:#ffe59b}
#worldChat .wc-compose-meta{display:flex;align-items:center;gap:6px;min-height:17px;font-size:10px;line-height:1.4;padding-top:2px}
#worldChat .wc-count{margin-left:auto;flex:none;color:#a2aa8c;font-size:9px;font-variant-numeric:tabular-nums}
#worldChat .wc-status{min-width:0;overflow-wrap:anywhere;color:#efd190}
#worldChat .wc-status[data-state=error]{color:#ffb8a6}
#worldChat .wc-status[data-state=ok]{color:#b3d992}
#worldChat .wc-emoji-picker{inset:auto 6px 63px auto;width:min(300px,calc(100% - 12px));height:min(210px,calc(100% - 102px));min-height:60px;border:1px solid #9b956d;border-radius:2px;background:#142011;box-shadow:0 2px 10px #000b}
#worldChat .wc-panel.wc-emoji-open:not(.wc-maximized){min-height:0}
#worldChat .wc-emoji-toolbar{height:28px;min-height:28px;background:linear-gradient(#454c36,#242e1c);color:#eddeb0}
#worldChat .wc-emoji-close{width:24px;height:23px;border-radius:2px;background:#323e26;color:#f2dfaa}
#worldChat .wc-emoji-grid{grid-template-columns:repeat(auto-fill,minmax(32px,1fr));gap:3px;padding:5px}
#worldChat .wc-emoji-item{height:32px;font:22px/1 'Segoe UI Emoji',sans-serif}
@media(max-width:600px){
 #worldChat{inset:var(--wc-screen-top,6px) 6px var(--wc-screen-bottom,6px)}
 #worldChat.wc-maximized{inset:var(--wc-screen-top,6px) 6px var(--wc-screen-bottom,6px)}
 #worldChat .wc-panel{width:100%;bottom:156px;height:min(330px,calc(100% - 156px));max-height:calc(100% - 156px)}
 #worldChat .wc-panel.wc-maximized{bottom:40px;height:auto;max-height:none}
 #worldChat .wc-topline{gap:3px;padding:3px}
 #worldChat .wc-tab{padding:4px 6px;min-height:34px;font-size:12px}
 #worldChat .wc-maximize,#worldChat .wc-close,#worldChat .wc-panel.wc-maximized .wc-maximize{width:30px;height:30px;min-height:30px}
 #worldChat .wc-header-right{padding:3px 5px;gap:4px}
 #worldChat .wc-header-right button,#worldChat #gameHallButton,#worldChat #gameCommunityButton{min-height:28px;padding:3px 5px}
 #worldChat .wc-online{font-size:9px}
 #worldChat .wc-line{font-size:13px;line-height:1.5}
 #worldChat .wc-form{padding:5px 5px 2px}
 #worldChat .wc-input,#worldChat .wc-emoji-toggle,#worldChat .wc-send{height:36px;min-height:36px}
 #worldChat .wc-input{font-size:16px}
 #worldChat .wc-send{padding:0 9px}
 #worldChat .wc-emoji-picker{bottom:66px}
}
@media(max-height:500px) and (orientation:landscape){
 #worldChat .wc-panel{top:auto;bottom:44px;height:min(calc(100% - 44px),calc(100dvh - 128px));max-height:none;width:min(420px,60%)}
 #worldChat .wc-panel.wc-maximized{top:auto;bottom:36px;width:min(620px,100%);height:min(calc(100% - 36px),calc(100dvh - 128px))}
 #worldChat .wc-header-right{min-height:24px;padding:1px 5px}
 #worldChat .wc-form{padding:3px 5px 1px}
 body:not(.mob) #worldChat .wc-panel{position:fixed;top:auto;left:8px;right:auto;bottom:48px;width:min(420px,calc(100vw - 16px));height:calc(100dvh - 104px)}
 body:not(.mob) #worldChat .wc-panel.wc-maximized{bottom:40px;width:min(620px,calc(100vw - 16px));height:calc(100dvh - 56px)}
 body.mob #worldChat .wc-panel,body.mob #worldChat .wc-panel.wc-maximized{top:auto;bottom:0;width:100%;height:100%;max-height:none}
}
@media(max-height:600px) and (max-width:600px) and (orientation:portrait){
 #worldChat .wc-panel,#worldChat .wc-panel.wc-maximized{top:auto;bottom:40px;height:calc(100% - 40px);max-height:none;width:100%}
}

/* Item artwork is shared by the picker, composer and message details. */
#worldChat .wc-shared-item-link img{display:inline-block;width:26px;height:30px;object-fit:contain;vertical-align:middle;margin:0 4px 1px 1px;border:1px solid #82734f;border-radius:2px;background:#172017;image-rendering:pixelated}
#worldChat .wc-draft-item{display:flex;align-items:center;gap:7px;max-width:100%;margin:0 0 5px;padding:3px 7px;border:1px solid #85714e;border-radius:2px;background:#131d12;color:#e9d498;font:11px/1.4 var(--font);text-align:left;cursor:pointer}
#worldChat .wc-draft-item img{flex:none;width:30px;height:32px;object-fit:contain;image-rendering:pixelated}
#worldChat .wc-draft-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* A public result scroll: two opponents, canonical art, and a readable outcome. */
#worldChat .wc-mentor-result-line{padding:6px 0}
#worldChat .wc-mentor-result{position:relative;width:100%;min-width:0;max-width:100%;overflow:hidden;border:1px solid #887043;border-radius:5px;background:radial-gradient(ellipse at 50% 0,#72613126,transparent 70%),linear-gradient(135deg,#1b281f,#101a15 65%,#22291b);box-shadow:inset 0 0 0 3px #10170fa8,0 2px 6px #0005;color:#e9e1c8;line-height:1.35}
#worldChat .wc-mentor-result::before,#worldChat .wc-mentor-result::after{content:'';position:absolute;z-index:1;width:9px;height:9px;pointer-events:none;border-color:#c6a662;border-style:solid}
#worldChat .wc-mentor-result::before{top:3px;left:3px;border-width:1px 0 0 1px}
#worldChat .wc-mentor-result::after{right:3px;bottom:3px;border-width:0 1px 1px 0}
#worldChat .wc-duel-heading{padding:7px 11px 6px;border-bottom:1px solid #b39a5733;background:linear-gradient(90deg,#8c71370a,#bca15e14,#8c71370a)}
#worldChat .wc-duel-heading-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
#worldChat .wc-duel-kicker{color:#bfa978;font-size:9px;font-weight:600;letter-spacing:.15em;text-transform:uppercase}
#worldChat .wc-mentor-result .wc-time{color:#b3b69e;font-size:9px}
#worldChat .wc-duel-title{margin:3px 0 0;color:#f5d893;font:600 16px/1.3 var(--font,'IBM Plex Mono',monospace);overflow-wrap:anywhere}
#worldChat .wc-mentor-result[data-outcome=mentor] .wc-duel-title{color:#e4c7a1}
#worldChat .wc-mentor-result[data-outcome=draw] .wc-duel-title{color:#c6dbc9}
#worldChat .wc-duel-combatants{display:grid;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);align-items:stretch;gap:5px;padding:10px 9px 8px}
#worldChat .wc-duel-fighter{display:grid;grid-template-rows:auto 1fr auto;justify-items:center;gap:6px;min-width:0;text-align:center}
#worldChat .wc-duel-portrait{position:relative;width:58px;height:58px;flex:none;padding:2px;border:1px solid #687056;border-radius:5px;background:#0c1712;box-shadow:0 2px 5px #0007}
#worldChat .wc-duel-player-art,#worldChat .wc-duel-mentor-art{display:block;width:100%;height:100%;border-radius:2px;background-repeat:no-repeat}
#worldChat .wc-duel-player-art{background-image:url('../ui/toolbar/wuxia-atlas-20261010.png');background-position:0 50%;background-size:300% 300%}
#worldChat .wc-duel-mentor-art{background-image:url('../ui/mentors/masters-20261010.png');background-size:500% 200%}
#worldChat .wc-duel-standing{position:absolute;left:50%;bottom:-5px;transform:translateX(-50%);min-width:36px;padding:1px 5px;border:1px solid #66765f;border-radius:2px;background:#203022;color:#cad4bc;font-size:9px;font-weight:600;white-space:nowrap}
#worldChat .wc-duel-fighter[data-result=win] .wc-duel-portrait{border-color:#ddbb6c;box-shadow:0 0 0 2px #b7984630,0 2px 6px #0008}
#worldChat .wc-duel-fighter[data-result=win] .wc-duel-standing{border-color:#c7a15a;background:linear-gradient(#8c6c31,#4f3b1c);color:#fff0c5}
#worldChat .wc-duel-fighter[data-result=loss] .wc-duel-standing{border-color:#947c62;background:#332920;color:#dbbba3}
#worldChat .wc-duel-identity{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;width:100%}
#worldChat .wc-duel-role{padding-top:1px;color:#a9b39b;font-size:9px;letter-spacing:.05em;text-transform:uppercase}
#worldChat .wc-duel-name{display:block;max-width:100%;color:#f1e5c3;font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
#worldChat .wc-duel-school{color:#b7c5b0;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
#worldChat .wc-duel-health{display:flex;flex-direction:column;gap:3px;width:100%;max-width:132px;min-width:0}
#worldChat .wc-duel-hp{display:block;width:100%;height:4px;overflow:hidden;border-radius:2px;background:#050e09;box-shadow:0 0 0 1px #899d6b30}
#worldChat .wc-duel-hp-fill{display:block;height:100%;max-width:100%;background:linear-gradient(90deg,#57754a,#b4c783)}
#worldChat .wc-duel-hp-text{color:#aab89c;font-size:10px;font-variant-numeric:tabular-nums}
#worldChat .wc-duel-versus{display:flex;align-self:start;align-items:center;flex-direction:column;gap:6px;min-width:0;padding-top:12px}
#worldChat .wc-duel-emblem{display:block;width:32px;height:32px;background:url('../ui/toolbar/wuxia-atlas-20261010.png') 50% 0/300% 300% no-repeat;filter:drop-shadow(0 1px 2px #0008)}
#worldChat .wc-duel-versus-label{color:#b19b6b;font-size:8px;line-height:1.4;text-align:center}
#worldChat .wc-duel-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:3px 8px;padding:5px 10px;border-top:1px solid #a28d5140;background:#0c160f80;color:#bdc7aa;font-size:11px;line-height:1.5}
#worldChat .wc-duel-duration{color:#d6bc80;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:360px){
 #worldChat .wc-duel-combatants{grid-template-columns:minmax(0,1fr) 25px minmax(0,1fr);gap:4px;padding:6px 7px 4px}
 #worldChat .wc-duel-fighter{gap:4px}
 #worldChat .wc-duel-portrait{width:50px;height:50px}
 #worldChat .wc-duel-emblem{width:25px;height:25px}
 #worldChat .wc-duel-title{font-size:15px}
 #worldChat .wc-duel-name{font-size:13px}
}
