/* One compact source notice stays near the ride controls; detail is optional. */
.mapped-world-info{z-index:6;display:flex;align-items:center;gap:4px;width:max-content;max-width:min(420px,100%);box-sizing:border-box;background:#142b2ae0;color:#e5f1ee;border:1px solid #91b6af55;border-radius:10px;pointer-events:auto}
.mapped-world-info[hidden]{display:none}
.ride-top>.mapped-world-info{position:relative;flex:0 1 auto;align-self:flex-start}
.mapped-world-info details{margin:0;padding:0;min-width:0;border:0;background:none}
.mapped-world-info summary{cursor:pointer;box-sizing:border-box;padding:7px 5px 7px 12px;font-size:11px;font-weight:650;line-height:18px;color:#e5f1ee;white-space:nowrap}
.mapped-world-info summary:focus-visible,.mapped-world-info a:focus-visible{outline:2px solid #b6e9e6;outline-offset:2px}
.mapped-world-info .mapped-world-description{position:absolute;top:calc(100% + 6px);left:0;box-sizing:border-box;width:min(360px,calc(100vw - 32px));max-height:25vh;overflow:auto;margin:0;padding:12px 14px;border:1px solid #91b6af77;border-radius:10px;background:#142b2af5;color:#cfdfda;font-size:12px;line-height:1.5;box-shadow:0 6px 22px #0007}
.mapped-world-info .mapped-world-credit{margin:0;padding:0 9px 0 2px;font-size:10px;line-height:18px;white-space:nowrap;color:#c4e6df}
.mapped-world-info .mapped-world-credit a{color:inherit;text-decoration:underline;text-underline-offset:2px}
#mappedWorldStatus:not([hidden]){position:fixed;bottom:clamp(70px,12vh,140px);left:24px;z-index:6;box-sizing:border-box;width:max-content;max-width:min(330px,calc(100vw - 48px));padding:9px 12px;border:1px solid #c8a56e88;border-radius:10px;background:#20312be8;color:#f5ead4;font-size:12px;line-height:1.45;pointer-events:none}
@media(max-width:640px){.ride-top>.mapped-world-info{max-width:calc(100vw - 114px)}.mapped-world-info summary{font-size:10px;padding-left:7px;padding-right:2px}.mapped-world-info .mapped-world-credit{font-size:9px;padding-right:5px}#mappedWorldStatus:not([hidden]){left:16px;bottom:70px;max-width:calc(100vw - 32px)}}
/* Mobile ride options deliberately move the expandable context into Setup;
   only the credited source pill stays over the moving view. */
body:has(#guestPanel.mobile-compact) .ride-top>.mapped-world-info{flex-basis:auto;width:auto;border:0;background:#142b2ab8}
body:has(#guestPanel.mobile-compact) .mapped-world-info .mapped-world-credit{padding:5px 8px}
#mobileRideOptions #mappedWorldDetails{margin-top:16px;border-top:1px solid var(--line);padding-top:8px}
#mobileRideOptions #mappedWorldDetails summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:13px}
#mobileRideOptions .mapped-world-description{position:static;max-height:none;width:auto;padding:0;margin:0 0 12px;border:0;box-shadow:none;background:transparent;color:var(--muted);font-size:12px;line-height:1.55}

/* Landscape hosts keep their source credit in the free right column. The
   full source explanation unfolds below Chat, without covering ride actions. */
@media(max-height:520px) and (min-width:560px){
 .ride-top>.mapped-world-info{position:fixed;top:64px;left:auto;right:16px;max-width:min(300px,calc(100vw - 420px))}
 .mapped-world-info .mapped-world-description{position:fixed;top:160px;left:auto;right:16px;width:min(360px,calc(100vw - 420px));max-height:calc(100vh - 176px)}
 #mappedWorldStatus:not([hidden]){left:auto;right:16px;bottom:16px;max-width:min(300px,calc(100vw - 420px))}
}
@media(max-height:520px) and (min-width:560px) and (max-width:720px){
 .ride-top>.mapped-world-info{display:block;top:158px;right:12px;width:calc(100vw - 414px);max-width:none}
 .mapped-world-info details{display:block}
 .mapped-world-info summary{white-space:normal;font-size:10px;line-height:14px;padding:6px 8px 0}
 .mapped-world-info .mapped-world-credit{display:block;white-space:normal;overflow-wrap:anywhere;font-size:9px;line-height:12px;padding:3px 8px 7px}
 .mapped-world-info .mapped-world-description{position:absolute;top:calc(100% + 6px);right:0;width:100%;max-height:calc(100vh - 236px);padding:8px;font-size:10px;line-height:1.4}
 #mappedWorldStatus:not([hidden]){right:12px;max-width:calc(100vw - 414px)}
}
