/* 荣誉与社交: titles, VIP names, badges, frames, cards, leaderboards, homepage */

/* ---- name line: name (VIP colour) · V pill · title · badges ---- */
.so-nl { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px 4px; min-width: 0; vertical-align: middle; }
.so-n { font: 15px var(--font-cn); font-weight: normal; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 9em; }
.so-n.vb1 { color: #7ae890; }
.so-n.vb2 { color: #c49aff; }
.so-n.vb3 { color: #ffd35a; text-shadow: 0 0 6px rgba(255, 211, 90, 0.45); }
.so-n.vb4 { background: linear-gradient(90deg, #ff6a6a, #ffd35a, #62e687, #5ac8ff, #c06cff, #ff6a6a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: soRainbow 3s linear infinite; }
.so-vip { flex: none; font: 700 10px/1 var(--font-px); font-style: normal; padding: 2px 3px 1px; color: #2a1206; background: #9ad8a8; box-shadow: 0 0 0 1px var(--edge); }
.so-vip.b2 { background: #c49aff; color: #1a0a2a; }
.so-vip.b3 { background: linear-gradient(#fff0a0, #ffb02a); }
.so-vip.b4 { background: linear-gradient(90deg, #ff8a8a, #ffd35a, #7ae8a0, #8ad0ff, #d89aff); animation: soRainbow 3s linear infinite; background-size: 200% 100%; }
/* titles: the kind picks the colours and the little pixel ornament (成就 laurel · 人气 heart · 公会 shield · 竞技 sword ·
   挑战 flame · 活动 star · 贵族 gem · 榜单 crown); the TIER decides how much is there, step by step:
   普通 words only → 稀有 plate + one ornament → 史诗 both ornaments + bevel → 传说 gold frame + slow sweep →
   神话 aura + glitter, bigger → 至尊/榜单 crowns, prism frame, glowing gold words */
.so-tt { position: relative; flex: none; display: inline-block; font: 12px/1.2 var(--font-cn); font-style: normal; padding: 1px 6px; white-space: nowrap; color: var(--ttc, var(--tc)); background: rgba(10, 6, 16, 0.62); box-shadow: inset 0 0 0 1px var(--ttr, var(--tc)); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55); }
.so-tt.t0 { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.so-tt.k-ach { --tto: var(--tto-laurel); --ttc: #d8ffd8; --ttbg: linear-gradient(#1e4a2a, #123220); --ttr: #62e687; --tta: rgba(98, 230, 135, 0.6); }
.so-tt.k-social { --tto: var(--tto-heart); --ttc: #ffe0ec; --ttbg: linear-gradient(#5a1a3a, #3a0e24); --ttr: #ff8ab0; --tta: rgba(255, 138, 176, 0.6); }
.so-tt.k-guild { --tto: var(--tto-shield); --ttc: #e0eaff; --ttbg: linear-gradient(#1e2e5a, #121c3a); --ttr: #7aa8ff; --tta: rgba(122, 168, 255, 0.6); }
.so-tt.k-arena { --tto: var(--tto-sword); --ttc: #ffe0e6; --ttbg: linear-gradient(#5a1424, #300a14); --ttr: #ff6a90; --tta: rgba(255, 106, 144, 0.6); }
.so-tt.k-hard { --tto: var(--tto-flame); --ttc: #fff0d0; --ttbg: linear-gradient(#4a1606, #1a0602); --ttr: #ff8a2a; --tta: rgba(255, 140, 40, 0.7); }
.so-tt.k-event { --tto: var(--tto-star); --ttc: #fff0d8; --ttbg: linear-gradient(#5a2a08, #3a1a04); --ttr: #ffb04a; --tta: rgba(255, 176, 74, 0.6); }
.so-tt.k-vip { --tto: var(--tto-gem); --ttc: #ffe8ff; --ttbg: linear-gradient(100deg, #3a1060, #6a2a8a 50%, #3a1060); --ttr: #e0a8ff; --tta: rgba(200, 120, 255, 0.7); }
.so-tt.k-rank { --tto: var(--tto-crown); --ttc: #2a1206; --ttbg: linear-gradient(#ffe680, #e8a020); --ttr: #8a5a10; --tta: rgba(255, 211, 90, 0.75); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); }
/* 普通: the words in the kind's colour on a dark chip — nothing else */
.so-tt.t1 { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
/* 稀有: the kind's plate and one ornament */
.so-tt.t2 { background: var(--ttbg); padding-left: 13px; }
/* 史诗 and up: both ornaments and a bevel */
.so-tt.t3, .so-tt.t4, .so-tt.t5, .so-tt.t6 { background: var(--ttbg); padding: 1px 13px; box-shadow: inset 0 0 0 1px var(--ttr), inset 0 2px 0 0 rgba(255, 255, 255, 0.16); }
.so-tt.t2::before, .so-tt.t3::before, .so-tt.t3::after, .so-tt.t4::before, .so-tt.t4::after, .so-tt.t5::before, .so-tt.t5::after, .so-tt.t6::before, .so-tt.t6::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; background: var(--tto) center / contain no-repeat; image-rendering: pixelated; }
.so-tt.t2::before, .so-tt.t3::before, .so-tt.t4::before, .so-tt.t5::before, .so-tt.t6::before { left: 2px; }
.so-tt.t3::after, .so-tt.t4::after, .so-tt.t5::after, .so-tt.t6::after { right: 2px; transform: scaleX(-1); }
/* 传说: a gold frame around it and a light sweeping slowly across */
.so-tt.t4 { font-size: 12.5px; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.3) 50%, transparent 62%) 0 0 / 260% 100% no-repeat, var(--ttbg); box-shadow: inset 0 0 0 1px var(--ttr), inset 0 2px 0 0 rgba(255, 255, 255, 0.18), 0 0 0 1px #140c1c, 0 0 0 2px rgba(255, 211, 90, 0.75); animation: ttShine 3.4s linear infinite; }
/* 神话: bigger, an aura that breathes and glitter drifting through the plate */
.so-tt.t5, .so-tt.t6 { font-size: 13px; padding: 2px 15px; background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 0.6px, transparent 1.2px) 0 0 / 13px 9px, linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.34) 50%, transparent 62%) 0 0 / 260% 100% no-repeat, var(--ttbg); box-shadow: inset 0 0 0 1px var(--ttr), inset 0 2px 0 0 rgba(255, 255, 255, 0.2), 0 0 0 1px #140c1c, 0 0 0 2px rgba(255, 211, 90, 0.9), 0 0 6px var(--tta); animation: ttGlit 2.4s linear infinite, ttAura 1.8s ease-in-out infinite; }
.so-tt.t5::before, .so-tt.t5::after, .so-tt.t6::before, .so-tt.t6::after { width: 11px; height: 11px; margin-top: -5.5px; }
/* 至尊 / 榜单: crowns on both ends, a frame cycling through the rainbow and glowing gold words */
.so-tt.t6 { --tto: var(--tto-crown); color: #fff6c0; text-shadow: 0 0 4px rgba(255, 211, 90, 0.9), 0 1px 0 #000; animation: ttGlit 2s linear infinite, ttPrism 2.4s linear infinite; }
.so-tt.k-rank.t6 { color: #2a1206; text-shadow: 0 0 3px rgba(255, 255, 255, 0.9); }
.so-tt.k-vip.t5 { --ttc: #ffe680; --ttbg: linear-gradient(100deg, #4a1470, #8a3aa8 50%, #4a1470); }
@keyframes ttShine { to { background-position: -220% 0, 0 0; } }
@keyframes ttGlit { to { background-position: 13px -9px, -220% 0, 0 0; } }
@keyframes ttAura { 50% { box-shadow: inset 0 0 0 1px var(--ttr), inset 0 2px 0 0 rgba(255, 255, 255, 0.2), 0 0 0 1px #140c1c, 0 0 0 2px rgba(255, 246, 192, 1), 0 0 16px var(--tta); } }
@keyframes ttPrism { 0%, 100% { box-shadow: inset 0 0 0 1px var(--ttr), 0 0 0 1px #140c1c, 0 0 0 2px #ff6a6a, 0 0 12px rgba(255, 106, 106, 0.75); } 20% { box-shadow: inset 0 0 0 1px var(--ttr), 0 0 0 1px #140c1c, 0 0 0 2px #ffd35a, 0 0 12px rgba(255, 211, 90, 0.75); } 40% { box-shadow: inset 0 0 0 1px var(--ttr), 0 0 0 1px #140c1c, 0 0 0 2px #62e687, 0 0 12px rgba(98, 230, 135, 0.75); } 60% { box-shadow: inset 0 0 0 1px var(--ttr), 0 0 0 1px #140c1c, 0 0 0 2px #5ac8ff, 0 0 12px rgba(90, 200, 255, 0.75); } 80% { box-shadow: inset 0 0 0 1px var(--ttr), 0 0 0 1px #140c1c, 0 0 0 2px #c06cff, 0 0 12px rgba(192, 108, 255, 0.75); } }.so-bdi { width: 15px; height: 15px; object-fit: contain; image-rendering: pixelated; flex: none; }
.so-bdi.lg { width: 34px; height: 34px; }
@keyframes soRainbow { to { background-position: 200% 0; } }
@keyframes soShine { to { background-position: -220% 0; } }

/* ---- avatars & frames (shares .af with the arena) ---- */
button.so-ava { padding: 0; border: 0; cursor: pointer; }
.af.xl { width: 64px; height: 70px; }
.af.xl img { width: 54px; height: 58px; }
.af-f_ap { box-shadow: 0 0 0 2px var(--edge), inset 0 0 0 2px #62e687, inset 0 0 0 3px #1a5a2a; }
.af-f_ap::before { content: ""; position: absolute; bottom: -3px; left: 50%; width: 14px; height: 4px; margin-left: -7px; background: linear-gradient(90deg, #62e687 0 4px, #ffd35a 4px 10px, #62e687 10px); box-shadow: 0 0 0 1px var(--edge); }
.af-f_like { box-shadow: 0 0 0 2px var(--edge), inset 0 0 0 2px #ff8ab0, 0 0 8px rgba(255, 138, 176, 0.45); }
.af-f_like::before { content: "♥"; position: absolute; top: -8px; right: -4px; font-size: 12px; line-height: 1; color: #ff5a8a; text-shadow: 0 1px 0 var(--edge), 1px 0 0 var(--edge), -1px 0 0 var(--edge); }
.af-f_founder { box-shadow: 0 0 0 2px var(--edge), inset 0 0 0 2px #ff9a3a, inset 0 0 0 3px #5a1a08, 0 0 8px rgba(255, 140, 50, 0.5); }
.af-f_founder::after { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 2px; background: #ffd35a; }
.af-f_rank { box-shadow: 0 0 0 2px var(--edge), inset 0 0 0 2px #ffd35a, inset 0 0 0 4px #8a5a10, 0 0 14px rgba(255, 211, 90, 0.75); animation: afKing 1.4s steps(4) infinite; }
.af-f_rank::before { content: ""; position: absolute; top: -6px; left: 50%; width: 14px; height: 6px; margin-left: -7px; background: linear-gradient(90deg, #ffd35a 0 2px, transparent 2px 6px, #ffd35a 6px 8px, transparent 8px 12px, #ffd35a 12px); box-shadow: 0 2px 0 0 #ffd35a; }
.af-f_v4 { box-shadow: 0 0 0 2px var(--edge), inset 0 0 0 2px #c49aff, inset 0 0 0 3px #ffd35a, 0 0 8px rgba(196, 154, 255, 0.5); }
.af-f_v7 { box-shadow: 0 0 0 2px var(--edge), inset 0 0 0 2px #e8402a, inset 0 0 0 4px #ffd35a, 0 0 12px rgba(232, 64, 42, 0.55); }
.af-f_v7::before, .af-f_v7::after { content: ""; position: absolute; top: 40%; width: 5px; height: 10px; background: #ffd35a; box-shadow: 0 0 0 1px var(--edge); }
.af-f_v7::before { left: -5px; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.af-f_v7::after { right: -5px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.af-f_v10 { box-shadow: 0 0 0 2px var(--edge), 0 0 14px rgba(255, 255, 255, 0.45); background: radial-gradient(circle at 50% 40%, #3a2a50, #120c1a 75%); }
.af-f_v10::before { content: ""; position: absolute; inset: -2px; padding: 3px; background: linear-gradient(90deg, #ff6a6a, #ffd35a, #62e687, #5ac8ff, #c06cff, #ff6a6a); background-size: 200% 100%; animation: soRainbow 2.4s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* ---- the card ---- */
.so-sheet { display: grid; gap: 10px; }
.so-card { position: relative; display: grid; gap: 8px; padding: 12px 12px 10px; overflow: hidden; box-shadow: var(--px), inset 0 0 0 1px rgba(255, 255, 255, 0.12); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); }
/* 贵族 cards: 紫金 (V4–6) → 流金 with a light sweep (V7–9) → a moving rainbow rim (V10) */
.so-card.vipc2 { box-shadow: var(--px), inset 0 0 0 1px #c49aff, inset 0 0 0 2px rgba(255, 211, 90, 0.7); }
.so-card.vipc2::before { content: ""; position: absolute; inset: 3px; pointer-events: none; background: linear-gradient(#ffd35a, #ffd35a) 0 0 / 10px 2px, linear-gradient(#ffd35a, #ffd35a) 0 0 / 2px 10px, linear-gradient(#ffd35a, #ffd35a) 100% 0 / 10px 2px, linear-gradient(#ffd35a, #ffd35a) 100% 0 / 2px 10px, linear-gradient(#ffd35a, #ffd35a) 0 100% / 10px 2px, linear-gradient(#ffd35a, #ffd35a) 0 100% / 2px 10px, linear-gradient(#ffd35a, #ffd35a) 100% 100% / 10px 2px, linear-gradient(#ffd35a, #ffd35a) 100% 100% / 2px 10px; background-repeat: no-repeat; }
.so-card.vipc3 { box-shadow: var(--px), inset 0 0 0 2px #ffd35a, inset 0 0 0 3px #8a5a10, 0 0 14px rgba(255, 211, 90, 0.35); }
.so-card.vipc3::after, .so-card.vipc4::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 42%, rgba(255, 246, 192, 0.22) 50%, transparent 58%) no-repeat; background-size: 260% 100%; animation: soShine 3.6s linear infinite; }
.so-card.vipc4 { box-shadow: var(--px), 0 0 18px rgba(255, 255, 255, 0.3); }
.so-card.vipc4::before { content: ""; position: absolute; inset: 0; padding: 3px; pointer-events: none; z-index: 1; background: linear-gradient(90deg, #ff6a6a, #ffd35a, #62e687, #5ac8ff, #c06cff, #ff6a6a); background-size: 200% 100%; animation: soRainbow 2.4s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.so-c-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.so-c-id { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.so-c-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.so-c-name .so-n { font-size: 20px; max-width: 8em; }
.so-c-id small { font-size: 12px; color: rgba(255, 255, 255, 0.82); }
.so-c-like { display: grid; justify-items: center; padding: 4px 8px; background: rgba(10, 6, 16, 0.45); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.so-c-like i { font-style: normal; color: #ff6a90; font-size: 16px; line-height: 1; }
.so-c-like b { font: 700 13px var(--font-px); }
.so-c-bd { display: flex; gap: 6px; flex-wrap: wrap; }
.so-c-b { display: grid; justify-items: center; gap: 1px; min-width: 52px; padding: 4px 4px 3px; background: rgba(10, 6, 16, 0.45); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.so-c-b small { font-size: 11px; color: rgba(255, 255, 255, 0.85); }
.so-c-b.empty { border: 0; color: rgba(255, 255, 255, 0.7); cursor: pointer; }
.so-c-b.empty i { font-style: normal; font-size: 22px; line-height: 34px; height: 34px; }
.so-c-bio { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.92); }
.so-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.so-stats > div { display: grid; gap: 1px; padding: 6px 8px; background: var(--plate); box-shadow: var(--px); }
.so-stats small { font-size: 11px; color: var(--muted); }
.so-stats b { font: 700 14px var(--font-px); font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-show { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--plate); box-shadow: var(--px); }
.so-show img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
.so-show div { display: grid; }
.so-show small { font-size: 11px; color: var(--muted); }
.so-show b { font: 15px var(--font-cn); font-weight: normal; }
.so-acts { flex-wrap: wrap; }
.so-acts .btn small { margin-left: 4px; font-size: 11px; opacity: 0.8; }

/* card backgrounds (the title-screen scenes) */
.so-bg-forge { background: radial-gradient(circle at 15% 115%, rgba(255, 130, 40, 0.55), transparent 55%), linear-gradient(#3a2430, #1a1220); }
.so-bg-dawn { background: linear-gradient(#2a194d, #7c315f 50%, #e8804c 85%, #ffc05e); }
.so-bg-aurora { background: repeating-linear-gradient(170deg, transparent 0 18px, rgba(90, 255, 176, 0.14) 18px 26px, transparent 26px 44px), linear-gradient(#040820, #0e2a50 70%, #2a5a8a); }
.so-bg-volcano { background: radial-gradient(circle at 80% 120%, rgba(255, 120, 30, 0.8), transparent 50%), linear-gradient(#1a0404, #6e160c 60%, #c84018); }
.so-bg-sakura { background: radial-gradient(circle, rgba(255, 176, 200, 0.9) 2px, transparent 2.5px) 0 0 / 22px 22px, linear-gradient(#5aaaec, #bce2f8 60%, #ffd0de); }
.so-bg-abyss { background: radial-gradient(circle at 85% 18%, #e0b8ff 0 9px, rgba(224, 184, 255, 0.35) 10px 16px, transparent 17px), linear-gradient(#0a0318, #3e165e 70%, #5c227a); }
.so-bg-desert { background: radial-gradient(circle at 18% 30%, #fffbe0 0 10px, rgba(255, 240, 180, 0.4) 11px 18px, transparent 19px), linear-gradient(#3a5e9a, #d0c8b8 55%, #f2cd7a); }
.so-bg-galaxy { background: radial-gradient(circle, #fff 1px, transparent 1.5px) 0 0 / 15px 15px, radial-gradient(circle, rgba(255, 255, 255, 0.6) 1px, transparent 1.5px) 7px 9px / 21px 21px, radial-gradient(ellipse at 70% 40%, rgba(192, 108, 255, 0.45), transparent 60%), linear-gradient(#070318, #1c0a40); }
.so-bg-throne { background: radial-gradient(circle at 50% -10%, #fff6c0, transparent 55%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 16px), linear-gradient(#b8841a, #5a3a08 70%, #2a1a04); box-shadow: var(--px), inset 0 0 0 2px #ffd35a !important; }

/* ---- 贵族 ---- */
.so-vip-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; background: radial-gradient(circle at 15% 50%, rgba(255, 211, 90, 0.2), transparent 50%), var(--plate); }
.so-vip-card.b3, .so-vip-card.b4 { box-shadow: var(--px), inset 0 0 0 1px var(--gold); }
.so-vip-ic { width: 66px; height: 56px; image-rendering: pixelated; }
.so-vip-mid { display: grid; gap: 4px; }
.so-vip-mid b { font: 22px var(--font-cn); font-weight: normal; color: var(--gold); }
.so-vip-mid small { color: var(--muted); }
.so-vip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.so-vip-list li { display: grid; grid-template-columns: 34px 64px minmax(0, 1fr); gap: 8px; align-items: center; padding: 5px 8px; background: var(--plate); box-shadow: var(--px); font-size: 12px; opacity: 0.75; }
.so-vip-list li.got { opacity: 1; box-shadow: var(--px), inset 3px 0 0 0 var(--gold); }
.so-vip-list li.next { opacity: 1; box-shadow: var(--px), inset 0 0 0 1px var(--ember); }
.so-vip-list img { width: 32px; height: 27px; image-rendering: pixelated; }
.so-vip-list b { display: block; font: 14px var(--font-cn); font-weight: normal; }
.so-vip-list small { font-size: 10px; color: var(--muted); }

/* ---- leaderboards ---- */
.so-rk-seg { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.so-rk-seg::-webkit-scrollbar { display: none; }
.so-rk-seg button { flex: 1 0 auto; min-width: 46px; display: grid; justify-items: center; gap: 1px; padding: 4px 5px 3px; border: 0; background: var(--plate); color: var(--muted); box-shadow: var(--px); font: 12px var(--font-cn); }
.so-rk-seg img { width: 20px; height: 20px; image-rendering: pixelated; }
.so-rk-seg button.on { background: var(--panel-hi); color: var(--ember-hi); box-shadow: var(--px), inset 0 -3px 0 0 var(--ember); }
.so-rk-hon { background: radial-gradient(circle at 50% 0%, rgba(255, 211, 90, 0.18), transparent 60%), var(--plate); }
.so-rk-hon > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.so-rk-hon > summary::-webkit-details-marker { display: none; }
.so-rk-hon > summary b { font: 15px var(--font-cn); font-weight: normal; color: var(--gold); }
.so-rk-prize { list-style: none; display: grid; gap: 5px; margin: 6px 0; padding: 0; }
.so-rk-prize li { display: flex; align-items: center; gap: 8px; padding: 5px 6px; background: rgba(10, 6, 16, 0.4); box-shadow: 0 0 0 1px var(--line); }
.so-rk-prize li.p1 { box-shadow: 0 0 0 1px var(--gold), 0 0 10px rgba(255, 211, 90, 0.25); }
.so-rk-prize li > img { width: 14px; height: 20px; flex: none; image-rendering: pixelated; }
.so-rk-prize li > span { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.so-rk-prize .so-bdi { width: 22px; height: 26px; }
.so-rk-prize .tag.gold { color: #2a1206; background: var(--gold); }
/* the 排行奖励 sheet */
.so-rr { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.so-rr > li { padding: 6px; background: var(--plate); box-shadow: var(--px); }
.so-rr-h { display: flex; align-items: center; gap: 6px; }
.so-rr-h img { width: 20px; height: 20px; image-rendering: pixelated; }
.so-rr-h b { font: 15px var(--font-cn); font-weight: normal; color: var(--gold); }
.so-rr-h small { font-size: 11px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* small previews: a 名片 background chip and a 对话框 chip */
.so-bgmini { position: relative; display: inline-grid; place-items: end start; width: 64px; height: 30px; padding: 2px 4px; box-shadow: 0 0 0 1px var(--gold); overflow: hidden; vertical-align: middle; }
.so-bgmini b { font: 11px var(--font-cn); font-weight: normal; color: #fff; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000; }
.so-bbp { position: relative; display: inline-block; font: 11px var(--font-cn); font-style: normal; padding: 2px 8px; margin: 3px 4px; }
.so-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.so-rk { display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 8px 4px 4px; background: var(--plate); box-shadow: var(--px); }
.so-rk:has(.so-gemb) { grid-template-columns: 26px auto minmax(0, 1fr) auto auto; }
.so-rk.top { background: radial-gradient(circle at 0% 50%, rgba(255, 211, 90, 0.16), transparent 50%), var(--plate); }
.so-rk.me { box-shadow: var(--px), inset 0 0 0 1px var(--good); }
.so-rk .ar-no { text-align: center; font: 700 13px var(--font-px); color: var(--muted); }
.so-rk .ar-no img { width: 14px; height: 20px; image-rendering: pixelated; }
.so-rk-mid { display: grid; gap: 1px; min-width: 0; }
.so-rk-mid small { font-size: 11px; }
.so-rk-v { font: 700 13px var(--font-px); color: var(--gold); white-space: nowrap; }
.so-gemb { width: 30px; height: 30px; image-rendering: pixelated; }
.so-gname { font: 15px var(--font-cn); font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-gname small { font-size: 11px; color: var(--good); }
.so-rk-sub { font-size: 11px; color: var(--muted); display: flex; gap: 4px; align-items: center; min-width: 0; }
.so-rk-sub .so-n { font-size: 12px; }

/* ---- homepage ---- */
.so-home { display: grid; gap: 10px; }
.so-home-seg button { position: relative; }
.so-bio-ed .name-row { display: flex; gap: 6px; }
.so-bio-ed .txt { flex: 1; min-width: 0; }
.so-visit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.so-links { display: flex; flex-wrap: wrap; gap: 6px; }
.so-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.so-slot { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 64px; padding: 4px; border: 0; background: rgba(10, 6, 16, 0.4); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font: inherit; }
.so-slot i { font-style: normal; font-size: 18px; line-height: 34px; height: 34px; }
.so-slot small { font-size: 10px; text-align: center; line-height: 1.2; }
.so-slot.on { background: var(--plate); box-shadow: var(--px), inset 0 0 0 1px var(--gold); color: var(--text); cursor: pointer; }
.so-slot.lk { opacity: 0.6; }
.so-bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.so-bpick { position: relative; display: grid; justify-items: center; gap: 1px; padding: 6px 2px 5px; border: 0; background: var(--plate); box-shadow: var(--px); color: var(--text); font: inherit; cursor: pointer; }
.so-bpick b { font: 13px var(--font-cn); font-weight: normal; }
.so-bpick small { font-size: 10px; color: var(--muted); }
.so-bpick.on { box-shadow: var(--px), inset 0 0 0 2px var(--gold); }
.so-bpick.lk b { color: var(--muted); }
.so-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.so-pick { position: relative; display: grid; justify-items: start; gap: 3px; padding: 6px 8px; border: 0; text-align: left; background: var(--plate); box-shadow: var(--px); color: var(--text); font: inherit; cursor: pointer; }
.so-pick small { font-size: 10px; color: var(--muted); line-height: 1.3; }
.so-pick.on { box-shadow: var(--px), inset 0 0 0 2px var(--gold); }
.so-pick.lk .so-tt { filter: grayscale(0.85) brightness(0.75); }
.so-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.so-fpick { position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 2px 5px; border: 0; background: var(--plate); box-shadow: var(--px); color: var(--text); font: inherit; cursor: pointer; }
.so-fpick b { font: 13px var(--font-cn); font-weight: normal; }
.so-fpick small { font-size: 10px; color: var(--muted); text-align: center; line-height: 1.2; }
.so-fpick.on { box-shadow: var(--px), inset 0 0 0 2px var(--gold); }
.so-fpick.lk .af { filter: grayscale(0.8) brightness(0.7); }
.so-bggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.so-bgpick { display: grid; align-content: space-between; justify-items: start; gap: 6px; min-height: 64px; padding: 6px 7px; box-shadow: var(--px); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7); }
.so-bgpick b { font: 14px var(--font-cn); font-weight: normal; }
.so-bgpick small { font-size: 10px; line-height: 1.2; }
.so-bgpick.on { box-shadow: var(--px), inset 0 0 0 2px var(--gold) !important; }
.so-bgpick.lk { filter: saturate(0.6) brightness(0.8); }
.so-bgpick { position: relative; overflow: hidden; min-height: 72px; }
.so-bgpick.rare { box-shadow: var(--px), inset 0 0 0 1px rgba(255, 211, 90, 0.75); }
.so-bgpick.rare::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 246, 192, 0.28) 50%, transparent 60%) no-repeat; background-size: 260% 100%; animation: soShine 3.2s linear infinite; }
.so-rare { position: absolute; top: 0; right: 0; z-index: 1; font: 10px var(--font-cn); font-style: normal; padding: 1px 5px; color: #2a1206; background: linear-gradient(90deg, #ffe680, var(--gold)); }
.so-bgpick > b, .so-bgpick > small, .so-bgpick > .btn { position: relative; z-index: 1; }
.so-new { position: absolute; top: -4px; right: -3px; z-index: 1; font: 10px var(--font-cn); font-style: normal; color: #2a1206; background: var(--gold); padding: 0 3px; box-shadow: 0 0 0 1px var(--edge); }
.so-pg { display: block; width: 100%; height: 3px; background: rgba(0, 0, 0, 0.45); }
.so-pg b { display: block; height: 100%; background: var(--ember); }
.so-aphd { font-size: 12px; color: var(--muted); }
.so-aphd b { color: var(--gold); font: 700 13px var(--font-px); }
.ach-ap { font: 600 10px var(--font-px); color: #c49aff; margin-left: 4px; }

/* header avatar (my homepage) */
.tnav.me-btn { width: 30px; height: 34px; padding: 0; display: grid; place-items: center; grid-template-rows: none; background: radial-gradient(circle at 50% 40%, #2e2440, #120c1a 75%); }
.tnav.me-btn img { width: 26px; height: 29px; object-fit: contain; object-position: 50% 0; image-rendering: pixelated; }
.tnav.me-btn.on { box-shadow: var(--px), inset 0 0 0 2px var(--ember); }
.pg-set { flex: none; border: 0; padding: 5px 8px; font: 13px var(--font-cn); color: var(--text); background: var(--plate); box-shadow: var(--px); }

/* ---- animated pixel frames: a 4-frame sprite sheet over the avatar box (grid 28×30, box = cells 3..24 × 3..26) ---- */
.af.has-ov { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) !important; animation: none !important; overflow: visible; }
.af.has-ov::before, .af.has-ov::after { display: none !important; }
/* 32 frames at ~12 fps (SO.NF in social.js): glints glide round the ring instead of hopping between 4 poses */
.fr-ov { position: absolute; inset: -6px; z-index: 1; pointer-events: none; background: var(--fu) 0 0 / 3200% 100% no-repeat; image-rendering: pixelated; animation: frOv 2.6s steps(32, jump-none) infinite; }
.af.sm .fr-ov { inset: -4.6px; }
.af.xl .fr-ov { inset: -8.7px; }
.tnav.me-btn { position: relative; overflow: visible; }
.tnav.me-btn .fr-ov { inset: -3px -3.5px; }
@keyframes frOv { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* ---- 贵族 badges (animated sheets) and the name-line pill ---- */
.so-vipb { display: inline-block; flex: none; width: 64px; height: 56px; vertical-align: middle; background: var(--vu) 0 0 / 3200% 100% no-repeat; image-rendering: pixelated; animation: frOv 2.6s steps(32, jump-none) infinite; }
.so-vipb.sm { width: 32px; height: 28px; }
.so-vipb.md { width: 48px; height: 42px; }
.so-vipb.xl { width: 96px; height: 84px; }
.so-vip.b2, .so-vip.b3, .so-vip.b4 { position: relative; margin: 0 6px; }
.so-vip.b2::before, .so-vip.b2::after, .so-vip.b3::before, .so-vip.b3::after, .so-vip.b4::before, .so-vip.b4::after { content: ""; position: absolute; top: 1px; width: 6px; height: 9px; background: var(--sowing) 0 0 / 100% 100% no-repeat; image-rendering: pixelated; }
.so-vip.b2::before, .so-vip.b3::before, .so-vip.b4::before { left: -6px; }
.so-vip.b2::after, .so-vip.b3::after, .so-vip.b4::after { right: -6px; transform: scaleX(-1); }
.so-vip.b3 { background: linear-gradient(100deg, #ffb02a 30%, #fff6c0 45%, #ffb02a 60%); background-size: 260% 100%; animation: soShine 1.8s linear infinite; }
.so-vip.b4 { box-shadow: 0 0 0 1px var(--edge), 0 0 8px rgba(255, 255, 255, 0.6); }
.so-c-r { display: grid; justify-items: center; gap: 4px; }

/* ---- wardrobe pages ---- */
.so-stick { position: sticky; top: -10px; z-index: 4; display: grid; gap: 6px; margin: -10px -10px 0; padding: 10px 10px 6px; background: var(--panel); box-shadow: 0 2px 0 0 var(--edge); }
.so-home-seg { display: flex; overflow-x: auto; scrollbar-width: none; }
.so-home-seg::-webkit-scrollbar { display: none; }
.so-home-seg button { flex: 1 0 auto; padding-inline: 6px; }
.so-pv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px 6px 8px; box-shadow: var(--px); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7); }
.so-pv-mid { display: grid; gap: 2px; min-width: 0; }
.so-pv-mid small { font-size: 11px; color: rgba(255, 255, 255, 0.8); }
.so-lkh { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 7px 10px; border: 0; font: 13px var(--font-cn); color: var(--muted); background: rgba(10, 6, 16, 0.4); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.so-lkh i { font-style: normal; color: var(--ember-hi); font-size: 12px; }
.so-lkh.on { color: var(--text); }
.so-lkh + .so-bgrid, .so-lkh + .so-fgrid, .so-lkh + .so-chips { margin-top: 6px; }
.so-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.so-chip { position: relative; display: grid; gap: 2px; padding: 4px; border: 0; background: rgba(10, 6, 16, 0.35); box-shadow: inset 0 0 0 1px transparent; cursor: pointer; }
.so-chip.on { box-shadow: inset 0 0 0 2px var(--gold); background: rgba(255, 211, 90, 0.12); }
.so-chip.lk .so-tt { filter: grayscale(0.9) brightness(0.65); }
.so-chip .so-pg { height: 2px; }
.so-rkrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
.so-rkb { display: grid; justify-items: center; gap: 1px; padding: 4px 0 3px; border: 0; background: var(--plate); box-shadow: var(--px); color: var(--text); font: inherit; cursor: pointer; }
.so-rkb .so-bdi { width: 26px; height: 30px; }
.so-rkb small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.so-rkb.on { box-shadow: var(--px), inset 0 0 0 2px var(--gold); }
.so-rkb.lk .so-bdi { opacity: 0.7; }
.so-fgrid { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 10px 6px; }
.so-fpick { padding-top: 12px; }
.so-vip-card .so-vipb { margin: -6px -4px -6px -6px; }
.so-vip-list li { grid-template-columns: 32px 64px minmax(0, 1fr); }

/* ---- leaderboards: the podium (No.1 in the middle, 2 and 3 either side, in their outfits) ---- */
.pod-stage { position: relative; padding: 8px 6px 0; overflow: hidden; background: radial-gradient(ellipse at 50% 0%, rgba(255, 230, 150, 0.28), transparent 60%), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 6px, transparent 6px 18px), linear-gradient(#3a1a2a, #22101c 60%, #1a0c14); box-shadow: var(--px), inset 0 0 0 1px rgba(255, 211, 90, 0.35); }
.pod-stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, #8a1a24 0 12px, #a8202c 12px 24px); box-shadow: 0 2px 0 0 #ffd35a; }
.pod-stage.b-pay { background: radial-gradient(ellipse at 50% 0%, rgba(255, 211, 90, 0.4), transparent 62%), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 6px, transparent 6px 18px), linear-gradient(#4a1a08, #2a0e04 60%, #1a0804); }
.pod-stage.b-arena { background: radial-gradient(ellipse at 50% 0%, rgba(255, 150, 170, 0.3), transparent 60%), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 6px, transparent 6px 18px), linear-gradient(#3a1020, #200814 60%, #14060c); }
.pod-stage.b-guild { background: radial-gradient(ellipse at 50% 0%, rgba(150, 190, 255, 0.3), transparent 60%), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 6px, transparent 6px 18px), linear-gradient(#1a2048, #10142e 60%, #0a0c1e); }
.pod-head { position: relative; display: grid; justify-items: center; gap: 1px; margin: 10px 0 4px; text-align: center; }
.pod-head b { font: 18px var(--font-cn); font-weight: normal; color: var(--gold); text-shadow: 0 2px 0 #1a0812; letter-spacing: 2px; white-space: nowrap; }
.pod-head small { font-size: 11px; color: var(--muted); }
.pod { position: relative; display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: 4px; }
.pod-c { position: relative; display: grid; justify-items: center; align-content: end; gap: 2px; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.pod-c.empty { cursor: default; }
.pod-hero { position: relative; display: block; width: 80px; height: 84px; }
.pod-hero img { position: absolute; left: 50%; bottom: 0; width: 80px; height: 84px; transform: translateX(-50%); image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45)); }
.pod-c.p1 .pod-hero { width: 104px; height: 110px; }
.pod-c.p1 .pod-hero img { width: 104px; height: 110px; animation: podBob 2.2s ease-in-out infinite; }
.pod-c:active .pod-hero img { transform: translateX(-50%) translateY(1px); }
@keyframes podBob { 50% { transform: translateX(-50%) translateY(-3px); } }
.pod-crown { position: absolute; top: -2px; left: 50%; z-index: 2; width: 28px; height: 24px; margin-left: -14px; background: var(--tto-crown) center / contain no-repeat; image-rendering: pixelated; filter: drop-shadow(0 0 4px rgba(255, 211, 90, 0.9)); animation: podBob 2.2s ease-in-out infinite; }
.pod-rays { position: absolute; top: 0; left: 50%; width: 150px; height: 150px; margin-left: -75px; pointer-events: none; background: repeating-conic-gradient(from 0deg, rgba(255, 240, 180, 0.16) 0 10deg, transparent 10deg 30deg); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%); animation: podSpin 14s linear infinite; }
@keyframes podSpin { to { transform: rotate(360deg); } }
.pod-name { display: block; max-width: 100%; overflow: hidden; text-align: center; }
.pod-name .so-nl { justify-content: center; flex-wrap: nowrap; }
.pod-name .so-n { font-size: 13px; }
.pod-c .so-tt { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pod-v { font: 700 12px var(--font-px); color: var(--gold); white-space: nowrap; }
.pod-blk { position: relative; display: grid; place-items: center; width: 100%; margin-top: 3px; background: linear-gradient(#7a6a8a, #4a3e5a); box-shadow: 0 0 0 1px var(--edge), inset 0 2px 0 0 rgba(255, 255, 255, 0.25); }
.pod-blk img { position: absolute; top: -10px; width: 14px; height: 20px; image-rendering: pixelated; }
.pod-blk em { font: 700 18px var(--font-px); font-style: normal; color: rgba(255, 255, 255, 0.85); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); margin-top: 6px; }
.pod-c.p1 .pod-blk { height: 46px; background: linear-gradient(#ffe680, #c8961e); }
.pod-c.p1 .pod-blk em { color: #5a3a08; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); font-size: 22px; }
.pod-c.p2 .pod-blk { height: 34px; background: linear-gradient(#eef4fa, #9aa6b8); }
.pod-c.p2 .pod-blk em { color: #3a4454; }
.pod-c.p3 .pod-blk { height: 26px; background: linear-gradient(#f0b070, #a8602a); }
.pod-c.p3 .pod-blk em { color: #4a2408; font-size: 16px; }
.pod-c.me .pod-name .so-n { text-decoration: underline; text-decoration-color: var(--good); }
.so-rk-mine { position: relative; display: flex; justify-content: center; gap: 10px; align-items: baseline; margin: 0 -6px; padding: 5px 8px; font-size: 12px; color: var(--muted); background: rgba(0, 0, 0, 0.35); }
.so-rk-mine b { font: 14px var(--font-cn); font-weight: normal; color: var(--good); }
.so-rk-mine span { font: 700 12px var(--font-px); color: var(--gold); }
.so-rankpg { display: grid; gap: 8px; }

/* ---- chat bubbles (对话框) in the wardrobe ---- */
.so-bbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 6px 0; }
.so-bbpick { display: grid; justify-items: start; gap: 4px; padding: 10px 8px 6px; border: 0; background: var(--plate); box-shadow: var(--px); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.so-bbpick.on { box-shadow: var(--px), inset 0 0 0 2px var(--gold); }
.so-bbpick.lk { filter: saturate(0.5) brightness(0.75); }
.so-bbpick b { font: 13px var(--font-cn); font-weight: normal; }
.so-bbpick small { font-size: 10px; color: var(--muted); line-height: 1.25; }
.so-bbs { position: relative; display: inline-block; max-width: 100%; padding: 5px 9px; margin: 3px 4px; font-size: 12px; line-height: 1.4; }
/* wardrobe pages: the full 名片 on top */
.so-pv-card { display: grid; gap: 3px; }
.so-pv-tip { justify-self: center; font-size: 11px; color: var(--muted); }
