/* MSO-V2 social-card: CSS-sized login card, centred on the game's logged dialog. */
#mso-social {
  position: fixed;
  z-index: 20;
  width: 320px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid #8a6a22;
  border-radius: 8px;
  background: linear-gradient(#1c2637, #101622);
  box-shadow: 0 8px 32px #000b;
  color: #f1e6c8;
  font: 14px/1.5 "NotoThai", system-ui, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}
#mso-social [hidden], #mso-social[hidden], #mso-social-chip[hidden] { display: none; }
#mso-social h2 { margin: 0 0 14px; color: #d9b45a; font-size: 22px; }
#mso-social .social-buttons { display: grid; gap: 8px; }
#mso-social button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#mso-social .social-buttons button { display: flex; align-items: center; justify-content: center; gap: 10px; }
#mso-social .social-buttons span { display: inline-flex; flex: none; }
#mso-social svg { width: 24px; height: 24px; }
#mso-social .social-google { color: #1f1f1f; background: #fff; border-color: #747775; }
#mso-social .social-line { color: #fff; background: #06C755; }
#mso-social button:focus-visible, #mso-social a:focus-visible, #mso-social-chip:focus-visible { outline: 3px solid #d9b45a; outline-offset: 2px; }
#mso-social p { margin: 8px 0; }
#mso-social .social-error { color: #ffaaa0; }
#mso-social .social-divider { display: flex; align-items: center; gap: 10px; color: #b7bfcc; }
#mso-social .social-divider::before, #mso-social .social-divider::after { content: ""; flex: 1; border-top: 1px solid #59606e; }
#mso-social .social-id { padding: 8px 0; background: transparent; color: #f1d488; text-decoration: underline; font-weight: 400; }
#mso-social a { color: #b7bfcc; display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
#mso-social-chip {
  position: fixed;
  z-index: 20;
  max-width: calc(100vw - 32px);
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #8a6a22;
  border-radius: 8px;
  background: #101622;
  color: #f1d488;
  font: 12px/1.5 "NotoThai", system-ui, sans-serif;
  overflow-wrap: anywhere;
}
body.m-stopped #mso-social, body.m-stopped #mso-social-chip { display: none; }
@media (max-height: 440px) {
  #mso-social { width: 280px; padding: 10px; font-size: 12px; }
  #mso-social h2 { margin-bottom: 8px; font-size: 18px; }
  #mso-social p { margin: 4px 0; }
}
