#scene-chat {box-sizing:border-box;width:min(860px,calc(100% - 24px));height:min(810px,calc(100dvh - 24px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #929f8e;background:#14211e;color:#f6f3e6;box-shadow:0 18px 80px #000a;overflow:hidden}
#scene-chat[hidden] {display:none}
#scene-chat::backdrop {background:#08110ed9}
.scene-chat-shell {display:flex;flex-direction:column;height:100%}
.scene-chat-shell header {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 14px;border-bottom:1px solid #67776c}
.scene-chat-shell h2 {font:600 1.15rem/1.25 system-ui,sans-serif;color:#f6f3e6;margin:0}
#scene-chat-close {min-height:44px;font:600 1rem/1.2 system-ui,sans-serif;padding:7px 14px;border:1px solid #8a9c8c;color:#fbf7e8;background:#253731;cursor:pointer}
#scene-chat-close:focus-visible {outline:3px solid #f2c779;outline-offset:2px}
#scene-chat-content {flex:1;min-height:0}
#scene-chat-content iframe {display:block;width:100%;height:100%;border:0;background:#131d1a}
@media(max-width:580px),(max-height:480px) {
  #scene-chat {width:100%;height:100dvh;border-width:0}
  .scene-chat-shell header {padding:4px 10px}
}

#scene-chat-hud:not([hidden]), #scene-chat-line:not([hidden]) {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;cursor:pointer}
#scene-chat-hud kbd, #scene-chat-line kbd, #scene-chat-briefing kbd, #scene-chat-pause kbd {
  display:inline-block;padding:2px 5px;border:1px solid #a99c75;border-radius:3px;
  background:#18251f;color:#fff0be;font:700 .82em/1.1 system-ui,sans-serif;
}
#scene-chat-line {margin:0 0 8px;border:1px solid #c2ab79;color:#fff1cc;background:#24332f}
.hud-top #scene-chat-hud {z-index:1;pointer-events:auto}
