.medal-collection{max-width:980px;margin:0 auto}
.collection-intro h1{font-size:34px;line-height:1.15;margin:8px 0 12px}.collection-intro>p:last-child{font-size:15px;color:#4e687a;margin-bottom:24px}
.collection-banner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;border:1px solid #529a98;border-radius:22px;padding:30px;background:linear-gradient(115deg,#1c686f,#144c61 55%,#53663c);color:#fff}
.collection-banner>div:first-child{position:relative;z-index:1}.collection-banner span{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#d6f2df}
.collection-banner h2{font-size:34px;line-height:1.1;letter-spacing:-1px;margin:15px 0 18px;color:white!important}
.collection-banner button{background:transparent;border:0;padding:6px 0;color:#f6ffdb;font-size:13px}
.banner-medals{display:flex;align-items:center;min-width:0;padding:8px 15px}.banner-medals :is(svg,img.medal-png){width:120px;height:145px;filter:drop-shadow(0 12px 9px #001c2950);transform:rotate(-17deg)}.banner-medals :is(svg,img.medal-png):nth-child(2){width:160px;height:180px;margin:0 -17px;transform:translateY(-7px);z-index:1}.banner-medals :is(svg,img.medal-png):last-child{transform:rotate(18deg)}
.collection-section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:30px 0 16px}.collection-section-title h2{font-size:20px;margin:0;letter-spacing:-.4px}.collection-section-title>span{font-size:14px;color:#4e687a}.collection-section-title p{font-size:12px;color:#4e687a;margin:7px 0 0}
.earned-shelf{display:flex;align-items:center;gap:18px;flex-wrap:wrap;border-radius:22px;padding:22px;background:radial-gradient(ellipse at 85% 95%,#c0776c66,transparent 70%),linear-gradient(125deg,#e0ddee,#cddfea);border:1px solid #c1ccd6;min-height:175px}
.earned-shelf>button{background:transparent;border:0;display:flex;align-items:center;flex-direction:column;max-width:145px;font-size:13px;gap:9px;color:#193549}
.earned-shelf :is(svg,img.medal-png){width:100px;height:115px}.empty-shelf{flex-wrap:nowrap}.empty-shelf h3{font-size:20px;margin:0 0 12px;color:#193549}.empty-shelf p{font-size:13px;line-height:1.6;color:#365364}.shelf-preview{opacity:.6;flex-shrink:0}
.next-collectible{display:flex;gap:25px;align-items:center;padding:23px 28px;margin-top:25px;border-radius:22px;border:1px solid #cbd9e2;background:#fff}.next-medal-art{flex-shrink:0}.next-medal-art :is(svg,img.medal-png){width:100px;height:125px;filter:saturate(.4);opacity:.7}.next-collectible h2{font-size:23px;margin:8px 0 10px}.next-collectible p:not(.eyebrow){font-size:13px;line-height:1.6;color:#4e687a}.next-collectible button{background:transparent;border:0;padding:9px 0;font-size:12px}.next-collectible>div:last-child{flex:1;min-width:0}
.collectible-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.collectible-card{padding:20px 17px;border-radius:20px;text-align:center;background:#fff;border:1px solid #cfdae2;display:flex;align-items:center;flex-direction:column;min-width:0}
.collectible-art{display:flex;align-items:center;flex-direction:column;border:0!important;background:transparent!important;padding:0;width:100%;gap:7px}.collectible-art :is(svg,img.medal-png){width:140px;height:155px;max-width:100%;filter:drop-shadow(0 7px 5px #15202720)}
.collectible-card.locked .collectible-art :is(svg,img.medal-png){filter:saturate(.65);opacity:.7}.medal-state{font-size:10px;color:#50687a;padding:5px 9px;border:1px solid #becbd3;border-radius:20px;margin:8px 0 0}.earned .medal-state{color:#35611d;background:#eff7dd;border-color:#b7d284}
.collectible-card h3{font-size:17px;margin:19px 0 10px;line-height:1.3;min-height:0}.collectible-card>p{font-size:12px!important;line-height:1.6!important;min-height:50px!important;color:#4e687a!important;margin:0 0 14px!important}.collectible-value{font-size:13px;margin:12px 0 4px;font-variant-numeric:tabular-nums}.collectible-criterion{background:transparent!important;border:0!important;font-size:12px;padding:9px 0}.collectible-card .share-achievement{font-size:11px;margin-top:10px;line-height:1.5}
.medal-collection progress{display:block;width:100%;height:5px;accent-color:#759a34;border:0;border-radius:10px;overflow:hidden}.medal-collection progress::-webkit-progress-bar{background:#dde5e9}.medal-collection progress::-webkit-progress-value{background:#8faa4a}
.medal-collection .medal-method{margin-top:28px}.medal-method>p{font-size:13px;line-height:1.75;color:#4e687a}
.profile-trophy-list .collectible-medal{width:95px;height:110px}.weekly-medal .collectible-medal{width:120px;height:140px}
html[data-theme=dark] .collection-intro>p:last-child,html[data-theme=dark] .collection-section-title>span,html[data-theme=dark] .collection-section-title p,html[data-theme=dark] .next-collectible p:not(.eyebrow),html[data-theme=dark] .medal-method>p,html[data-theme=dark] .collectible-card>p{color:#b7c5ce!important}
html[data-theme=dark] .earned-shelf{background:radial-gradient(ellipse at 90% 90%,#a4544960,transparent 70%),linear-gradient(125deg,#24244c,#243c4b);border-color:#424566}html[data-theme=dark] .earned-shelf h3,html[data-theme=dark] .earned-shelf>button{color:#f3f5f8}html[data-theme=dark] .earned-shelf p{color:#c8d6df}
html[data-theme=dark] .next-collectible,html[data-theme=dark] .collectible-card{background:#171b1d;border-color:#30393d}html[data-theme=dark] .medal-state{color:#c2ced7;border-color:#4b5962}html[data-theme=dark] .earned .medal-state{color:#d9f5a0;background:#273420;border-color:#577039}html[data-theme=dark] .collectible-art .medal-state{background:transparent}html[data-theme=dark] .medal-collection progress::-webkit-progress-bar{background:#353f44}html[data-theme=dark] .medal-collection progress::-webkit-progress-value{background:#c9e773}
html[data-theme=dark] .medal-collection .earned-shelf>button:not(.primary),html[data-theme=dark] .medal-collection .collection-banner button:not(.primary),html[data-theme=dark] .medal-collection .next-collectible button:not(.primary){background:transparent;border:0}
@media(max-width:760px){.collection-intro{padding:8px 2px 0}.collection-intro .eyebrow{font-size:10px}.collection-intro h1{font-size:29px;max-width:290px}.collection-intro>p:last-child{font-size:14px;line-height:1.6}.collection-banner{padding:23px 20px;min-height:230px;align-items:flex-start}.collection-banner h2{font-size:27px;margin:14px 0}.collection-banner span{font-size:8px;letter-spacing:1px}.collection-banner button{font-size:12px}.banner-medals{position:absolute;right:-6px;bottom:-13px;padding:0}.banner-medals :is(svg,img.medal-png){width:79px;height:95px}.banner-medals :is(svg,img.medal-png):nth-child(2){width:112px;height:125px;margin:0 -8px}.banner-medals :is(svg,img.medal-png):last-child{width:80px}.collection-section-title{margin-top:27px}.collection-section-title h2{font-size:18px}.collection-section-title p{font-size:12px;line-height:1.5}.earned-shelf{padding:17px;gap:10px;min-height:160px}.earned-shelf :is(svg,img.medal-png){width:85px;height:100px}.earned-shelf>button{max-width:125px;font-size:12px}.empty-shelf h3{font-size:18px;line-height:1.3}.empty-shelf p{font-size:12px}.next-collectible{gap:15px;padding:20px 16px}.next-medal-art :is(svg,img.medal-png){width:83px;height:104px}.next-collectible h2{font-size:19px}.next-collectible .eyebrow{font-size:9px;letter-spacing:1px}.next-collectible p:not(.eyebrow){font-size:12px}.collectible-grid{gap:9px}.collectible-card{padding:15px 8px;border-radius:17px}.collectible-art :is(svg,img.medal-png){width:95px;height:115px}.collectible-card h3{font-size:14px;margin-top:15px;min-height:37px}.collectible-card>p{font-size:11px!important;min-height:87px!important}.medal-state{font-size:8px;padding:4px 5px;white-space:nowrap}.collectible-value{font-size:11px}.collectible-criterion{font-size:10px}.collectible-card .share-achievement{font-size:10px;padding:7px 5px}.collection-category:nth-last-of-type(3) .collectible-grid,.collection-category:nth-last-of-type(2) .collectible-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.medal-collection .medal-method{padding:20px}.medal-method>p{font-size:12px}}
@media(max-width:760px){.collection-banner{min-height:255px}.collectible-grid>.collectible-card:not(:only-child)>p{display:none}.collectible-grid:has(>.collectible-card:only-child){grid-template-columns:minmax(0,1fr)!important}.collectible-card:only-child{display:grid;grid-template-columns:105px minmax(0,1fr);text-align:left;column-gap:16px;padding:20px 16px}.collectible-card:only-child>.collectible-art{grid-column:1;grid-row:1/7;align-self:start}.collectible-card:only-child>h3{grid-column:2;min-height:0;margin:0 0 10px;font-size:18px}.collectible-card:only-child>p{grid-column:2;min-height:0!important;font-size:12px!important;margin-bottom:12px!important}.collectible-card:only-child>progress,.collectible-card:only-child>.collectible-value,.collectible-card:only-child>.collectible-criterion,.collectible-card:only-child>.share-achievement{grid-column:2}.collectible-card:only-child>.collectible-criterion{text-align:left;font-size:12px}.collectible-card:only-child>.share-achievement{width:100%;box-sizing:border-box}.collectible-grid>.collectible-card:not(:only-child) .collectible-art :is(svg,img.medal-png){height:100px}}

/* Artwork and copy occupy separate rows, including future transparent PNGs. */
.weekly-medal{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-content:start}
.weekly-medal>div{float:none;position:relative;display:grid;place-items:center;width:100%;height:auto;min-height:140px;margin:0;line-height:0}
.weekly-medal>div .collectible-medal,.weekly-medal>div>img{display:block;width:min(120px,100%);height:auto;max-height:140px;object-fit:contain;margin:0;transform:none}
.weekly-medal>.eyebrow,.weekly-medal>h3,.weekly-medal>p:not(.eyebrow),.weekly-medal>span{position:static;min-width:0;margin:0;overflow-wrap:anywhere}
.weekly-medal>.eyebrow{line-height:1.6}
.weekly-medal>h3{line-height:1.35}
.weekly-medal>p:not(.eyebrow){font-size:12px;line-height:1.6;color:var(--muted)}
.weekly-medal>span{justify-self:start;line-height:1.5}

.medal-png{display:block;max-width:100%;object-fit:contain;aspect-ratio:1;height:auto}
.collectible-card.locked .collectible-art .medal-png{filter:none;opacity:1}
.next-medal-art .medal-png{filter:none;opacity:1}
.profile-trophy-list .medal-png{object-fit:contain}
.weekly-medal>div .medal-png{width:min(168px,100%);max-height:168px;height:auto}

/* Fixed artwork slot: pending, loaded and unavailable images occupy one box. */
.weekly-medal>div{height:168px;min-height:168px;max-height:168px;overflow:hidden}
.weekly-medal>div .medal-png{width:min(168px,100%);height:168px;max-height:168px;object-fit:contain}
.medal-png[data-medal-state=deferred],.medal-png[data-medal-state=loading]{background:radial-gradient(circle at center,#dce6eb66 0 36%,transparent 37%)}
.medal-png[data-medal-state=unavailable]{background:none}
