/* M14.1 — focused compact Friends tray on short landscape screens.
   Referral, guest meadow and player auth remain untouched. */
@media (orientation:landscape) and (max-height:540px) {
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting){
   box-sizing:border-box!important; width:min(558px,max(310px,calc(var(--window-width) - 230px)),calc(var(--window-width) - 20px))!important;
   max-width:calc(var(--window-width) - 20px)!important;
   max-height:min(175px,calc(var(--window-height) - 88px))!important;
   left:calc(var(--app-viewport-left,0px) + var(--window-left) + 8px)!important;
   right:auto!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting)[data-collapsed="true"]{
   width:min(310px,calc(var(--window-width) - 20px))!important;
   max-height:54px!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-shell{
   border:2px solid #d2aa70!important; border-radius:11px!important;
   box-shadow:0 4px 12px #10243d80!important;
   padding:2px 5px!important; background:linear-gradient(135deg,#6393b6,#315e8c)!important;
   overflow:hidden!important;animation:none;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-head{
   display:flex!important; flex-wrap:nowrap!important; align-items:center!important;
   min-height:44px!important; height:44px!important; gap:4px!important;
   padding:0!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-head strong{
   flex:0 0 auto!important;font:700 14px/1.1 Georgia,serif!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-head>span{
   flex:1 1 auto!important;min-width:0!important;font:700 10px/1.1 Arial,sans-serif!important;
   white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
   padding:0 3px!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) :is(.sf-strip-toggle,.sf-strip-close){
   flex:0 0 44px!important;width:44px!important;min-width:44px!important;
   height:44px!important;min-height:44px!important;padding:0 2px!important;
   font:700 10px/1.1 Arial,sans-serif!important;border-radius:8px!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting)[data-collapsed="true"] .sf-strip-body{display:none!important;}
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-ornaments{
    display:none!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-body{
   max-height:min(111px,calc(var(--window-height) - 155px))!important;
   overflow-y:auto!important;min-height:0!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-scroll-row{gap:2px!important;align-items:center!important;}
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-rail{
   gap:4px!important;padding:2px 0!important;min-height:0!important;
   scroll-snap-type:x proximity!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-tile{
   flex:0 0 86px!important;width:86px!important;height:67px!important;min-height:67px!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-friend{
   flex:1 1 42px!important;min-width:0!important;width:42px!important;
   height:67px!important;min-height:67px!important;border-width:2px!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-friend>img{
   width:34px!important;height:34px!important;left:calc(50% - 17px)!important;top:3px!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-name{
   bottom:2px!important;height:22px!important;font-size:10px!important;line-height:1.1!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-level{
   top:25px!important;right:0!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-more{
   width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-action{
   flex:0 0 80px!important;width:80px!important;height:67px!important;
   min-height:67px!important;padding:37px 3px 2px!important;font-size:10px!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-action::before{
   top:4px!important;width:28px!important;height:28px!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-arrow{
   flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px!important;
 }
 :root[data-window-layout="compact"] #social-friends-overlay:not(.sf-guest-open) .sf-panel{
   width:min(100%,var(--window-width),var(--sf-panel-cap,100%))!important;
   max-width:100%!important;
   height:auto!important;
   max-height:min(100%,var(--window-height))!important;
   overflow-y:auto!important;padding:var(--sf-panel-padding,4px 5px 5px)!important;
 }
 :root[data-window-layout="compact"] #social-friends-overlay:not(.sf-guest-open) .sf-tools{
   gap:5px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 :root[data-window-layout="compact"] #social-friends-overlay:not(.sf-guest-open) :is(.sf-box,.sf-section){
   min-width:0!important;padding:6px!important;margin:3px 0!important;
 }
 :root[data-window-layout="compact"] #social-friends-overlay:not(.sf-guest-open) .sf-box :is(h3,p){margin:1px 0 4px!important;}
 :root[data-window-layout="compact"] #social-friends-overlay:not(.sf-guest-open) :is(.sf-link,.sf-form input){
   min-height:36px!important;padding:4px 6px!important;margin-bottom:4px!important;
 }
}
@media (orientation:landscape) and (max-height:340px){
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting){
   width:min(480px,calc(var(--window-width) - 12px))!important;
   max-height:140px!important;
 }
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting)[data-collapsed="true"]{width:min(294px,calc(var(--window-width) - 12px))!important;}
 :root[data-window-layout="compact"] #social-friends-strip:not(.sf-visiting) .sf-strip-body{max-height:84px!important;}
}
