.social-launch {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 16px;
  width: 100%; min-height: 96px; padding: 20px 24px; margin: 20px 0 0; border: 1px solid #b7b680;
  border-radius: 10px; background: #183f36; color: #fbf2ce; text-align: left; cursor: pointer;
}
.social-launch > img {position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .35;}
.social-launch::after {content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #173b37f2, #183f3666);}
.social-launch-icon {display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border: 1px solid #d7c68077; border-radius: 50%; color: #eadba4;}
.social-launch strong {display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 3px;}
.social-launch small {display: block; margin-top: 6px; font-size: 10px; letter-spacing: 1px; color: #d5dfc6;}
.social-launch-tag {display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 10px; white-space: nowrap; color: #e9d795;}
.social-launch:hover {border-color: var(--gold);}
.social-panel {position: relative; color: var(--ink);}
.social-panel button {cursor: pointer;}
.social-panel button:disabled {cursor: not-allowed; opacity: .5;}
.social-tabs {display: flex; gap: 5px; border-bottom: 1px solid var(--line); margin: 0 0 14px; padding-bottom: 10px;}
.social-tabs > button {
  flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 40px;
  padding: 8px; border: 1px solid transparent; border-radius: 7px; background: transparent;
  font: inherit; font-size: 12px; color: var(--muted); white-space: nowrap;
}
.social-tabs > button:hover, .social-tabs > button.selected {background: #6e9c7817; border-color: var(--line); color: var(--jade-dark);}
.social-tabs b {display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 3px; background: #9a5544; border-radius: 50%; color: #fff7e5; font-size: 9px;}
.social-landscape {position: relative; isolation: isolate; overflow: hidden; height: 150px; background: #234b41; border-radius: 10px; margin-bottom: 16px;}
.social-landscape > img:first-child {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; z-index: -2;}
.social-landscape::after {content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #092a30dc, #123c3425 85%);}
.social-landscape > div {position: absolute; top: 23px; left: 25px; color: #fff3d1;}
.social-landscape span {font-size: 9px; letter-spacing: 3px; opacity: .75;}
.social-landscape h3 {font: 30px var(--serif); letter-spacing: 5px; margin: 12px 0 8px;}
.social-landscape p {font-size: 11px; margin: 0; opacity: .85;}
.social-landscape > .social-paper-crane {position: absolute; width: 90px; height: 85px; object-fit: contain; right: 9%; top: 32%; filter: drop-shadow(0 6px 12px #10282088); animation: social-crane-flight 7s ease-in-out infinite;}
.social-notice {font-size: 12px; padding: 12px 15px; border: 1px solid var(--line); background: #75a47e12; color: var(--jade-dark); border-radius: 7px;}
.social-empty {display: grid; place-items: center; text-align: center; padding: 30px 20px; color: var(--muted);}
.social-empty h4 {font-size: 19px; margin: 16px 0 0; color: var(--ink);}
.social-empty p {font-size: 12px; line-height: 1.9;}
.social-empty button {margin-top: 8px;}
.social-avatar {flex-shrink: 0; width: 42px; height: 42px; object-fit: cover; object-position: center 18%; border: 1px solid var(--line); border-radius: 50%; background: radial-gradient(ellipse, #c9d8bf, #8ca494);}
.social-section-title, .social-invitations h4 {font-size: 13px; font-weight: 500; margin: 20px 0 12px; display: flex; align-items: center; gap: 8px;}
.social-friend-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;}
.social-friend-grid > article {position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 14px 18px 12px 12px;}
.social-friend-grid article > div {flex: 1; min-width: 90px;}
.social-friend-grid strong, .social-people strong, .social-invitations strong {display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere;}
.social-friend-grid small, .social-people small, .social-invitations small {display: block; font-size: 10px; color: var(--muted); margin-top: 5px;}
.social-friend-grid .text-button {font-size: 10px; padding: 6px 0; display: flex; align-items: center; gap: 4px;}
.social-remove {position: absolute; right: 3px; top: 3px; border: 0; background: none; color: var(--muted); padding: 3px;}
.social-invitations {padding: 0 14px 10px; border: 1px solid #cfb68177; border-radius: 9px; background: #d7b7570a;}
.social-invitations > div {display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line);}
.social-invitations > div > span {flex: 1; min-width: 0;}
.social-invitations button, .social-people button {display: grid; place-items: center; min-width: 34px; min-height: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--jade-dark); font-size: 10px;}
.social-directory {margin: 20px 0; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;}
.social-directory summary {font-size: 12px; color: var(--jade-dark); cursor: pointer;}
.social-id-invite {display: flex; align-items: center; gap: 9px; margin: 8px 0 14px;}
.social-id-invite input {flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 10px; font: inherit; font-size: 11px; background: var(--panel); color: var(--ink);}
.social-people {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; max-height: 250px; overflow: auto; overscroll-behavior: contain;}
.social-people > div {display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0;}
.social-people span {flex: 1; min-width: 0;}
.social-partner-stage {position: relative; isolation: isolate; display: flex; justify-content: space-evenly; flex-wrap: wrap; gap: 8px; padding: 18px 20px 20px; border: 1px solid #bc997d66; background: radial-gradient(ellipse at 50% 38%, #ecd2b148, #e1dfb70d); border-radius: 10px; overflow: hidden;}
.social-partner-stage > .social-avatar.large {width: 29%; max-width: 200px; height: 230px; object-fit: contain; border: 0; border-radius: 0; background: none; filter: drop-shadow(0 9px 11px #24392133); animation: social-partner-breathe 5s ease-in-out infinite;}
.social-partner-stage > .social-avatar.large:nth-of-type(3) {animation-delay: -2s;}
.social-partner-stage > .social-red-thread {position: absolute; z-index: -1; left: calc(50% - 80px); top: 55px; width: 160px; height: 160px; object-fit: contain; opacity: .6; animation: social-bond-glow 4s ease-in-out infinite;}
.social-awaiting {display: grid; align-content: center; justify-items: center; gap: 12px; width: 29%; height: 230px; color: #a37c70;}
.social-awaiting span {font-size: 11px;}
.social-partner-caption {width: 100%; text-align: center; position: relative;}
.social-partner-caption h4 {font: 22px var(--serif); margin: 6px 0 8px; overflow-wrap: anywhere;}
.social-partner-caption p {font-size: 11px; color: var(--muted); line-height: 1.8;}
.social-partner-caption > div {display: flex; justify-content: center; align-items: center; gap: 12px;}
.social-partner-caption .text-button {font-size: 10px;}
.social-chat {border: 1px solid var(--line); border-radius: 9px; background: var(--panel); overflow: hidden; margin-top: 16px;}
.social-chat > header {display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: #769d8112; border-bottom: 1px solid var(--line); color: var(--jade-dark); font-size: 12px;}
.social-chat > header strong {font-weight: 500; overflow-wrap: anywhere;}
.social-chat > header span {margin-left: auto; color: var(--muted); font-size: 10px; flex-shrink: 0;}
.social-message-list {height: 290px; padding: 14px 18px; overflow: auto; overscroll-behavior: contain; scroll-behavior: smooth;}
.social-message-empty {display: grid; place-items: center; align-content: center; height: 100%; color: var(--muted); font-size: 11px; text-align: center;}
.social-message-empty > img {width: 95px; height: 95px; object-fit: contain; opacity: .7; animation: social-partner-breathe 5s ease-in-out infinite;}
.social-message {display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; animation: social-message-arrive .35s ease-out both;}
.social-message > div {min-width: 0; max-width: calc(100% - 65px);}
.social-message.mine {flex-direction: row-reverse;}
.social-message.mine > div {display: flex; flex-direction: column; align-items: flex-end;}
.social-message-meta {display: flex; align-items: center; gap: 8px; min-height: 21px; font-size: 9px; color: var(--muted); flex-wrap: wrap;}
.social-message-meta button {border: 0; padding: 0; color: var(--muted); background: none; font: inherit; text-align: left; overflow-wrap: anywhere;}
.social-message-meta button:first-child {color: var(--jade-dark);}
.social-message-meta button:disabled {opacity: 1; cursor: default;}
.social-message p {margin: 4px 0 0; padding: 9px 13px; border: 1px solid var(--line); border-radius: 0 11px 11px 11px; background: var(--paper); color: var(--ink); font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere;}
.social-message.mine p {border-radius: 11px 0 11px 11px; background: #6e9c7817;}
.social-message p.removed {color: var(--muted); font-size: 11px; font-style: italic; background: none;}
.social-quick-lines {display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); overflow-x: auto;}
.social-quick-lines > button {flex-shrink: 0; border: 1px solid var(--line); border-radius: 20px; padding: 5px 9px; background: none; color: var(--muted); font: inherit; font-size: 10px;}
.social-compose {padding: 2px 14px 12px;}
.social-compose textarea {display: block; resize: vertical; min-height: 58px; max-height: 140px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; line-height: 1.7;}
.social-compose > div {display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px;}
.social-compose small {font-size: 10px; color: var(--muted);}
.social-compose .button {min-height: 36px; padding: 8px 17px; font-size: 12px;}
.social-boundary {font-size: 10px; color: var(--muted); line-height: 1.9; margin: 14px 0 0;}
.social-celebration {position: fixed; inset: 0; margin: auto; max-height: 500px; width: min(480px, calc(100% - 36px)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px 20px; border: 1px solid #d9bf7e; border-radius: 12px; background: #173e3aec; box-shadow: 0 24px 90px #071e2b88; backdrop-filter: blur(12px); color: #fff0c0; text-align: center; z-index: 12; animation: social-celebration-in .6s ease-out both; overflow: hidden;}
.social-celebration > img {width: 180px; height: 180px; object-fit: contain; filter: drop-shadow(0 0 22px #c2aa6a77); animation: social-bond-glow 4s infinite ease-in-out;}
.social-celebration h3 {font: 24px var(--serif); margin: 20px 0 8px; z-index: 1;}
.social-celebration p {font-size: 12px; color: #d9dfb9; margin-bottom: 24px;}
.social-petal-orbit {position: absolute; inset: 0; pointer-events: none;}
.social-petal-orbit > i {position: absolute; top: -12px; left: calc(var(--i) * 8%); width: 7px; height: 11px; background: #f0cba3; border-radius: 8px 0 8px 0; opacity: 0; animation: social-petal-fall 5s calc(var(--i) * -.6s) linear infinite;}
@keyframes social-crane-flight {0%, 100% {transform: translate(0, 0) rotate(-5deg);} 50% {transform: translate(-28px, -12px) rotate(3deg);}}
@keyframes social-partner-breathe {50% {transform: translateY(-6px);}}
@keyframes social-bond-glow {50% {opacity: .85; filter: drop-shadow(0 0 25px #d7b07b88);}}
@keyframes social-message-arrive {from {opacity: 0; transform: translateY(9px);} to {opacity: 1; transform: translateY(0);}}
@keyframes social-celebration-in {from {opacity: 0; transform: scale(.94);} to {opacity: 1; transform: scale(1);}}
@keyframes social-petal-fall {10% {opacity: .75;} 100% {opacity: 0; transform: translate(50px, 500px) rotate(240deg);}}
@media(max-width: 760px) {
  .social-launch {padding: 16px; gap: 12px;} .social-launch strong {font-size: 19px;} .social-launch-tag {font-size: 9px; gap: 5px;}
  .social-launch-icon {width: 39px; height: 39px;} .social-launch small {font-size: 9px; letter-spacing: 0;}
  .social-tabs {gap: 2px;} .social-tabs > button {flex-direction: column; gap: 5px; padding: 8px 3px; font-size: 10px; position: relative;}
  .social-tabs b {position: absolute; top: 0; right: 0;} .social-landscape {height: 130px;}
  .social-landscape > div {top: 18px; left: 18px;} .social-landscape h3 {font-size: 26px;} .social-landscape span {font-size: 8px;}
  .social-landscape > .social-paper-crane {width: 66px; height: 66px; right: 5%;}
  .social-friend-grid, .social-people {grid-template-columns: minmax(0, 1fr);}
  .social-chat > header {padding: 11px; flex-wrap: wrap;} .social-chat > header span {font-size: 9px;}
  .social-message-list {height: 300px; padding: 12px 10px;} .social-message {gap: 8px;} .social-message .social-avatar {width: 32px; height: 32px;}
  .social-message > div {max-width: calc(100% - 44px);} .social-message p {font-size: 11px; padding: 8px 10px;}
  .social-quick-lines {padding: 10px;} .social-compose {padding: 0 10px 10px;} .social-compose small {font-size: 9px;}
  .social-partner-stage {padding: 10px 10px 18px;} .social-partner-stage > .social-avatar.large, .social-awaiting {width: 36%; height: 190px;}
  .social-partner-stage > .social-red-thread {width: 110px; height: 110px; left: calc(50% - 55px); top: 50px;}
  .social-partner-caption h4 {font-size: 18px;} .social-celebration h3 {font-size: 20px;}
}
@media(max-width: 400px) {.social-launch-tag {display: none;}.social-chat > header span {width: 100%; margin-left: 25px;}}
.social-reduced *, .social-reduced *::before, .social-reduced *::after {animation: none!important; transition: none!important; scroll-behavior: auto!important;}
@media(prefers-reduced-motion: reduce) {.social-panel *, .social-panel *::before, .social-panel *::after {animation: none!important; transition: none!important; scroll-behavior: auto!important;}}
