/* Only the active companion widens Dynamic. Other screens keep Nocturne. */
body.companion-open>header,body.companion-open>main{max-width:1600px}
body.companion-open .pilot,body.companion-open>main>footer{display:none}
.cs-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 18px}
.cs-heading h1{margin:5px 0;font-size:clamp(26px,3vw,40px)}.cs-status{font-size:12px;line-height:1.5;color:#d5c7bb;margin:0;min-height:18px}
.cs-actions{display:flex;gap:8px;flex-wrap:wrap}.cs-actions button{min-height:44px}.cs-world{position:relative;height:calc(100dvh - 232px);min-height:440px;background:#19171d;border:1px solid #5d4b54;border-radius:24px;overflow:hidden;box-shadow:0 20px 70px #0005}
.cs-world iframe{width:100%;height:100%;border:0;display:block;background:#19171d}.cs-recovery{padding:14px;margin-top:10px;background:#30242c;border-radius:12px}.cs-recovery p{margin:0 0 10px}.j-mini.cs-portrait{width:48px;height:48px;min-width:48px;min-height:48px}
@media(max-width:650px){body.companion-open>main{padding:0 10px 92px}.cs-heading{gap:8px;margin:0 4px 12px;align-items:flex-start}.cs-heading h1{font-size:27px}.cs-heading .eyebrow{font-size:8px}.cs-status{font-size:11px;max-width:215px}.cs-actions{gap:4px;flex-direction:column}.cs-actions button{font-size:11px;padding:6px 10px;min-height:36px}.cs-world{height:calc(100dvh - 240px);min-height:380px;border-radius:18px}}
@media(max-height:550px) and (orientation:landscape){body.companion-open>header{padding-top:8px;padding-bottom:8px}.cs-heading{margin:0 0 8px}.cs-heading .eyebrow,.cs-status{display:none}.cs-heading h1{font-size:23px;margin:0}.cs-world{height:calc(100dvh - 152px);min-height:230px}}

/* The world occupies the space that is really available, including the nav.
   The device offer stays on Home instead of covering the forest controls. */
body.companion-open{height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
body.companion-open>header{width:100%;flex:none;margin:0 auto}
body.companion-open>main{width:100%;flex:1;min-height:0;margin:0 auto;display:flex;flex-direction:column;padding:0 24px calc(88px + env(safe-area-inset-bottom))}
body.companion-open #remember-offer{display:none}
body.companion-open #account,body.companion-open #journey-root,body.companion-open .cs-session{display:flex;flex-direction:column;flex:1;min-height:0}
body.companion-open .cs-heading{flex:none;margin:4px 0 12px}
body.companion-open .cs-world{flex:1;height:auto;min-height:0}
body.companion-open .cs-recovery{flex:none;max-height:32dvh;overflow:auto}
@media(max-width:650px){body.companion-open>main{padding:0 10px calc(88px + env(safe-area-inset-bottom))}body.companion-open .cs-heading{margin:0 4px 10px}}
@media(max-height:600px){body.companion-open>header{padding:5px 14px;height:50px}body.companion-open .brand{font-size:24px}body.companion-open .brand small{display:none}body.companion-open .j-mini{width:40px;height:40px;min-width:40px;min-height:40px}body.companion-open .cs-heading{margin:0 0 6px;align-items:center}body.companion-open .cs-heading .eyebrow,body.companion-open .cs-status{display:none}body.companion-open .cs-heading h1{font-size:22px;margin:0}body.companion-open .cs-actions{flex-direction:row}body.companion-open .cs-actions button{min-height:36px;padding:5px 9px}body.companion-open>main{padding-left:10px;padding-right:10px;padding-bottom:84px}}
