.profile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}.profile-tabs>a{display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;text-decoration:none;min-height:46px;padding:10px 6px;position:relative}.profile-tabs>a[aria-current="page"]{background:linear-gradient(125deg,#eedcaa,#ae914f);color:#183c35;border-color:#e4cf96}.profile-identity{display:flex;align-items:center;gap:26px}.profile-identity h2{margin:0 0 10px}.profile-id-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.profile-id-line button{padding:5px 10px}.profile-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.profile-info-grid>div{padding:18px;background:#10392f99;border:1px solid #b79e6266;border-radius:12px}.profile-info-grid strong{display:block;color:#f2dcaa;font-size:22px;margin-top:8px}.profile-tabs .collection-new{position:static;flex:none}.collection-categories,.collection-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.collection-categories button,.collection-groups button{position:relative;min-width:0;padding:12px 8px;white-space:normal}.collection-new{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border:1px solid #f5cca4;border-radius:20px;background:#ac3940;color:#fff8dd;font:11px/1 sans-serif;vertical-align:middle;margin-left:6px}.collection-preview{display:grid;grid-template-columns:minmax(160px,1fr) minmax(0,2fr);align-items:center;gap:26px;padding:24px;background:radial-gradient(ellipse at 20% 30%,#cabc6933,transparent 65%),#10382ee6;border:1px solid #c7ac72;border-radius:16px;margin:20px 0}.collection-preview h3{color:#f4dc9e;font-size:23px;margin:12px 0}.collection-preview small,.collection-preview p{color:#c8d9c6;line-height:1.7}.collection-preview button{margin:4px 8px 4px 0}.collection-preview-art{min-height:150px;display:grid;place-items:center}.collection-filter{display:flex;gap:10px;margin:20px 0}.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.collection-card{position:relative;display:flex;flex-direction:column;align-items:center;padding:24px 16px;background:#173e34c9;border:1px solid #ba9e6766;border-radius:15px;text-align:center;min-width:0}.collection-card h3{color:#f1d69c;font-size:18px;margin:12px 0}.collection-card p{font-size:13px;line-height:1.6;color:#c0d0be}.collection-card .costume-state{margin-top:auto;padding-top:12px}.collection-card.locked{background:#15392fd9}.collection-card.locked>.collection-art{opacity:.65}.collection-card .item-new{position:absolute;right:10px;top:10px}.collection-art{display:block;width:144px;height:144px;max-width:100%;object-fit:contain;filter:drop-shadow(0 6px 7px #001e2477)}.collection-board-art{width:100%;max-width:250px;object-fit:cover;border-radius:12px}.collection-portrait{display:flex;justify-content:center;align-items:center;padding:28px;min-height:150px}.collection-avatar.profile-avatar{position:relative;display:block;width:76px;height:76px;flex:none;border-radius:50%;background-image:url('xianxia-portraits.png');background-size:300% 100%;background-position:left center;color:transparent;border:2px solid #c5ad71}.collection-avatar.portrait-1{background-position:center}.collection-avatar.portrait-2{background-position:right}.collection-avatar::after{pointer-events:none}.collection-default-board{width:150px;height:150px;max-width:100%;border:8px solid #927040;border-radius:10px;background:repeating-linear-gradient(0deg,transparent 0 17px,#6f542855 17px 18px),repeating-linear-gradient(90deg,transparent 0 17px,#6f542855 17px 18px),#d8b879;box-shadow:0 7px 10px #08262288}.series-default .sample-stone.side-1{background:radial-gradient(circle at 30% 25%,#68727a,#182126 65%);color:#eddcbd;border-color:#a98b56}.series-default .sample-stone.side-2{background:radial-gradient(circle at 30% 25%,#fffef6,#c7d0c7 65%);color:#293e38;border-color:#a98b56}.collection-empty{text-align:center;padding:20px;border:1px dashed #ac996e;border-radius:12px}.profile-newbie .title-card{display:flex;flex-direction:column;align-items:center}.profile-newbie .reward-state{color:#d8cc95;margin:12px 0}.profile-info-note{line-height:1.8;color:#c5d7c8}.collection-frame-thumb{min-height:144px}.collection-view button:disabled{opacity:.6;cursor:default}
@media(max-width:700px){.collection-categories,.collection-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.collection-card{padding:18px 10px}.collection-card h3{font-size:16px}.collection-art{width:110px;height:110px}.collection-card .costume-preview{grid-template-columns:repeat(2,36px);gap:8px;min-height:110px;padding:5px}.collection-card .sample-stone{width:36px;height:36px;font-size:25px}.collection-preview{grid-template-columns:110px minmax(0,1fr);gap:15px;padding:18px 12px}.collection-preview h3{font-size:19px}.collection-preview-art{min-height:120px}.collection-preview .collection-portrait{padding:18px}.collection-preview .collection-avatar{width:60px;height:60px}.collection-card .collection-portrait{padding:20px 10px;min-height:110px}.collection-card .collection-avatar{width:58px;height:58px}.collection-default-board{width:106px;height:106px}.profile-identity{gap:18px}.profile-tabs{gap:7px}.profile-tabs>a{font-size:14px}.profile-identity h2{font-size:22px}.profile-info-grid{gap:9px}.profile-info-grid>div{padding:12px}.collection-preview button{font-size:13px;padding:10px}.collection-groups button{font-size:13px}.collection-preview .costume-preview{grid-template-columns:repeat(2,36px);gap:8px}.collection-preview .sample-stone{width:36px;height:36px;font-size:26px}}

.profile-tabs button{min-width:0;min-height:46px;padding:10px 5px;white-space:normal}.profile-tabs button[aria-pressed="true"]{background:linear-gradient(125deg,#eedcaa,#ae914f);color:#183c35}[data-profile-title]{display:block;width:100%;padding:12px;margin:12px 0;background:#133a31;color:#f5dfac;border:1px solid #b69c63;border-radius:8px}
@media(max-width:700px){body:has(.network-layout)>header{flex-wrap:wrap;gap:8px}body:has(.network-layout)>header>.cult-toolbar{margin-left:auto;max-width:100%;flex-wrap:wrap}}

/* Show both sides of a stone set wherever it is collected or sold. */
.stone-color-pair{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;max-width:290px;min-height:160px;margin:0 auto}
.stone-color-pair figure{margin:0;flex:1;min-width:0;text-align:center}
.stone-color-pair img{display:block;width:100%;max-height:140px;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 4px 4px #08251e99)}
.stone-color-pair figcaption{font-size:12px;line-height:1.8;color:#e9dcba;margin-top:5px}
.collection-preview .stone-color-pair{gap:8px;min-height:120px}
@media(max-width:700px){.stone-color-pair{gap:7px;min-height:110px}.stone-color-pair img{max-height:95px}.collection-preview .stone-color-pair{min-height:90px}.stone-color-pair figcaption{font-size:11px}}

.career-progress{margin:22px 0;padding:18px 20px;background:#10392f99;border:1px solid #b79e6266;border-radius:12px}
.career-progress p{margin:4px 0 10px;line-height:1.7}.career-progress strong{color:#f2dcaa}
.career-progress progress{display:block;width:100%;height:10px;margin:14px 0;accent-color:#8fcab0}
.career-titles{margin-top:32px}.career-titles h3{color:#f2dcaa;font-size:22px}
.career-title-list{list-style:none;padding:0;margin:20px 0;display:grid;gap:10px}
.career-title-list li{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:10px 18px;align-items:center;padding:16px 20px;border:1px solid #b79e6255;border-radius:12px;background:#123a32}
.career-title-list strong{font-size:19px;color:#dfddbe}.career-title-games{color:#bed4c6;white-space:nowrap}.career-title-state{font-size:14px;color:#becbc0;text-align:right}
.career-title-list .is-unlocked{border-color:#b79e6299;background:#234c3e}.career-title-list .is-unlocked strong,.career-title-list .is-unlocked .career-title-state{color:#f2dcaa}
.career-title-list .is-equipped{border-color:#eed58f;box-shadow:inset 3px 0 #eed58f}
@media(max-width:600px){.career-progress{padding:15px}.career-title-list li{grid-template-columns:70px minmax(0,1fr);gap:5px 12px;padding:14px 15px}.career-title-games{grid-row:1 / 3;font-size:14px}.career-title-list strong{font-size:18px}.career-title-state{grid-column:2;text-align:left;font-size:13px}}

.career-power-note{display:inline-block;margin-left:10px;color:#bed4c6;font-size:12px}.career-title-name small{display:block;margin-top:5px;color:#bed4c6;font-size:12px}

/* Keep avatar actions beside their preview, on every profile tab. */
.profile-avatar-editor{flex:none;width:160px;text-align:center}.profile-avatar-editor .collection-portrait{min-height:0;padding:24px 28px 18px}.profile-avatar-controls{display:grid;gap:8px}.profile-avatar-controls button{width:100%;min-height:40px;padding:9px 8px;font-size:13px}.profile-avatar-controls .avatar-reset{background:transparent;box-shadow:none;border-color:#ad9b6266}.profile-avatar-controls button:disabled{cursor:default;opacity:.55}.profile-avatar-controls p{font-size:12px;line-height:1.5;margin:0;color:#bfd0bd}.profile-avatar-controls .avatar-status:empty{display:none}.profile-avatar-controls .avatar-status{color:#f2dcaa}.profile-identity>div{min-width:0}.profile-identity h3{overflow-wrap:anywhere}
@media(max-width:480px){.profile-avatar-editor{width:130px}.profile-identity{gap:14px}.profile-avatar-controls button{min-height:44px}.profile-identity h3{font-size:18px}}

/* Realm progression and wearable honors have separate places. */
.collection-portrait.has-title{flex-direction:column;gap:14px;max-width:180px;box-sizing:border-box}
.honor-nameplate{display:block;box-sizing:border-box;width:max-content;max-width:100%;padding:5px 9px;border:1px solid #b69e65;border-radius:9px;background:linear-gradient(135deg,#44543b,#193b31);color:#f3dca4;text-align:center;font:12px/1.55 system-ui;overflow-wrap:anywhere}
.honor-nameplate>span,.honor-nameplate>small{display:block}.honor-nameplate>small{font-size:10px;opacity:.85}
.honor-nameplate.annual{border-color:#e1bd6a;background:linear-gradient(135deg,#635430,#253b2f);color:#ffe8ae}
.honor-nameplate.season{border-color:#af9bc7;background:linear-gradient(135deg,#4b4660,#193b36);color:#eee0ff}
.profile-avatar-editor .collection-portrait.has-title{padding:24px 8px 16px;max-width:none}.profile-avatar-editor .has-title .profile-avatar{margin:0 auto}
.profile-realm{color:#e4d39e;line-height:1.7}.realm-ladder{margin-top:20px}.realm-ladder>summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;color:#ead59d;line-height:1.6}
.career-title-list .is-current{border-color:#e6ca83;box-shadow:inset 3px 0 #e6ca83;background:#315647}.career-title-list .is-current .career-title-state{color:#ffe8a6}
.honor-titles p{line-height:1.8}.honor-empty{padding:16px;border:1px dashed #789d80;border-radius:12px;color:#bed2c2}.honor-titles select{width:100%;min-width:0}
@media(max-width:480px){.profile-avatar-editor .collection-portrait.has-title{padding-left:4px;padding-right:4px}.honor-nameplate{font-size:11px}.profile-realm{font-size:14px}.career-title-list li{min-width:0}.career-title-state{overflow-wrap:anywhere}}

/* Six original seasonal / annual award frames; live text stays sharp at every size. */
.honor-nameplate.has-art{--honor-ink:#ffe4a0;--honor-text-y:48%;display:block;position:relative;width:180px;max-width:100%;padding:0;border:0;border-radius:0;background:none;color:var(--honor-ink);overflow:visible}
.honor-nameplate.has-art.honor-rank-2{--honor-ink:#e4f4ff}.honor-nameplate.has-art.honor-rank-3{--honor-ink:#ffd6b2}
/* Text fits the clear central panel of each frame, measured against the actual plate width. */
.honor-nameplate.has-art.season.honor-rank-2{--honor-text-y:52%}
.honor-nameplate.has-art.season.honor-rank-3{--honor-text-y:54%}
.honor-nameplate.has-art.annual.honor-rank-1{--honor-text-y:56%}
.honor-nameplate.has-art.annual.honor-rank-2{--honor-text-y:52%}
.honor-nameplate.has-art.annual.honor-rank-3{--honor-text-y:57%}
.honor-nameplate.has-art .honor-medallion{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:3/1;isolation:isolate;container-type:inline-size}
.honor-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;z-index:-1;filter:drop-shadow(0 2px 3px #031e1bbb)}
.honor-nameplate.has-art .honor-label{position:absolute;left:50%;top:var(--honor-text-y);transform:translate(-50%,-50%);display:block;margin:0;padding:0;font:700 10px/1 'Noto Serif TC','PMingLiU',serif;font-size:6.5cqw;letter-spacing:.04em;color:var(--honor-ink);text-align:center;text-shadow:0 1px 2px #001b18;white-space:nowrap}
.honor-nameplate.has-art .honor-caption{display:flex;justify-content:center;flex-wrap:wrap;gap:0 6px;margin:1px 0 0;padding:0;color:#d8d5b5;font:10px/1.45 system-ui;opacity:1}
.honor-caption>span{white-space:nowrap}.honor-nameplate.has-art.annual .honor-frame{filter:drop-shadow(0 2px 3px #031e1bbb) drop-shadow(0 0 4px #d9bc482b)}
.profile-avatar-editor .collection-portrait.has-title{gap:9px;padding-left:0;padding-right:0}.profile-avatar-editor .honor-nameplate.has-art{width:100%}
.honor-preview{display:grid;place-items:center;padding:22px 12px 20px;margin:16px 0;background:radial-gradient(ellipse,#50694636,transparent 70%),#0c302a77;border:1px solid #b7a26a40;border-radius:16px}
.honor-preview .honor-nameplate.has-art{width:min(420px,100%)}.honor-preview .honor-nameplate.has-art .honor-caption{font-size:12px;margin-top:8px}
.title-card>.honor-nameplate.has-art{margin:0 auto;width:240px}.profile-portrait>.honor-nameplate.has-art{width:180px}
.seat-picture .honor-nameplate.has-art.seat-title{width:95px;max-width:95px}.seat-picture .honor-nameplate.has-art .honor-caption{font-size:8px;line-height:1.3;gap:0 3px}
@media(max-width:740px){.seat-picture .honor-nameplate.has-art.seat-title{width:60px;max-width:60px}.seat-picture .honor-nameplate.has-art .honor-caption{font-size:8px}.seat-picture .honor-caption>span{white-space:normal}}
@media(max-width:480px){.profile-avatar-editor .honor-nameplate.has-art .honor-caption{font-size:9px}}
/* Default pieces share their visual rules with the actual game board. Size follows each container. */
:is(.game-board.xiangqi .token:not(.jade):not(.skin-jade):not(.skin-gold),.default-pieces.group-xiangqi .sample-stone){background:radial-gradient(circle at 35% 25%,#fff1c8,#dfb475 70%,#b27d4a);color:#ad392d;border:2px double #963d3370;border-radius:50%;box-shadow:inset 0 2px 3px #fff4,0 3px 4px #0008;font-family:inherit;font-weight:650;line-height:1;text-shadow:none}
:is(.game-board.xiangqi .token.p2:not(.jade):not(.skin-jade):not(.skin-gold),.default-pieces.group-xiangqi .sample-stone.side-2){color:#263b39;border-color:#2d464179}
:is(.game-board.chess .token:not(.jade):not(.skin-jade):not(.skin-gold),.default-pieces.group-chess .sample-stone){background:none;border:0;border-radius:6px;box-shadow:none;color:#f9f4e9;text-shadow:0 1px 0 #655d50,1px 0 0 #655d50,-1px 0 0 #655d50,0 3px 2px #14231a80;font-family:inherit;font-weight:650;line-height:1}
:is(.game-board.chess .token.p2:not(.jade):not(.skin-jade):not(.skin-gold),.default-pieces.group-chess .sample-stone.side-2){color:#1c2933;text-shadow:0 1px 0 #acc4b0,1px 0 0 #a4bdad,-1px 0 0 #a4bdad,0 3px 2px #16392b99}

/* Three teams share the actual board finish; keep the third sample centered on narrow cards. */
.default-pieces.group-checkers .sample-stone:last-child{grid-column:1 / -1;justify-self:center}

/* Ranked medals share the podium emblem art and never replace the avatar frame. */
.collection-avatar,.profile-portrait>.profile-avatar,.seat-disc{position:relative;overflow:visible}
.honor-medal{--medal-size:120px;position:relative;display:inline-grid;place-items:center;width:var(--medal-size);height:var(--medal-size);flex:none;vertical-align:middle}
.honor-medal>img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 5px #001c1abb);pointer-events:none}
.honor-medal-rank-2>img{filter:grayscale(1) brightness(1.14) drop-shadow(0 3px 5px #001c1abb)}
.honor-medal-rank-3>img{filter:sepia(.65) saturate(.75) hue-rotate(342deg) brightness(.85) drop-shadow(0 3px 5px #001c1abb)}
.honor-medal-seal{position:absolute;bottom:-2%;left:50%;transform:translateX(-50%);display:grid;place-items:center;width:23%;height:23%;font-size:calc(var(--medal-size)*.13);line-height:1;border:1px solid #dab974;border-radius:50%;background:#153c33;color:#f7d990;box-shadow:0 2px 4px #001d1bcc}
.honor-medal-rank-2 .honor-medal-seal{border-color:#d9e3e5;color:#e5f0f2}.honor-medal-rank-3 .honor-medal-seal{border-color:#c99b7f;color:#edc5a7}
.avatar-honor-medal{--medal-size:44px;position:absolute;right:-12px;bottom:-7px;z-index:3;pointer-events:none}
.seat-disc .avatar-honor-medal{--medal-size:30px;right:-9px;bottom:-5px}
.friend-row .avatar-honor-medal,.chat-message .avatar-honor-medal{--medal-size:26px;right:-6px;bottom:-4px}
.honor-medal-collection{margin-top:26px}.honor-medal-collection select{width:100%;max-width:100%}.honor-medal-collection .honor-preview{gap:12px;text-align:center}
.honor-medal-cabinet summary{cursor:pointer;padding:14px 0}.honor-medal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px}.honor-medal-grid figure{margin:0;padding:18px 8px;text-align:center;border:1px solid #b2b27c45;border-radius:15px;background:#062b2766}.honor-medal-grid .honor-medal{--medal-size:84px}.honor-medal-grid figcaption{font-size:13px;line-height:1.7;margin-top:14px}.honor-medal-grid small{display:block;color:#b7ccc2}
@media(max-width:600px){.avatar-honor-medal{--medal-size:34px;right:-9px}.seat-disc .avatar-honor-medal{--medal-size:25px;right:-6px}.honor-medal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.profile-avatar:has(.avatar-badge) .avatar-honor-medal,.seat-disc.debut .avatar-honor-medal{right:auto;left:-12px}
@media(max-width:600px){.profile-avatar:has(.avatar-badge) .avatar-honor-medal,.seat-disc.debut .avatar-honor-medal{left:-8px}}
.phone-seats .seat-picture .honor-nameplate.has-art.seat-title{max-height:none}

/* Permanent final-blow honor; the localized label stays inside the generated jade inset. */
.honor-nameplate.has-art.beast-finale{--honor-text-y:53%;--honor-ink:#fff0c3}
.honor-nameplate.beast-finale .honor-frame{filter:drop-shadow(0 3px 5px #021715aa)}
