.social-dialog {
  color: #f5eddb;
  background: #123e30;
  border: 1px solid #b7a276;
  border-radius: 16px;
  padding: 0;
  width: min(440px, calc(100% - 24px));
  max-height: min(760px, 85dvh);
  overflow: hidden;
}
.social-dialog::backdrop {
  background: #061e1888;
}
.social-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ddc58b33;
  gap: 10px;
}
.social-dialog h2 {
  font-size: 20px;
  margin: 0;
}
.social-dialog button {
  min-height: 40px;
}
.social-dialog > header button {
  font-size: 20px;
  width: 42px;
  padding: 4px;
}
.social-content {
  padding: 12px 16px;
  max-height: calc(85dvh - 70px);
  overflow: auto;
}
.social-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 10px;
}
.social-tabs button {
  flex: 1;
}
.social-tabs [aria-pressed='true'] {
  background: #c6ad75;
  color: #123e30;
}
.social-turn {
  font-size: 13px;
  color: #d8c48f;
  padding-bottom: 8px;
}
.social-feed {
  height: 260px;
  max-height: 32dvh;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 0 5px;
}
.social-message {
  padding: 9px 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #092f2988;
}
.social-message.mine {
  background: #365848;
}
.message-author {
  display: flex;
  gap: 6px;
  align-items: center;
  border: 0;
  background: none;
  padding: 0;
  min-height: 30px !important;
  color: #eddbac;
  font-size: 14px;
}
.message-author .profile-avatar {
  width: 22px;
  height: 30px;
}
.message-author small {
  color: #b1c5b3;
  font-size: 11px;
}
.social-message p {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.message-tools {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.message-tools button {
  min-height: 28px;
  padding: 3px 0;
  border: 0;
  background: none;
  font-size: 12px;
  color: #b3c7b5;
}
.quick-chat {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding: 8px 0;
  scrollbar-width: thin;
}
.quick-chat button {
  white-space: nowrap;
  padding: 6px 9px;
  font-size: 13px;
  min-height: 34px;
}
.social-content label {
  display: block;
  margin: 10px 0 5px;
  font-size: 14px;
}
.chat-compose {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-content input:not([type='checkbox']),
.social-content select,
.social-content textarea {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 9px;
  border: 1px solid #bcc5aa66;
  border-radius: 7px;
  background: #092f29;
  color: #f5eddb;
  font: inherit;
}
.chat-compose input {
  flex: 1;
}
.chat-compose button {
  flex: none;
  padding: 10px 15px;
}
.social-banter {
  display: flex !important;
  align-items: center;
  gap: 7px;
  min-height: 36px;
}
.social-banter input {
  width: auto;
}
.social-notice {
  font-size: 14px;
  line-height: 1.4;
  color: #ebd197;
  margin: 8px 0 0;
}
.social-retry,
.social-report {
  padding: 10px;
  border: 1px solid #dec58477;
  border-radius: 8px;
  margin: 8px 0;
  font-size: 14px;
}
.social-report button,
.social-retry button {
  margin: 4px;
}
.profile-avatar {
  width: 43px;
  height: 58px;
  object-fit: contain;
  background: #f7f2df;
  border-radius: 6px;
  padding: 2px;
  flex: none;
}
.profile-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-list > button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: left;
}
.profile-list > button > span:first-of-type {
  flex: 1;
}
.profile-list strong,
.profile-list small {
  display: block;
}
.profile-list small {
  margin-top: 4px;
  color: #bfd0bb;
  line-height: 1.35;
}
.profile-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}
.profile-intro h3 {
  margin: 0;
  font-size: 24px;
}
.profile-intro p {
  margin: 5px 0;
  font-size: 14px;
}
.profile-intro small {
  color: #c4d3bf;
}
.profile-intro .profile-avatar {
  width: 60px;
  height: 80px;
}
.profile-about {
  font-size: 15px;
  line-height: 1.5;
}
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #092f2977;
  border-radius: 10px;
  padding: 12px;
  margin: 16px 0;
}
.profile-stats span {
  font-size: 13px;
  color: #b9cdb7;
}
.profile-stats b {
  display: block;
  font-size: 20px;
  color: #e8d9b4;
  line-height: 1.6;
}
.profile-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-content form > button {
  margin-top: 12px;
}
.social-content textarea {
  min-height: 72px;
  resize: vertical;
}
@media (max-width: 600px) {
  .social-dialog {
    width: calc(100% - 12px);
    max-height: 85dvh;
    border-radius: 14px;
  }
  .social-dialog > header {
    padding: 10px 12px;
  }
  .social-content {
    padding: 10px 12px;
  }
  .social-feed {
    height: 230px;
    max-height: 29dvh;
  }
}
.social-play {
  width: 100%;
  margin-bottom: 10px;
  background: #dec386;
  color: #123e30;
  font-weight: 700;
}
.social-dialog.lobby-chat {
  position: static;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-height: none;
  margin: 0;
}
.lobby-chat .social-content {
  max-height: none;
}
.lobby-chat .social-feed {
  height: 240px;
  max-height: 35dvh;
}
