/* Approved Profile concept · presentation only · scoped to the Profile dialog. */
#modal:has(.profile-dashboard){background:#ead9bd;padding:0!important}
#modalBody:has(.profile-dashboard){background:linear-gradient(145deg,#fff9ed,#fff2d9 80%)!important;color:#493126;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important}
#modalBody .profile-dashboard{--profile-ink:#493126;--profile-muted:#765d49;--profile-line:#dcc8aa;--profile-surface:#fff5e2;--profile-accent:#668b49;position:relative;color:var(--profile-ink);font-family:system-ui,-apple-system,sans-serif;text-align:left;gap:0}
#modalBody .profile-dashboard *{box-sizing:border-box}
#modalBody .profile-dashboard button{touch-action:manipulation}
#modalBody .profile-dashboard button:focus-visible,#modalBody .profile-dashboard summary:focus-visible,#modalBody .profile-dashboard input:focus-visible{outline:3px solid #537b3b!important;outline-offset:2px}
#modalBody .profile-dashboard>.profile-topbar{position:absolute;inset:0 0 auto auto;width:44px;height:44px;padding:0;z-index:3;display:block}
#modalBody .profile-topbar h1{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#modalBody .profile-topbar #profileClose{width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid #ff9c86;border-radius:50%;padding:0;background:linear-gradient(#ff977e,#ff625d);color:#fff;font-size:0;box-shadow:inset 0 2px #ffcec0,0 3px 5px #c96b5230}
#modalBody .profile-topbar #profileClose::after{content:'×';font:700 32px/1 system-ui}
#modalBody .profile-dashboard .profile-hero{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;align-items:center;min-height:128px;padding:4px 0 10px;border:0;border-radius:0;background:none;box-shadow:none}
#modalBody .profile-dashboard .profile-hero>.profile-frame{width:84px;height:84px;margin:0;padding:0;flex:none}
#modalBody .profile-dashboard .profile-hero>.profile-frame canvas{width:100%;height:100%;border:0;background:transparent}
#modalBody .profile-dashboard .profile-hero>div{min-width:0;padding-right:0}
#modalBody .profile-dashboard .profile-hero strong{font-size:26px;line-height:1.12;letter-spacing:-.6px;color:#493126;padding-right:44px;overflow-wrap:anywhere}
#modalBody .profile-dashboard .profile-hero small{font-size:11px;line-height:1.35;color:#634832;display:block!important;margin-top:5px}
#modalBody .profile-dashboard .profile-hero .profile-cosmetic-title{font-size:11px;background:none;border:0;box-shadow:none;padding:0;margin-top:4px;color:#62472f;line-height:1.35}
#modalBody .profile-dashboard .profile-hero .profile-hero-badge{display:block!important;max-width:100%;width:auto;background:none;color:#765d49!important;padding:0;font-size:10px!important;line-height:1.35;margin-top:3px!important}
#modalBody .profile-dashboard .profile-xp-line{display:flex;margin:7px 0 4px;font-size:10px;color:#70543f;gap:6px}
#modalBody .profile-dashboard .profile-xp-bar{display:block;height:10px;background:#dfd5bf;border:1px solid #c9ba9c;border-radius:20px}
#modalBody .profile-dashboard .profile-xp-bar span{background:linear-gradient(#a9d879,#78ad52);border-radius:20px}
#modalBody .profile-dashboard .profile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:4px 0 12px}
#modalBody .profile-dashboard .profile-tab{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:0;padding:6px 3px;border:1px solid #d4bd9a;border-radius:11px;background:linear-gradient(#fff9ed,#f6e8ce);color:#554033;box-shadow:0 2px 3px #a7808e08;font-size:19px;font-weight:750;line-height:1}
#modalBody .profile-dashboard .profile-tab>span{display:inline-block;font-size:20px;line-height:1}
#modalBody .profile-dashboard .profile-tab small{font-size:11px;font-weight:750;margin:0;line-height:1.15;white-space:nowrap}
#modalBody .profile-dashboard .profile-tab.active{background:linear-gradient(#c4e7a1,#a9d879);border-color:#80a45d;color:#344c2d;box-shadow:inset 0 2px #e4f5ce,0 3px 6px #9bb57d20}
#modalBody .profile-dashboard .profile-content{padding:1px 2px 14px 0;scrollbar-gutter:auto;scrollbar-width:thin;scrollbar-color:#d1bf9b transparent;scroll-padding:6px;min-height:0;overflow-y:auto;overflow-x:hidden}
#modalBody .profile-dashboard .profile-content::-webkit-scrollbar{width:4px}
#modalBody .profile-dashboard .profile-content::-webkit-scrollbar-track{background:transparent}
#modalBody .profile-dashboard .profile-content::-webkit-scrollbar-thumb{background:#d1bf9b;border:0;border-radius:9px}
#modalBody .profile-dashboard h2{font-size:20px;line-height:1.2;letter-spacing:-.6px;margin:0 0 9px;color:#493126}
#modalBody .profile-dashboard h3{color:#493126}
#modalBody .profile-dashboard p{line-height:1.45}
#modalBody .profile-dashboard .ui-section,#modalBody .profile-dashboard .profile-section,#modalBody .profile-dashboard .level-card,#modalBody .profile-dashboard .profile-secondary-details{padding:13px;margin:10px 0 0;border:1px solid var(--profile-line);border-radius:18px;background:linear-gradient(145deg,#fff9ed,#fff1d7);box-shadow:0 3px 8px #9e786510}
#modalBody .profile-dashboard .profile-content>:first-child{margin-top:0}
#modalBody .profile-dashboard .ui-section-head{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:8px}
#modalBody .profile-dashboard .ui-section-head h2{margin:0}
#modalBody .profile-dashboard .ui-section-head>small{color:#765d49;font-size:10px;text-align:right}
#modalBody .profile-dashboard .ui-list{display:grid;gap:7px}
#modalBody .profile-dashboard .ui-empty{border:1px dashed #d2bd9a;background:#f5eddb;color:#765d49;font-size:12px;padding:15px;border-radius:12px;line-height:1.5}
#modalBody .profile-dashboard .room-help,#modalBody .profile-dashboard .xp-source-note,#modalBody .profile-dashboard .profile-sync-note{font-size:11px;color:#765d49;line-height:1.5}
#modalBody .profile-dashboard progress{appearance:none;-webkit-appearance:none;width:100%;height:12px;border:1px solid #c9ba9c;border-radius:20px;overflow:hidden;background:#dfd5bf;accent-color:#78ad52}
#modalBody .profile-dashboard progress::-webkit-progress-bar{background:#dfd5bf;border-radius:20px}
#modalBody .profile-dashboard progress::-webkit-progress-value{background:linear-gradient(#a9d879,#78ad52);border-radius:20px}
#modalBody .profile-dashboard progress::-moz-progress-bar{background:linear-gradient(#a9d879,#78ad52);border-radius:20px}
#modalBody .profile-dashboard .ui-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 10px}
#modalBody .profile-dashboard .ui-stat,#modalBody .profile-dashboard .profile-stat{min-width:0;border:1px solid #dcc8aa;border-radius:17px;padding:14px 6px;background:linear-gradient(#fff9ed,#fff1d7);box-shadow:0 3px 7px #9e786510;text-align:center}
#modalBody .profile-dashboard .ui-stat strong,#modalBody .profile-dashboard .profile-stat strong{display:block;color:#493126;font-size:23px;font-weight:850;line-height:1.15;overflow-wrap:anywhere}
#modalBody .profile-dashboard .ui-stat small,#modalBody .profile-dashboard .profile-stat small{display:block;margin-top:5px;color:#70543f;font-size:10px;line-height:1.3;letter-spacing:0}
#modalBody .profile-dashboard .profile-stat-grid{gap:8px}
#modalBody .profile-dashboard .profile-meta-row{font-size:12px;line-height:1.4;border-color:#dcc8aa;padding:9px 0;gap:14px}
#modalBody .profile-dashboard .profile-meta-row span{color:#765d49}
#modalBody .profile-dashboard .profile-meta-row strong{text-align:right;overflow-wrap:anywhere;min-width:0}
#modalBody .profile-dashboard .profile-secondary-details summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:800;cursor:pointer;list-style:none}
#modalBody .profile-dashboard .profile-secondary-details summary::after{content:'⌄';font-size:23px;color:#668b49}
#modalBody .profile-dashboard .profile-secondary-details[open] summary::after{transform:rotate(180deg)}
#modalBody .profile-dashboard .profile-secondary-details summary::-webkit-details-marker{display:none}
#modalBody .profile-dashboard .profile-secondary-details{padding:7px 13px}
#modalBody .profile-dashboard .profile-highlight-grid,#modalBody .profile-dashboard .profile-cup-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
#modalBody .profile-dashboard .profile-highlight{display:flex;align-items:center;gap:9px;min-width:0;padding:12px 10px;border:1px solid #dcc8aa;border-radius:17px;background:linear-gradient(#fff9ed,#fff1d7);box-shadow:0 3px 8px #9e786510}
#modalBody .profile-dashboard .profile-highlight>span:first-child{flex:none;font-size:32px;line-height:1}
#modalBody .profile-dashboard .profile-highlight>div{min-width:0}
#modalBody .profile-dashboard .profile-highlight strong{display:block;font-size:23px;line-height:1.15;font-weight:850;overflow-wrap:anywhere}
#modalBody .profile-dashboard .profile-highlight small{display:block;font-size:11px;line-height:1.3;color:#70543f;margin:0 0 2px}
#modalBody .profile-dashboard .profile-primary-link,#modalBody .profile-dashboard .primary,#modalBody .profile-dashboard #profileOpenCupHistory{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;min-height:48px;margin-top:12px;padding:10px 12px;background:linear-gradient(#c4e7a1,#a9d879);border:1px solid #80a45d;border-radius:17px;color:#344c2d;font-size:16px;font-weight:800;box-shadow:inset 0 2px #e4f5ce,0 3px 6px #9bb57d20;cursor:pointer}
#modalBody .profile-dashboard .profile-cup-link{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:70px;margin-top:10px;padding:12px;border:1px solid #dcc8aa;border-radius:18px;color:#493126;background:linear-gradient(#fff9ed,#fff1d7);box-shadow:0 3px 8px #9e786510;text-align:left;cursor:pointer;font:inherit}
#modalBody .profile-dashboard .profile-cup-link>span{font-size:35px}
#modalBody .profile-dashboard .profile-cup-link>div{flex:1}
#modalBody .profile-dashboard .profile-cup-link strong{display:block;font-size:22px}
#modalBody .profile-dashboard .profile-cup-link small{font-size:12px}
#modalBody .profile-dashboard .profile-journey-banner{position:relative;isolation:isolate;min-height:198px;padding:13px;overflow:hidden;border:1px solid #d4c4a6;border-radius:18px;background:#e8edcf url('./ui/profile-overview.webp') center/cover no-repeat}
#modalBody .profile-dashboard .profile-journey-banner h2{position:relative;z-index:2;font-size:21px;text-shadow:0 1px 3px #fff}
#modalBody .profile-dashboard .profile-journey-banner>canvas{position:absolute;left:4%;bottom:2%;width:51%;height:auto;aspect-ratio:1;max-height:160px;object-fit:contain;touch-action:auto}
#modalBody .profile-dashboard .profile-journey-levels{position:relative;z-index:1;width:38%;margin:6px 0 0 auto;background:#fffaf1e8;border:1px solid #fff;border-radius:16px;padding:10px 7px;text-align:center;box-shadow:0 3px 12px #9bb57d26}
#modalBody .profile-dashboard .profile-journey-levels>div+div{border-top:1px solid #d0bd98;margin-top:8px;padding-top:8px}
#modalBody .profile-dashboard .profile-journey-levels small{display:block;font-size:11px;line-height:1.3}
#modalBody .profile-dashboard .profile-journey-levels strong{display:block;font-size:31px;line-height:1.2}
#modalBody .profile-dashboard .level-card{color:#493126;text-align:left}
#modalBody .profile-dashboard .level-card>strong{font-size:28px;color:#493126}
#modalBody .profile-dashboard .level-card>small{color:#70543f;font-size:12px;font-weight:800}
#modalBody .profile-dashboard .profile-level-orb{display:grid;place-items:center;flex:none;width:74px;height:74px;border:7px solid #7fa55a;border-radius:50%;background:#f2ead7;color:#493126;font-size:31px;font-weight:850;box-shadow:inset 0 1px 5px #d1bf9b33}
#modalBody .profile-dashboard .progress-unlock{display:flex;align-items:center;gap:11px;padding:9px 8px;border:0;border-radius:12px;background:#edf1d9;min-width:0}
#modalBody .profile-dashboard .progress-unlock>span{font-size:28px;flex:none}
#modalBody .profile-dashboard .progress-unlock strong{font-size:13px;color:#493126;display:block}
#modalBody .profile-dashboard .progress-unlock small{font-size:11px;color:#765d49;line-height:1.4;display:block;margin-top:3px}
#modalBody .profile-dashboard .mission-card{display:flex;align-items:center;gap:10px;padding:10px 8px;border:1px solid #e5d5bb;border-radius:12px;background:#fff6e7;min-width:0}
#modalBody .profile-dashboard .mission-card>div{flex:1;min-width:0}
#modalBody .profile-dashboard .mission-card strong{display:block;font-size:13px;color:#493126}
#modalBody .profile-dashboard .mission-card small{display:block;font-size:10px;color:#765d49;margin:3px 0}
#modalBody .profile-dashboard .mission-card progress{height:10px;margin-top:4px}
#modalBody .profile-dashboard .quest-claim{min-height:44px;min-width:44px;max-width:108px;padding:7px 9px;border:1px solid #edb64f;border-radius:12px;background:linear-gradient(#ffdf85,#ffc34c);color:#663b0c;box-shadow:inset 0 2px #ffefb7;font-size:11px;font-weight:850;white-space:normal}
#modalBody .profile-dashboard .quest-claim:disabled{background:#e9e1cf;border-color:#d3c5aa;color:#74634e;box-shadow:none}
#modalBody .profile-dashboard .daily-reward{font-size:12px;color:#765d49}
#modalBody .profile-dashboard .record-row{display:flex;align-items:center;gap:9px;padding:10px 8px;border:1px solid #dfcdb0;border-radius:14px;background:#fff6e7}
#modalBody .profile-dashboard .record-rank{flex:none;width:32px;height:38px;border:1px solid #eab658;border-radius:13px;background:linear-gradient(#ffdc78,#ffc54c);box-shadow:inset 0 2px #fff0bc;color:#51321e;font-size:17px}
#modalBody .profile-dashboard .record-row:nth-child(2) .record-rank{background:linear-gradient(#f1eee5,#d2cebf);border-color:#b7b19e;color:#51321e}
#modalBody .profile-dashboard .record-row:nth-child(3) .record-rank{background:linear-gradient(#ffd3a7,#e7a16c);border-color:#d89967;color:#51321e}
#modalBody .profile-dashboard .record-row>span{min-width:0;flex:1}
#modalBody .profile-dashboard .record-row strong{font-size:18px;color:#493126}
#modalBody .profile-dashboard .record-row small{font-size:10px;line-height:1.5;color:#765d49}
#modalBody .profile-dashboard .profile-record-pal{width:43px;height:43px;flex:none;touch-action:auto}
#modalBody .profile-dashboard .profile-legacy-banner{padding:15px;border-radius:18px;border:1px solid #b8c38d;background:#f2e5b9 url('./ui/profile-legacy-warm.webp') center/cover no-repeat;color:#493126;min-height:155px}
#modalBody .profile-dashboard .profile-legacy-banner h2,#modalBody .profile-dashboard .profile-legacy-banner strong,#modalBody .profile-dashboard .profile-legacy-banner p{color:inherit;text-shadow:0 1px 4px #fff9ed99}
#modalBody .profile-dashboard .profile-legacy-banner h2{font-size:21px}
#modalBody .profile-dashboard .profile-legacy-banner strong{display:block;font-size:27px}
#modalBody .profile-dashboard .profile-legacy-banner p{font-size:12px;margin:5px 0}
#modalBody .profile-dashboard .profile-legacy-banner progress{border-color:#c5b993;background:#dfd5b8}
#modalBody .profile-dashboard .profile-achievement{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:8px;padding:10px 8px;border:1px solid #dfcdb0;border-radius:13px;background:#fff6e7;align-items:center}
#modalBody .profile-dashboard .profile-achievement>span:first-child{font-size:29px;text-align:center}
#modalBody .profile-dashboard .profile-achievement strong{font-size:13px;color:#493126;line-height:1.3}
#modalBody .profile-dashboard .profile-achievement small{font-size:10px;line-height:1.5;color:#765d49;margin-top:3px}
#modalBody .profile-dashboard .profile-achievement.unlocked{border-color:#d9e7da;background:#fcfdf4}
#modalBody .profile-dashboard .profile-achievement .status{max-width:63px;font-size:9px;line-height:1.4;color:#3e5b34;text-align:center;overflow-wrap:anywhere}
#modalBody .profile-dashboard .profile-crest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#modalBody .profile-dashboard .profile-crest-card{padding:12px 5px;border:1px solid #dcc8aa;border-radius:14px;background:#fff5e2;text-align:center;min-width:0}
#modalBody .profile-dashboard .profile-crest-card>span{display:block;font-size:39px;line-height:1.2}
#modalBody .profile-dashboard .profile-crest-card strong{display:block;font-size:11px;line-height:1.4;margin-top:5px}
#modalBody .profile-dashboard .profile-crest-card small{font-size:9px;color:#765d49}
#modalBody .profile-dashboard .profile-cup-banner{position:relative;min-height:173px;border:1px solid #d5dff4;border-radius:18px;overflow:hidden;padding:16px;background:#dfeafc url('./ui/profile-cup.webp') center/cover no-repeat}
#modalBody .profile-dashboard .profile-cup-banner h2{font-size:25px;line-height:1.12;max-width:65%;margin-left:auto;text-align:right;text-shadow:0 1px 5px white}
#modalBody .profile-dashboard .profile-cup-banner small{display:block;width:max-content;max-width:75%;margin:8px 0 0 auto;padding:7px 9px;border:1px solid white;border-radius:12px;background:#ffffffe0;color:#554033;font-size:11px;font-weight:750}
#modalBody .profile-dashboard .profile-cup-banner canvas{position:absolute;width:120px;height:120px;left:8px;bottom:0;touch-action:auto}
#modalBody .profile-dashboard .profile-tournament-row{padding:11px 10px;border:1px solid #dfcdb0;border-radius:13px;background:#fff6e7}
#modalBody .profile-dashboard .profile-tournament-row strong{font-size:14px;color:#493126}
#modalBody .profile-dashboard .profile-tournament-row small{font-size:11px;line-height:1.6;color:#765d49;margin-top:4px}
#modalBody .profile-dashboard .profile-customize-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 0 10px;padding:5px;background:#fff5e2;border:1px solid #dcc8aa;border-radius:14px}
#modalBody .profile-dashboard .profile-customize-tabs button{min-height:44px;min-width:0;padding:5px 3px;border:1px solid #f2ead7;border-radius:10px;background:#fffcfa;color:#554033;font-size:10px;line-height:1.3;font-weight:750}
#modalBody .profile-dashboard .profile-customize-tabs button[aria-selected=true]{border-color:#80a45d;background:linear-gradient(#c4e7a1,#a9d879);box-shadow:inset 0 2px #e4f5ce;color:#344c2d}
#modalBody .profile-dashboard .profile-customize h2{font-size:19px;margin-top:10px}
#modalBody .profile-dashboard .profile-name-save-note{font-size:11px;line-height:1.5;color:#765d49;padding:10px 12px;border:1px solid #d5c5a6;background:#edf1d9;border-radius:12px}
#modalBody .profile-dashboard .profile-label{font-size:12px;color:#634832}
#modalBody .profile-dashboard .profile-input{min-height:48px;border:1px solid #b8a078;border-radius:12px;background:#fff9ed;color:#493126;font-size:16px}
#modalBody .profile-dashboard .badge-choice{border:1px solid #d6c09d;background:#fff5e2;color:#493126;border-radius:13px;min-height:72px}
#modalBody .profile-dashboard .badge-choice strong{font-size:12px}
#modalBody .profile-dashboard .badge-choice small{font-size:10px;color:#765d49}
#modalBody .profile-dashboard .badge-choice.selected{border-color:#729653;background:#e5efce;box-shadow:inset 0 0 0 1px #a5c77e}
#modalBody .profile-dashboard .profile-avatars{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#modalBody .profile-dashboard .profile-avatar{border:1px solid #d6c09d;background:#fff5e2;border-radius:14px;min-height:104px;padding:8px 3px;color:#493126;position:relative}
#modalBody .profile-dashboard .profile-avatar canvas{width:min(100%,72px);height:auto;aspect-ratio:1}
#modalBody .profile-dashboard .profile-avatar small{font-size:10px;line-height:1.3;margin-top:4px;color:#634832}
#modalBody .profile-dashboard .profile-avatar.selected{border-color:#729653;background:#e5efce;box-shadow:inset 0 0 0 1px #a5c77e}
#modalBody .profile-dashboard .profile-avatar.selected::after{content:'✓';position:absolute;right:5px;top:5px;width:21px;height:21px;display:grid;place-items:center;border:1px solid white;border-radius:50%;background:#648b49;color:white;font-size:14px;font-weight:850}
#modalBody .profile-dashboard .profile-pal-links .button{border:1px solid #d5c4a6;background:#edf1d9;color:#493126;box-shadow:none;border-radius:13px;min-height:70px;font-size:13px;padding:9px}
#modalBody .profile-dashboard .profile-pal-links small{font-size:10px}
#modalBody .profile-dashboard .profile-cosmetics{border:0;background:none;box-shadow:none;padding:0!important;margin:0!important}
#modalBody .profile-dashboard .cosmetic-help{font-size:10px!important;color:#765d49}
#modalBody .profile-dashboard .cosmetic-tabs{padding:5px;border-radius:13px;background:#ece4d2;gap:4px}
#modalBody .profile-dashboard .cosmetic-tabs button{min-height:44px;background:transparent;border:0;color:#634832;font-size:12px;border-radius:9px}
#modalBody .profile-dashboard .cosmetic-tabs button[aria-pressed=true]{background:linear-gradient(#c4e7a1,#a9d879);box-shadow:inset 0 2px #e4f5ce;color:#344c2d}
#modalBody .profile-dashboard .cosmetic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#modalBody .profile-dashboard .cosmetic-item{border:1px solid #d8c5a7;border-radius:15px!important;background:#fff5e2;padding:9px!important;gap:6px!important;box-shadow:0 2px 5px #9e786510}
#modalBody .profile-dashboard .cosmetic-item.is-equipped{border-color:#729653;box-shadow:inset 0 0 0 1px #a5c77e;background:#eef5dd}
#modalBody .profile-dashboard .cosmetic-item[data-cosmetic-kind=frame] .cosmetic-art{height:82px!important}
#modalBody .profile-dashboard .cosmetic-item[data-cosmetic-kind=frame] .wph-profile-avatar{width:76px!important;height:76px!important}
#modalBody .profile-dashboard .cosmetic-item[data-cosmetic-kind=title] .cosmetic-art{height:54px!important}
#modalBody .profile-dashboard .cosmetic-item h3{font-size:11px!important;color:#62472f;text-align:center}
#modalBody .profile-dashboard .cosmetic-item p{font-size:10px;line-height:1.4;color:#765d49;text-align:center}
#modalBody .profile-dashboard .cosmetic-state{align-self:center;background:#e9e1cf;color:#765d49;font-size:9px}
#modalBody .profile-dashboard .cosmetic-action,#modalBody .profile-dashboard .cosmetic-link{min-height:44px!important;min-width:44px;border:1px solid #9bb479;border-radius:10px;background:#e2edcc;color:#554033;font-size:11px;box-shadow:none}
#modalBody .profile-dashboard .cosmetic-action:disabled{background:#e9e1cf;border-color:#d3c5aa;color:#74634e}
#modalBody .profile-dashboard .is-equipped .cosmetic-action:disabled{background:#d5e5bb;border-color:#93ae73;color:#344c2d;opacity:1}
#modalBody .profile-dashboard .cosmetic-status{color:#765d49;font-size:11px}
#modalBody .profile-dashboard .cosmetic-none{color:#765d49;background:#f1e9d7;border-color:#cdbb9b;font-size:11px}
#modalBody .profile-dashboard .cosmetic-tutorial{background:#edf1dc;border-color:#afc18c;color:#634832}
#modalBody .profile-dashboard .cosmetic-tutorial-actions button{min-height:44px}
#modalBody .profile-dashboard .profile-actions{margin-top:8px}
#modalBody .profile-dashboard .profile-actions .primary{margin-top:0}
#modalBody .profile-dashboard [hidden]{display:none!important}
@media(max-width:350px){
 #modalBody:has(.profile-dashboard){padding-left:max(9px,env(safe-area-inset-left))!important;padding-right:max(9px,env(safe-area-inset-right))!important}
 #modalBody .profile-dashboard .profile-hero{grid-template-columns:68px minmax(0,1fr);gap:9px;min-height:119px}
 #modalBody .profile-dashboard .profile-hero>.profile-frame{width:68px;height:68px}
 #modalBody .profile-dashboard .profile-hero strong{font-size:22px}
 #modalBody .profile-dashboard .profile-hero small{font-size:10px}
 #modalBody .profile-dashboard .profile-tab{gap:4px}
 #modalBody .profile-dashboard .profile-tab small{font-size:10px}
 #modalBody .profile-dashboard .profile-tab>span{font-size:17px}
 #modalBody .profile-dashboard .profile-highlight{padding:10px 7px;gap:6px}
 #modalBody .profile-dashboard .profile-highlight>span:first-child{font-size:27px}
 #modalBody .profile-dashboard .profile-highlight strong{font-size:20px}
 #modalBody .profile-dashboard .profile-highlight small{font-size:10px}
 #modalBody .profile-dashboard .ui-section,#modalBody .profile-dashboard .profile-section{padding:11px}
 #modalBody .profile-dashboard .profile-achievement{grid-template-columns:28px minmax(0,1fr) auto;gap:6px;padding:9px 6px}
 #modalBody .profile-dashboard .profile-achievement strong{font-size:12px}
 #modalBody .profile-dashboard .profile-achievement small{font-size:10px}
 #modalBody .profile-dashboard .profile-journey-banner{min-height:185px}
 #modalBody .profile-dashboard .profile-journey-levels{width:40%}
 #modalBody .profile-dashboard .profile-journey-levels strong{font-size:28px}
}
@media(min-width:600px){
 #modalBody .profile-dashboard{max-width:660px;margin:0 auto}
 #modalBody .profile-dashboard .profile-hero{min-height:144px;grid-template-columns:100px minmax(0,1fr);gap:18px}
 #modalBody .profile-dashboard .profile-hero>.profile-frame{width:96px;height:96px}
 #modalBody .profile-dashboard .profile-hero strong{font-size:30px}
 #modalBody .profile-dashboard .profile-tab{min-height:48px}
 #modalBody .profile-dashboard .profile-tab small{font-size:13px}
 #modalBody .profile-dashboard .profile-journey-banner{min-height:250px}
 #modalBody .profile-dashboard .profile-journey-banner>canvas{max-height:210px}
 #modalBody .profile-dashboard .profile-journey-levels{max-width:190px;padding:16px 9px}
 #modalBody .profile-dashboard .profile-journey-levels strong{font-size:38px}
 #modalBody .profile-dashboard .cosmetic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #modalBody .profile-dashboard .profile-avatars{grid-template-columns:repeat(4,minmax(0,1fr))}
}
/* Keep every control reachable with 44px targets in short landscape rather than squeezing it. */
@media(max-height:500px){
 #modalBody .profile-dashboard{overflow-y:auto;overscroll-behavior:contain;padding-right:3px}
 #modalBody .profile-dashboard .profile-content{flex:none!important;overflow:visible;min-height:0;padding-bottom:15px}
 #modalBody .profile-dashboard .profile-hero{min-height:111px;grid-template-columns:68px minmax(0,1fr);padding:3px 0 6px}
 #modalBody .profile-dashboard .profile-hero>.profile-frame{width:66px!important;height:66px!important}
 #modalBody .profile-dashboard .profile-hero strong{font-size:22px}
 #modalBody .profile-dashboard .profile-hero small{display:block!important;font-size:10px}
 #modalBody .profile-dashboard .profile-xp-line{display:flex!important}
 #modalBody .profile-dashboard .profile-xp-bar{display:block!important}
 #modalBody .profile-dashboard .profile-tabs{grid-template-columns:repeat(3,minmax(0,1fr));margin:5px 0 10px}
 #modalBody .profile-dashboard .profile-tab{min-height:44px}
 #modalBody .profile-dashboard .profile-tab>span{display:inline-block}
 #modalBody .profile-dashboard .profile-customize-tabs button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){#modalBody .profile-dashboard *{scroll-behavior:auto!important;transition:none!important}}
/* Live semantic markup alignment. */
#modalBody .profile-dashboard .profile-icon{display:block;width:24px;height:24px;flex:none;overflow:visible}
#modalBody .profile-dashboard .profile-tab>.profile-icon{width:19px;height:19px;filter:drop-shadow(0 1px 0 #ffffff44)}
#modalBody .profile-dashboard .profile-highlight-icon{display:grid;place-items:center;width:37px;height:39px;color:#668b49}
#modalBody .profile-dashboard .profile-highlight-icon .profile-icon{width:33px;height:33px;filter:drop-shadow(0 2px 1px #a5688226)}
#modalBody .profile-dashboard .profile-highlight:nth-child(1) .profile-highlight-icon{color:#f4b331}
#modalBody .profile-dashboard .profile-highlight:nth-child(2) .profile-highlight-icon{color:#f2758b}
#modalBody .profile-dashboard .profile-highlight:nth-child(3) .profile-highlight-icon{color:#7e9c58}
#modalBody .profile-dashboard .profile-highlight:nth-child(4) .profile-highlight-icon{color:#7e9c58}
#modalBody .profile-dashboard .profile-record-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#modalBody .profile-dashboard .profile-record-metrics .profile-highlight{flex-direction:column;text-align:center;gap:7px;padding:12px 4px;min-height:110px}
#modalBody .profile-dashboard .profile-record-metrics .profile-highlight>div{display:flex;flex-direction:column-reverse}
#modalBody .profile-dashboard .profile-record-metrics .profile-highlight strong{font-size:23px}
#modalBody .profile-dashboard .profile-record-metrics .profile-highlight small{margin-top:3px;font-size:10px}
#modalBody .profile-dashboard .profile-journey-levels hr{border:0;border-top:1px solid #d0bd98;margin:8px 0}
#modalBody .profile-dashboard .profile-cup-link>.profile-icon{width:43px;height:43px;color:#efb23a;filter:drop-shadow(0 2px 1px #a5688226)}
#modalBody .profile-dashboard .profile-cup-link>span{flex:1;min-width:0;font-size:inherit}
#modalBody .profile-dashboard .profile-cup-link>b{font-size:28px;color:#668b49}
#modalBody .profile-dashboard .profile-primary-link>.profile-icon{width:25px;height:25px}
#modalBody .profile-dashboard .profile-primary-link>span{font-size:24px;margin-left:auto}
#modalBody .profile-dashboard .profile-primary-link{justify-content:flex-start;padding-left:17px}
#modalBody .profile-dashboard .profile-player-level-card{display:grid;grid-template-columns:74px minmax(0,1fr);column-gap:13px;align-items:center}
#modalBody .profile-dashboard .profile-player-level-card h2{grid-column:1/-1}
#modalBody .profile-dashboard .profile-player-level-card .profile-level-orb{grid-column:1;grid-row:2/5}
#modalBody .profile-dashboard .profile-player-level-card .xp-source-note{grid-column:2;margin:3px 0;font-size:11px}
#modalBody .profile-dashboard .profile-player-level-card>.xp-source-note:first-of-type{font-size:13px;color:#493126}
#modalBody .profile-dashboard .profile-player-level-card>progress{grid-column:2;margin:5px 0;height:14px}
#modalBody .profile-dashboard .profile-player-level-card>.xp-source-note:last-child{grid-column:1/-1;margin-top:9px;font-size:10px}
#modalBody .profile-dashboard .record-row .profile-record-combo{flex:0 0 auto;max-width:50px;text-align:right}
#modalBody .profile-dashboard .record-row .profile-record-combo strong{font-size:17px}
#modalBody .profile-dashboard .profile-crest-card>span.status{font-size:9px;color:#3e5b34;margin-top:5px}
#modalBody .profile-dashboard .profile-crest-grid>.ui-empty{grid-column:1/-1}
#modalBody .profile-dashboard .profile-cup-banner{display:flex;align-items:center;gap:14px;background-image:linear-gradient(140deg,#f8dd97,#e7edc9 55%,#d9e4b7)}
#modalBody .profile-dashboard .profile-cup-banner.is-winter{background-image:url('./ui/profile-cup.webp')}
#modalBody .profile-dashboard .profile-cup-banner>div{position:relative;z-index:1;min-width:0;flex:1;text-align:right}
#modalBody .profile-dashboard .profile-cup-banner h2{max-width:none;margin:4px 0 10px;font-size:25px}
#modalBody .profile-dashboard .profile-cup-banner small{width:auto;max-width:none;border:0;background:none;padding:0;font-size:10px;line-height:1.4;color:#62472f;text-shadow:0 1px 2px #fff}
#modalBody .profile-dashboard .profile-cup-banner p{display:inline-block;margin:0 0 8px;border:1px solid white;padding:7px 9px;border-radius:11px;background:#ffffffe6;color:#493126;font-size:12px;font-weight:750}
#modalBody .profile-dashboard .profile-cup-trophy{display:grid;place-items:center;width:85px;height:100px;flex:none;filter:drop-shadow(0 4px 2px #86502d3b);color:#f6ba38}
#modalBody .profile-dashboard .profile-cup-trophy .profile-icon{width:82px;height:82px;stroke:#d79b24;stroke-width:.65}
#modalBody .profile-dashboard .profile-tournament-row{display:flex;align-items:center;gap:9px}
#modalBody .profile-dashboard .profile-tournament-row>div{min-width:0;flex:1}
#modalBody .profile-dashboard .profile-history-medal{font-size:29px;flex:none}
#modalBody .profile-dashboard .profile-tournament-row .profile-history-result{flex:0 0 75px;max-width:85px;text-align:center}
#modalBody .profile-dashboard .profile-history-result>b{display:block;padding:4px 8px;border-radius:8px;background:#f7e7d4;color:#755033;font-size:14px}
#modalBody .profile-dashboard .profile-history-result small{font-size:9px;color:#3e5b34;line-height:1.4}
#modalBody .profile-dashboard .profile-achievement progress{height:9px;margin:5px 0 0}
@media(max-width:350px){
 #modalBody .profile-dashboard .profile-tab>.profile-icon{width:17px;height:17px}
 #modalBody .profile-dashboard .profile-highlight-icon{width:28px;height:34px}
 #modalBody .profile-dashboard .profile-highlight-icon .profile-icon{width:27px;height:27px}
 #modalBody .profile-dashboard .profile-record-metrics .profile-highlight strong{font-size:21px}
 #modalBody .profile-dashboard .profile-record-metrics .profile-highlight{min-height:102px}
 #modalBody .profile-dashboard .record-row{gap:6px;padding:9px 6px}
 #modalBody .profile-dashboard .profile-record-pal{width:36px;height:36px}
 #modalBody .profile-dashboard .record-row strong{font-size:16px}
 #modalBody .profile-dashboard .record-row small{font-size:9px}
 #modalBody .profile-dashboard .record-rank{width:27px;height:33px;font-size:15px}
 #modalBody .profile-dashboard .profile-cup-link strong{font-size:19px}
 #modalBody .profile-dashboard .profile-tournament-row{gap:6px;padding:9px 7px}
 #modalBody .profile-dashboard .profile-tournament-row .profile-history-result{flex-basis:61px}
 #modalBody .profile-dashboard .profile-cup-banner{gap:7px;padding:13px}
 #modalBody .profile-dashboard .profile-cup-banner h2{font-size:23px}
 #modalBody .profile-dashboard .profile-cup-trophy{width:65px}
 #modalBody .profile-dashboard .profile-cup-trophy .profile-icon{width:64px;height:64px}
}
#modalBody .profile-dashboard .profile-highlight-icon img{display:block;width:36px;height:36px;object-fit:contain;filter:drop-shadow(0 2px 1px #a5688226)}
@media(max-width:350px){#modalBody .profile-dashboard .profile-highlight-icon img{width:30px;height:30px}}
/* Reuse the approved game trophy rather than a flat decorative stand-in. */
#modalBody .profile-dashboard .profile-cup-trophy{background:url('./ui/stage-goal-v598/trophy.webp') center/contain no-repeat}
#modalBody .profile-dashboard .profile-cup-trophy>.profile-icon{visibility:hidden}
#modalBody .profile-dashboard .profile-cup-link>.profile-icon{visibility:hidden}
#modalBody .profile-dashboard .profile-cup-link{position:relative}
#modalBody .profile-dashboard .profile-cup-link::before{content:'';position:absolute;left:12px;width:43px;height:48px;background:url('./ui/stage-goal-v598/trophy.webp') center/contain no-repeat;pointer-events:none}
#modalBody .profile-dashboard .profile-next-unlock{padding:10px 12px}
#modalBody .profile-dashboard .profile-next-unlock .ui-section-head{margin-bottom:6px;align-items:baseline}
#modalBody .profile-dashboard .profile-next-unlock .ui-section-head h2{font-size:16px;letter-spacing:-.4px}
#modalBody .profile-dashboard .profile-next-unlock .ui-section-head>small{font-size:9px}
#modalBody .profile-dashboard .profile-next-unlock .progress-unlock{padding:8px;gap:9px}
#modalBody .profile-dashboard .profile-next-unlock .progress-unlock small{font-size:10px;line-height:1.35}
#modalBody .profile-dashboard .profile-next-unlock .progress-unlock>span .profile-icon{width:28px;height:28px}
/* Decorative medal and live equipped Pal remain independent of account data. */
#modalBody .profile-dashboard .profile-legacy-banner{display:grid;grid-template-columns:92px minmax(0,1fr);gap:5px 11px;align-items:center;min-height:178px}
#modalBody .profile-dashboard .profile-legacy-banner>h2{grid-column:1/-1;margin:0 0 3px}
#modalBody .profile-dashboard .profile-legacy-feature{display:contents}
#modalBody .profile-dashboard .profile-legacy-medal{display:block;width:92px;height:105px;object-fit:contain;grid-column:1;grid-row:2/5;filter:drop-shadow(0 3px 3px #49312644)}
#modalBody .profile-dashboard .profile-legacy-feature>strong{grid-column:2;grid-row:2;font-size:25px;line-height:1.1}
#modalBody .profile-dashboard .profile-legacy-banner>.xp-source-note{grid-column:2;margin:0;font-size:11px;line-height:1.4}
#modalBody .profile-dashboard .profile-legacy-banner>progress{grid-column:2;height:14px;margin:2px 0}
#modalBody .profile-dashboard .profile-legacy-banner>.xp-source-note:last-child{grid-column:1/-1;font-size:10px;margin-top:3px;line-height:1.4}
#modalBody .profile-dashboard .profile-cup-banner{min-height:185px;display:block}
#modalBody .profile-dashboard .profile-cup-banner>div{margin-left:95px}
#modalBody .profile-dashboard .profile-cup-trophy{position:absolute;z-index:1;width:76px;height:88px;left:16px;bottom:57px}
#modalBody .profile-dashboard .profile-cup-banner .profile-cup-pal{position:absolute;z-index:2;width:105px;height:105px;left:5px;bottom:-3px;object-fit:contain;touch-action:auto}
@media(max-width:350px){
 #modalBody .profile-dashboard .profile-legacy-banner{grid-template-columns:76px minmax(0,1fr);gap:5px 8px;padding:12px}
 #modalBody .profile-dashboard .profile-legacy-medal{width:76px;height:92px}
 #modalBody .profile-dashboard .profile-legacy-feature>strong{font-size:22px}
 #modalBody .profile-dashboard .profile-cup-banner>div{margin-left:83px}
 #modalBody .profile-dashboard .profile-cup-banner .profile-cup-pal{width:92px;height:92px;left:0}
 #modalBody .profile-dashboard .profile-cup-trophy{left:9px;width:67px;height:78px}
}
#modalBody .profile-dashboard .profile-xp-help{grid-column:1/-1;margin-top:3px;color:#765d49}
#modalBody .profile-dashboard .profile-xp-help>summary{display:flex;align-items:center;min-height:44px;font-size:11px;font-weight:700;cursor:pointer;list-style:none}
#modalBody .profile-dashboard .profile-xp-help>summary::after{content:'⌄';margin-left:auto;color:#668b49;font-size:19px}
#modalBody .profile-dashboard .profile-xp-help[open]>summary::after{transform:rotate(180deg)}
#modalBody .profile-dashboard .profile-xp-help>summary::-webkit-details-marker{display:none}
#modalBody .profile-dashboard .profile-xp-help p{font-size:11px;line-height:1.4;margin:0 0 5px}
/* Landscape adapts the navigation to one row, retaining labels and 44px targets. */
@media(max-height:500px) and (min-width:600px){
 #modal #modalBody .profile-dashboard{display:flex;overflow:hidden;padding-right:0}
 #modal #modalBody .profile-dashboard .profile-content{flex:1 1 0!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0;height:auto;max-height:none;padding-bottom:14px}
 #modalBody .profile-dashboard .profile-hero{min-height:96px;padding:0 0 3px;grid-template-columns:62px minmax(0,1fr);gap:10px}
 #modalBody .profile-dashboard .profile-hero>.profile-frame{width:60px!important;height:60px!important}
 #modalBody .profile-dashboard .profile-hero strong{font-size:21px}
 #modalBody .profile-dashboard .profile-hero small{font-size:10px;margin-top:2px}
 #modalBody .profile-dashboard .profile-hero .profile-cosmetic-title{font-size:10px;margin-top:2px}
 #modalBody .profile-dashboard .profile-hero .profile-hero-badge{font-size:9px!important;margin-top:2px!important}
 #modalBody .profile-dashboard .profile-xp-line{font-size:9px;margin:4px 0 3px}
 #modalBody .profile-dashboard .profile-xp-bar{height:8px}
 #modalBody .profile-dashboard .profile-tabs{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:4px 0 8px}
 #modalBody .profile-dashboard .profile-tab{flex-direction:column;gap:3px;min-height:44px;padding:4px 2px}
 #modalBody .profile-dashboard .profile-tab small{font-size:9px}
 #modalBody .profile-dashboard .profile-tab>.profile-icon{width:15px;height:15px}
 #modalBody .profile-dashboard .profile-customize-tabs{padding:3px;margin-bottom:8px}
 #modalBody .profile-dashboard .profile-customize-tabs button{min-height:44px}
}
/* Side-by-side Cup prop and live Pal, with deliberate ear clearance. */
#modalBody .profile-dashboard .profile-cup-banner>div{margin-left:142px}
#modalBody .profile-dashboard .profile-cup-trophy{left:8px;bottom:19px;width:62px;height:83px}
#modalBody .profile-dashboard .profile-cup-banner .profile-cup-pal{left:77px;bottom:8px;width:77px;height:77px}
#modalBody .profile-dashboard [data-stat-icon=records] .profile-highlight-icon,#modalBody .profile-dashboard [data-stat-icon=tournament] .profile-highlight-icon{background:url('./ui/stage-goal-v598/trophy.webp') center/contain no-repeat}
#modalBody .profile-dashboard [data-stat-icon=records] .profile-highlight-icon>.profile-icon,#modalBody .profile-dashboard [data-stat-icon=tournament] .profile-highlight-icon>.profile-icon{visibility:hidden}
@media(max-width:350px){
 #modalBody .profile-dashboard .profile-cup-banner>div{margin-left:126px}
 #modalBody .profile-dashboard .profile-cup-trophy{left:5px;bottom:18px;width:53px;height:75px}
 #modalBody .profile-dashboard .profile-cup-banner .profile-cup-pal{left:65px;bottom:10px;width:70px;height:70px}
}

#modalBody .profile-dashboard .cosmetic-item:focus{outline-color:#537b3b!important}

/* Cup hero composition: scenery, live identity and current event stay separate. */
#modalBody .profile-dashboard .profile-cup-banner{display:grid;grid-template-columns:44% minmax(0,1fr);align-items:center;gap:0;min-height:172px;padding:14px;background-color:#e4eccd;background-image:linear-gradient(90deg,#fff6de00 25%,#fff9e6c9 62%,#fff9e6ed),url('./ui/profile-cup-meadow.webp');background-position:left center;background-size:cover;background-repeat:no-repeat}
#modalBody .profile-dashboard .profile-cup-banner.is-winter{background-image:linear-gradient(90deg,#fff9ff00 25%,#fffaf5b8 62%,#fffaf5e6),url('./ui/profile-cup.webp')}
#modalBody .profile-dashboard .profile-cup-banner>div{grid-column:2;margin:0;min-width:0;text-align:right;align-self:center}
#modalBody .profile-dashboard .profile-cup-banner h2{font-size:25px;line-height:1.12;letter-spacing:-.6px;margin:5px 0 10px;overflow-wrap:anywhere;text-shadow:0 1px 2px #fff9ed}
#modalBody .profile-dashboard .profile-cup-banner small{font-size:10px;line-height:1.4;margin:5px 0 0;text-shadow:0 1px 2px #fff9ed}
#modalBody .profile-dashboard .profile-cup-banner p{max-width:100%;margin:0 0 5px;padding:7px 9px;background:#fffaf0eb;border-color:#fff9ed;font-size:12px;line-height:1.35;white-space:normal}
#modalBody .profile-dashboard .profile-cup-trophy{left:max(6px,calc(44% - 190px));bottom:22px;width:88px;height:116px;z-index:1;filter:drop-shadow(0 5px 3px #73573233)}
#modalBody .profile-dashboard .profile-cup-banner .profile-cup-pal{left:calc(44% - 112px);bottom:10px;width:112px;height:112px;z-index:2;filter:drop-shadow(0 4px 3px #43533826)}
@media(max-width:350px){
 #modalBody .profile-dashboard .profile-cup-banner{padding:12px;min-height:164px;grid-template-columns:43% minmax(0,1fr)}
 #modalBody .profile-dashboard .profile-cup-banner>div{margin:0}
 #modalBody .profile-dashboard .profile-cup-banner h2{font-size:22px;letter-spacing:-.45px}
 #modalBody .profile-dashboard .profile-cup-banner small{font-size:10px}
 #modalBody .profile-dashboard .profile-cup-trophy{left:4px;bottom:21px;width:70px;height:104px}
 #modalBody .profile-dashboard .profile-cup-banner .profile-cup-pal{left:calc(43% - 96px);bottom:10px;width:96px;height:96px}
}
@media(min-width:600px){
 #modalBody .profile-dashboard .profile-cup-banner{min-height:186px;padding:18px;background-position:left 60%}
 #modalBody .profile-dashboard .profile-cup-banner h2{font-size:30px}
 #modalBody .profile-dashboard .profile-cup-trophy{width:100px;height:128px;left:max(6px,calc(44% - 202px));bottom:25px}
 #modalBody .profile-dashboard .profile-cup-banner .profile-cup-pal{width:126px;height:126px;left:calc(44% - 126px);bottom:12px}
}

/* Native details interaction, with a centered vector-like chevron instead of a font glyph. */
#modalBody .profile-dashboard .profile-secondary-details summary::after{content:'';display:block;flex:0 0 10px;width:10px;height:10px;margin-left:14px;margin-right:4px;border:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;border-radius:1px;font-size:0;line-height:0;transform:translateY(-2px) rotate(45deg);transform-origin:center}
#modalBody .profile-dashboard .profile-secondary-details[open] summary::after{transform:translateY(2px) rotate(225deg)}
/* Remove only the decorative outboard frame spark, not the equipped frame or badge. */
#modalBody .profile-dashboard .wph-profile-avatar.frame-golden_paws::after,
#modalBody .profile-dashboard .wph-profile-avatar.frame-starlight_frame::after{content:none!important;display:none!important}

/* web621 approved Overview polish. Other tab bodies intentionally unchanged. */
/* Shared identity header: preserve actual equipped appearance and separate title/badge. */
#modalBody .profile-dashboard .profile-hero{grid-template-columns:86px minmax(0,1fr);gap:13px;min-height:137px;padding:5px 0 12px;align-items:center}
#modalBody .profile-dashboard .profile-hero>.profile-frame{width:84px;height:84px;filter:drop-shadow(0 3px 3px #80633a1c)}
#modalBody .profile-dashboard .profile-hero>div{display:flex;flex-direction:column;align-items:stretch;min-width:0}
#modalBody .profile-dashboard .profile-hero>div>strong{order:0;font-size:27px;letter-spacing:-.65px;line-height:1.12;padding-right:46px;color:#483226}
#modalBody .profile-dashboard .profile-hero .profile-cosmetic-title{order:1;font-size:11px;line-height:1.3;margin-top:4px;color:#73532c;font-weight:750}
#modalBody .profile-dashboard .profile-hero .profile-hero-badge{order:2;font-size:10px!important;line-height:1.3;margin-top:3px!important;color:#79664d!important;font-weight:550}
#modalBody .profile-dashboard .profile-hero .profile-player-level{order:3;font-size:14px;line-height:1.2;margin-top:7px;font-weight:850;color:#493126}
#modalBody .profile-dashboard .profile-hero .profile-xp-line{order:5;align-items:baseline;justify-content:space-between;margin:4px 0 0;font-size:9px;line-height:1.3;gap:7px;color:#77634d;font-weight:650}
#modalBody .profile-dashboard .profile-hero .profile-xp-line>span:first-child{font-weight:800;color:#624a34}
#modalBody .profile-dashboard .profile-hero .profile-xp-line>span:last-child{text-align:right}
#modalBody .profile-dashboard .profile-hero .profile-xp-bar{order:4;height:11px;margin-top:5px;border:1px solid #cdbf9f;background:linear-gradient(#dcd2bb,#e8dfcc);box-shadow:inset 0 1px 2px #816c3817}
#modalBody .profile-dashboard .profile-hero .profile-xp-bar span{background:linear-gradient(#badc8e,#83b65c);box-shadow:inset 0 1px #e0f1c2;border-radius:20px}
/* Controlled white cross, not a font-dependent multiplication glyph. */
#modalBody .profile-dashboard .profile-topbar #profileClose{position:relative;display:block;width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid #e75d49;border-radius:50%;background:radial-gradient(ellipse at 38% 13%,#ffb79a 0,#ff8e73 32%,#fb6c54 67%,#ed5b46 100%);box-shadow:inset 0 2px 0 #ffe0c6,inset 0 -2px 0 #db503c,0 0 0 2px #fff5de,0 3px 0 #ba6c4230,0 5px 8px #9e614029;overflow:hidden;color:#fff}
#modalBody .profile-dashboard .profile-topbar #profileClose>span{display:none}
#modalBody .profile-dashboard .profile-topbar #profileClose::before,#modalBody .profile-dashboard .profile-topbar #profileClose::after{content:'';position:absolute;left:50%;top:50%;width:22px;height:5px;border-radius:2px;background:#fffaf1;box-shadow:0 1px 1px #b75b3e24;font-size:0;line-height:0;transform:translate(-50%,-50%) rotate(45deg)}
#modalBody .profile-dashboard .profile-topbar #profileClose::after{transform:translate(-50%,-50%) rotate(-45deg)}
#modalBody .profile-dashboard .profile-topbar #profileClose:active{transform:translateY(1px);box-shadow:inset 0 1px 2px #c44a3733,0 0 0 2px #fff5de,0 2px 4px #9e614029}
/* Overview receives the dimensional card treatment only. */
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner{min-height:211px;padding:13px;border:1px solid #e2d8b8;border-radius:20px;background-position:center;background-size:cover;box-shadow:inset 0 1px 0 #fffdf3b3,0 3px 7px #81683d12}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner h2{font-size:21px;letter-spacing:-.65px;line-height:1.18;color:#4d392b;text-shadow:0 1px 2px #fff9e9,0 1px 8px #fff9e999;margin-bottom:8px}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner::before{content:'';position:absolute;z-index:0;left:13%;bottom:16px;width:36%;height:15px;border-radius:50%;background:radial-gradient(ellipse,#4f663944, #4f663927 42%,#4f663900 73%);pointer-events:none}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner>canvas{z-index:1;left:2.5%;bottom:4%;width:54%;height:auto;max-height:177px;object-fit:contain;filter:drop-shadow(0 3px 2px #51613b20)}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-levels{z-index:2;width:36%;margin:5px 0 2px auto;padding:13px 7px 12px;border:1px solid #fffdf4;border-radius:17px;background:linear-gradient(150deg,#fffdf4e8,#faf6e9df);box-shadow:inset 0 1px #fff,0 5px 13px #68764020;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-levels small{font-size:11px;line-height:1.25;font-weight:650;color:#68513b}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-levels strong{font-size:34px;line-height:1.12;font-weight:850;letter-spacing:-.6px;color:#493126;margin-top:3px}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-levels hr{margin:10px 3px;border-top:1px solid #d9cbb5;box-shadow:0 1px #fffdf4}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight-grid{gap:8px;margin-top:9px}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight{gap:9px;min-height:68px;padding:10px 9px;border:1px solid #e2d2b7;border-radius:18px;background:linear-gradient(145deg,#fffdf5,#fff3df);box-shadow:inset 0 1px #fff,0 3px 6px #906a3711}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight .profile-highlight-icon{width:43px;height:44px;min-width:43px;display:grid;place-items:center;background:none}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight .profile-highlight-icon img{display:block;width:43px;height:43px;object-fit:contain;filter:drop-shadow(0 2px 1px #9f6f4022)}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight .profile-highlight-icon>.profile-icon{width:36px;height:36px}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight small{font-size:11px;line-height:1.25;color:#72593f;margin-bottom:3px;font-weight:600}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight strong{font-size:24px;line-height:1.1;font-weight:850;letter-spacing:-.45px;color:#493126;font-variant-numeric:tabular-nums}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-cup-link{min-height:78px;margin-top:9px;padding:11px 13px;gap:12px;border:1px solid #e1d0b2;border-radius:18px;background:linear-gradient(145deg,#fffdf4,#fff2db);box-shadow:inset 0 1px #fff,0 3px 7px #906a3712}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-cup-link>.profile-icon{width:49px;height:52px;flex:0 0 49px}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-cup-link::before{left:13px;width:49px;height:57px;filter:drop-shadow(0 2px 1px #8a683c26)}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-cup-link small{display:block;font-size:12px;font-weight:650;color:#72593f;line-height:1.25;margin-bottom:4px}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-cup-link strong{font-size:23px;line-height:1.15;font-weight:850;letter-spacing:-.4px;color:#493126}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-cup-link>b{display:block;flex:none;width:9px;height:9px;margin:0 4px 0 3px;border-right:3px solid #7d985e;border-top:3px solid #7d985e;transform:rotate(45deg);font-size:0;line-height:0}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-primary-link{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;width:100%;margin-top:10px;padding:10px 34px;border:1px solid #86a866;border-radius:20px;background:linear-gradient(#c5e6a3,#a8d17f);color:#38532c;font-size:16px;font-weight:850;letter-spacing:-.15px;box-shadow:inset 0 2px #e7f5d3,inset 0 -2px #96bb7238,0 3px 0 #8da15e18,0 4px 8px #7b8d4920;text-shadow:0 1px #e6f2d566}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-primary-link>.profile-icon{width:29px;height:29px;flex:0 0 29px;filter:drop-shadow(0 1px #edfadbb3)}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-primary-link>span{position:absolute;right:17px;top:50%;width:9px;height:9px;margin:0;border-right:3px solid #52713d;border-top:3px solid #52713d;transform:translateY(-50%) rotate(45deg);font-size:0;line-height:0}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-primary-link:active{transform:translateY(1px);box-shadow:inset 0 1px 3px #72934e33,0 2px 5px #7b8d4917}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-secondary-details{margin-top:9px;padding:3px 11px;border:1px solid #e5d7bd;border-radius:15px;background:#fff8e9a8;box-shadow:none}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-secondary-details>summary{font-size:12px;line-height:1.3;min-height:44px;font-weight:650;color:#776247}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-secondary-details>summary::after{width:8px;height:8px;flex-basis:8px;color:#82936a}
@media(max-width:350px){
 #modalBody .profile-dashboard .profile-hero{grid-template-columns:70px minmax(0,1fr);gap:10px;min-height:134px}
 #modalBody .profile-dashboard .profile-hero>.profile-frame{width:68px;height:68px}
 #modalBody .profile-dashboard .profile-hero>div>strong{font-size:24px;padding-right:44px}
 #modalBody .profile-dashboard .profile-hero .profile-player-level{font-size:13px;margin-top:6px}
 #modalBody .profile-dashboard .profile-hero .profile-xp-line{font-size:8px;gap:4px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner{min-height:197px;padding:12px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner h2{font-size:20px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner>canvas{width:53%;max-height:160px;bottom:6%}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-levels{width:38%;padding:11px 5px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-levels small{font-size:10px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-levels strong{font-size:31px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight{padding:9px 7px;gap:6px;min-height:64px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight .profile-highlight-icon{width:35px;min-width:35px;height:38px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight .profile-highlight-icon img{width:35px;height:35px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight small{font-size:10px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight strong{font-size:22px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-cup-link{min-height:74px;gap:9px;padding:10px 11px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-cup-link>.profile-icon{width:43px;height:49px;flex-basis:43px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-cup-link::before{left:11px;width:43px;height:51px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-cup-link strong{font-size:21px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-primary-link{font-size:15px;gap:8px;padding-left:30px;padding-right:30px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-primary-link>.profile-icon{width:27px;height:27px;flex-basis:27px}
}
@media(min-width:600px) and (min-height:501px){
 #modalBody .profile-dashboard .profile-hero{grid-template-columns:100px minmax(0,1fr);gap:17px;min-height:146px}
 #modalBody .profile-dashboard .profile-hero>.profile-frame{width:96px;height:96px}
 #modalBody .profile-dashboard .profile-hero>div>strong{font-size:30px}
 #modalBody .profile-dashboard .profile-hero .profile-player-level{font-size:16px}
 #modalBody .profile-dashboard .profile-hero .profile-xp-line{font-size:10px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner{min-height:246px;padding:16px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner>canvas{max-height:205px;width:53%}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-levels{padding:16px 9px;max-width:185px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-levels strong{font-size:38px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-levels small{font-size:12px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight{min-height:76px;padding:12px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight .profile-highlight-icon,#modalBody .profile-dashboard[data-profile-section=overview] .profile-highlight .profile-highlight-icon img{width:48px;height:48px;min-width:48px}
}
@media(max-height:500px) and (min-width:600px){
 #modalBody .profile-dashboard .profile-hero{min-height:103px;padding:0 0 4px;grid-template-columns:62px minmax(0,1fr);gap:10px}
 #modalBody .profile-dashboard .profile-hero>.profile-frame{width:60px!important;height:60px!important}
 #modalBody .profile-dashboard .profile-hero>div>strong{font-size:21px;line-height:1.1}
 #modalBody .profile-dashboard .profile-hero .profile-cosmetic-title{font-size:9px;margin-top:2px}
 #modalBody .profile-dashboard .profile-hero .profile-hero-badge{font-size:9px!important;margin-top:2px!important}
 #modalBody .profile-dashboard .profile-hero .profile-player-level{font-size:11px;margin-top:3px}
 #modalBody .profile-dashboard .profile-hero .profile-xp-bar{height:8px;margin-top:3px}
 #modalBody .profile-dashboard .profile-hero .profile-xp-line{font-size:8px;line-height:1.2;margin-top:3px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner{min-height:196px}
 #modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner>canvas{max-height:164px}
}
/* Explicit CTA label group keeps brush + text truly centered, independent of chevron. */
#modalBody .profile-dashboard[data-profile-section=overview] .profile-primary-link>.profile-customize-label{position:static;display:flex;align-items:center;justify-content:center;gap:10px;flex:0 1 auto;min-width:0;width:auto;height:auto;top:auto;right:auto;margin:0;border:0;transform:none;font:inherit;line-height:1.2;color:inherit}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-customize-label>.profile-icon{display:block;width:29px;height:29px;flex:0 0 29px;filter:drop-shadow(0 1px #edfadbb3)}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-customize-label>span{font:inherit;line-height:1.2}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-primary-link>.profile-cta-chevron{position:absolute;right:17px;top:50%;display:block;flex:none;width:9px;height:9px;margin:0;border:0;border-right:3px solid #52713d;border-top:3px solid #52713d;transform:translateY(-50%) rotate(45deg);font-size:0;line-height:0}
@media(max-width:350px){#modalBody .profile-dashboard[data-profile-section=overview] .profile-primary-link>.profile-customize-label{gap:8px}#modalBody .profile-dashboard[data-profile-section=overview] .profile-customize-label>.profile-icon{width:27px;height:27px;flex-basis:27px}}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner{background-image:url('./ui/profile-overview-journey-v621.webp')}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-customize-label>.profile-icon{color:#fffdf2;fill:currentColor;stroke:currentColor;filter:drop-shadow(0 1px 1px #55763c66)}
/* Soft scenic sky scrim maintains heading contrast without a separate label box. */
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner{background-image:linear-gradient(to bottom,#fff9edef 0,#fff9edc4 28px,#fff9ed00 70px),url('./ui/profile-overview-journey-v621.webp');background-position:center;background-size:cover}
/* Keep the coral rim and keyboard focus outline inside the clipped dialog edge. */
#modalBody .profile-dashboard>.profile-topbar{inset:4px 4px auto auto}

/* Overview Journey: one centered stage focal point; identity stays in the header. */
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner{min-height:200px}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner::before{content:none;display:none}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-stage{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:max-content;min-width:138px;max-width:calc(100% - 32px);min-height:116px;padding:15px 12px;border:2px solid #d3b675;border-radius:27px;background:linear-gradient(145deg,#fffdf3ee,#fff5dbe6);box-shadow:inset 0 0 0 3px #fffcefcc,inset 0 -5px 10px #e5d3a62b,0 7px 18px #586c4030;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);text-align:center}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-stage small{display:block;font-size:12px;line-height:1.25;font-weight:750;letter-spacing:.15px;color:#665039}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-stage strong{display:block;font-size:47px;font-weight:850;line-height:1.05;letter-spacing:-1px;color:#4c6236;font-variant-numeric:tabular-nums;text-shadow:0 1px #fff;overflow-wrap:anywhere;max-width:100%}
@media(max-width:350px){#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner{min-height:194px}#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-stage{min-width:130px;min-height:110px;padding:13px 10px;border-radius:25px}#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-stage strong{font-size:43px}}
@media(min-width:600px) and (min-height:501px){#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner{min-height:220px}#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-stage{min-width:154px;min-height:128px;border-radius:29px}#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-stage strong{font-size:52px}}

/* Approved Journey trail marker: full uncropped art, accessible live typography. */
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner{container-type:inline-size;position:relative;display:block;width:100%;height:auto;min-height:0;aspect-ratio:2/1;padding:0;border:0;border-radius:18px;background:transparent url('./ui/profile-journey-trail-v623.webp') center/100% 100% no-repeat;box-shadow:none}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-banner h2{position:absolute;left:5.5%;top:7.6%;z-index:2;margin:0;padding:0;font-size:5.7cqw;font-weight:900;line-height:1.05;letter-spacing:-.035em;color:#4b230b;text-shadow:0 1px 0 #fff3cc;white-space:nowrap}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-stage{position:absolute;inset:0;z-index:2;transform:none;display:block;width:auto;min-width:0;max-width:none;height:auto;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;text-align:center;pointer-events:none}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-stage small{position:absolute;left:49.7%;top:44.8%;transform:translate(-50%,-50%);margin:0;padding:0;display:block;font-size:4cqw;font-weight:900;line-height:1;letter-spacing:-.025em;color:#4b230b;white-space:nowrap}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-stage strong{position:absolute;left:49.7%;top:61%;transform:translate(-50%,-50%);display:block;margin:0;padding:0;max-width:23%;font-size:13cqw;font-weight:900;line-height:1;letter-spacing:-.06em;color:#4b230b;text-shadow:0 1px 0 #ffefbe;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-stage strong[data-stage-digits="3"]{font-size:10.5cqw;letter-spacing:-.07em}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-stage strong[data-stage-digits="4"]{font-size:8cqw;letter-spacing:-.07em}
#modalBody .profile-dashboard[data-profile-section=overview] .profile-journey-stage strong[data-stage-digits="5"]{font-size:6.5cqw;letter-spacing:-.07em}
/* v624: compact identity, highlighted Chat-style title and icon-only earned badge. */
#modalBody .profile-dashboard .profile-hero{grid-template-columns:92px minmax(0,1fr);gap:10px 14px;min-height:0;padding:5px 0 12px;align-items:center}
#modalBody .profile-dashboard .profile-hero>.profile-frame{width:90px;height:90px}
#modalBody .profile-dashboard .profile-hero>.profile-identity-copy{display:flex;min-width:0;gap:7px;padding-right:0}
#modalBody .profile-dashboard .profile-hero>.profile-identity-copy>.profile-player-name{font-size:28px;line-height:1.12;padding-right:44px;letter-spacing:-.7px;overflow-wrap:anywhere}
#modalBody .profile-dashboard .profile-honors{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
#modalBody .profile-dashboard .profile-hero .profile-cosmetic-title{display:inline-flex;align-items:center;max-width:100%;width:max-content;min-width:0;margin:0;padding:6px 10px;border:1px solid #d0a34d;border-radius:12px;background:linear-gradient(#fff6cc,#f0cf7e);box-shadow:inset 0 2px #fffce5,0 3px #d9b66d55;color:#80561f;font-size:12px;font-weight:850;line-height:1.3;overflow-wrap:anywhere}
#modalBody .profile-dashboard .profile-hero .profile-cosmetic-title[hidden]{display:none!important}
#modalBody .profile-dashboard .profile-badge-button{display:grid;place-items:center;width:46px;height:46px;min-width:46px;padding:1px;border:0;border-radius:50%;background:transparent;cursor:pointer;flex:none}
#modalBody .profile-dashboard .profile-badge-medallion{position:relative;display:grid;place-items:center;width:42px;height:42px;border:2px solid #be8435;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff7d2,#edb95d);box-shadow:inset 0 0 0 2px #ffe9a9,0 2px 3px #77502b30;color:#79512e}
#modalBody .profile-dashboard .profile-badge-medallion img{display:block;width:86%;height:86%;object-fit:contain;filter:drop-shadow(0 1px 1px #66421830)}
#modalBody .profile-dashboard .profile-badge-medallion svg{width:24px;height:24px}
#modalBody .profile-dashboard .profile-badge-medallion i{position:absolute;right:-2px;bottom:-2px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#fff3b7;border:1px solid #b98835;color:#8c5d1b;font-size:12px;font-style:normal}
#modalBody .profile-dashboard .badge-design-0{background:radial-gradient(circle at 35% 25%,#fff1df,#e8af8b);border-color:#bc815c}
#modalBody .profile-dashboard .badge-design-1,#modalBody .profile-dashboard .badge-design-4{background:radial-gradient(circle at 35% 25%,#f3ffd6,#a3c875);border-color:#839b47}
#modalBody .profile-dashboard .badge-design-2{background:radial-gradient(circle at 35% 25%,#fff4e0,#efb492)}
#modalBody .profile-dashboard .badge-design-9{border:0;background:none;box-shadow:none}
#modalBody .profile-dashboard .badge-design-9 img{width:100%;height:100%}
#modalBody .profile-dashboard .profile-hero>.profile-level-block{grid-column:1/-1;display:block;min-width:0;padding:0}
#modalBody .profile-dashboard .profile-hero .profile-player-level{display:block;font-size:16px;font-weight:850;line-height:1.25;margin:0 0 5px;color:#573b27}
#modalBody .profile-dashboard .profile-hero .profile-xp-bar{height:13px;margin:0;background:#e6d4b6;border-color:#c8a77d;box-shadow:inset 0 1px 3px #ad83522b}
#modalBody .profile-dashboard .profile-hero .profile-xp-bar span{background:linear-gradient(#b6d977,#7da94d);box-shadow:inset 0 2px #d8edac}
#modalBody .profile-dashboard .profile-hero .profile-xp-line{display:flex;justify-content:space-between;gap:8px;margin:5px 0 0;font-size:10px;line-height:1.3;font-weight:650}
#modalBody .profile-dashboard .profile-badge-dialog{position:fixed;inset:0;margin:auto;width:min(340px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:26px 22px 18px;border:2px solid #c3a077;border-radius:24px;background:linear-gradient(145deg,#fff9e9,#f6e4c5);color:#513927;text-align:center;box-shadow:0 16px 50px #35241455}
#modalBody .profile-dashboard .profile-badge-dialog::backdrop{background:#30271980;backdrop-filter:blur(3px)}
#modalBody .profile-dashboard .profile-badge-dialog>.profile-badge-medallion{width:96px;height:96px;margin:8px auto 14px;border-width:3px}
#modalBody .profile-dashboard .profile-badge-dialog>.profile-badge-medallion svg{width:55px;height:55px}
#modalBody .profile-dashboard .profile-badge-dialog>.profile-badge-medallion i{width:27px;height:27px;font-size:21px}
#modalBody .profile-dashboard .profile-badge-dialog>small{display:block;font-size:10px;font-weight:800;letter-spacing:1.3px;color:#927244}
#modalBody .profile-dashboard .profile-badge-dialog>h2{font-size:25px;line-height:1.15;margin:7px 0 9px;overflow-wrap:anywhere}
#modalBody .profile-dashboard .profile-badge-dialog>p{font-size:14px;line-height:1.5;margin:0 0 19px;color:#806448}
#modalBody .profile-dashboard #profileBadgeDialogClose{position:absolute;top:10px;right:10px;width:40px;height:40px;border:1px solid #e39a7e;border-radius:50%;background:linear-gradient(#ffb298,#ed7d69);color:white;font-size:28px;line-height:1;cursor:pointer}
#modalBody .profile-dashboard #profileBadgeChange,#modalBody .profile-dashboard #profileBadgeBack{display:block;width:100%;min-height:44px;border:1px solid #86a567;border-radius:13px;background:linear-gradient(#cee6ac,#aacb7f);color:#3e562e;font:800 14px system-ui;cursor:pointer}
#modalBody .profile-dashboard #profileBadgeBack{margin-top:7px;border-color:transparent;background:transparent;color:#806448;font-weight:650}
@media(max-width:360px){#modalBody .profile-dashboard .profile-hero{grid-template-columns:74px minmax(0,1fr);gap:8px 10px}#modalBody .profile-dashboard .profile-hero>.profile-frame{width:72px;height:72px}#modalBody .profile-dashboard .profile-hero>.profile-identity-copy>.profile-player-name{font-size:23px}#modalBody .profile-dashboard .profile-hero .profile-cosmetic-title{font-size:10px;padding:5px 8px}#modalBody .profile-dashboard .profile-honors{gap:5px}#modalBody .profile-dashboard .profile-hero .profile-xp-line{font-size:9px}}
@media(min-width:700px) and (min-height:600px){#modalBody .profile-dashboard .profile-hero{grid-template-columns:110px minmax(0,1fr);gap:11px 18px}#modalBody .profile-dashboard .profile-hero>.profile-frame{width:106px;height:106px}#modalBody .profile-dashboard .profile-hero>.profile-identity-copy>.profile-player-name{font-size:34px}#modalBody .profile-dashboard .profile-hero .profile-cosmetic-title{font-size:14px}#modalBody .profile-dashboard .profile-hero .profile-xp-line{font-size:11px}}
@media(max-height:480px) and (min-width:600px){#modalBody .profile-dashboard .profile-hero{grid-template-columns:62px minmax(0,1fr) minmax(160px,.75fr);gap:10px;padding:0 0 7px}#modalBody .profile-dashboard .profile-hero>.profile-frame{width:60px!important;height:60px!important}#modalBody .profile-dashboard .profile-hero>.profile-identity-copy>.profile-player-name{font-size:21px;padding-right:0}#modalBody .profile-dashboard .profile-hero>.profile-level-block{grid-column:3;padding-right:48px}#modalBody .profile-dashboard .profile-hero .profile-cosmetic-title{font-size:10px;padding:4px 7px}#modalBody .profile-dashboard .profile-badge-button{width:44px;height:44px;min-width:44px}#modalBody .profile-dashboard .profile-badge-medallion{width:36px;height:36px}#modalBody .profile-dashboard .profile-hero .profile-player-level{font-size:12px}#modalBody .profile-dashboard .profile-hero .profile-xp-line{font-size:8px;flex-wrap:wrap;gap:2px}#modalBody .profile-dashboard .profile-hero .profile-xp-bar{height:10px}}
#modalBody .profile-dashboard .profile-honors>.profile-cosmetic-title{order:0}
#modalBody .profile-dashboard .profile-honors>.profile-badge-button{order:1}
#modalBody .profile-dashboard #profileBadgeDialogClose{width:44px;height:44px}
/* v625: concept-inspired warm bronze frame around the existing identity card. */
#modalBody .profile-dashboard .profile-hero{position:relative;border:3px solid #a87445;border-radius:25px;padding:16px 15px 15px;margin:2px 2px 13px;background:radial-gradient(ellipse at 30% 0%,#fffdf1 0,transparent 70%),linear-gradient(145deg,#fff5dc,#f9e8c9);box-shadow:inset 0 2px 0 #ffe8bb,inset 0 -2px 0 #d1a572,0 0 0 1px #80532f,0 3px 0 #c99863,0 5px 9px #80552b20;isolation:isolate}
#modalBody .profile-dashboard .profile-hero::before{content:'';position:absolute;inset:5px;border:1px solid #e1c398;border-radius:17px;box-shadow:inset 0 1px 0 #fffdf0,0 1px 0 #fff9e6;pointer-events:none;z-index:-1}
#modalBody .profile-dashboard>.profile-topbar{top:13px;right:13px}
#modalBody .profile-dashboard .profile-hero>.profile-identity-copy>.profile-player-name{padding-right:40px}
@media(max-width:360px){#modalBody .profile-dashboard .profile-hero{padding:13px 11px 12px;border-radius:22px;gap:8px 9px}#modalBody .profile-dashboard .profile-hero::before{inset:4px;border-radius:15px}#modalBody .profile-dashboard>.profile-topbar{top:12px;right:11px}}
@media(max-height:480px) and (min-width:600px){#modalBody .profile-dashboard .profile-hero{padding:10px 12px;margin-bottom:10px;border-radius:20px}#modalBody .profile-dashboard .profile-hero::before{inset:4px;border-radius:13px}#modalBody .profile-dashboard>.profile-topbar{top:11px;right:12px}#modalBody .profile-dashboard .profile-hero>.profile-identity-copy>.profile-player-name{padding-right:0}#modalBody .profile-dashboard .profile-hero>.profile-level-block{padding-right:45px}}
/* v626: remove duplicated progression/account tables; retain useful compact details. */
#modalBody .profile-dashboard .profile-extra-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0 0}
#modalBody .profile-dashboard .profile-extra-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:3px;padding:12px 6px;border:1px solid #ddc9a8;border-radius:16px;background:linear-gradient(#fffaf0,#f8ecd6);text-align:center}
#modalBody .profile-dashboard .profile-extra-stat strong{font-size:17px;line-height:1.2;color:#5e432d;overflow-wrap:anywhere;max-width:100%}
#modalBody .profile-dashboard .profile-extra-stat small{font-size:10px;line-height:1.3;color:#8b7257}
#modalBody .profile-dashboard .profile-extra-icon,#modalBody .profile-dashboard .profile-extra-pal{display:grid;place-items:center;width:36px;height:36px;margin-bottom:3px;color:#ae8244}
#modalBody .profile-dashboard .profile-extra-icon .profile-icon{width:27px;height:27px}
#modalBody .profile-dashboard .profile-account-card{margin-top:10px;padding:13px;border:1px solid #ddc9a8;border-radius:16px;background:#fff8e9}
#modalBody .profile-dashboard .profile-account-id>label{display:block;font-size:10px;font-weight:700;color:#8b7257;margin-bottom:3px}
#modalBody .profile-dashboard .profile-account-id>div{display:flex;align-items:center;gap:8px;min-width:0}
#modalBody .profile-dashboard #profilePlayerId{flex:1;min-width:0;width:100%;padding:3px 0;border:0;background:transparent;color:#654b34;font:750 14px/1.3 system-ui;outline-offset:3px}
#modalBody .profile-dashboard #profileCopyId{display:flex;align-items:center;justify-content:center;flex:none;gap:5px;min-width:74px;min-height:44px;padding:7px 9px;border:1px solid #d6bd96;border-radius:11px;background:linear-gradient(#fff8df,#f1dfbd);color:#775839;font:750 12px/1 system-ui;cursor:pointer}
#modalBody .profile-dashboard #profileCopyId:disabled{opacity:.5;cursor:default}
#modalBody .profile-dashboard #profileCopyId svg{width:17px;height:17px}
#modalBody .profile-dashboard .profile-account-joined{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;padding-top:10px;border-top:1px solid #eadac1;font-size:11px;color:#8b7257}
#modalBody .profile-dashboard .profile-account-joined strong{color:#755a40;font-size:11px;font-weight:650}
#modalBody .profile-dashboard #profileCopyStatus{margin:6px 0 0;font-size:11px;color:#567740}
#modalBody .profile-dashboard .profile-sync-warning{margin:10px 0 0;padding:11px 12px;border:1px solid #d5b783;border-radius:12px;background:#fff0d0;color:#805b2b;font-size:12px;line-height:1.45}
#modalBody .profile-dashboard #profileCopyStatus[hidden],#modalBody .profile-dashboard .profile-sync-warning[hidden]{display:none!important}
@media(max-width:360px){#modalBody .profile-dashboard .profile-extra-stats{gap:6px}#modalBody .profile-dashboard .profile-extra-stat{padding:10px 3px}#modalBody .profile-dashboard .profile-extra-stat strong{font-size:15px}#modalBody .profile-dashboard #profilePlayerId{font-size:12px}}
/* v632: goal-focused Progress, using the approved Overview artwork and warm surfaces. */
#modalBody .profile-dashboard .profile-progress-clean{display:grid;gap:11px;padding-bottom:2px}
#modalBody .profile-dashboard .profile-progress-clean>.ui-section{margin:0;padding:13px;border:1px solid #dcc6a3;border-radius:19px;background:linear-gradient(145deg,#fffaf0,#fff2da);box-shadow:inset 0 1px #fffdf5,0 3px 8px #98734b0d}
#modalBody .profile-dashboard .profile-progress-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px;min-width:0}
#modalBody .profile-dashboard .profile-progress-heading>div{min-width:0}
#modalBody .profile-dashboard .profile-progress-heading h2{font-size:19px;line-height:1.15;margin:0;color:#573a27;letter-spacing:-.4px;overflow-wrap:anywhere}
#modalBody .profile-dashboard .profile-progress-heading small{display:block;font-size:10px;line-height:1.35;color:#94744f;margin-top:3px}
#modalBody .profile-dashboard .profile-progress-art{display:block;flex:none;width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 2px 1px #86622a15)}
#modalBody .profile-dashboard .profile-progress-art.is-scenery{object-fit:cover;border-radius:12px;border:1px solid #d4bc8e}
#modalBody .profile-dashboard .profile-next-reward{padding:12px;border:1px solid #d7ddb5;border-radius:14px;background:linear-gradient(135deg,#f0f5d9,#e8efcf)}
#modalBody .profile-dashboard .profile-level-target{display:inline-block;padding:4px 8px;margin-bottom:7px;border-radius:8px;background:#d6e8b7;color:#557338;font-size:11px;font-weight:800}
#modalBody .profile-dashboard .profile-next-reward>strong{display:block;font-size:16px;line-height:1.2;color:#4e5e34}
#modalBody .profile-dashboard .profile-next-reward>p{margin:5px 0 8px;font-size:11px;line-height:1.45;color:#76805b}
#modalBody .profile-dashboard .profile-next-reward>small{display:block;font-size:11px;font-weight:750;color:#607c3e}
#modalBody .profile-dashboard .profile-progress-details{margin-top:8px;padding:0;border:0;border-top:1px solid #e6d4b6;border-radius:0;background:transparent;box-shadow:none}
#modalBody .profile-dashboard .profile-progress-details>summary{display:flex;align-items:center;gap:7px;min-height:44px;padding:9px 2px;font-size:12px;line-height:1.3;font-weight:750;color:#745638;cursor:pointer;list-style:none}
#modalBody .profile-dashboard .profile-progress-details>summary::-webkit-details-marker{display:none}
#modalBody .profile-dashboard .profile-progress-details>summary>span{flex:1;min-width:0}
#modalBody .profile-dashboard .profile-progress-details>summary>small{font-size:9px;font-weight:600;color:#a08765;text-align:right}
#modalBody .profile-dashboard .profile-progress-details>summary::after{content:'';display:block;flex:none;width:7px;height:7px;margin:0 3px 4px 2px;border-right:2px solid #9e825f;border-bottom:2px solid #9e825f;transform:rotate(45deg)}
#modalBody .profile-dashboard .profile-progress-details[open]>summary::after{transform:rotate(225deg);margin-top:5px}
#modalBody .profile-dashboard .profile-progress-details>p{margin:0 1px 8px;font-size:11px;line-height:1.5;color:#806a4f}
#modalBody .profile-dashboard .profile-progress-clean .profile-xp-help{margin-top:0}
#modalBody .profile-dashboard .profile-progress-clean .profile-roadmap-row{padding:9px 8px;gap:9px;background:#f9eedb;border:1px solid #ead9be}
#modalBody .profile-dashboard .profile-progress-clean .profile-roadmap-row.is-complete{background:#edf2dd;border-color:#d9e2c2}
#modalBody .profile-dashboard .profile-progress-clean .profile-roadmap-marker{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:#f3d793;color:#805c29;border:1px solid #d7b975;font-size:12px;font-weight:850}
#modalBody .profile-dashboard .profile-progress-clean .is-complete .profile-roadmap-marker{background:#d9e9c0;border-color:#abc58a;color:#678c44}
#modalBody .profile-dashboard .profile-progress-clean .progress-unlock strong{font-size:12px;line-height:1.3}
#modalBody .profile-dashboard .profile-progress-clean .progress-unlock small{font-size:10px;line-height:1.45;color:#8a7557}
#modalBody .profile-dashboard .profile-progress-clean .mission-card{padding:10px 8px;gap:8px;background:#fff9eb;border-color:#e6d5b6;border-radius:14px}
#modalBody .profile-dashboard .profile-weekly-row>.profile-progress-art{width:36px;height:36px}
#modalBody .profile-dashboard .profile-weekly-row strong{font-size:12px;line-height:1.25}
#modalBody .profile-dashboard .profile-weekly-row small{font-size:9px;line-height:1.3;margin:4px 0 0}
#modalBody .profile-dashboard .profile-weekly-row .profile-mission-reward{color:#9e7b38;font-weight:700}
#modalBody .profile-dashboard .profile-progress-clean .quest-claim{flex:none;width:74px;min-height:44px;padding:6px 5px;border:1px solid #8aaa63;border-radius:11px;background:linear-gradient(#cfe8ab,#a9cd7b);color:#3d5b2e;font-size:11px;line-height:1.25;font-weight:800;white-space:normal;box-shadow:inset 0 1px #eff9dc;cursor:pointer}
#modalBody .profile-dashboard .profile-progress-clean .quest-claim:disabled{opacity:1;border-color:#e2d4ba;background:#f1eadb;color:#a18e70;box-shadow:none;cursor:default}
#modalBody .profile-dashboard .profile-progress-clean .is-complete .quest-claim:disabled{background:#edf3df;color:#7d9c58;border-color:#d4e2bb}
#modalBody .profile-dashboard .profile-journey-summary{padding:0 2px}
#modalBody .profile-dashboard .profile-journey-summary>strong{display:block;font-size:14px;line-height:1.3;color:#586b3c}
#modalBody .profile-dashboard .profile-journey-summary>p{margin:6px 0 10px;font-size:11px;line-height:1.4;color:#8b7556}
#modalBody .profile-dashboard .profile-journey-summary>progress{margin-top:8px;height:11px}
#modalBody .profile-dashboard .profile-power-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#modalBody .profile-dashboard .profile-power-unlock{display:flex;align-items:center;gap:7px;min-width:0;padding:9px 7px;border:1px solid #e3d2b4;border-radius:13px;background:#fff8e8}
#modalBody .profile-dashboard .profile-power-unlock.is-complete{border-color:#d4dfbb;background:#eff3df}
#modalBody .profile-dashboard .profile-power-unlock>.profile-progress-art{width:34px;height:34px}
#modalBody .profile-dashboard .profile-power-unlock>div{min-width:0}
#modalBody .profile-dashboard .profile-power-unlock strong{display:block;font-size:12px;line-height:1.2;color:#6b5234}
#modalBody .profile-dashboard .profile-power-unlock small{display:block;font-size:10px;line-height:1.3;color:#9c8059;margin-top:3px}
#modalBody .profile-dashboard .profile-power-unlock span{display:block;font-size:9px;line-height:1.4;color:#8a7b5b;margin-top:5px}
#modalBody .profile-dashboard .profile-power-unlock.is-complete span{color:#6d874b}
#modalBody .profile-dashboard .profile-discovery-pal{display:block;width:48px;height:48px}
#modalBody .profile-dashboard .profile-milestone-row strong{font-size:12px;line-height:1.3}
#modalBody .profile-dashboard .profile-milestone-reward{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;min-width:50px;color:#a17a31}
#modalBody .profile-dashboard .profile-milestone-reward b{font-size:16px;line-height:1.2}
#modalBody .profile-dashboard .profile-milestone-reward small{font-size:9px;line-height:1.3;margin-top:4px}
#modalBody .profile-dashboard .profile-milestone-row.is-complete .profile-milestone-reward{color:#7d9c58}
@media(max-width:360px){#modalBody .profile-dashboard .profile-progress-clean>.ui-section{padding:11px}#modalBody .profile-dashboard .profile-progress-heading h2{font-size:17px}#modalBody .profile-dashboard .profile-progress-art{width:37px;height:37px}#modalBody .profile-dashboard .profile-weekly-row>.profile-progress-art{width:29px;height:29px}#modalBody .profile-dashboard .profile-progress-clean .quest-claim{width:63px;font-size:10px}#modalBody .profile-dashboard .profile-power-grid{grid-template-columns:1fr}#modalBody .profile-dashboard .profile-power-unlock{padding:9px 10px}#modalBody .profile-dashboard .profile-power-unlock>.profile-progress-art{width:40px;height:40px}}
/* v634: Journey-first Progress, illustrated rewards and compact XP help. */
#modalBody .profile-dashboard .profile-next-unlock .profile-progress-heading>div{flex:1}
#modalBody .profile-dashboard .profile-xp-help-icon{position:relative;display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:5px;border:1px solid #d8bd81;border-radius:14px;background:linear-gradient(#fff7d8,#f5e4b7);box-shadow:inset 0 1px #fffdf0;color:#795b2e;cursor:pointer}
#modalBody .profile-dashboard .profile-xp-help-icon>.profile-progress-art{width:29px;height:29px}
#modalBody .profile-dashboard .profile-xp-help-icon>span{position:absolute;right:1px;bottom:1px;display:grid;place-items:center;width:16px;height:16px;border:1px solid #cbb37e;border-radius:50%;background:#fff9e7;font:850 12px/1 system-ui;color:#7d6134}
#modalBody .profile-dashboard .profile-reward-roadmap>summary>.profile-roadmap-art{width:30px;height:30px}
#modalBody .profile-dashboard .profile-xp-dialog-art{display:block;width:76px;height:76px;object-fit:contain;margin:8px auto 12px}
#modalBody .profile-dashboard #profileXpClose{position:absolute;top:10px;right:10px;width:44px;height:44px;border:1px solid #e39a7e;border-radius:50%;background:linear-gradient(#ffb298,#ed7d69);color:#fff;font:700 28px/1 system-ui;cursor:pointer}
#modalBody .profile-dashboard #profileXpBack{display:block;width:100%;min-height:44px;padding:10px;border:1px solid #86a567;border-radius:13px;background:linear-gradient(#cee6ac,#aacb7f);color:#3e562e;font:800 14px system-ui;cursor:pointer}
#modalBody .profile-dashboard .profile-xp-help-icon:focus-visible,#modalBody .profile-dashboard #profileXpClose:focus-visible,#modalBody .profile-dashboard #profileXpBack:focus-visible{outline:3px solid #739858;outline-offset:3px}
@media(max-height:480px){#modalBody .profile-dashboard .profile-xp-dialog{padding:18px 20px 14px}#modalBody .profile-dashboard .profile-xp-dialog-art{width:44px;height:44px;margin:0 auto 7px}#modalBody .profile-dashboard .profile-xp-dialog>h2{font-size:21px}#modalBody .profile-dashboard .profile-xp-dialog>p{font-size:12px;margin-bottom:12px}}
/* v635: distinctive permanent Crests and illustrated achievement goals. */
#modalBody .profile-dashboard .profile-awards-clean{display:grid;gap:12px;padding-bottom:3px}
#modalBody .profile-dashboard .profile-awards-clean>.profile-section{margin:0;padding:13px;border:1px solid #dcc6a3;border-radius:19px;background:linear-gradient(145deg,#fffaf0,#fff2da)}
#modalBody .profile-dashboard .profile-awards-clean>.profile-legacy-banner{margin:0}
#modalBody .profile-dashboard .profile-award-art{display:block;width:42px;height:42px;object-fit:contain;flex:none}
#modalBody .profile-dashboard .profile-awards-heading{display:flex;align-items:center;gap:9px;margin-bottom:12px;min-width:0}
#modalBody .profile-dashboard .profile-awards-heading h2{margin:0;font-size:19px;line-height:1.15;color:#573a27}
#modalBody .profile-dashboard .profile-awards-heading small{display:block;margin-top:4px;font-size:10px;line-height:1.3;color:#92724e}
#modalBody .profile-dashboard .profile-awards-clean .profile-legacy-medal{width:78px;height:78px}
#modalBody .profile-dashboard .profile-awards-clean .profile-crest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#modalBody .profile-dashboard .profile-awards-clean .profile-crest-card{display:flex;flex-direction:column;align-items:center;padding:13px 8px 10px;border:1px solid #dfc599;border-radius:17px;background:linear-gradient(#fffaf0,#f7e6c7);box-shadow:inset 0 1px #fffdf5,0 3px 6px #8d682a0b}
#modalBody .profile-dashboard .profile-awards-clean .profile-crest-medallion{position:relative;display:grid;place-items:center;flex:none;width:78px;height:78px;margin:0 auto 5px;border:3px solid #c29953;border-radius:50%;background:radial-gradient(circle at 40% 30%,#fff8d6,#edcc82);box-shadow:inset 0 0 0 3px #fff0b9,0 3px 0 #a9834055}
#modalBody .profile-dashboard .profile-crest-medallion>.profile-award-art{width:61px;height:61px;filter:drop-shadow(0 2px 1px #71542625)}
#modalBody .profile-dashboard .profile-crest-medallion.is-dragon{background:radial-gradient(circle at 40% 30%,#f2f7ce,#c4d7a0);border-color:#9dae66}
#modalBody .profile-dashboard .profile-crest-medallion.is-mastery{background:radial-gradient(circle at 40% 30%,#fffbe0,#e4ddb5)}
#modalBody .profile-dashboard .profile-crest-medallion.is-family{background:radial-gradient(circle at 40% 30%,#fff9dd,#f2d5ae)}
#modalBody .profile-dashboard .profile-crest-medallion.is-season{background:radial-gradient(circle at 40% 30%,#fff5ce,#d9e4ae);border-color:#abb978}
#modalBody .profile-dashboard .profile-season-rosette{display:block;width:64px;height:64px;flex:none;filter:drop-shadow(0 2px 1px #71542615)}
#modalBody .profile-dashboard .profile-journey-crest-art{display:block;width:68px;height:68px;flex:none}
#modalBody .profile-dashboard .profile-crest-cycle{position:absolute;right:-4px;bottom:-3px;display:grid;place-items:center;min-width:25px;height:25px;padding:0 4px;border:2px solid #c39850;border-radius:9px;background:#fff4ce;color:#825f29;font:850 12px/1 system-ui}
#modalBody .profile-dashboard .profile-awards-clean .profile-crest-card>strong{margin:5px 0 7px;font-size:12px;line-height:1.3;color:#6c4d2c;overflow-wrap:anywhere}
#modalBody .profile-dashboard .profile-awards-clean .profile-crest-card>.status{display:inline-flex;align-items:center;gap:4px;margin:auto 0 0;padding:3px 7px;border-radius:7px;background:#e7edce;color:#718a4a;font-size:9px;line-height:1.2;font-weight:750}
#modalBody .profile-dashboard .profile-awards-clean .profile-achievement-list{gap:8px}
#modalBody .profile-dashboard .profile-awards-clean .profile-achievement{display:grid;grid-template-columns:42px minmax(0,1fr) 67px;align-items:center;gap:9px;padding:12px 9px;border:1px solid #e1d0b0;border-radius:15px;background:#fff9eb}
#modalBody .profile-dashboard .profile-awards-clean .profile-achievement.unlocked{border-color:#c7d7a8;background:#f0f5df}
#modalBody .profile-dashboard .profile-achievement-art{display:grid;place-items:center;align-self:start;width:42px;height:44px;line-height:1}
#modalBody .profile-dashboard .profile-achievement-art>.profile-season-rosette{width:42px;height:42px}
#modalBody .profile-dashboard .profile-awards-clean .profile-achievement-copy strong{font-size:12px;line-height:1.3;color:#63482e;overflow-wrap:anywhere}
#modalBody .profile-dashboard .profile-awards-clean .profile-achievement-copy small{display:block;margin-top:4px;font-size:10px;line-height:1.4;color:#8d7859;overflow-wrap:anywhere}
#modalBody .profile-dashboard .profile-awards-clean .profile-achievement-copy progress{height:8px;margin:8px 0 0}
#modalBody .profile-dashboard .profile-awards-clean .profile-achievement-copy .profile-achievement-count{font-size:9px;margin-top:3px;color:#9a886b}
#modalBody .profile-dashboard .profile-awards-clean .profile-achievement-copy .profile-achievement-reward{font-size:10px;color:#9c7534;font-weight:750;margin-top:7px}
#modalBody .profile-dashboard .profile-achievement-reward>span{display:block;margin-top:3px;font-size:9px;font-weight:600}
#modalBody .profile-dashboard .profile-awards-clean .profile-achievement>.status{font-size:9px;line-height:1.35;text-align:center;color:#9f8b6b;white-space:normal}
#modalBody .profile-dashboard .profile-awards-clean .profile-achievement.is-claimed>.status{color:#6e8c4e}
#modalBody .profile-dashboard .profile-awards-clean .quest-claim{width:67px;min-height:44px;padding:7px 4px;border:1px solid #8aaa63;border-radius:12px;background:linear-gradient(#d0e9ac,#a9ce79);color:#3d5c2d;font:800 11px/1.2 system-ui;box-shadow:inset 0 1px #f3f9e4;cursor:pointer}
#modalBody .profile-dashboard .profile-awards-clean .quest-claim:disabled{opacity:.6;cursor:wait}
@media(max-width:360px){#modalBody .profile-dashboard .profile-awards-clean>.profile-section{padding:11px}#modalBody .profile-dashboard .profile-awards-clean .profile-achievement{grid-template-columns:34px minmax(0,1fr) 59px;gap:7px;padding:10px 7px}#modalBody .profile-dashboard .profile-achievement-art,#modalBody .profile-dashboard .profile-achievement-art>.profile-award-art,#modalBody .profile-dashboard .profile-achievement-art>.profile-season-rosette{width:34px;height:36px}#modalBody .profile-dashboard .profile-awards-clean .quest-claim{width:59px}#modalBody .profile-dashboard .profile-awards-heading h2{font-size:17px}}
/* v638: warm illustrated Cup stats, clear placements and reward history. */
#modalBody .profile-dashboard .profile-cup-clean{display:grid;gap:12px;padding-bottom:3px}
#modalBody .profile-dashboard .profile-cup-clean>.profile-section{margin:0;padding:13px;border:1px solid #dcc6a3;border-radius:19px;background:linear-gradient(145deg,#fffaf0,#fff2da)}
#modalBody .profile-dashboard .profile-cup-art{display:block;width:42px;height:42px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 1px #86622a15)}
#modalBody .profile-dashboard .profile-cup-calendar{display:block;width:44px;height:44px;flex:none}
#modalBody .profile-dashboard .profile-cup-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#modalBody .profile-dashboard .profile-cup-stat{display:flex;align-items:center;gap:9px;min-width:0;padding:12px 9px;border:1px solid #dfc9a5;border-radius:17px;background:linear-gradient(#fffaf0,#fff1d6)}
#modalBody .profile-dashboard .profile-cup-stat>div{min-width:0}
#modalBody .profile-dashboard .profile-cup-stat small{display:block;font-size:10px;line-height:1.25;color:#9b7b54;margin-bottom:4px}
#modalBody .profile-dashboard .profile-cup-stat strong{display:block;font-size:21px;line-height:1.15;letter-spacing:-.35px;color:#65462d;overflow-wrap:anywhere}
#modalBody .profile-dashboard .profile-cup-stat>.profile-cup-art{width:36px;height:38px}
#modalBody .profile-dashboard .profile-cup-highest{display:flex;align-items:center;justify-content:center;gap:9px;padding:6px 10px;color:#6c5237}
#modalBody .profile-dashboard .profile-cup-highest canvas{display:block;width:40px;height:40px;flex:none}
#modalBody .profile-dashboard .profile-cup-highest small{display:block;font-size:10px;line-height:1.2;color:#9a805b}
#modalBody .profile-dashboard .profile-cup-highest strong{display:block;font-size:12px;line-height:1.3;margin-top:3px}
#modalBody .profile-dashboard .profile-cup-notice{margin:0;padding:12px 14px;border:1px solid #e3d3b2;border-radius:14px;background:#fff6df;color:#8c7350;font-size:12px;line-height:1.5}
#modalBody .profile-dashboard .profile-cup-heading{display:flex;align-items:center;gap:9px;margin-bottom:12px;min-width:0}
#modalBody .profile-dashboard .profile-cup-heading h2{margin:0;font-size:19px;line-height:1.2;color:#573a27}
#modalBody .profile-dashboard .profile-cup-heading small{display:block;margin-top:4px;font-size:10px;line-height:1.3;color:#92724e}
#modalBody .profile-dashboard .profile-cup-history-list{display:grid;gap:9px}
#modalBody .profile-dashboard .profile-cup-history-card{display:flex;align-items:flex-start;gap:11px;min-width:0;padding:12px 10px;border:1px solid #e4d3b4;border-radius:15px;background:#fff9ec}
#modalBody .profile-dashboard .profile-cup-history-copy{flex:1;min-width:0}
#modalBody .profile-dashboard .profile-cup-history-copy>strong{display:block;font-size:13px;line-height:1.3;color:#65472e;overflow-wrap:anywhere}
#modalBody .profile-dashboard .profile-cup-history-copy>small{display:block;margin-top:4px;font-size:10px;line-height:1.35;color:#9b8260}
#modalBody .profile-dashboard .profile-cup-history-stats{display:flex;flex-wrap:wrap;gap:4px 9px;margin-top:8px;font-size:10px;line-height:1.3;color:#9a805a}
#modalBody .profile-dashboard .profile-cup-history-copy>.profile-cup-history-state{font-size:12px;color:#73532e;font-weight:800;margin-top:8px}
#modalBody .profile-dashboard .profile-cup-history-art{display:grid;place-items:center;width:48px;height:55px;flex:none;margin-top:2px}
#modalBody .profile-dashboard .profile-cup-history-art>.profile-cup-art{width:46px;height:50px}
#modalBody .profile-dashboard .profile-cup-medal{position:relative;display:block;width:48px;height:58px;flex:none;margin-top:3px;--medal-light:#ffe6a0;--medal-dark:#c1903e;--medal-ink:#9a6d22}
#modalBody .profile-dashboard .profile-cup-medal.is-silver{--medal-light:#edf3f3;--medal-dark:#9aaab0;--medal-ink:#6e858c}
#modalBody .profile-dashboard .profile-cup-medal.is-bronze{--medal-light:#f5d5af;--medal-dark:#ba8b60;--medal-ink:#8f623c}
#modalBody .profile-dashboard .profile-cup-medal i::before,#modalBody .profile-dashboard .profile-cup-medal i::after{content:'';position:absolute;top:28px;width:17px;height:27px;background:var(--medal-dark);clip-path:polygon(0 0,100% 0,100% 100%,50% 75%,0 100%)}
#modalBody .profile-dashboard .profile-cup-medal i::before{left:8px;transform:rotate(14deg)}
#modalBody .profile-dashboard .profile-cup-medal i::after{right:7px;transform:rotate(-14deg)}
#modalBody .profile-dashboard .profile-cup-medal b{position:relative;display:grid;place-items:center;width:46px;height:46px;border:3px solid var(--medal-dark);border-radius:50%;background:radial-gradient(circle at 35% 25%,#fffcee,var(--medal-light));box-shadow:inset 0 0 0 3px var(--medal-light),inset 0 0 0 4px var(--medal-dark),0 2px 2px #73562a22;color:var(--medal-ink);font:900 21px/1 system-ui}
#modalBody .profile-dashboard .profile-cup-reward{display:inline-flex;align-items:center;gap:5px;margin-top:9px;padding:4px 7px;border:1px solid #e5cea0;border-radius:9px;background:#fff0c8;color:#92703a;font-size:10px;line-height:1.3;font-weight:750}
#modalBody .profile-dashboard .profile-cup-reward>.profile-cup-art{width:20px;height:20px}
#modalBody .profile-dashboard .profile-cup-reward.is-claimed{background:#eef2da;border-color:#d5dfb7;color:#748b50}
#modalBody .profile-dashboard .profile-cup-upcoming{display:flex;align-items:center;gap:12px}
#modalBody .profile-dashboard .profile-cup-upcoming>div{min-width:0;flex:1}
#modalBody .profile-dashboard .profile-cup-upcoming small{display:block;font-size:10px;color:#94734f}
#modalBody .profile-dashboard .profile-cup-upcoming h2{font-size:17px;line-height:1.25;margin:4px 0 0;overflow-wrap:anywhere}
#modalBody .profile-dashboard .profile-cup-upcoming p{font-size:11px;line-height:1.4;margin:6px 0 0;color:#987e5a}
#modalBody .profile-dashboard .profile-cup-history-button{margin:0;min-height:50px;gap:9px}
#modalBody .profile-dashboard .profile-cup-history-button>.profile-cup-art{width:29px;height:32px}
#modalBody .profile-dashboard .profile-cup-history-button>span{flex:1;text-align:left}
#modalBody .profile-dashboard .profile-cup-history-button>b{font-size:25px;font-weight:700}
@media(max-width:360px){#modalBody .profile-dashboard .profile-cup-stat{padding:10px 7px;gap:6px}#modalBody .profile-dashboard .profile-cup-stat>.profile-cup-art{width:30px;height:34px}#modalBody .profile-dashboard .profile-cup-stat strong{font-size:18px}#modalBody .profile-dashboard .profile-cup-stat small{font-size:9px}#modalBody .profile-dashboard .profile-cup-clean>.profile-section{padding:11px}#modalBody .profile-dashboard .profile-cup-history-card{padding:10px 8px;gap:8px}}

#modalBody .profile-dashboard .profile-name-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 5px}
#modalBody .profile-dashboard .profile-name-heading .profile-label{font-size:18px;font-weight:850;margin:0}
#modalBody .profile-dashboard .profile-rename-info{width:44px;min-width:44px;height:44px;min-height:44px;border:2px solid #bc986b;border-radius:50%;background:linear-gradient(#fff8e6,#f3dfb9);color:#775438;font:900 20px Georgia,serif;cursor:pointer}
#modalBody .profile-dashboard #profileRenameClose{position:absolute;top:10px;right:10px;width:44px;height:44px;border:1px solid #e39a7e;border-radius:50%;background:linear-gradient(#ffb298,#ed7d69);color:#fff;font-size:28px;line-height:1;cursor:pointer}
#modalBody .profile-dashboard #profileRenameBack{display:block;width:100%;min-height:44px;border:1px solid #86a567;border-radius:13px;background:linear-gradient(#cee6ac,#aacb7f);color:#3e562e;font:800 14px system-ui;cursor:pointer}
#modalBody .profile-dashboard .profile-rename-dialog #profileRenamePolicy{font-size:12px;font-weight:750;color:#5b7542}

#modalBody .profile-dashboard .badge-choice{display:flex;align-items:center;gap:8px;text-align:left;padding:8px;min-width:0}
#modalBody .profile-dashboard .badge-choice>.profile-badge-medallion,#modalBody .profile-dashboard .badge-choice-empty{flex:0 0 34px;width:34px;height:34px}
#modalBody .profile-dashboard .badge-choice-empty{display:grid;place-items:center;border:1px solid #d5c2a4;border-radius:50%;background:#fff9eb;color:#92734d;font-size:20px}
#modalBody .profile-dashboard .badge-choice-copy{display:flex;flex-direction:column;min-width:0}
#modalBody .profile-dashboard .badge-choice-copy strong,#modalBody .profile-dashboard .badge-choice-copy small{overflow-wrap:anywhere}
#modalBody .profile-dashboard .badge-choice:disabled>.profile-badge-medallion{filter:grayscale(.75);opacity:.65}

/* v642: one illustrated stat family across Overview and Records. */
#modalBody .profile-dashboard .profile-record-metrics .profile-highlight-icon img{width:36px;height:36px}
/* Trophy sits on the existing stone stage; no avatar covers the Cup scenery. */
#modalBody .profile-dashboard .profile-cup-banner{background-size:100% 100%}
#modalBody .profile-dashboard .profile-cup-trophy{left:24%;bottom:36%;width:24%;height:55%;transform:translateX(-50%)}

/* The winter landscape has no built-in dais, so give its trophy the same stone footing. */
#modalBody .profile-dashboard .profile-cup-banner.is-winter::before{content:"";position:absolute;left:24%;top:55%;width:30%;height:24%;transform:translateX(-50%);border:1px solid #b8ad93;border-radius:50% / 28%;background:linear-gradient(#fff8df 0 29%,#d8ceb3 32%,#eee5cc 38%,#b8ac90);box-shadow:inset 0 -3px 3px #857c6140,0 3px 3px #5c6c7b25;z-index:0}
