.huper-social {
  width:min(100%,1100px);height:min(100svh,max(390px,min(51vw,510px)));
  display:flex;flex-direction:column;isolation:isolate;position:relative;overflow:hidden;
  padding:10px clamp(14px,2.85vw,30px) 12px;gap:8px;color:#f4ebdd;
  background:radial-gradient(ellipse 70% 90% at 50% 30%,#17523f 0%,#124434 38%,#0c3229 70%,#05130f 100%);
}
.huper-social::before {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/portal/assets/felt-noise.png') center/200px;}
.soc-head,.soc-actions,.soc-row,.soc-person,.soc-tabs,.soc-form,.soc-notice-filters,.soc-setting,.soc-pair {display:flex;align-items:center;gap:8px;min-width:0}
.soc-head {flex:none;gap:10px}
.soc-title,.huper-social h2,.huper-social h3,.soc-button,.soc-name,.soc-pair strong,.soc-timer {white-space:nowrap}
.soc-title {margin:0;font-size:22px;color:#ecd9ae;font-family:"Noto Serif SC",Georgia,serif}
.huper-social h2 {font:600 14px/1.5 inherit;font-family:inherit;font-size:14px;color:#f4ebdd}
.huper-social small,.soc-muted,.soc-person small {font-size:12px;color:#bccabf}
.soc-content {min-height:0;min-width:0;flex:1;display:flex;flex-direction:column;overflow:auto}
.soc-status {font-size:13px;color:#ecd9ae;text-align:center}
.soc-status:empty {display:none}
.soc-button {background:linear-gradient(180deg,#f4ebdd25,#f4ebdd12);border-radius:22px;
  font-size:14px;line-height:1.4;min-height:44px;min-width:44px;padding:6px 14px;
  box-shadow:inset 0 1px 0 #ffffff20,0 2px 6px #0004;color:#f4ebdd}
.soc-button.soc-gold,.soc-tab[aria-pressed=true] {background:linear-gradient(160deg,#ecd9ae,#d7b675 45%,#b99a57);color:#081c18}
.soc-button.soc-plain {background:transparent;box-shadow:none;color:#d7b675;padding:2px 6px;font-size:12px}
.soc-button.soc-round {border-radius:50%;padding:0;width:44px;height:44px;font-size:20px;flex:0 0 44px}
.soc-head .soc-home {margin-inline-start:auto}
.soc-columns {display:grid;grid-template-columns:minmax(0,31%) minmax(0,1fr);gap:clamp(12px,2.8vw,28px);flex:1;min-height:0}
.soc-invite-columns {grid-template-columns:minmax(0,34.2%) minmax(0,1fr)}
.soc-side,.soc-panel,.soc-list,.soc-dialog,.soc-empty,.soc-identity,.soc-notice-text,.soc-profile-extra {display:flex;flex-direction:column;gap:8px;min-width:0}
.soc-side,.soc-panel {min-height:0}
.soc-side {padding:0 2px 3px}
.soc-panel,.soc-dialog {background:linear-gradient(180deg,#1b3f369e,#05130f8c);border-radius:20px;
  padding:12px clamp(12px,2.1vw,20px);box-shadow:inset 0 1px 0 #ffffff1a,0 12px 32px #0006}
.soc-scroll {overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.soc-row {min-height:44px;padding:3px 0}
.soc-row>h2,.soc-row>.soc-person,.soc-row>.soc-pair,.soc-notice-text {flex:1}
.soc-avatar {background:#e6d9c2;border-radius:50%;display:block;width:36px;height:36px;flex:0 0 auto;object-fit:cover}
.soc-identity {gap:0;overflow:auto;scrollbar-width:thin}
.soc-name {font-size:14px;display:block}
.soc-person small:empty {display:none}
.soc-pair {justify-content:space-between;gap:12px}
.soc-pair strong {font-variant-numeric:tabular-nums;color:#ecd9ae}
.soc-input {border:0;background:#05130f8c;border-radius:12px;font-size:14px;min-height:44px;color:#f4ebdd;min-width:0;flex:1;padding:0 12px}
.soc-tabs {flex-wrap:wrap;gap:4px}
.soc-tab {padding:6px 10px;font-size:13px}
.soc-requests>.soc-row:first-child {flex-wrap:wrap;gap:2px}
.soc-requests>.soc-row:first-child>h2 {min-width:max-content}
.soc-empty,.soc-dialog {margin:auto;align-items:center;text-align:center;max-width:100%}
.soc-empty {gap:10px}
.soc-empty h2,.soc-dialog h2 {font:900 20px/1.5 "Noto Serif SC",Georgia,serif;color:#ecd9ae}
.soc-empty>p,.soc-dialog>p {font-size:14px;color:#bccabf;max-width:36em;line-height:1.5}
.soc-empty-icon {width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,#d7b67555,#d7b67514)}
.soc-empty-icon img {width:32px;height:32px}
.soc-dialog {min-width:min(310px,100%);padding:20px 24px;align-items:stretch}
.soc-dialog .soc-person {justify-content:center}
.soc-dialog .soc-actions,.soc-empty .soc-actions {justify-content:center}
.soc-actions,.soc-notice-filters {flex-wrap:wrap}
.soc-dialog .soc-danger,.soc-side .soc-danger {color:#fbb3bc}
.soc-list {width:min(100%,544px);margin:0 auto}
.soc-list .soc-row,.soc-notice {padding:6px 10px;border-radius:14px;background:#f4ebdd0d}
.soc-inbox {width:min(100%,730px);margin:0 auto}
.soc-notice-filters {justify-content:space-between}
.soc-notice-text {gap:2px}
.soc-notice[data-read=false] {border-inline-start:3px solid #d7b675}
.soc-setting {justify-content:space-between;flex-wrap:wrap}
.soc-peer-grid,.soc-seat-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:8px}
.soc-peer,.soc-seat {display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;min-width:0}
button.soc-peer {padding:3px 0;background:transparent;box-shadow:none;border-radius:14px;color:#f4ebdd}
button.soc-peer[aria-pressed=true] {box-shadow:inset 0 0 0 2px #d7b675;background:#d7b67519}
.soc-peer .soc-name,.soc-seat .soc-name {max-width:100%;overflow:auto;scrollbar-width:thin}
.soc-picker-submit {margin-top:auto;justify-content:flex-end}
.soc-profile-extra[hidden] {display:none}
@media (orientation:portrait) {
  .huper-social {min-height:100svh;height:auto;padding:14px 14px 20px}
  .soc-columns {display:flex;flex-direction:column;gap:12px}
  .soc-content,.soc-scroll {overflow:visible}
  .soc-empty,.soc-dialog {margin:clamp(24px,10svh,100px) auto}
  .soc-side,.soc-panel {min-height:max-content}
  .soc-setting {justify-content:flex-start}
  .soc-notice {flex-wrap:wrap}
  .soc-notice-text {flex-basis:65%}
}
.soc-dialog {width:min(100%,400px);background:linear-gradient(180deg,#1b3f36 0%,#0d2620 60%,#081c18 100%);
 box-shadow:0 0 0 1.5px #d7b675b3,0 0 30px #d7b67524,0 14px 32px #0007;border-radius:22px}
.soc-seat-placeholder {display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px dashed #bccabf8a;color:#bccabf}
.soc-pool-arena {width:min(100%,564px);align-items:center;margin:0 auto;flex:1;justify-content:space-evenly;overflow:auto}
.soc-pool-seats {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center;width:min(100%,440px)}
.soc-pool-seats .soc-avatar,.soc-pool-seats .soc-seat-placeholder {width:72px;height:72px;box-shadow:0 0 0 2px #d7b675;border:3px solid #123b2f}
.soc-pool-time {font:bold 23px Georgia,serif;color:#d7b675;text-align:center}
.soc-pool-arena .soc-actions {justify-content:center}
@media (orientation:portrait){.soc-pool-arena {min-height:320px;justify-content:space-around}}
.soc-head .soc-home {flex-shrink:0}
.soc-game-choices {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.soc-game-choices .soc-tab {height:84px;border-radius:16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:0 12px;text-align:start}
.soc-game-choices .soc-tab[aria-pressed=true] {color:#ecd9ae;background:linear-gradient(180deg,#5a6037,#293a25);box-shadow:inset 0 0 0 1.5px #d7b67599}
.soc-game-icon {width:20px;height:20px;flex:none}
.soc-game-choices strong {font-size:14px;line-height:20px}
.soc-game-choices small {font-size:12px;line-height:16px}
.soc-invite-columns>.soc-side>[data-action=share] {margin-top:auto}
.soc-soon {display:block;font-size:12px;line-height:16px}

/* Boards 38, 38a-38d · notifications */
.huper-social {background:none}
.huper-social::before {content:none}
.soc-segment {flex:none;flex-wrap:nowrap;gap:0;padding:3px;border-radius:12px;background:#05130f8c;box-shadow:inset 0 1px 2px #00000080}
.soc-segment .soc-tab {min-height:30px;min-width:0;padding:0 14px;border-radius:9px;font-size:13px;background:transparent;box-shadow:none;color:#bccabf;position:relative}
.soc-segment .soc-tab::after {content:"";position:absolute;inset:-7px 0}
.soc-segment .soc-tab[aria-pressed=true] {background:linear-gradient(180deg,#d7b67552,#d7b67529);color:#ecd9ae;font-weight:600;box-shadow:inset 0 1px 0 #ffffff24}
.soc-inbox {display:flex;flex-direction:column;gap:6px;flex:1;min-height:0}
.soc-inbox .soc-notice {flex:none;flex-wrap:nowrap;gap:12px;min-height:56px;padding:0 12px 0 8px;border:0;border-radius:14px;background:#f4ebdd0a}
.soc-inbox .soc-notice[data-read=false] {border:0;background:linear-gradient(90deg,#d7b67529,#d7b67508)}
.soc-notice-dot {flex:none;width:8px;height:8px;border-radius:50%}
.soc-notice[data-read=false] .soc-notice-dot {background:#ff9a8b}
.soc-inbox .soc-avatar,.soc-notice-icon {flex:none;width:36px;height:36px;border-radius:50%}
.soc-notice-icon {background:radial-gradient(circle,#f2b95c55,#f2b95c14) center/100%,url('/portal/social-bell.svg') center/18px no-repeat;background:url('/portal/social-bell.svg') center/18px no-repeat,radial-gradient(circle,#f2b95c55,#f2b95c14)}
.soc-inbox .soc-notice-text {flex:1;gap:0;overflow:hidden}
.soc-inbox .soc-notice-text strong {font-size:14px;font-weight:600;line-height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.soc-inbox .soc-notice-text small {line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.soc-inbox .soc-actions {flex:none;flex-wrap:nowrap;gap:6px}
.soc-inbox .soc-actions .soc-button {min-height:32px;padding:0 18px;border-radius:16px;font-size:13px;position:relative}
.soc-inbox .soc-actions .soc-button::after {content:"";position:absolute;inset:-6px 0}
.soc-inbox .soc-actions .soc-gold {padding:0 24px;font-weight:700}
.soc-notice-time {flex:none;width:62px;text-align:end;font-size:12px;color:#9db3a8;white-space:nowrap;font-variant-numeric:tabular-nums}
.soc-notice-detail {flex:1;min-height:0;gap:10px;padding:16px 20px;border-radius:20px;background:linear-gradient(180deg,#1b3f369e,#05130f8c);box-shadow:inset 0 1px 0 #ffffff1a,0 12px 32px #00000073}
.soc-notice-heading {display:flex;align-items:center;gap:12px}
.soc-notice-heading h2 {margin:0;font:900 20px/26px "Noto Serif SC",Georgia,serif;color:#ecd9ae;white-space:normal}
.soc-rule {width:100%;height:1px;margin:0;border:0;background:linear-gradient(90deg,#d7b67500,#d7b67580,#d7b67500)}
.soc-notice-body {flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:20px;color:#dfe8e1}
.soc-notice-body p {margin:0}
.soc-notice-foot {display:flex;align-items:center;gap:10px}
.soc-notice-foot small {flex:1}
.soc-notice-foot .soc-button {min-height:38px;padding:0 18px;border-radius:19px;font-size:13px}
.soc-notice-foot .soc-gold {min-width:110px;font-weight:700}
@media (orientation:portrait) {
 .soc-head:has(.soc-segment) {flex-wrap:wrap}
 .soc-inbox .soc-notice {flex-wrap:wrap;padding-block:8px}
 .soc-inbox .soc-notice-text {flex-basis:55%}
}
.soc-round svg {width:20px;height:20px;display:block;margin:auto}
.soc-content>.soc-inbox {width:100%;max-width:none;margin:0;padding:0;align-self:stretch}

/* Leo 2026-12-03 逐页精修 (boards Friends / Notify / Invite): the coin balance in the head; the invite choices as
   segmented tracks. */
.soc-head .soc-coins {margin-inline-start:auto;flex-shrink:0}
.soc-head .soc-coins:not([hidden])+.soc-home {margin-inline-start:0}
.soc-setting .soc-tabs {flex-wrap:nowrap;gap:2px;padding:3px;border-radius:12px;background:#0000003d;box-shadow:inset 0 1px 2px #00000080}
.soc-setting .soc-tabs .soc-tab {min-width:0;min-height:32px;padding:0 14px;border-radius:9px;background:none;box-shadow:none;color:#9db3a8;font-weight:600}
.soc-setting .soc-tabs .soc-tab[aria-pressed=true] {background:linear-gradient(180deg,rgba(215,182,117,.3),rgba(215,182,117,.16));color:#ecd9ae}

/* Board Blocklist (Leo 2026-12-03 逐页精修). */
.soc-head .soc-count {margin-left:6px;font-size:12px;font-weight:400;color:#9db3a8}
.soc-blocked {width:min(560px,100%);margin:0 auto}
.soc-blocked-empty {text-align:center;margin-top:24px}
.soc-blocked-note {margin:auto 0 0;text-align:center;font-size:12px}

.soc-inbox .soc-notice-open {
  align-items:stretch;justify-content:center;text-align:start;min-height:44px;
  padding:0;background:transparent;box-shadow:none;border-radius:4px;color:inherit
}
.hall .announce .announce-detail {min-width:44px;min-height:44px;text-align:start;padding:0;color:inherit;background:none;border:0}
.hall .announce:has(.announce-detail) .announce-close {min-width:44px;min-height:44px}

/* FriendAdd */
.soc-find-launch {text-align:start;border-radius:12px;background:#05130f8c;color:#bccabf}
.soc-friend-modal {position:fixed;inset:0;margin:auto;width:min(400px,calc(100vw - 30px));min-width:0;max-height:calc(100dvh - 24px);overflow:auto;border:0;color:#f4ebdd;padding:16px 18px}
.soc-friend-modal:not([open]) {display:none}
.soc-friend-modal::backdrop {background:rgba(3,12,10,.68);backdrop-filter:blur(2px)}
.soc-friend-modal h2,.soc-friend-modal p {margin:0}
.soc-friend-modal h2 {font-size:22px}
.soc-find-field {display:flex;align-items:center;background:#05130f99;border-radius:12px;box-shadow:inset 0 1px 2px #0008}
.soc-find-field .soc-input {background:transparent;font-size:16px;font-weight:600;letter-spacing:.04em}
.soc-find-check {padding-inline-end:14px;color:#5ccfb2}
.soc-find-result {color:#bccabf;font-size:13px}
.soc-find-result:empty {display:none}
.soc-find-result .soc-person {background:#f4ebdd12;border-radius:14px;justify-content:start;text-align:start;padding:10px 12px;gap:12px}
.soc-find-result .soc-avatar {width:44px;height:44px}
.soc-find-result .soc-name {color:#f4ebdd;font-size:15px;white-space:normal;overflow-wrap:anywhere}
.soc-friend-modal .soc-actions {margin-top:6px}
.soc-friend-modal .soc-actions button {min-width:100px}
.soc-friend-modal button:disabled {opacity:.55}

.soc-game-choices:has([data-action=game-mahjong]) {grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.soc-game-choices:has([data-action=game-mahjong]) .soc-tab {height:auto;min-height:84px;padding:7px;white-space:normal}
.soc-game-choices:has([data-action=game-mahjong]) strong,.soc-game-choices:has([data-action=game-mahjong]) small {overflow-wrap:anywhere}
.soc-setting:has([data-action=end-bust]) .soc-tabs {flex-wrap:wrap}

.soc-find-field:focus-within {outline:2px solid #5ccfb2;outline-offset:1px}
.soc-find-field .soc-input:focus {outline:none}
.soc-invite-columns .soc-peer {position:relative}
.soc-invite-columns .soc-peer .soc-avatar {width:44px;height:44px}
.soc-invite-columns .soc-peer[aria-pressed=true] {background:none;box-shadow:none}
.soc-invite-columns .soc-peer[aria-pressed=true] .soc-avatar {outline:2px solid #d7b675;outline-offset:2px}
.soc-invite-columns .soc-peer[aria-pressed=true]::after {content:"✓";position:absolute;top:31px;left:calc(50% + 10px);width:17px;height:17px;border-radius:50%;line-height:17px;background:#d7b675;color:#081c18;font-size:12px}
