/* Friends (mockup 00-amigos) in the gothic theme; Work-ID 20261018-reskin-b-menu-social-ranking-22ac. Desktop only. The window chrome is in gothic.css. Same content and handlers: the request form, "my card",
   the waiting requests (Accept / Refuse) and the friends with their facts and buttons. The mockup's second column (the requests and the new request next to the list) is drawn with a grid over the same
   elements. Every control keeps one authored box in every state (AGENTS.md): states repaint only. The mockup's filters, sort, message / challenge buttons and tabs for sent and blocked requests are NOT
   drawn: the game has no such functions and this batch changes looks only. */
@media screen and (min-width:901px){
 body:not(.mobile-web) #modal[data-view="friends"] #modal-body{
  display:grid!important;grid-template-columns:minmax(0,1fr) 380px!important;grid-template-rows:auto minmax(0,1fr)!important;gap:14px 16px!important;padding:16px 18px!important;align-content:start!important;
  background:radial-gradient(ellipse at 50% 100%,#1f2942 0,#131928 48%,#060205 100%)!important;
 }
 body:not(.mobile-web) #modal[data-view="friends"] .friends-head{
  grid-column:1 / 3!important;grid-row:1!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px 14px!important;padding:12px!important;border:0!important;border-image:none!important;border-radius:4px!important;
  background:var(--sg-gems-quiet),var(--sg-surface)!important;box-shadow:var(--sg-frame-card)!important;
 }
 body:not(.mobile-web) #modal[data-view="friends"] .friends-head .modal-description{grid-column:1 / 3!important;margin:0!important;color:var(--sg-text)!important;font:400 13px/18px Arial,sans-serif!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-add{display:flex!important;gap:10px!important;min-width:0!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-add button,body:not(.mobile-web) #modal[data-view="friends"] .friends-mine{white-space:nowrap!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-section:has(.friends-dot.pending) .friends-row{flex-wrap:wrap!important;row-gap:8px!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-section:has(.friends-dot.pending) .friends-actions{margin-left:auto!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-input{
  flex:1 1 auto!important;min-width:0!important;border:0!important;border-image:none!important;border-radius:3px!important;background:#06030a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #1f273a!important;color:var(--sg-text)!important;
 }
 body:not(.mobile-web) #modal[data-view="friends"] .friends-input:focus{box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-lo)!important}
 /* buttons: the red ones (primary) and the dark ones (secondary / quiet) */
 body:not(.mobile-web) #modal[data-view="friends"] #modal-body button:not(#modal-close){
  border:0!important;border-image:none!important;border-radius:3px!important;background:linear-gradient(180deg,#171f32,#111724)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #af373a!important;
  color:var(--sg-text)!important;font-weight:700!important;letter-spacing:.06em!important;text-transform:uppercase!important;
 }
 body:not(.mobile-web) #modal[data-view="friends"] #modal-body button.primary:not(#modal-close){background:linear-gradient(180deg,#c2423e,#2c3751)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #d28071,0 0 10px #c44c4555!important;color:#fff!important}
 body:not(.mobile-web) #modal[data-view="friends"] #modal-body button:not(#modal-close):is(:hover:not(:disabled),:focus-visible,.pad-focus){background:linear-gradient(180deg,#212c46,#141b2a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold),0 0 10px #f3c96b44!important;color:#fff!important}
 body:not(.mobile-web) #modal[data-view="friends"] #modal-body button.primary:not(#modal-close):is(:hover:not(:disabled),:focus-visible,.pad-focus){background:linear-gradient(180deg,#c85a4f,#b2383a)!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-section{
  min-width:0!important;padding:10px!important;border:0!important;border-image:none!important;border-radius:4px!important;background:var(--sg-gems-quiet),var(--sg-surface)!important;box-shadow:var(--sg-frame-card)!important;
 }
 /* the friends: the big column at the left; the waiting requests: the column at the right */
 body:not(.mobile-web) #modal[data-view="friends"] .friends-section{grid-column:1!important;grid-row:2!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-section:has(.friends-dot.pending){grid-column:2!important;grid-row:2!important;align-self:start!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-section:has(.friends-dot.pending)+.friends-section{grid-column:1!important;grid-row:2!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-heading{
  display:flex!important;align-items:center!important;gap:10px!important;min-height:34px!important;margin:0 0 8px!important;padding:0 6px!important;border:0!important;border-image:none!important;background:transparent!important;
  color:var(--sg-text)!important;font:700 14px/18px Arial,sans-serif!important;letter-spacing:.1em!important;text-transform:uppercase!important;box-shadow:0 1px 0 #1f273a!important;
 }
 body:not(.mobile-web) #modal[data-view="friends"] .friends-count{margin-left:auto!important;border:0!important;border-image:none!important;border-radius:10px!important;background:#af373a!important;color:#fff!important;padding:1px 9px!important;font:700 12px/16px Arial,sans-serif!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-row{
  border:0!important;border-image:none!important;border-radius:3px!important;background:linear-gradient(180deg,#161d2e,#09040a)!important;box-shadow:var(--sg-frame-soft)!important;padding:8px 10px!important;
 }
 body:not(.mobile-web) #modal[data-view="friends"] .friends-name>strong{color:#fff!important;font:700 16px/20px Arial,sans-serif!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-name>span{color:var(--sg-muted)!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-dot{box-shadow:0 0 0 2px #0d111c!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-dot.online{background:var(--sg-green)!important;box-shadow:0 0 0 2px #0d111c,0 0 8px var(--sg-green)!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-dot.offline{background:#6a5456!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-facts{display:flex!important;flex-wrap:wrap!important;gap:6px!important;border:0!important;border-image:none!important;background:transparent!important;box-shadow:none!important}
 body:not(.mobile-web) #modal[data-view="friends"] .friends-fact{border:0!important;border-image:none!important;border-radius:3px!important;background:#111724!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #202b44!important;color:var(--sg-text)!important}
 /* the window is as wide as the two columns need (the older sheets cap its width) */
 body:not(.mobile-web) #modal[data-view="friends"]{width:min(72rem,96vw)!important;max-width:96vw!important}
}
