body:not(.is-setup) #inGameChat>.room-feature-head strong{min-width:0;flex:1;white-space:normal;overflow-wrap:normal;}
body:not(.is-setup) #inGameChat>.room-feature-head>span{flex:0 0 auto;}
@media(max-width:420px){body:not(.is-setup) #inGameChat>.room-feature-head strong{font-size:16px!important;gap:7px;}body:not(.is-setup) .comms-chat-icon{width:30px!important;height:32px!important;}body:not(.is-setup) #inGameChat>.room-feature-head>span{padding:6px 7px;font-size:10px;}}
body:not(.is-setup) .journal-reference-v136,body:not(.is-setup) #inGameChat:not([hidden]),body:not(.is-setup) .log-panel>#voice-controls{outline:1px solid #9c7d4266;outline-offset:-5px;}
/* Bound the complete stack, replacing the old 160px journal grid. */
@media(min-width:1201px),(min-width:901px) and (pointer:fine){
body:not(.is-setup) .app-shell{box-sizing:border-box;width:100%;max-width:none;height:100dvh;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) clamp(400px,27vw,490px);grid-template-rows:36px 40px minmax(0,1fr) 254px;grid-template-areas:'topbar topbar' 'status log' 'board log' 'controls log';gap:10px;padding:10px 14px 12px;}
body:not(.is-setup) .topbar{grid-area:topbar;position:static;min-height:0;margin:0;}
body:not(.is-setup) .status-strip{grid-area:status;min-height:0;margin:0;}
body:not(.is-setup) .board-wrap{grid-area:board;position:relative;min-width:0;min-height:0;height:100%;margin:0;overflow:hidden;}
body:not(.is-setup) .controls.reference-hud{grid-area:controls;position:relative;inset:auto;box-sizing:border-box;width:100%;height:254px;min-height:0;margin:0;}
body:not(.is-setup) .log-panel{grid-area:log;position:relative;inset:auto;width:100%;height:100%!important;max-height:100%;min-height:0;display:flex;flex-direction:column;gap:16px;overflow-x:hidden;overflow-y:auto;transform:none;z-index:40;}
body:not(.is-setup) .log-panel .journal-reference-v136{flex:0 0 auto;}
body:not(.is-setup) .log-panel #inGameChat{flex:1 0 300px;min-height:0;margin:0;}
body:not(.is-setup) .log-panel #inGameChatFeed{flex:1 1 150px;height:auto;min-height:120px;max-height:none;}
body:not(.is-setup) .log-panel>#voice-controls{flex:0 0 auto;}
}
@media(max-width:900px),(pointer:coarse) and (max-width:1200px){body:not(.is-setup).hud-open .log-panel{position:fixed;inset:56px 10px 12px;width:auto;height:auto!important;max-height:none;display:flex!important;flex-direction:column;gap:16px;overflow-x:hidden;overflow-y:auto;transform:none;z-index:840;}body:not(.is-setup) .log-panel>#voice-controls{flex-shrink:0;}}
body:not(.is-setup) .journal-reference-v136{flex:none;}
body:not(.is-setup) #inGameChat:not([hidden]){flex:none;}
/* Actual ornaments, icons and scenery extracted from Kevin's communication reference. */
body:not(.is-setup) .log-panel{padding:12px;gap:16px;background:#09121ef0;border:0;border-radius:0;box-shadow:0 12px 40px #0009;}
body:not(.is-setup) .journal-reference-v136,body:not(.is-setup) #inGameChat:not([hidden]){position:relative;isolation:isolate;box-sizing:border-box;min-width:0;border:0;border-radius:0;color:#d8dce2;box-shadow:none;background:linear-gradient(100deg,#08121de8,#0d1927bd),url('./assets/comms-forest-v136.webp') center/cover;}
body:not(.is-setup) .journal-reference-v136{padding:22px 20px 18px;background:linear-gradient(90deg,#0b1420 30%,#0b142080),url('./assets/comms-castle-v136.webp') right center/auto 100% no-repeat;}
body:not(.is-setup) .journal-reference-v136::before,body:not(.is-setup) #inGameChat::before{content:"";position:absolute;inset:-3px;pointer-events:none;z-index:-1;border:26px solid transparent;border-image:url('./assets/comms-journal-frame-v138.webp') 38/26px stretch;}
body:not(.is-setup) #inGameChat::before{border-image-source:url('./assets/comms-chat-frame-v138.webp');}
body:not(.is-setup) .log-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 12px;padding:0;border:0;background:none;}
body:not(.is-setup) .log-panel-head>div{display:flex;align-items:center;gap:12px;min-width:0;}
body:not(.is-setup) .log-panel h2{margin:0;color:#f1e9d6;font:600 20px/1.25 Georgia,'Times New Roman',serif;letter-spacing:.035em;text-transform:uppercase;text-shadow:0 2px 3px #000;}
body:not(.is-setup) .comms-journal-icon{flex:0 0 auto;width:47px;height:47px;object-fit:contain;}
body:not(.is-setup) .log-panel #hudCloseBtn{flex:0 0 32px;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;color:#bdb6a6;background:#101d2999;border:1px solid #9e875a77;border-radius:3px;font-size:23px;}
body:not(.is-setup) .log-panel #logList{margin:0;padding:0 0 0 18px;max-height:150px;overflow:auto;color:#c9cfd7;font:13px/1.6 Georgia,'Times New Roman',serif;overflow-wrap:anywhere;}
body:not(.is-setup) .log-panel #logList li{padding:0 0 4px;background:none;border:0;}
body:not(.is-setup) #inGameChat:not([hidden]){display:flex;flex-direction:column;gap:16px;margin:18px 0 0;padding:24px 18px 18px;}
body:not(.is-setup) #inGameChat>.room-feature-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;border:0;}
body:not(.is-setup) #inGameChat>.room-feature-head strong{display:flex;align-items:center;gap:10px;color:#f1e9d6;font:600 20px/1.25 Georgia,'Times New Roman',serif;letter-spacing:.045em;text-transform:uppercase;}
body:not(.is-setup) .comms-chat-icon{width:44px;height:40px;flex:0 0 auto;object-fit:contain;}
body:not(.is-setup) #inGameChat>.room-feature-head>span{display:inline-block;padding:7px 11px;border:1px solid #9b7c42;background:#111c29;color:#c6a969;font:12px/1.3 Georgia,serif;letter-spacing:.08em;text-transform:uppercase;clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px);}
body:not(.is-setup) #inGameChatFeed{box-sizing:border-box;width:100%;height:clamp(150px,28dvh,310px);min-height:120px;max-height:310px;margin:0;padding:18px 14px;overflow:auto;scrollbar-width:thin;scrollbar-color:#91a7b5 #0a111e;background:linear-gradient(#050b16df,#07111dd6),url('./assets/comms-forest-v136.webp') center/cover;border:1px solid #3e4b5a;border-radius:0;box-shadow:inset 0 2px 12px #0008;overflow-wrap:anywhere;}
body:not(.is-setup) #inGameChatFeed>small{color:#c5c9d2;font:14px/1.5 Georgia,'Times New Roman',serif;}
body:not(.is-setup) #inGameChatFeed>p{display:grid;gap:3px;margin:0 0 14px;padding:0;background:none;border:0;font-size:13px;line-height:1.5;}
body:not(.is-setup) #inGameChatFeed>p>strong{color:#d4bb83;font-size:12px;}
body:not(.is-setup) #inGameChatFeed>p.self>strong{color:#99d9ef;}
body:not(.is-setup) #inGameChatFeed>p>span{color:#e0e3e8;}
body:not(.is-setup) #inGameChat>.room-chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch;}
body:not(.is-setup) #inGameChatInput{box-sizing:border-box;width:100%;min-width:0;min-height:46px;margin:0;padding:10px 12px;border:1px solid #475567;border-radius:1px;background:linear-gradient(#111e2d,#0b1522);box-shadow:inset 0 1px 7px #0007;color:#f4eee3;font:16px/1.3 Georgia,'Times New Roman',serif;}
body:not(.is-setup) #inGameChatSend{position:relative;min-height:46px;padding:9px 20px;border:2px solid #ac965e;border-radius:2px;background:linear-gradient(170deg,#52b6f2 0%,#2160ad 25%,#103862 70%,#2d8bcb);box-shadow:inset 0 0 0 2px #7cddfa88,inset 0 0 10px #44caff66,0 0 10px #1497d544;color:#f5f1e6;font:600 18px/1.2 Georgia,'Times New Roman',serif;text-shadow:0 2px 2px #001c36;cursor:pointer;}
body:not(.is-setup) #inGameChatSend::before,body:not(.is-setup) #inGameChatSend::after{content:"";position:absolute;top:calc(50% - 4px);width:7px;height:7px;transform:rotate(45deg);background:#57d2fb;border:1px solid #c1ad75;box-shadow:0 0 5px #42ceff;pointer-events:none;}
body:not(.is-setup) #inGameChatSend::before{left:-5px;}body:not(.is-setup) #inGameChatSend::after{right:-5px;}
body:not(.is-setup) #voice-controls{font-family:Georgia,'Times New Roman',serif;}
body:not(.is-setup) .log-panel>#voice-controls{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;box-sizing:border-box;width:100%;margin:0;padding:15px 12px;border:0;border-radius:0;background:#0b1423;}
body:not(.is-setup) .log-panel>#voice-controls::before{content:"";position:absolute;inset:-3px;z-index:-1;pointer-events:none;border:24px solid transparent;border-image:url('./assets/comms-voice-frame-v138.webp') 24/22px stretch;}
body:not(.is-setup) #voice-controls .voice-session-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 13px;border:1px solid #6cdcc8;border-radius:2px;background:linear-gradient(160deg,#2eac9d,#114a46 35%,#092c35 75%,#359e9b);box-shadow:inset 0 0 0 2px #59c4b555,inset 0 0 8px #3ff5d533;color:#eef4e8;font:600 14px/1.25 Georgia,'Times New Roman',serif;white-space:normal;}
body:not(.is-setup) #voice-controls [data-voice-action="join"]::before,body:not(.is-setup) #voice-controls .voice-session-status::before{content:"";display:inline-block;flex:0 0 auto;width:21px;height:26px;background:#8af2dc;mask:url('./assets/comms-microphone-v136.svg') center/contain no-repeat;}
body:not(.is-setup) #voice-controls .voice-session-status{position:relative;display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;max-width:100%;min-height:42px;padding:8px 10px;border:1px solid #3b4858;border-radius:2px;background:#0a1522;color:#a8afba;font:12px/1.4 Georgia,'Times New Roman',serif;}
body:not(.is-setup) #voice-controls[data-joined="false"] .voice-session-status::before,body:not(.is-setup) #voice-controls[data-muted="true"] .voice-session-status::before{background:#88939f;}
body:not(.is-setup) #voice-controls[data-joined="false"] .voice-session-status::after,body:not(.is-setup) #voice-controls[data-muted="true"] .voice-session-status::after{content:"";position:absolute;top:20px;left:9px;width:24px;height:2px;background:#ce5a60;transform:rotate(-48deg);}
body:not(.is-setup) #voice-controls [data-voice-action="mute"][aria-pressed="true"]{border-color:#ad726a;background:linear-gradient(#51312f,#251d27);}
body:not(.is-setup) :is(#inGameChatSend,#inGameChatInput,#voice-controls button):focus-visible{outline:2px solid #a5e2f9;outline-offset:3px;}
body:not(.is-setup) #inGameChatSend:disabled{opacity:.5;cursor:wait;}
body.chat111-open #inGameChat.chat111-drawer:not([hidden]){border:0;border-radius:0;background:#0a1422;padding:24px 18px 16px;}
@media(max-width:600px){body:not(.is-setup) .log-panel{padding:8px;}body:not(.is-setup) .journal-reference-v136{padding:19px 12px 16px;}body:not(.is-setup) .log-panel-head>div{gap:8px;}body:not(.is-setup) .comms-journal-icon{width:36px;height:40px;}body:not(.is-setup) .log-panel h2{font-size:17px;}body:not(.is-setup) #inGameChat:not([hidden]){padding:21px 12px 16px;gap:12px;}body:not(.is-setup) #inGameChat>.room-feature-head strong{font-size:19px;}body:not(.is-setup) #inGameChatSend{padding:9px 13px;font-size:16px;}body:not(.is-setup) .turn-actions>#voice-controls .voice-session-button{min-height:34px;padding:5px 8px;font-size:11px;box-shadow:none;}body:not(.is-setup) .turn-actions>#voice-controls .voice-session-status{min-height:30px;padding:3px 7px;font-size:10px;}body:not(.is-setup) .turn-actions>#voice-controls .voice-session-status::before{width:14px;height:20px;}body:not(.is-setup) .turn-actions>#voice-controls .voice-session-status::after{top:14px;left:6px;width:18px;}}
