/* Same glass, rim and three size stops as the existing popup family. */
dialog.progression-map{box-sizing:border-box;width:min(790px,calc((100vw - 88px)*3569/3901),calc((100dvh - 4px)*3569/2110));max-width:none;max-height:calc(100dvh - 36px);height:auto;padding:18px 22px 14px;border:0;border-radius:22px;color:#203744;background:linear-gradient(160deg,rgba(255,255,255,.5),rgba(238,243,246,.5) 34%,rgba(223,231,237,.5) 67%,rgba(207,217,225,.5));backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 20px 65px #07192265;overflow:hidden}
dialog.progression-map[open]{display:flex;flex-direction:column;gap:12px}.progression-map[data-size=inset]{width:calc(100vw - 40px);max-height:calc(100dvh - 40px)}.progression-map[data-size=full]{width:100vw;max-height:100dvh;border-radius:0;padding:18px 26px}.progression-map::backdrop{background:#0c1e2d45;backdrop-filter:blur(3px)}.progression-header{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none}.progression-header h2{font:700 26px/1 'Barlow Condensed',sans-serif;margin:3px 0 0}.progression-header small,.progression-eyebrow{font-size:9px;font-weight:700;letter-spacing:.17em}.progression-controls{display:flex;gap:8px}.progression-map .progression-controls button{width:34px;height:34px;min-height:0;padding:7px;border-radius:10px;background:#ffffff25}.progression-controls svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}.progression-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 14px;border:1px solid #ffffff80;border-radius:12px;background:#ffffff25;flex:none}.progression-summary>div{display:flex;flex-direction:column;gap:4px}.progression-summary strong{font-size:16px}.progression-summary>small{font-size:11px;text-align:right}.progression-scroll{overflow:auto;min-height:0;scrollbar-width:thin;overscroll-behavior:contain}.progression-route{position:relative;height:400px;margin:0 0 8px}.progression-lines{position:absolute;width:100%;height:400px;inset:0;overflow:visible}.progression-lines path{fill:none;stroke:#304a5824;stroke-width:2;stroke-linejoin:round}.progression-lines path.earned{stroke:#167684;stroke-width:3}.progression-route ol{margin:0;padding:0;list-style:none}.progression-route li{position:absolute;left:var(--x);top:var(--y);transform:translateX(-50%);width:16.1%;height:95px;text-align:center;display:flex;align-items:center;flex-direction:column}.progression-crest{position:relative;display:block;width:53px;height:58px;margin:9px 0 2px;filter:drop-shadow(0 3px 3px #0c283b55)}.progression-crest img{height:100%;width:100%;object-fit:contain}.progression-map .progression-crest b{position:absolute;inset:22px 0 auto;color:#fff!important;font:700 13px 'Barlow Condensed',sans-serif;text-shadow:0 1px 3px #000,0 0 2px #000}.progression-route li>strong{font-size:12px;line-height:14px}.progression-route li>small{font-size:10px;line-height:13px}.progression-route li.current .progression-crest:before{content:'';position:absolute;inset:-5px -8px;border:2px solid #138493;border-radius:50%;background:#ffffff35;box-shadow:0 0 0 4px #13849316;z-index:-1}.progression-route li em{position:absolute;top:0;right:1px;color:#fff;background:#126b78;padding:1px 5px;border-radius:20px;font-size:8px;font-weight:700;font-style:normal}.progression-notes{padding:12px 14px;border-top:1px solid #ffffff70;font-size:12px;line-height:1.45}.progression-notes p{margin:5px 0}.progression-map footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}.progression-map footer>span{font-size:11px}.progression-map footer button{border-radius:10px;padding:9px 15px;white-space:nowrap;font-weight:700}.hub-profile-hero button.avatar-medal{padding:0;border:0;border-radius:0;background-color:transparent;min-height:0;cursor:pointer}.hub-profile-hero button.avatar-medal:focus-visible{outline:2px solid #177b8b;outline-offset:3px}.hub-profile-hero button.avatar-medal.elo-empty{background-image:url('./assets/badges/elo/white.webp');opacity:.8}
@media(max-height:500px){dialog.progression-map{padding:12px 18px;gap:8px}.progression-header h2{font-size:23px}.progression-summary{padding:7px 12px}.progression-summary strong{font-size:14px}.progression-map footer button{padding:8px 14px}}
@media(max-width:560px){dialog.progression-map{width:calc(100vw - 24px);padding:14px}.progression-route{min-width:570px}.progression-map footer>span{display:none}.progression-map footer{justify-content:flex-end}.progression-summary{align-items:flex-start}.progression-summary>small{max-width:110px}}
.hub-profile-hero button.avatar-medal{pointer-events:auto}
body dialog.progression-map{font-family:'Barlow',sans-serif}body :is(#communityHub,#playerProfilePopup) .hub-profile-hero button.avatar-medal{position:absolute!important;inset:auto auto 15% 0;transform:translate(-50%,50%);background:var(--crest-image) center/contain no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;min-height:0!important}body :is(#communityHub,#playerProfilePopup) .hub-profile-hero button.avatar-medal.elo{left:100%}body :is(#communityHub,#playerProfilePopup) .hub-profile-hero button.avatar-medal:before,body :is(#communityHub,#playerProfilePopup) .hub-profile-hero button.avatar-medal:after{display:none!important}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-profile-hero .hub-avatar-anchor button.avatar-medal:is(:enabled,:disabled){background:var(--crest-image) center/contain no-repeat!important;color:#fff!important;text-shadow:0 1px 2px #000,0 0 3px #0009!important;border-radius:0!important;box-shadow:none!important}

body dialog.progression-map{overflow:hidden!important}body dialog.progression-map[data-size=full]{border-radius:0!important}
@media(max-height:500px){.progression-summary .progression-eyebrow{display:none}.progression-summary>div{gap:0}.progression-summary{padding:7px 12px}.progression-map footer>span{max-width:45%}}

.progression-scroll{scrollbar-color:#7b92908a transparent}.progression-header{padding-top:8px;padding-right:72px}
body dialog.progression-map .progression-route li.current em{color:#fff!important;text-shadow:none!important}

/* A quieter medal gallery with a continuous progression route. */
.progression-route,.progression-lines{height:400px}.progression-route{margin-top:7px}.progression-route li{height:98px}
.progression-route li:before{content:'';position:absolute;top:13px;left:50%;width:58px;height:58px;transform:translateX(-50%);border-radius:50%;background:linear-gradient(145deg,#e9f2f440,#829ba326);border:1px solid #ffffff65;box-shadow:inset 0 1px #ffffff66,0 4px 12px #1b394418;z-index:-1}
.progression-crest{width:56px;height:62px;margin:9px 0 3px}.progression-map .progression-crest b{top:24px}
.progression-route li:not(.earned){color:#52656d}
.progression-route li.current .progression-crest:before{inset:-4px -5px;border:1px solid #c9fbff;border-radius:50%;background:radial-gradient(circle,#ffffff42,#43c8c72b);box-shadow:0 0 0 3px #2cc9c026,0 0 18px #35bccf55}
.progression-route li>strong{font:600 14px/15px 'Barlow Condensed',sans-serif;letter-spacing:.015em}.progression-route li>small{font-size:9px;margin-top:1px}
.progression-route li em{top:2px;right:50%;transform:translateX(50%);padding:2px 8px;background:linear-gradient(120deg,#367e83,#3f667a);box-shadow:0 2px 5px #16334335;font:600 8px/1 Barlow,sans-serif;letter-spacing:.04em;z-index:2}
.progression-lines path{stroke:#344e5c25;stroke-width:2;stroke-linecap:round}.progression-lines path.earned{stroke-width:3.5;filter:drop-shadow(0 1px 2px #356f7c35)}
.progression-summary{position:relative;border-radius:10px;background:linear-gradient(120deg,#ffffff40,#d4edf01c);gap:9px;border-color:#ffffff70}.progression-summary:before{content:'';position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:2px;background:linear-gradient(#2cc9c0,#2f7bf0,#9b2fd8,#e8264f,#ff4a2e)}.progression-summary>div{flex:1}.progression-summary-crest{width:29px;height:33px;object-fit:contain;filter:drop-shadow(0 2px 3px #1b394438)}.progression-summary>small{max-width:44%;line-height:1.35}
.progression-notes{margin:6px 0 0;padding:15px 2px 4px;border-top:1px solid #ffffff70}.progression-notes header small{display:block;font:700 8px Barlow,sans-serif;letter-spacing:.16em;color:#527078}.progression-notes header strong{font:600 21px 'Barlow Condensed',sans-serif}.progression-note-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin-top:12px}.progression-note-grid article{display:flex;gap:9px;align-items:baseline}.progression-note-grid article>span{font:500 17px 'Barlow Condensed',sans-serif;color:#597a80}.progression-note-grid h3{font:600 14px 'Barlow Condensed',sans-serif;margin:0}.progression-note-grid p{font-size:11px;line-height:1.45;color:#3e5962;margin:3px 0}.progression-title-preview{border-top:1px solid #ffffff60;padding-top:10px;font:12px 'Barlow Condensed',sans-serif}.progression-title-preview b{margin-left:6px}.progression-title-preview span{float:right}
.progression-map footer>span{font:400 12px/1.3 'Barlow Condensed',sans-serif;color:#3e5962}
@media(max-height:500px){.progression-summary-crest{width:24px;height:27px}.progression-summary{padding:5px 10px}.progression-header h2{font-size:24px}}

@media(max-height:500px){body dialog.progression-map[open]{gap:4px}.progression-header{padding-top:4px}.progression-header>div>small{font-size:8px}.progression-header h2{font-size:23px;line-height:1}.progression-summary{padding:4px 10px}}

/* Rank lettering sits above the shield point, as on profile and match badges. */
.progression-map .progression-crest.elo b{top:19px}

/* Current position shares the heading row; no separate summary strip. */
.progression-header{gap:12px}.progression-header>div:first-child{flex-shrink:0}
.progression-header .progression-summary{margin-left:auto;padding:0;border:0;border-radius:0;background:none;text-align:right;min-width:0;max-width:52%;gap:6px;align-self:flex-end}
.progression-header .progression-summary:before,.progression-header .progression-eyebrow,.progression-header .progression-summary>small,.progression-header .progression-summary-crest{display:none}
.progression-header .progression-summary strong{font:600 14px/1.2 'Barlow Condensed',sans-serif;overflow-wrap:anywhere}
body dialog.progression-map footer{min-height:0;gap:8px}body dialog.progression-map footer button{min-height:28px;height:28px;padding:4px 12px;font-size:13px;line-height:18px}body dialog.progression-map footer>span{font-size:11px;line-height:1.15}
/* Scale lettering with the shield face, matching menu and league badges. */
.progression-map .progression-crest b{inset:50% 0 auto;font:700 24px/1 'Barlow Condensed',sans-serif;transform:translateY(calc(-50% - 1px));text-align:center}
.progression-map .progression-crest.elo b{top:50%;transform:translateY(calc(-50% - 4px))}
.progression-map .progression-crest[data-digits="3"] b{font-size:21px}
.progression-map .progression-crest[data-digits="4"] b{font-size:18px}
