/* v0.46: shared player identity. Ornament bounds are part of the layout. */
.player-identity {
 --name-size:17px; --title-size:12px; --cap:34px; --safe:47px;
 --name-height:48px; --plate-cap:19px; --plate-safe:32px; --plate-height:31px;
 --badge-size:27px; --stack-gap:20px; --badge-gap:14px;
 display:inline-flex; align-items:flex-end; gap:var(--badge-gap); vertical-align:middle;
 max-width:100%; min-width:0; white-space:normal; text-align:center; color:#eae5f5;
}
.player-identity.identity--profile {--name-size:27px;--title-size:13px;--cap:46px;--safe:59px;--name-height:64px;--plate-cap:24px;--plate-safe:37px;--plate-height:36px;--badge-size:36px;--stack-gap:22px;--badge-gap:16px}
.player-identity.identity--compact,td .player-identity {--name-size:15px;--title-size:11px;--cap:26px;--safe:39px;--name-height:40px;--plate-cap:16px;--plate-safe:29px;--plate-height:28px;--badge-size:23px;--stack-gap:18px;--badge-gap:12px}
.player-identity .identity {display:flex;flex-direction:column;align-items:center;gap:var(--stack-gap);min-width:0;max-width:100%;flex:0 1 auto;padding:0;isolation:isolate}
.player-identity .identity-name,.player-identity .title-plate {position:relative;display:flex;align-items:center;justify-content:center;min-width:0;max-width:100%;width:fit-content;line-height:1.45;letter-spacing:0;isolation:isolate}
.player-identity .identity-name {font-size:var(--name-size);font-weight:750;padding:0;min-height:var(--name-height);color:inherit}
.player-identity .name-frame {padding:12px var(--safe)!important;min-height:var(--name-height);border:0!important;box-shadow:none!important;border-radius:0!important;background:none!important}
.player-identity .title-plate {margin:0!important;font-size:var(--title-size)!important;font-weight:550;color:#d2bfef!important;padding:0;min-height:1em}
.player-identity .title-plate[class*=plate-] {padding:8px var(--plate-safe)!important;min-height:var(--plate-height);border:0!important;background:none!important;box-shadow:none!important}
.player-identity .identity-text {position:relative;z-index:1;display:block;font:inherit;color:inherit;white-space:normal;overflow-wrap:anywhere;word-break:normal;min-width:1ch;text-shadow:0 1px 1px #0007}
.player-identity .title-ornament {display:inline;margin-right:6px;color:#d8c2ef}
.player-identity .identity-badges {flex:0 0 auto;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;min-height:var(--name-height);padding:0 0 5px;max-width:50px}
.identity-badges .tier-badge {width:var(--badge-size);height:auto;margin:0;filter:none;display:block}
.identity-badges .rank-crown {font-size:16px;line-height:1.2;display:block;margin:0}
.identity-badges .streak {margin:0;font-size:10px;white-space:normal}
.frame-decoration {--metal:#c8aceb;--accent-metal:#dfc5b1;--gem:#bfa2ee;position:absolute;inset:0;pointer-events:none;user-select:none;z-index:0;color:var(--metal)}
.player-identity .identity-name>.frame-decoration,.player-identity .title-plate>.frame-decoration {position:absolute;inset:0;display:block;z-index:0;overflow:visible}
.frame-decoration svg {position:absolute;overflow:visible;fill:none;stroke:currentColor;stroke-width:.85;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.frame-decoration .metal {fill:var(--metal);fill-opacity:.52;stroke-width:.75}
.frame-decoration .accent,.frame-decoration .leaf {fill:var(--accent-metal);fill-opacity:.6;stroke:var(--accent-metal);stroke-width:.7}
.frame-decoration .inlay {fill:var(--metal);fill-opacity:.7;stroke-width:.6}
.frame-decoration .violet {fill:var(--gem);fill-opacity:.65;stroke:#d6c5ef}
.frame-decoration .stem {stroke-width:1.05;stroke:var(--accent-metal)}
.frame-decoration .etch {stroke-width:.65;stroke:#f1e4f5;opacity:.85}
.frame-decoration .facet {stroke:#e6d9ff;stroke-width:.7;opacity:.85}
.frame-decoration .crystal {stroke-width:1.15}
.frame-decoration .ornament-cap {width:var(--cap);height:calc(100% + 4px);max-height:76px;top:-2px}
.frame-decoration .cap-left {left:0}
.frame-decoration .cap-right {right:0;transform:scaleX(-1)}
.frame-decoration .ornament-rail {left:calc(var(--cap) - 5px);width:calc(100% - 2 * var(--cap) + 10px);height:11px;stroke:var(--accent-metal);stroke-width:.8}
.frame-decoration .frame-rail-top {top:0}
.frame-decoration .frame-rail-bottom {bottom:0}
.frame-decoration .ornament-point {left:calc(50% - 9px);width:18px;height:18px}
.frame-decoration .point-top {top:-4px}
.frame-decoration .point-bottom {bottom:-4px}
.art-title {--cap:var(--plate-cap)}
.art-title .ornament-cap {max-height:44px}
.art-title .ornament-rail {height:9px;stroke-width:.7}
.art-title .ornament-point {width:12px;height:12px;left:calc(50% - 6px)}
.art-title .point-top {top:-3px}.art-title .point-bottom {bottom:-3px}
.identity--compact .frame-decoration .etch,td .frame-decoration .etch {display:none}
.identity--compact .frame-decoration .point-top,td .frame-decoration .point-top {width:12px;height:12px;left:calc(50% - 6px);top:-2px}
.art-ice,.art-runner {--metal:#b3d9ff;--accent-metal:#aac7e9;--gem:#d6edff}
.art-iris {--metal:#ba9bea;--accent-metal:#ac9ac8}
.art-rose {--metal:#e6afc8;--accent-metal:#b7a2bb}
.art-emerald {--metal:#9edac0;--accent-metal:#98b9ac}
.art-sapphire {--metal:#8fb0ed;--accent-metal:#b9c9e6}
.art-amber {--metal:#d2b59d;--accent-metal:#d2bca9}
.art-silver {--metal:#d4daea;--accent-metal:#aab9cf}
.art-champagne {--metal:#e1d0cb;--accent-metal:#beaab9}
.art-twilight {--metal:#b6a2d6;--accent-metal:#bfafdb}
.art-halloween {--metal:#bb91e3;--accent-metal:#bda3cc}
.art-royal {--metal:#b8b0a4;--accent-metal:#b8afa0}
.art-champion {--metal:#ebcc85;--accent-metal:#dcc08a}
.art-fmvp {--metal:#e6c68d;--accent-metal:#c4a26c;--gem:#bd9af0}
.art-constellation {--metal:#c8c9ef;--accent-metal:#afa9c9}
.art-tide {--metal:#9bcdcf;--accent-metal:#9ebfcf}
.art-lotus {--metal:#d9bbd8;--accent-metal:#c1b3cc}
.art-phoenix {--metal:#d6b8ad;--accent-metal:#bdaa9f}
.art-serpent {--metal:#c5d0cd;--accent-metal:#a8bdba}
.player-identity.shine:hover .frame-decoration {opacity:.88;transition:opacity .18s}
.player-identity button,.player-identity span {text-decoration:none}
.profile-link,.profile-link:hover,.profile-link:focus-visible {text-decoration:none;max-width:100%;white-space:normal}
td:has(.player-identity) {min-width:210px;padding-block:17px;white-space:normal}
td .profile-link,td button[data-player] {padding:5px 8px;background:transparent;border-color:transparent;max-width:340px}
td .profile-link:hover,td button[data-player]:hover {background:#b6a0df0a;border-color:#b6a0df36}
.vote {gap:16px;padding:19px 6px;min-width:0}
.vote>.vote-badge {flex:0 0 auto;white-space:nowrap}
.vote>span:first-child,.vote>b:first-child {min-width:0}
.vote .player-identity {text-align:center;max-width:100%}
.vote .vote-person {min-width:0;display:flex;align-items:center;gap:14px}
.vote-index {font-size:11px;color:#7f819d;min-width:20px;font-variant-numeric:tabular-nums}
.public-main {max-width:1580px!important}
.public-grid {grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)!important;align-items:start}
.display-teams {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px;min-width:0}
.display-team {min-width:0;border:1px solid #30354b;background:#101622;border-radius:12px;padding:0 16px 8px}
.display-team h3 {font-size:15px;font-weight:750;line-height:1.5;letter-spacing:2px;padding:15px 2px;border-bottom:1px solid #30354b;color:#a6bced}
.display-team.team-red h3 {color:#e7a3b1}
.display-team.team-blue {border-top:2px solid #718bc1}.display-team.team-red {border-top:2px solid #ab6f83}
.display-team-player {display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;align-items:center;padding:20px 0;border-bottom:1px solid #34394b70;min-width:0}
.display-team-player:last-child {border-bottom:0}
.display-team-player>.position {font-size:11px;letter-spacing:.5px;color:#9aa3b9;text-align:center}
.display-team-player>button {padding:0;border:0;background:none;min-width:0;color:inherit;text-align:center}
.display-team-player .player-identity {max-width:100%}
.display-team-player .team-rating {grid-column:2;color:#999bb4;text-align:center;font-size:11px;margin-top:-4px}
.team-mini {display:block!important}
.confirmed>.display-teams {max-width:100%}.confirmed {background:#121925;border-color:#343c53}
.team-player {gap:14px;align-items:center;min-width:0}
.team-player>span:first-child {min-width:0;flex:1}
.team-player .group-label {white-space:normal}.team-player .player-mmr {flex-shrink:0}
.team-player .identity-name {color:#eae5f5}
.team-player .kind {margin-top:9px}.team-player .identity-badges {display:flex}
.team-row {gap:10px}.team-slot {min-width:0}
.player-checks label {display:flex;align-items:center;gap:12px;min-width:0;padding:12px!important}
.player-checks input[type=checkbox] {flex:0 0 auto;width:18px;min-height:18px}
.player-checks .player-identity {--name-size:15px;--cap:24px;--safe:37px;--name-height:40px;--title-size:11px}
.league-player {padding:12px 0;border-bottom:1px solid #35384b;min-width:0}.league-player>small {display:block;margin-bottom:8px}
.league-player-list {display:flex;flex-wrap:wrap;gap:18px;padding:18px 0}
.auction-stage h2 {margin:25px 0}.league-teams {align-items:start}
/* Profile: decorated identity, unframed content and a complete title collection. */
.profile-hero {border:0!important;box-shadow:none!important;display:grid;grid-template-columns:92px minmax(0,1fr);gap:26px;align-items:center;padding:26px 20px!important;background:radial-gradient(ellipse at 15% 25%,#39304d60,transparent 65%),#131925;border-radius:12px;overflow:visible}
.profile-heading {min-width:0}.profile-heading h2 {margin:16px 0 12px}.profile-heading>p {font-size:12px;color:#a8a4b8}
.profile-emblem {width:92px;height:92px;border-radius:50%;background:#29243b;display:grid;place-items:center}
.profile-emblem svg {width:82px;height:82px;fill:none;stroke:#c0a7d9;stroke-width:.7}
.profile-emblem svg path {fill:#c3a3df44}
.profile-stats {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}
.profile-stats>div {min-width:0!important;padding:18px!important;background:#141a27!important;border:1px solid #343b50;border-radius:10px}
.profile-stats strong {font-size:24px!important;font-variant-numeric:tabular-nums}
.profile-section {border-top:1px solid #34394c;margin-top:26px;padding-top:23px}
.profile-section h3 {font-size:18px;margin-bottom:16px}.profile-section h3 small {margin-left:9px;font-weight:400}
.title-collection-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.title-collection-card {display:flex;gap:14px;align-items:center;border:1px solid #333c50;background:#111825;border-radius:10px;padding:16px;min-width:0}
.title-collection-card.is-equipped {border-color:#ac8bdd;background:linear-gradient(115deg,#392c4e66,#131925)}
.title-collection-card>div {min-width:0;overflow-wrap:anywhere}.title-collection-card strong {font-size:14px;display:block}
.title-collection-card p {font-size:12px;line-height:1.6;margin:5px 0;color:#a8a3b8}.title-collection-card small {font-size:10px}
.title-glyph {width:40px;flex:0 0 40px}.title-glyph svg,.recognitions svg {width:40px;height:40px;fill:none;stroke:#ba9cd6;stroke-width:1.1}.title-glyph .glyph-center,.recognitions .glyph-center {fill:#baa0d433}
.collection-equipped {font-size:10px;color:#d1b5f1;display:inline-block;margin:5px 0;border:1px solid #8e6bb966;border-radius:20px;padding:1px 8px}
.collection-more {margin-top:14px}.collection-more summary {padding:12px;text-align:center;border:1px solid #3c3b51;border-radius:8px;cursor:pointer;font-size:13px;color:#cfb7f0}.collection-more[open] summary {margin-bottom:14px}
.recognitions {display:flex;flex-wrap:wrap;gap:12px}.recognitions article {display:flex;align-items:center;gap:12px;padding:10px 16px;background:#191d2b;border-radius:8px}.recognitions p {font-size:11px;margin:3px 0}.recognitions strong {font-size:13px}
.profile-notes {max-height:360px;overflow:auto;margin-top:12px}.profile-notes article {border:1px solid #353b50;background:#111825;border-radius:10px;padding:18px 20px 18px 40px;margin-bottom:10px;position:relative;overflow-wrap:anywhere}.profile-notes p {color:#ded8ea;margin:0 0 10px}.profile-notes small {display:block;text-align:right}.note-quote {position:absolute;top:10px;left:13px;font:38px Georgia;color:#796289}
#publicProfile {width:min(1000px,94vw)}
/* The atelier uses the exact same identity renderer as rosters and profiles. */
dialog:has(.wardrobe) {width:min(1260px,96vw);max-width:96vw}
.atelier-intro {display:flex;justify-content:space-between;gap:20px;padding:0 0 22px;align-items:center}.atelier-intro h3 {font-size:22px;color:#e1d4ee}.atelier-intro p {font-size:12px;margin:4px 0}.coupon-balance {white-space:nowrap;font-size:12px;color:#d4bbef;padding:8px 14px;border:1px solid #6f5c85;border-radius:9px}.coupon-balance b {font-size:23px;margin-right:5px}
.wardrobe {grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:22px}
.wardrobe .segmented {display:flex;border-bottom:1px solid #3c3b50;padding-bottom:10px;gap:8px}.wardrobe .segmented button {border:0;background:none;color:#aaa5bd;border-radius:0;padding:8px 10px;font-size:13px}.wardrobe .segmented button[aria-pressed=true] {color:#ddc6ff;background:none;box-shadow:0 2px #be98e8}
.shop-filters {display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.shop-filters button {padding:6px 12px;font-size:12px;background:#151b29;border-color:#353b50}.shop-filters button[aria-pressed=true] {border-color:#b99cde;color:#dfc2ff;background:#33294466}
.wardrobe .product-grid {gap:14px;max-height:57vh;padding:4px;grid-template-columns:repeat(2,minmax(0,1fr))}
.wardrobe .product {border-radius:12px;overflow:visible;border:1px solid #3c4057;background:linear-gradient(135deg,#1e2030,#111823);display:flex;flex-direction:column;position:relative}
.wardrobe .product.chosen {border-color:#b394dd;box-shadow:0 0 0 1px #b394dd55,inset 0 0 24px #a378d50b}
.wardrobe .product>button:first-child {padding:16px;min-height:214px;height:100%;display:flex;flex-direction:column;text-align:left;align-items:stretch;margin:0;border-radius:12px}
.wardrobe .product-art {padding:10px 0;min-height:128px;background:radial-gradient(ellipse,#28253b60,transparent 70%);margin-bottom:14px;display:flex;align-items:center;justify-content:center;overflow:visible}
.product-art .player-identity {--name-size:16px;--cap:30px;--safe:43px;--name-height:47px;--plate-cap:17px;--plate-safe:30px;--plate-height:29px;--stack-gap:20px;max-width:100%}
.wardrobe .product b {font-size:15px;color:#e4dced;margin:0 0 5px}.wardrobe .product small {font-size:11px;margin:0 0 8px;line-height:1.5;min-height:32px;color:#a5a1b5}
.wardrobe .product .product-status {font-size:11px;color:#c2acd7;margin:4px 0 0}.product-price {color:#d6b4f3;font-size:12px;margin-top:auto}
.product-check {position:absolute;top:10px;right:12px;font-size:13px!important;color:#d9bdff!important;line-height:1}
.wardrobe .product>button:last-child:not(:first-child) {margin:0 16px 16px;width:calc(100% - 32px);border-color:#65536e;background:#2c2636;font-size:12px;min-height:38px}
.wardrobe-preview {background:radial-gradient(ellipse at 50% 20%,#33284755,transparent 55%),#111722;border-color:#3f3e54;padding:20px;top:0}
.wardrobe-preview h3 {font-size:19px;margin:4px 0 20px}.wardrobe-preview .identity-rich {padding:24px 0;min-height:185px;border-radius:0;background:none}
.wardrobe-preview .identity-rich .player-identity {--name-size:23px;--cap:37px;--safe:50px;--badge-size:28px;--name-height:57px}
.wardrobe-preview .preview-context {text-transform:uppercase;letter-spacing:1.5px;font-size:10px;color:#91849f;margin-top:16px}
.wardrobe-preview .identity-compact {padding:20px 0;display:flex;align-items:center;gap:12px;min-width:0}.wardrobe-preview .identity-compact>.player-identity {flex:1;justify-content:center;--name-size:14px;--cap:23px;--safe:36px}
.wardrobe-preview .preview-details {padding-top:14px;border-top:1px solid #36394c}.preview-details p {font-size:11px;margin:5px 0}.shop-title {display:flex!important;align-items:center;justify-content:space-between;gap:12px;font-size:12px!important;margin:14px 0!important}.shop-title select {max-width:230px}.shop-help {font-size:11px;color:#9992a8;margin-bottom:8px}.shop-shine {font-size:12px}.shop-shine input {width:auto}
.sticky-actions {margin-top:14px;padding:16px 0 0}.sticky-actions #shopReset {margin-right:auto}.sticky-actions button {margin-top:0}
@media (min-width:1600px) {dialog:has(.wardrobe){width:1340px;max-width:94vw}.wardrobe .product-art{min-height:155px}.product-art .player-identity{--name-size:18px;--cap:36px;--safe:49px}}
@media (max-width:1150px) {.public-grid{grid-template-columns:1fr!important}.public-main{max-width:900px!important}.wardrobe{grid-template-columns:minmax(0,1.5fr) minmax(265px,1fr)}.wardrobe .product-grid{grid-template-columns:1fr}.wardrobe .product-art{min-height:110px}}
@media (max-width:900px) {.wardrobe{grid-template-columns:1fr}.wardrobe-preview{position:static;grid-row:1}.wardrobe-preview .identity-rich{min-height:145px;padding:18px 0}.wardrobe-preview .preview-details{font-size:11px}.wardrobe .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible}.profile-hero{grid-template-columns:64px minmax(0,1fr);gap:16px;padding:20px 12px!important}.profile-emblem{width:64px;height:64px}.profile-emblem svg{width:56px;height:56px}.identity--profile{--name-size:24px!important;--cap:36px!important;--safe:49px!important}.profile-stats strong{font-size:22px!important}}
@media (max-width:600px) {.public-main .card{padding:16px}.public-grid{gap:16px}.display-teams{grid-template-columns:1fr}.display-team{padding-inline:12px}.display-team-player{padding:20px 0;grid-template-columns:32px minmax(0,1fr)}.display-team-player .player-identity{justify-self:center}.vote{gap:10px}.vote-index{display:none}.vote>.vote-badge{font-size:11px;padding:4px 7px}.vote .player-identity{--name-size:16px;--cap:24px;--safe:37px;--plate-cap:15px;--plate-safe:28px;--name-height:42px;--badge-size:21px;--badge-gap:12px}.vote-person{flex:1}.vote .identity-badges .rank-crown{font-size:13px}.player-identity{--name-size:16px;--cap:28px;--safe:41px;--badge-size:24px}.profile-hero{grid-template-columns:1fr;text-align:center;padding:24px 8px!important}.profile-emblem{margin:auto;width:72px;height:72px}.profile-heading h2 .player-identity{max-width:100%;--cap:32px!important;--safe:45px!important;--name-size:24px!important;--badge-size:27px;--badge-gap:12px}.profile-heading .eyebrow{font-size:9px}.profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-stats>div{padding:14px!important}.title-collection-grid{grid-template-columns:1fr}.profile-section{margin-top:22px;padding-top:20px}.title-collection-card{padding:14px;gap:12px}.title-glyph{width:34px;flex-basis:34px}.title-glyph svg{width:34px;height:34px}.atelier-intro{align-items:start;gap:10px}.atelier-intro h3{font-size:18px}.coupon-balance{padding:6px 10px}.coupon-balance b{font-size:19px}.wardrobe .product-grid{grid-template-columns:1fr}.wardrobe .product-art{min-height:132px}.wardrobe .product>button:first-child{min-height:0;padding:18px}.wardrobe .product b{font-size:16px}.wardrobe .product small{min-height:0}.wardrobe .segmented{gap:3px}.wardrobe .segmented button{font-size:12px;padding:8px}.wardrobe-preview{padding:17px}.wardrobe-preview .identity-rich .player-identity{--name-size:22px;--cap:30px;--safe:43px;--badge-size:24px}.wardrobe-preview .identity-compact>.player-identity{--cap:21px;--safe:34px}.sticky-actions{bottom:-16px;padding:12px 0;gap:7px}.sticky-actions button{padding:9px 10px;font-size:12px;min-height:42px}.shop-title{align-items:start!important;flex-direction:column}.shop-title select{width:100%;max-width:100%}.team-player{padding:14px 10px}.team-player .player-identity{--cap:24px;--safe:37px;--name-size:15px;--badge-size:21px}.team-player .player-mmr strong{font-size:16px}.player-checks{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){.player-identity *,.product{transition:none!important;animation:none!important}}
/* Keep vote controls in their own column, even beside the longest names. */
.vote {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;flex-wrap:nowrap}
.vote-person {width:100%}
.identity-badges .rank-crown {filter:none;width:18px;height:18px}
.identity-badges .rank-crown svg {width:100%;height:100%;fill:#d8bb7440;stroke:#dfc181;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
