/* Painel social da Arena: trilho no desktop e gaveta em telas menores. */
.social-ready #friendsPanel { display: none; }
.as-root { --as-width: 280px; }
.as-root [hidden] { display: none !important; }
.as-panel { position: fixed; z-index: 32; right: 0; top: 80px; bottom: 0; width: var(--as-width); display: flex; flex-direction: column; background: var(--surface-soft, #14171c); border-left: 1px solid var(--line); }
.as-head, .as-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 16px 16px; border-bottom: 1px solid var(--line); }
.as-head h2 { margin: 4px 0 0; font-size: 15px; }
.as-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); }
.as-rail-head .kicker { margin: 0; }
.as-rail-head .as-close { display: grid; place-items: center; }
.as-overview .panel { margin: 0; padding: 18px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.as-overview .panel-title { margin-bottom: 12px; font-size: 13px; }
.as-overview .profile-row { align-items: flex-start; gap: 10px; }
.as-overview .profile-row > img { width: 36px; height: 36px; flex-shrink: 0; }
.as-overview .profile-row > div { min-width: 0; overflow-wrap: anywhere; }
.as-overview .profile-row b { font-size: 12px; }
.as-overview .profile-row .small { font-size: 10px; line-height: 1.8; }
.as-overview .missions li { font-size: 11px; }
.as-overview .missions .btn { padding: 5px 8px; min-height: 32px; font-size: 10px; }
.as-overview #missionsEnd { margin-bottom: 0; font-size: 10px; line-height: 1.7; }
.as-close { border: 0; width: 44px; height: 44px; flex-shrink: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 26px; border-radius: 8px; }
.as-close:hover { background: var(--panel-2); color: var(--text); }
.as-panel-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; scrollbar-width: thin; }
.as-section-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0; padding: 14px 16px 8px; color: var(--text); font-size: 12px; }
.as-section-title span { color: var(--muted); font-size: 10px; font-weight: 500; }
.as-search { padding: 14px 16px 6px; border-bottom: 1px solid var(--line); max-height: 36vh; overflow-y: auto; }
.as-search .input { width: 100%; min-width: 0; min-height: 44px; font-size: 11px; }
.as-label { display: block; color: var(--muted); font-size: 10px; font-weight: 700; margin-bottom: 6px; }
.as-list { margin: 0; padding: 0 8px 8px; list-style: none; }
.as-search .as-list { padding: 0; }
.as-person { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 10px 8px; border-radius: 8px; }
.as-person:hover { background: #ffffff04; }
.as-avatar { display: block; width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--panel-2); }
.as-initial { display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--muted); }
.as-person-main { flex: 1; min-width: 0; }
.as-person-main a { display: block; color: var(--text); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; text-decoration: none; }
.as-person-main a:hover { color: var(--orange); }
.as-status { display: block; color: var(--muted); font-size: 10px; }
.as-status.online { color: #7bd9a5; }.as-status.match { color: #ffa34f; }.as-status.queue { color: #94bcff; }
.as-status::before { content: ''; display: inline-block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.as-person-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-left: 41px; width: calc(100% - 41px); }
.as-action { min-height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: var(--panel); color: var(--text); font: 600 10px var(--font); cursor: pointer; }
.as-action:hover { background: var(--panel-2); border-color: var(--line-strong); }.as-action:disabled { opacity: .45; cursor: wait; }
.as-action.primary { border-color: #ff7a0055; color: #ffa34f; background: #ff7a0014; }
.as-in-party { font-size: 10px; color: var(--muted); }
.as-friend-menu { position: relative; margin-left: auto; }
.as-friend-menu summary { min-width: 32px; min-height: 32px; padding: 3px 8px; list-style: none; color: var(--muted); cursor: pointer; }
.as-friend-menu[open] .as-action { position: absolute; z-index: 2; right: 0; top: 32px; width: max-content; box-shadow: 0 8px 20px #0008; }
.as-empty { padding: 10px 8px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.as-footnote { margin: 0; padding: 12px 16px; font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); }
.as-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 34; display: none; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); font: 700 12px var(--font); cursor: pointer; box-shadow: 0 8px 28px #0006; }
.as-badge { display: inline-grid; place-items: center; min-width: 22px; min-height: 22px; padding: 0 5px; background: var(--orange); color: var(--bg); border-radius: 12px; font-size: 10px; }
.as-chat { position: fixed; z-index: 45; right: calc(var(--as-width) + 16px); bottom: 16px; width: 360px; max-width: calc(100vw - 32px); height: min(480px, calc(100dvh - 110px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 12px 48px #0008; overflow: hidden; }
.as-chat-head { padding: 10px 12px 10px 16px; background: var(--surface-soft); }
.as-chat-head h2 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }.as-chat-head small { color: var(--muted); font-size: 10px; }
.as-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; scrollbar-width: thin; }
.as-message { max-width: 90%; min-width: 70px; padding: 9px 11px; background: var(--panel-2); border-radius: 10px 10px 10px 2px; }
.as-message.mine { align-self: flex-end; background: #ff7a001a; border: 1px solid #ff7a0026; border-radius: 10px 10px 2px 10px; }
.as-message p { margin: 0; color: var(--text); font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.as-message time { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; text-align: right; }
.as-older { border: 0; background: var(--surface-soft); color: var(--muted); font: 600 11px var(--font); min-height: 44px; cursor: pointer; }
.as-chat-error { color: #ffb4a9; font-size: 11px; padding: 0 14px; margin: 0; }
.as-chat-error:not(:empty) { padding-block: 8px; }
.as-compose { padding: 12px; border-top: 1px solid var(--line); }.as-compose > div { display: flex; gap: 8px; }.as-compose .input { min-width: 0; flex: 1; width: 100%; min-height: 44px; font-size: 12px; }.as-compose .btn { padding-inline: 12px; font-size: 11px; }
@media (min-width: 1200px) {
  body.is-member.social-ready #appMain { width: calc(100% - 504px); padding-inline: clamp(24px, 2.5vw, 44px); }
  body.is-member.social-ready.social-collapsed #appMain { width: calc(100% - 224px); }
  body.is-member.social-ready.social-collapsed #appMain > .view { max-width: none; }
  .social-collapsed .as-panel { display: none; }
  .social-collapsed .as-toggle { display: inline-flex; }
  .social-collapsed .as-chat { right: 20px; }
}
@media (min-width: 1200px) and (max-width: 1650px) { .social-ready .play-layout { grid-template-columns: 1fr; }.social-ready .play-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; } }
@media (max-width: 1199px) { .as-panel { top: 0; z-index: 42; width: min(320px, 100vw); transform: translateX(100%); visibility: hidden; transition: transform .18s, visibility .18s; box-shadow: -12px 0 36px #0006; }.as-open .as-panel { transform: translateX(0); visibility: visible; }.as-head .as-close { display: block; }.as-toggle { display: inline-flex; }.as-chat { right: 20px; bottom: 78px; } }
@media (max-width: 600px) { .as-chat { right: 8px; bottom: 8px; max-width: calc(100vw - 16px); width: 380px; height: min(480px, calc(100dvh - 16px)); }.as-action { min-height: 44px; }.as-toggle { right: 12px; bottom: 12px; }.as-compose .input { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .as-panel { transition: none; } }
