/* Phase 5.7 — Living World chatroom modal; same chatroom with visible blurred parent page. */
.ccw-shell .ccw-chat-trigger{width:100%;border:0;background:transparent;cursor:pointer;text-align:left;font:inherit;appearance:none;min-width:0}
.ccw-shell .ccw-chat-trigger:hover,.ccw-shell .ccw-chat-trigger:focus-visible{background:#302714}
.ccw-shell .ccw-chat-count-pill{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;margin-left:auto;padding:3px 6px;border-radius:30px;background:#2e2615;border:1px solid #775b25;color:#f2d18b;font-size:10px;font-weight:800;line-height:1.3}
.ccw-chat-overlay[hidden]{display:none!important}
.ccw-chat-overlay{position:fixed;inset:0;z-index:2147480000;display:grid;place-items:center;padding:8px 16px;color:#f6efe0;box-sizing:border-box}
.ccw-chat-scrim{position:absolute;inset:0;background:rgba(0,0,0,.52);-webkit-backdrop-filter:blur(9px) saturate(.8);backdrop-filter:blur(9px) saturate(.8)}
.ccw-chat-dialog{position:relative;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;width:min(1180px,calc(100vw - 56px));max-width:1180px;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border:1px solid #9a772e;border-radius:14px;box-shadow:0 18px 90px #000b,0 0 26px #d4af3726;background:#090909;outline:none}
.ccw-chat-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid #6c5629;background:linear-gradient(110deg,#17130c,#0b0b0b)}
.ccw-chat-title-wrap{display:flex;align-items:center;gap:12px;min-width:0}
.ccw-chat-live-dot{flex:none;width:11px;height:11px;border-radius:50%;background:#4abd79;box-shadow:0 0 10px #4abd79}
.ccw-chat-title-wrap h2{margin:0;color:#f2d18b;font-size:18px;line-height:1.2}
.ccw-chat-title-wrap p{margin:4px 0 0;color:#c8bfac;font-size:11px;line-height:1.4}
.ccw-chat-header-actions{display:flex;align-items:center;gap:12px;flex:none}
.ccw-chat-close:focus-visible{outline:2px solid #ffd87a;outline-offset:3px}
.ccw-chat-close{display:grid;place-items:center;flex:none;box-sizing:border-box;width:38px;height:38px;min-width:38px;min-height:38px;padding:0;border:1px solid #a88944;border-radius:50%;background:#231c10;color:#fff;cursor:pointer}
.ccw-chat-close svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round}
.ccw-chat-close:hover{background:#58421a;border-color:#e2b64d}
.ccw-chat-frame-wrap{position:relative;flex:1;min-height:0;background:#000}
.ccw-chat-frame-wrap iframe{display:block;width:100%;height:100%;border:0;background:#000}
.ccw-chat-loading{position:absolute;inset:0;display:grid;place-items:center;padding:25px;background:#090909;color:#e6ce97;text-align:center;pointer-events:none}
.ccw-chat-loading[hidden]{display:none!important}
.ccw-chat-sign-in{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:14px;padding:28px}
.ccw-chat-sign-in h3{font-size:21px;color:#f1d085;margin:0}
.ccw-chat-sign-in p{max-width:480px;font-size:13px;line-height:1.6;color:#ded5c5}
.ccw-chat-login{padding:12px 18px;border-radius:8px;background:#d4af37;color:#14100b!important;font-weight:850}
html.ccw-chat-modal-open{overflow:hidden!important}
@media(min-width:701px) and (max-width:940px){.ccw-chat-dialog{width:calc(100vw - 56px);height:calc(100dvh - 16px)}}
@media(max-width:700px){.ccw-chat-overlay{padding:0}.ccw-chat-dialog{width:100%;max-width:none;height:100dvh;max-height:none;border-radius:0}.ccw-chat-dialog-header{padding:9px 10px;gap:8px}.ccw-chat-title-wrap h2{font-size:15px}.ccw-chat-title-wrap p{font-size:10px}.ccw-chat-header-actions{gap:6px}.ccw-chat-close{width:34px;height:34px;min-width:34px;min-height:34px}.ccw-shell .ccw-chat-count-pill{font-size:9px}}
@media(prefers-reduced-motion:reduce){.ccw-chat-scrim{backdrop-filter:none;-webkit-backdrop-filter:none}}
