.chat-panel{display:flex;flex-direction:column;min-height:min(62vh,620px);max-width:900px;border:1px solid #527d6b;border-radius:14px;background:linear-gradient(160deg,#173c3b,#102b34);overflow:hidden}
.chat-messages{flex:1;min-height:300px;max-height:60vh;overflow-y:auto;padding:16px 20px;color:#e8f2e7;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.chat-message{margin:0;padding:7px 0;border-bottom:1px solid #41645780}
.chat-message strong{color:#f1cf7a}
.chat-status{min-height:22px;margin:0;padding:0 16px;color:#f1cf7a;font-size:12px}
.chat-form{display:flex;gap:8px;padding:10px 14px 5px;border-top:1px solid #527d6b}
.chat-form input{flex:1;min-width:0;min-height:42px;padding:8px 12px;border:1px solid #608873;border-radius:8px;background:#0b252e;color:#f3f6ec;font:inherit}
.chat-form input:focus-visible{outline:2px solid #f1cf7a;outline-offset:1px}
.chat-form button{min-width:76px;min-height:42px;padding:8px 13px;border:1px solid #f6d98a;border-radius:8px;background:linear-gradient(#f0d483,#c5a450);color:#17332b;font-weight:800;cursor:pointer}
.chat-form button:disabled{cursor:default;opacity:.55}
.chat-hint{padding:0 16px 12px;color:#b1cbbd;font-size:11px}
@media(max-width:760px){.chat-panel{min-height:calc(100dvh - 260px)}.chat-messages{min-height:220px;padding:10px 12px;font-size:13px}.chat-form{padding:8px}.chat-form button{min-width:68px}}
html.v2 .v2-chat-panel{display:flex;flex:1 1 auto;flex-direction:column;min-height:250px;padding:12px;border:1px solid #577c70;border-radius:13px;background:linear-gradient(150deg,#1b4141,#122c35);overflow:hidden}
html.v2 .v2-chat-panel .chat-panel{flex:1;min-height:0;max-width:none;border:0;border-radius:0;background:transparent}
html.v2 .v2-chat-panel .chat-messages{min-height:0;max-height:none;padding:4px 3px;font-size:12px}
html.v2 .v2-chat-panel .chat-message{padding:5px 0}
html.v2 .v2-chat-panel .chat-form{padding:8px 0 4px}
html.v2 .v2-chat-panel .chat-form input,html.v2 .v2-chat-panel .chat-form button{min-height:38px}
html.v2 .v2-chat-panel .chat-form button{min-width:58px;padding-inline:7px}
html.v2 .v2-chat-panel .chat-hint{padding:0 0 4px}
html.v2 .v2-chat-panel .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){html.v2 .v2-home{display:flex;flex-direction:column}html.v2 .v2-home-center{display:contents}html.v2 .v2-home .play-column{order:1}html.v2 .v2-home .v2-right{order:2}html.v2 .v2-home .world-panel{order:3}html.v2 .v2-chat-panel{order:-1;grid-column:1/-1;min-height:280px;height:300px}html.v2 .v2-chat-panel .chat-messages{min-height:0}}
