/* Botanicapi original pixel-office skin: game-native windows, not a website dashboard.
   Uses system fonts, CSS geometry, and original procedural audio. */
:root{
 --game-ink:#091323;--game-panel:#172b3c;--game-panel-inner:#102235;
 --game-edge:#8ab5b1;--game-gold:#ffd994;--game-mint:#a4e9bd;
}
.game-shell,.game-overlay,.game-drawer,.game-toolbar{font-family:ui-monospace,'Cascadia Code','Consolas',monospace}
.game-shell button,.game-drawer button,.game-drawer input,.game-drawer textarea,.game-drawer select{font-family:inherit}
.game-hud{
 box-shadow:inset 0 -4px #091a2d,0 4px #091323;
 background:repeating-linear-gradient(90deg,#172d42 0 13px,#192f44 13px 26px);
 border-bottom:3px solid #78afa2;
}
.game-hud .mark{
 border-radius:2px;border:2px solid #d8ffe4;box-shadow:3px 3px 0 #0a1320;
 width:36px;height:36px;background:#80d4ad;color:#10231c;
}
.game-hud-btn,.sound-toggle{
 border-radius:2px!important;border:2px solid #709a9b!important;
 box-shadow:3px 3px 0 #08131e;background:#23465c;color:#e5fbef;
 text-transform:uppercase;letter-spacing:.03em;font-size:11px;
}
.sound-toggle[aria-pressed="true"]{color:#091c19;background:#9cdebc;border-color:#e0ffe9!important}
.game-world{
 background:
 repeating-linear-gradient(0deg,transparent 0 43px,#ffffff05 44px 45px),
 radial-gradient(circle at 50% 35%,#23445c 0,#0a1728 72%);
}
.scene-topline,.scene-controls{
 background:#112439e5;border:2px solid #385872;padding:7px 11px;
 box-shadow:inset 0 0 0 2px #09192c,3px 3px 0 #080f1d;
}
.scene-topline strong{letter-spacing:.13em;color:#acefc4}
.scene-topline .office-statusbar span{
 border-radius:2px;background:#0b2030;border:1px solid #608b8e;
}
.office-scene .office-canvas-wrap{
 border:5px solid #769b95;
 outline:2px solid #14283b;
 box-shadow:inset 0 0 0 4px #061221,7px 7px 0 #071324,0 15px 30px #060e1890;
}
.game-toolbar{
 background:repeating-linear-gradient(90deg,#183449 0 20px,#152d43 20px 40px);
 border-top:4px solid #79b29d;box-shadow:inset 0 4px #0a192a,0 -5px 10px #050e1d;
}
.game-toolbar button{
 border:2px solid #618e88;
 border-radius:2px;
 background:#213f50;
 box-shadow:3px 3px 0 #081622,inset 0 2px #416979;
 text-transform:uppercase;letter-spacing:.015em;
}
.game-toolbar button:first-child{background:#315d4d;border-color:#a5e8b0}
.game-toolbar button:focus-visible,.game-hud button:focus-visible,
.game-drawer button:focus-visible,.office-bot:focus-visible{
 outline:3px solid #ffe4a4;outline-offset:3px;
}
.game-toolbar button:active,.game-hud button:active{box-shadow:1px 1px 0 #081622;transform:translate(2px,2px)}
.roster summary{border-radius:2px;border-width:2px;box-shadow:3px 3px #071322}
.roster[open] .office-bot-grid{
 border:4px double #7cb6a1;border-radius:3px;background:#11283c;
 box-shadow:7px 7px 0 #091522;
}
.office-bot{
 border-radius:2px;border:2px solid #5b8090;
 background:#244051;box-shadow:3px 3px #0a1728;
}
.office-bot.selected{background:#31524b;outline:2px solid #b1ffc6}
.game-overlay{backdrop-filter:blur(2px)}
.drawer-scrim{background:repeating-linear-gradient(45deg,#061019dc 0 8px,#0a1721d8 8px 16px)}
.game-drawer{
 border-left:6px solid #8eb7a5;border-top:6px solid #8eb7a5;
 background:repeating-linear-gradient(0deg,#162b3b 0 29px,#172e3e 29px 30px);
 box-shadow:-12px 0 0 #0a1b2a,-19px 0 0 #334b58,-24px 0 40px #000a;
 border-radius:2px;
}
.drawer-titlebar{
 position:relative;min-height:74px;
 background:linear-gradient(0deg,#315c55,#234445);
 border-bottom:5px double #a1d6bd;padding:13px 22px;
 box-shadow:inset 0 4px #507f6e;
}
.drawer-titlebar:after{
 content:'●  ●  ●';position:absolute;right:85px;top:14px;
 color:#d7ed9b;letter-spacing:7px;font-size:10px;
}
.drawer-titlebar h2{
 margin-top:6px!important;color:#f4f7cf;
 text-transform:uppercase;letter-spacing:.07em;font-size:17px!important;
 text-shadow:2px 2px #17352b;
}
.drawer-titlebar small{color:#bcebd1;letter-spacing:.17em!important}
#drawerClose{
 border:2px solid #b7dfc5;border-radius:1px;
 box-shadow:3px 3px #123c3b;background:#1d514a;
 color:#f5ffe9;cursor:pointer;
}
.drawer-body{background:repeating-linear-gradient(0deg,transparent 0 31px,#ffffff04 31px 32px)}
.drawer-body .card{
 position:relative;border:3px solid #779e9c;border-radius:3px;
 box-shadow:inset 0 0 0 3px #102131,6px 6px 0 #081723;
 background:#172c3d;padding:18px;margin-bottom:20px;
}
.drawer-body .card:before{
 content:'◇ ─ BOTANICAPI WORKSTATION ─ ◇';
 display:block;padding:7px 8px;margin:-18px -18px 15px;
 background:#254a4d;border-bottom:2px solid #638e86;
 color:#b1eed0;font-size:10px;letter-spacing:.025em;
}
.drawer-body h2,.drawer-body h3{
 text-transform:uppercase;color:#d9e9b1;
 font-family:ui-monospace,'Consolas',monospace;
 letter-spacing:.035em;
}
.drawer-body .tag{
 border-radius:1px;color:#caebd4;border-color:#679788;
 background:#1b3f45;
}
.drawer-body input:not([type=file]):not([type=checkbox]),
.drawer-body select,.drawer-body textarea{
 border:2px solid #688e9c;border-radius:1px;
 background:#0d1c2b;color:#f4f8ed;
 box-shadow:inset 3px 3px 0 #071625;
}
.drawer-body input:focus,.drawer-body select:focus,.drawer-body textarea:focus{
 outline:2px solid #b8f8c5;outline-offset:1px;
}
.drawer-body .primary,.drawer-body .secondary{
 border:2px solid #8ec2aa;border-radius:2px;
 box-shadow:3px 3px #091c29;text-transform:uppercase;
 font-size:12px;letter-spacing:.035em;min-height:40px;
}
.drawer-body .primary{background:#9ed8a9;color:#0a261e}
.drawer-body .secondary{background:#274355;color:#e8f6e9}
.drawer-body .primary:active,.drawer-body .secondary:active{transform:translate(2px,2px);box-shadow:1px 1px #091c29}
.game-chat-transcript{
 border:3px solid #638d91;border-radius:2px;
 background:
 linear-gradient(90deg,#182b3e 0,#102235 100%);
 box-shadow:inset 3px 3px #081727;
}
.game-chat-intro{
 border-bottom:1px dashed #638d91;padding:4px 0 12px;
 color:#abd9c8;line-height:1.5;
}
.game-chat-bubble{
 position:relative;border-radius:2px;
 border:2px solid #547f90;
 box-shadow:3px 3px #061522;
 background:#203c4f;
 padding-left:48px;
}
.game-chat-bubble:before{
 content:'▣';position:absolute;left:11px;top:13px;
 width:24px;height:24px;display:grid;place-items:center;
 border:2px solid #a8dfc5;background:#2b6659;
 color:#f6e9ab;
}
.game-chat-bubble.user{
 background:#305c4f;border-color:#8ed6aa;
}
.game-chat-bubble.user:before{content:'✦';background:#2b524d}
.game-chat-bubble strong{
 color:#f0dfac;text-transform:uppercase;
 letter-spacing:.09em;
}
.game-chat-bubble p{line-height:1.65}
.team-result,.task-record,.office-details,.team-history-row{
 border-radius:2px!important;
 box-shadow:3px 3px #071624;
}
.task-record{border:2px solid #658f95;background:#11283a}
.task-record strong{color:#cbe9b9}
.task-record .task-brief{color:#f1f4eb}
#chatMic:disabled{opacity:.45}
.game-confirm[hidden]{display:none!important}
.game-confirm{
 position:absolute;inset:0;z-index:7;
 background:#071221c9;display:flex;
 align-items:center;justify-content:center;padding:12px;
}
.game-confirm-window{
 width:min(430px,100%);border:5px double #b5dab9;
 background:#1b3b47;box-shadow:10px 10px 0 #091725;
 padding:20px;color:#eff6db;
}
.game-confirm-window h3{font:700 15px ui-monospace,monospace;letter-spacing:.08em;margin:0 0 12px;color:#ffe5a8}
.game-confirm-window p{font:13px/1.6 ui-monospace,monospace}
.game-confirm-window .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}
.game-confirm-window button{border:2px solid #96c8ac;background:#295353;color:#f3f7e6;padding:10px;min-width:90px;cursor:pointer}
.game-confirm-window button.primary{background:#afe3b2;color:#0d2920}
@media(max-width:650px){
 .game-drawer{border-left:0;border-top:5px solid #91bba7;border-radius:2px 2px 0 0;box-shadow:0 -8px 0 #102b33,0 -18px 30px #0009}
 .drawer-titlebar:after{display:none}
 .drawer-body .card{padding:12px}
 .drawer-body .card:before{margin:-12px -12px 12px}
 .sound-toggle{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 .game-shell *{animation-duration:.001ms!important;transition-duration:.001ms!important}
}


/* Phase 9: landscape office layout with contained stations and a clan-chat-style side rail.
 * No third-party game sprites or chat assets. This is original artwork and CSS.
 */
.game-shell{width:100%;height:100dvh;min-height:0}
.game-overlay{align-items:center;justify-content:center;padding:12px}
.game-overlay.station-modal{pointer-events:auto}
.game-overlay.station-modal .drawer-scrim{display:block}
.game-overlay.station-modal .game-drawer{
 width:min(760px,86vw)!important;
 max-width:calc(100vw - 24px);
 height:min(670px,84dvh)!important;
 max-height:calc(100dvh - 24px)!important;
 min-height:0;
 border:5px solid #8eb7a5;
 border-radius:3px;
 box-shadow:0 0 0 5px #0c1f2b,9px 10px 0 #071321,0 14px 36px #000a;
}
.game-overlay.station-modal .drawer-body{min-height:0;overflow:auto}
.game-overlay.chat-open{justify-content:flex-end;align-items:center;pointer-events:none;padding:8px 10px}
.game-overlay.chat-open .drawer-scrim{display:none}
.game-overlay.chat-open .game-drawer{
 pointer-events:auto;
 position:relative;
 width:clamp(280px,34vw,380px)!important;
 max-width:calc(100vw - 16px);
 height:min(680px,calc(100dvh - 16px))!important;
 max-height:calc(100dvh - 16px)!important;
 min-height:0;
 border:4px solid #c6a66d;
 border-radius:4px;
 box-shadow:0 0 0 3px #443824,7px 8px 0 #081a22,0 10px 30px #0009;
 background:#9f8359;
}
.game-overlay.chat-open .drawer-titlebar{
 min-height:40px;height:40px;padding:5px 12px;
 background:linear-gradient(#5b4933,#3e362a);
 border-bottom:2px solid #d4b983;
 box-shadow:inset 0 2px #a88c60;
}
.game-overlay.chat-open .drawer-titlebar small{display:none}
.game-overlay.chat-open .drawer-titlebar h2{
 font-size:13px!important;margin:0!important;line-height:25px;
 color:#fff0c4;text-shadow:1px 1px #291c14
}
.game-overlay.chat-open .drawer-titlebar:after{display:none}
.game-overlay.chat-open #drawerClose{
 min-width:32px;min-height:30px;padding:0;
 background:#745239;color:#ffeac1;border:2px solid #c2a476;
 box-shadow:2px 2px #241e1a
}
.game-overlay.chat-open .drawer-body{
 padding:0!important;min-height:0;overflow:hidden;
 background:#e7d4ab;
}
.game-overlay.chat-open #chat.panel.active{height:100%;display:flex;min-height:0}
.game-overlay.chat-open .game-chat-card{
 display:flex;flex-direction:column;
 gap:0;width:100%;height:100%;min-height:0;
 background:#e7d4ab;color:#2b241c;
}
.chat-agent-header{display:none}
.game-overlay.chat-open .chat-agent-header{
 display:flex;align-items:center;gap:9px;
 padding:7px 12px;background:linear-gradient(#d9bc87,#c6a26a);
 color:#4d3924;border-bottom:2px solid #896c45;flex:0 0 auto;
}
.chat-agent-icon{
 display:grid;place-items:center;background:#77583c;
 width:30px;height:30px;border:2px solid #f6e1ab;
 color:#fff1b9;box-shadow:2px 2px #654826
}
.chat-agent-meta{display:flex;flex-direction:column;gap:1px;flex:1}
.chat-agent-meta strong{font-size:12px;letter-spacing:.09em}
.chat-agent-meta small{font-size:10px;color:#5f4a32}
.chat-online-mark{color:#85674a;font-size:12px}
.game-overlay.chat-open .chat-selector-label{
 margin:7px 11px 4px;font-size:10px;color:#594528;
 font-weight:700;text-transform:uppercase;flex:0 0 auto;
}
.game-overlay.chat-open #chatAgent{
 margin:0 10px 7px;width:calc(100% - 20px);
 padding:7px 9px;border:2px solid #94744b;border-radius:2px;
 background:#f8eed2;color:#3e2f20;box-shadow:inset 1px 1px #cfb681;
 font-size:12px;flex:0 0 auto;
}
.game-overlay.chat-open .game-chat-transcript{
 flex:1 1 0;min-height:0;max-height:none!important;
 margin:0 8px;padding:8px;overflow-y:auto;overscroll-behavior:contain;
 border:2px solid #b29361;border-radius:2px;
 box-shadow:inset 2px 2px #a1855d;
 background:repeating-linear-gradient(0deg,#f2e6c9 0 23px,#ebdcba 23px 24px);
 gap:9px;
}
.game-overlay.chat-open .game-chat-intro{
 font-size:10px;line-height:1.4;color:#594b38;
 border-bottom:1px dotted #aa946d;padding-bottom:7px;
}
.game-overlay.chat-open .game-chat-bubble{
 padding:7px 9px;max-width:93%;border-radius:6px;
 background:#fff7e3;border:1px solid #af8a58;
 box-shadow:2px 2px 0 #d0b78b;
 color:#352b20;font-size:11px;line-height:1.42;
}
.game-overlay.chat-open .game-chat-bubble:before{display:none}
.game-overlay.chat-open .game-chat-bubble.user{
 background:#d4e1b0;border-color:#8a9855;align-self:flex-end
}
.game-overlay.chat-open .game-chat-bubble.assistant{align-self:flex-start}
.game-overlay.chat-open .game-chat-bubble strong{
 color:#62472d;text-transform:uppercase;font-size:10px;letter-spacing:.06em
}
.game-overlay.chat-open .game-chat-bubble p{
 color:#342a20;white-space:pre-wrap;margin:3px 0 0;line-height:1.48
}
.game-overlay.chat-open .chat-composer{
 flex:0 0 auto;padding:7px 9px max(7px,env(safe-area-inset-bottom));
 background:linear-gradient(#ccb083,#b99968);border-top:2px solid #866c48;
}
.game-overlay.chat-open .chat-composer>label[for="chatInput"]{display:none}
.game-overlay.chat-open #chatInput{
 width:100%;min-height:48px;max-height:70px;padding:7px 9px;resize:none;
 border:2px solid #98784a;border-radius:3px;
 background:#f8f1df;color:#2b261d;box-shadow:inset 2px 2px #d3c09a;
 font-size:12px;
}
.game-overlay.chat-open .chat-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:5px}
.game-overlay.chat-open .chat-actions button{
 margin:0!important;padding:5px 8px;font-size:10px;min-height:31px;
 border:2px solid #765b39;border-radius:2px;box-shadow:2px 2px #685034;
 color:#fff5d9;background:#72543a
}
.game-overlay.chat-open .chat-actions #chatSend{
 background:#5b814e;color:#fffde6;border-color:#42663b
}
.game-overlay.chat-open .chat-speech-option{
 font-size:10px;color:#463622;margin:5px 0 0;
 display:flex;gap:6px;align-items:center
}
.game-overlay.chat-open #chatReadAloud{width:auto!important;margin:0}
.game-overlay.chat-open #chatStatus{
 color:#60462d;font-size:10px;line-height:1.3;
 margin:4px 0 0;max-height:2.6em;overflow:auto
}
.portrait-notice{display:none}
@media (orientation:portrait) and (max-width:700px){
 .portrait-notice{
  position:fixed;inset:0;z-index:100;
  display:grid;place-items:center;padding:18px;
  background:repeating-linear-gradient(45deg,#071523 0 14px,#13283a 14px 28px);
 }
 body.portrait-bypass .portrait-notice{display:none}
 .portrait-card{
  max-width:350px;width:100%;border:4px double #b7d9ac;
  background:#244350;color:#f3f4d7;padding:22px;
  box-shadow:8px 8px 0 #09131c;
  font:13px/1.55 ui-monospace,monospace;text-align:center;
 }
 .rotate-symbol{font-size:42px;color:#f4d28b}
 .portrait-card h2{font-size:20px;margin:7px 0}
 .portrait-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:15px}
 .portrait-actions button{
  border:2px solid #afdaa9;padding:9px 12px;
  color:#163129;background:#d3e7b6;font:700 11px ui-monospace,monospace
 }
 .portrait-actions button+button{background:#365866;color:#e5f2e2}
 #portraitRotateStatus{font-size:11px;min-height:1em;color:#e8d9af}
}
@media (orientation:landscape) and (max-height:530px){
 .game-hud{min-height:40px!important;padding:3px 10px}
 .game-brand .mark{width:29px;height:29px}
 .game-brand strong{font-size:12px}
 .game-brand small{font-size:8px}
 .game-hud-btn{font-size:9px;padding:5px 8px}
 .scene-topline{padding:3px 7px}
 .scene-topline>div:first-child span{display:none}
 .scene-topline strong{font-size:10px}
 .scene-topline .office-statusbar{gap:4px}
 .scene-topline .office-statusbar span{font-size:8px;padding:3px 5px}
 .office-scene{padding:5px 8px 4px;gap:4px}
 .scene-controls{min-height:26px;padding:3px 6px}
 .scene-controls .office-details{font-size:10px;max-height:29px;padding:3px 8px}
 .roster>summary{padding:4px 7px}
 .game-toolbar{padding:4px 8px max(4px,env(safe-area-inset-bottom));gap:5px}
 .game-toolbar button{min-height:38px;padding:3px 5px;font-size:9px}
 .game-toolbar button>span{font-size:15px}
 .game-overlay.station-modal .game-drawer{
  width:min(690px,88vw)!important;height:calc(100dvh - 20px)!important;
  max-height:calc(100dvh - 20px)!important;
 }
 .game-overlay.chat-open .game-drawer{
  width:min(330px,43vw)!important;height:calc(100dvh - 12px)!important;
  max-height:calc(100dvh - 12px)!important;
 }
 .game-overlay.chat-open .drawer-titlebar{height:31px;min-height:31px;padding:2px 9px}
 .game-overlay.chat-open .drawer-titlebar h2{font-size:11px!important;line-height:20px}
 .game-overlay.chat-open .chat-agent-header{padding:3px 8px}
 .game-overlay.chat-open .chat-agent-icon{width:22px;height:22px}
 .game-overlay.chat-open .chat-selector-label{margin:3px 8px}
 .game-overlay.chat-open #chatAgent{margin:0 7px 4px;width:calc(100% - 14px);padding:4px 7px}
 .game-overlay.chat-open .chat-composer{padding:4px 7px}
 .game-overlay.chat-open #chatInput{min-height:35px;max-height:50px}
 .game-overlay.chat-open .chat-speech-option{margin:3px 0}
}
@media (orientation:portrait) and (max-width:700px){
 body.portrait-bypass .game-overlay.station-modal .game-drawer{
  width:calc(100vw - 18px)!important;
  max-height:84dvh!important;height:84dvh!important
 }
 body.portrait-bypass .game-overlay.chat-open .game-drawer{
  width:min(360px,80vw)!important;height:80dvh!important
 }
}

/* Complete room camera: scale down uniformly instead of cropping edges.
   Frame must fit 960×540 scene, its full outer walls and floor in landscape. */
.office-scene .office-canvas-wrap{
 aspect-ratio:16/9;
 width:min(100%,calc((100dvh - 154px)*16/9),1160px);
 height:auto;min-height:0;max-height:100%;
 flex:1 1 auto;
 overflow:hidden;
 align-self:center;
}
.office-scene #officeCanvas{
 width:100%;height:100%;max-width:100%;max-height:100%;
 object-fit:contain;aspect-ratio:16/9;image-rendering:pixelated;
}
@media (orientation:landscape) and (max-height:530px){
 .office-scene .office-canvas-wrap{
  width:min(100%,calc((100dvh - 115px)*16/9),1160px);
  max-height:100%;min-height:0;
 }
}
@media (orientation:portrait){
 .office-scene .office-canvas-wrap{
  width:100%;height:auto;aspect-ratio:16/9;
 }
}


/* PHASE 11 — world-screen HUD.
   All controls are game overlays on the same fullscreen landscape scene. */
html,body{margin:0;width:100%;height:100%;overflow:hidden}
.game-shell{width:100%;height:100dvh;max-width:none;display:block;padding:0;overflow:hidden}
.game-world{position:relative;width:100%;height:100dvh;display:block;overflow:hidden}
.game-world .office-scene{
 position:absolute;inset:0;display:block;width:100%;height:100%;
 padding:0!important;margin:0;background:#8dd6c0;overflow:hidden
}
.office-scene .office-canvas-wrap.game-viewport{
 position:absolute;inset:0;display:block;
 width:100%!important;height:100%!important;
 max-width:none!important;max-height:none!important;min-height:0!important;
 margin:0!important;padding:0!important;border:0!important;outline:0!important;
 box-shadow:none!important;aspect-ratio:auto!important;background:#93d7be;overflow:hidden
}
.office-scene .game-viewport #officeCanvas{
 position:absolute;inset:0;width:100%;height:100%;
 max-height:none;max-width:none;object-fit:fill;aspect-ratio:auto;
 cursor:pointer;touch-action:manipulation;image-rendering:auto
}
.office-scene .game-hud.in-world-hud{
 position:absolute;z-index:5;top:7px;left:8px;right:8px;
 display:flex;align-items:flex-start;justify-content:space-between;
 padding:0;min-height:0;background:none;border:0;box-shadow:none;
 pointer-events:none
}
.in-world-hud .game-brand,.in-world-hud .hud-right{pointer-events:auto}
.in-world-hud .game-brand{
 padding:5px 10px;border:2px solid #fff5d7;border-radius:10px;
 color:#486f69;background:#fff8dbea;box-shadow:0 4px 0 #6d9f86
}
.in-world-hud .game-brand strong{font-size:13px;color:#3d7066}
.in-world-hud .game-brand small{font-size:8px;color:#6c8278}
.in-world-hud .mark{width:28px;height:28px;border:2px solid #fff9e7;border-radius:8px}
.in-world-hud .hud-right{display:flex;align-items:center;gap:6px}
.in-world-hud .chip{display:none!important}
.in-world-hud .game-hud-btn{
 background:#f9edc9;color:#416458;border:2px solid #fff8e1!important;
 border-radius:8px!important;box-shadow:0 3px 0 #6a9b83;
 padding:6px 9px;min-height:32px;font-size:10px;text-shadow:none
}
.in-world-hud #fullscreenToggle{font-size:18px;line-height:1;min-width:34px}
.office-scene .scene-topline{
 position:absolute;z-index:4;top:57px;right:9px;left:auto;
 display:flex;gap:5px;width:auto;padding:0;
 background:transparent;border:0;box-shadow:none;pointer-events:none
}
.scene-topline>div:first-child{display:none!important}
.scene-topline .office-statusbar{margin:0!important;display:flex;gap:5px}
.scene-topline .office-statusbar span{
 color:#416b61;background:#fff5dfed;border:2px solid #fffbeb;
 border-radius:7px;box-shadow:0 2px 0 #729e82;
 padding:5px 7px;font-size:10px;font-weight:bold
}
.office-scene .game-toolbar.in-world-toolbar{
 position:absolute;z-index:5;bottom:9px;left:50%;transform:translateX(-50%);
 display:flex;align-items:flex-end;justify-content:center;gap:7px;
 background:none;border:0;box-shadow:none;
 padding:0;max-width:calc(100vw - 12px);width:auto;pointer-events:none
}
.game-toolbar.in-world-toolbar button{
 pointer-events:auto;flex:0 0 auto;width:clamp(60px,9vw,96px);
 min-height:50px;max-width:96px;padding:5px 4px;
 border:3px solid #fff3d6;border-radius:10px;
 background:linear-gradient(#fffbe1,#e6d2ab);color:#4b675d;
 box-shadow:0 4px 0 #8a9a79,0 7px 15px #273b343b;
 text-transform:uppercase;font-weight:bold;letter-spacing:0;
 font-size:clamp(8px,.9vw,11px);text-shadow:none
}
.game-toolbar.in-world-toolbar button:first-child{
 background:linear-gradient(#e7ffca,#a1dab2);border-color:#f5ffe8
}
.game-toolbar.in-world-toolbar button>span{font-size:clamp(16px,1.9vw,22px)}
.office-scene .scene-controls.in-world-info{
 position:absolute;z-index:5;bottom:79px;left:9px;right:auto;
 display:flex;align-items:flex-end;gap:7px;
 background:none;border:0;box-shadow:none;padding:0;
 min-height:0;pointer-events:none
}
.in-world-info .office-details{
 pointer-events:auto;flex:0 1 auto;
 max-width:min(290px,34vw);max-height:46px;overflow:auto;
 color:#496c68;background:#fff8e9eb;border:2px solid #fff9e5;
 border-left:3px solid #fff9e5;border-radius:8px!important;
 box-shadow:0 3px 0 #6b9c82;font-size:10px;padding:7px 9px
}
.in-world-info .roster{pointer-events:auto;max-width:none}
.in-world-info .roster>summary{
 background:#fdf2d2;color:#466960;
 border:2px solid #fff8de;border-radius:7px;
 box-shadow:0 3px 0 #769d87;
 padding:7px 9px;font-size:10px
}
.in-world-info .roster[open] .office-bot-grid{
 left:0;right:auto;bottom:36px;
 max-height:min(270px,60dvh);width:min(415px,82vw);
 z-index:20
}
.game-overlay.station-modal .game-drawer{height:min(610px,79dvh)!important}
.game-overlay.chat-open .game-drawer{height:calc(100dvh - 18px)!important}
@media (orientation:landscape) and (max-height:530px){
 .in-world-hud .game-brand{padding:3px 7px}
 .in-world-hud .game-brand strong{font-size:10px}
 .in-world-hud .game-brand small{font-size:7px}
 .in-world-hud .mark{width:23px;height:23px}
 .in-world-hud .game-hud-btn{padding:4px 7px;min-height:26px;font-size:9px}
 .office-scene .scene-topline{top:43px;right:6px}
 .scene-topline .office-statusbar span{font-size:8px;padding:3px 5px}
 .office-scene .game-toolbar.in-world-toolbar{bottom:6px;gap:5px}
 .game-toolbar.in-world-toolbar button{width:clamp(50px,8vw,85px);min-height:38px;padding:3px}
 .game-toolbar.in-world-toolbar button>span{font-size:15px}
 .office-scene .scene-controls.in-world-info{bottom:54px;left:6px}
 .in-world-info .office-details{max-height:32px;font-size:9px;padding:4px 6px}
 .in-world-info .roster>summary{font-size:9px;padding:5px}
}


/* Phase 12: orientation and roster reliability based on Android screenshot QA.
 * Portrait is not treated as a tall game canvas. */
.portrait-notice{display:none}
.portrait-hint{font-size:11px;opacity:.9;line-height:1.5}
.in-world-info .roster{position:relative;z-index:22}
.in-world-info .roster[open] .office-bot-grid{
 position:absolute!important;
 left:0!important;right:auto!important;bottom:calc(100% + 6px)!important;
 width:min(270px,73vw)!important;
 max-height:min(220px,46dvh)!important;
 overflow:auto!important;overscroll-behavior:contain;
 padding:6px!important;gap:6px;
 grid-template-columns:repeat(2,minmax(0,1fr));
 border-radius:7px;background:#172f40;box-shadow:0 5px 18px #101f2cbb
}
.in-world-info .roster[open] .office-bot{
 padding:7px!important;min-height:49px!important;
 overflow-wrap:anywhere;box-shadow:none
}
.in-world-info .roster[open] .office-bot strong{font-size:10px}
.in-world-info .roster[open] .office-bot span{font-size:9px}
@media (orientation:portrait) and (pointer:coarse){
 body:not(.portrait-bypass) .portrait-notice{
  position:fixed;inset:0;z-index:100;
  display:grid!important;place-items:center;padding:18px;
  background:repeating-linear-gradient(45deg,#10283c 0 16px,#1b3e49 16px 32px)
 }
 body:not(.portrait-bypass) .portrait-card{
  display:block;max-width:380px;width:100%;
  border:4px solid #f9ebc7;border-radius:8px;
  padding:22px;background:#264858;
  box-shadow:7px 8px 0 #091c2e;
  text-align:center;color:#fdf1d4
 }
 body:not(.portrait-bypass) .portrait-actions{display:flex;gap:8px;justify-content:center}
 body:not(.portrait-bypass) .portrait-actions button{
  min-height:44px;border-radius:6px
 }
 body.portrait-sideways .game-shell{
  position:fixed!important;
  left:100vw!important;top:0!important;
  width:100dvh!important;height:100vw!important;
  max-width:none!important;max-height:none!important;
  transform-origin:top left;transform:rotate(90deg);
  overflow:hidden!important
 }
 body.portrait-sideways .game-shell .game-world{
  width:100%!important;height:100%!important;
 }
 body.portrait-sideways .game-overlay{
  position:absolute!important;inset:0!important;
 }
 body.portrait-sideways .game-overlay.station-modal .game-drawer{
  width:min(760px,86%)!important;
  max-height:84%!important;height:84%!important
 }
 body.portrait-sideways .game-overlay.chat-open .game-drawer{
  width:min(330px,43%)!important;
  height:calc(100% - 12px)!important;
  max-height:calc(100% - 12px)!important
 }
 body.portrait-sideways .in-world-hud .game-brand{padding:3px 7px}
 body.portrait-sideways .in-world-hud .game-brand strong{font-size:10px}
 body.portrait-sideways .in-world-hud .game-brand small{font-size:7px}
 body.portrait-sideways .in-world-hud .mark{width:23px;height:23px}
 body.portrait-sideways .in-world-hud .game-hud-btn{padding:4px 6px;min-height:29px;font-size:9px}
 body.portrait-sideways .office-scene .scene-topline{top:44px}
 body.portrait-sideways .scene-topline .office-statusbar span{font-size:8px;padding:3px 5px}
 body.portrait-sideways .office-scene .game-toolbar.in-world-toolbar{bottom:6px;gap:5px}
 body.portrait-sideways .game-toolbar.in-world-toolbar button{width:clamp(49px,8vw,85px);min-height:39px;padding:3px}
 body.portrait-sideways .office-scene .scene-controls.in-world-info{bottom:56px}
 body.portrait-sideways .in-world-info .office-details{max-height:34px;font-size:9px}
 body.portrait-sideways .in-world-info .roster[open] .office-bot-grid{
  max-height:min(160px,44%)!important;width:235px!important
 }
}
/* Desktop/resized narrow viewports retain a usable rotation warning when in portrait. */
@media (orientation:portrait) and (max-width:700px){
 body:not(.portrait-bypass) .portrait-notice{display:grid!important}
}
