.sd-profile-details{--sd-rank-bg:#10252b;--sd-rank-line:#294248;--sd-rank-ink:#edf5ef;--sd-rank-muted:#a0b7ba;color:var(--sd-rank-ink);position:relative;text-align:right;margin-top:22px;min-width:0;font-family:system-ui,sans-serif}
.sd-profile-details [hidden]{display:none!important}.sd-profile-details *{box-sizing:border-box}
.sd-detail-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px}.sd-detail-heading h3{font-size:16px;margin:0;color:var(--sd-rank-ink);font-weight:750}.sd-detail-heading>span{font-size:12px;color:var(--sd-rank-muted)}
.sd-collection-section{padding-bottom:22px;border-bottom:1px solid var(--sd-rank-line);margin-bottom:22px}.sd-collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.sd-owned-card{font:inherit;cursor:pointer;border:1px solid var(--sd-rank-line);border-radius:15px;background:var(--sd-rank-bg);color:var(--sd-rank-ink);padding:10px 6px;min-width:0;display:flex;align-items:center;flex-direction:column;gap:6px}.sd-owned-card:hover{border-color:#bfac70}.sd-owned-card:focus-visible,.sd-profile-details button:focus-visible{outline:2px solid #dcb85e;outline-offset:3px}.sd-owned-card img{height:72px;width:100%;object-fit:contain}.sd-owned-card strong{font-size:11px;line-height:1.5;overflow-wrap:anywhere}.sd-owned-card small{color:#7cd7bf;font-size:12px;font-weight:700}.sd-owned-symbol{font-size:45px;color:#dec482}
.sd-collection-more,.sd-profile-full{border:1px solid var(--sd-rank-line);color:#d7c490;background:var(--sd-rank-bg);font:650 12px/1.5 system-ui;cursor:pointer;border-radius:9px;padding:8px 12px}.sd-collection-more{display:block;width:100%;margin-top:10px}.sd-collection-controls{margin:8px 0 12px}.sd-collection-controls label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--sd-rank-muted)}.sd-collection-controls select{min-width:130px;background:var(--sd-rank-bg);border:1px solid var(--sd-rank-line);color:var(--sd-rank-ink);padding:8px;border-radius:9px;font:inherit}
.sd-rank-row{background:var(--sd-rank-bg);border:1px solid var(--sd-rank-line);border-radius:16px;padding:14px 12px;display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:14px;margin:10px 0}.sd-game-emblem{position:relative;width:76px;height:86px}.sd-game-logo{width:66px;height:66px;object-fit:contain;display:block}.sd-rank-star{position:absolute;width:54px;height:54px;bottom:0;left:-2px;filter:drop-shadow(0 3px 6px #0008)}.sd-rank-info{min-width:0}.sd-rank-title,.sd-rank-label{display:flex;justify-content:space-between;align-items:center;gap:8px}.sd-rank-title h4{font-size:14px;margin:0}.sd-rank-title>span{font-size:12px;white-space:nowrap;color:#dac58e}.sd-rank-label{font-size:12px;margin:9px 0;color:var(--sd-rank-muted)}.sd-rank-label strong{color:var(--sd-rank-ink);font-size:13px}
.sd-rank-progress{height:8px;border-radius:20px;background:#34454a;overflow:hidden;direction:ltr}.sd-rank-progress>span{display:block;min-height:100%;background:linear-gradient(90deg,#29a794,#a0df9e);border-radius:inherit;transition:width .3s}.sd-rank-expanded p,.sd-history-note,.sd-collection-empty{color:var(--sd-rank-muted);font-size:11px;line-height:1.8;margin:10px 0}.sd-match-numbers{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--sd-rank-muted)}.sd-match-numbers b{color:var(--sd-rank-ink)}
/* Native top-layer dialog is independent of profile layout, scrolling and refreshes. */
dialog.sd-item-detail{--item-surface:#141719;--item-ink:#f4f5f5;--item-muted:#aeb6b9;position:fixed;inset:0;transform:none;margin:auto;width:min(400px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);height:min(560px,calc(100dvh - 24px));min-height:0;box-sizing:border-box;overflow:hidden;background:var(--item-surface);color:var(--item-ink);border:1px solid #ffffff15;border-radius:14px;padding:16px;text-align:center;font:14px/1.6 system-ui;box-shadow:0 16px 56px #0005}
dialog.sd-item-detail[open]{display:flex;flex-direction:column;gap:0}dialog.sd-item-detail::backdrop{background:#0007;backdrop-filter:none}
dialog.sd-item-detail *{box-sizing:border-box}
dialog.sd-item-detail>header{position:static;display:flex;align-items:center;justify-content:space-between;flex:0 0 36px;padding:0;margin:0;background:none;border:0;color:var(--item-muted);font-size:12px}
dialog.sd-item-detail .sd-item-close{position:static;width:36px;height:36px;padding:0;border:0;background:none;color:var(--item-ink);font:28px/1 system-ui;cursor:pointer;border-radius:8px}
dialog.sd-item-detail .sd-item-body{position:relative;display:flex;flex-direction:column;align-items:center;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 4px 24px;scrollbar-width:thin}
dialog.sd-item-detail .sd-item-art{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:100%;height:clamp(110px,23dvh,190px);margin:0 0 16px;padding:10px;overflow:hidden}
dialog.sd-item-detail .sd-item-art>img,dialog.sd-item-detail .sd-item-art>svg{position:static;display:block;inset:auto;transform:none;width:auto;height:100%;max-width:100%;max-height:170px;object-fit:contain;flex:0 1 auto}
dialog.sd-item-detail .sd-item-name-preview{position:static;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:3px;width:min(260px,100%);margin:0 auto 20px;padding:8px 14px;border-radius:10px;background:#ffffff0c;color:var(--item-ink)}
dialog.sd-item-detail .sd-item-name-preview>img,dialog.sd-item-detail .sd-item-name-preview>svg{position:static;display:block;width:24px;height:24px;max-width:24px;object-fit:contain;flex:0 0 24px}
dialog.sd-item-detail .sd-item-name-preview strong{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
dialog.sd-item-detail h4{position:static;display:block;flex:0 0 auto;margin:0 0 10px;font:700 22px/1.5 system-ui;overflow-wrap:anywhere;color:var(--item-ink)}
dialog.sd-item-detail .sd-item-description{position:static;flex:0 0 auto;margin:0;max-width:340px;color:var(--item-muted);font-size:15px;line-height:1.8;overflow-wrap:anywhere}
dialog.sd-item-detail>footer{position:static;flex:0 0 auto;display:grid;gap:10px;text-align:start;padding:0;margin:0;background:none;border:0}
dialog.sd-item-detail .sd-item-quantity{font-size:13px;color:#66b8e8;direction:ltr;text-align:left}
dialog.sd-item-detail .sd-item-availability{position:static;margin:0;color:var(--item-muted);font-size:13px;line-height:1.8;overflow-wrap:anywhere;text-align:center}
dialog.sd-item-detail .sd-item-availability:is([data-kind="moderator"],[data-kind="event"],[data-kind="unavailable"]){color:#ef8279}
dialog.sd-item-detail .sd-item-use{min-height:44px;border:0;border-radius:10px;background:#2188de;color:white;font:700 14px system-ui;cursor:pointer}.sd-item-use:disabled{opacity:.65;cursor:default}
dialog.sd-item-detail .sd-item-error{margin:0;color:#ef8279;font-size:13px}.sd-item-error[hidden]{display:none}
html[data-theme="light"] dialog.sd-item-detail{--item-surface:#fff;--item-ink:#252b30;--item-muted:#66717a;border-color:#e1e5e8}
html[data-theme="light"] dialog.sd-item-detail .sd-item-name-preview{background:#f3f4f5}
html[data-theme="light"] dialog.sd-item-detail .sd-item-availability:is([data-kind="moderator"],[data-kind="event"],[data-kind="unavailable"]){color:#bc403a}

html[data-theme="light"] .sd-profile-details{--sd-rank-bg:#f1f6f6;--sd-rank-line:#c5d7d7;--sd-rank-ink:#173334;--sd-rank-muted:#587577}html[data-theme="light"] .sd-rank-title>span,html[data-theme="light"] .sd-collection-more,html[data-theme="light"] .sd-profile-full{color:#806323}
@media(max-width:380px){.sd-rank-row{grid-template-columns:60px minmax(0,1fr);gap:9px;padding:12px 9px}.sd-game-emblem{width:60px}.sd-game-logo{width:55px;height:55px}.sd-rank-star{width:46px;height:46px;bottom:10px}.sd-rank-title h4{font-size:12px}.sd-owned-card img{height:58px}.sd-rank-title>span{font-size:11px}}

.sd-collection-progress{height:8px;background:var(--identity-line,var(--sd-rank-line));border-radius:99px;overflow:hidden;direction:ltr;margin:0 0 14px}
.sd-collection-progress>span{display:block;height:100%;background:#79b845;border-radius:inherit;transition:width .25s}
.sd-collection-count{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--identity-muted,var(--sd-rank-muted));font-size:12px}
.sd-game-statistics[hidden]{display:none!important}

/* Soft original league stars: one appearance for each ten earned levels. */
.sd-rank-star{--star-edge:#a99b69;--star-face:#e9dfb4;background:none!important;filter:none!important;width:48px;height:48px}
.sd-rank-star svg{width:100%;height:100%;position:absolute;inset:0;overflow:visible}
.sd-star-edge{fill:var(--star-edge);stroke:var(--star-edge);stroke-width:4;stroke-linejoin:round}
.sd-star-face{fill:var(--star-face);stroke:#ffffff75;stroke-width:1.5;stroke-linejoin:round}
.sd-rank-star b{position:absolute;inset:0;display:grid;place-items:center;padding-top:3px;font:700 13px/1 system-ui;color:#263c43;text-shadow:none;z-index:1}
.sd-rank-title>.sd-level-chip{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border:1px solid var(--sd-rank-line);border-radius:9px;background:var(--sd-rank-bg);color:var(--sd-rank-ink);flex-shrink:0}
.sd-level-chip small{font:500 10px/1.3 system-ui;color:var(--sd-rank-muted)}
.sd-level-chip b{font:750 17px/1 system-ui;font-variant-numeric:tabular-nums;color:var(--sd-rank-ink)}
.sd-rank-star[data-tier="1"]{--star-edge:#b98369;--star-face:#efc7ae}.sd-rank-star[data-tier="2"]{--star-edge:#8c9eaf;--star-face:#e1ebf2}.sd-rank-star[data-tier="3"]{--star-edge:#c79c43;--star-face:#f7df93}.sd-rank-star[data-tier="4"]{--star-edge:#75a7b0;--star-face:#d3eeee}.sd-rank-star[data-tier="5"]{--star-edge:#a083c0;--star-face:#e2cef2}.sd-rank-star[data-tier="6"]{--star-edge:#6b98c3;--star-face:#bcdcf5}.sd-rank-star[data-tier="7"]{--star-edge:#64a78c;--star-face:#b9e8ce}.sd-rank-star[data-tier="8"]{--star-edge:#c47d91;--star-face:#f4c0cc}.sd-rank-star[data-tier="9"]{--star-edge:#7aaec0;--star-face:#d0f3fa}
.sd-reputation-slot{display:inline-flex!important;align-items:center;justify-content:center;background:none!important;width:32px!important;height:36px!important;flex:0 0 32px!important}
.sd-reputation-flame{--flame:#c89e66;--halo:#ecd6a6;display:inline-flex;width:32px;height:36px;flex:0 0 32px;vertical-align:middle;align-items:center;justify-content:center}
.sd-reputation-flame svg{width:100%;height:100%;overflow:visible}.sd-flame-body{fill:var(--flame)}.sd-flame-core{fill:#fff4cc}.sd-flame-halo{fill:var(--halo);opacity:.5}.sd-flame-sparks{fill:none;stroke:var(--flame);stroke-width:1.6;stroke-linecap:round;opacity:0}
.sd-reputation-flame[data-reputation-tier="0"]{--flame:#9aafb1;--halo:#dbe4e5}
.sd-reputation-flame[data-reputation-tier="1"]{--flame:#e4ab63;--halo:#f5d7a5}
.sd-reputation-flame[data-reputation-tier="2"]{--flame:#e98672;--halo:#f5c0ad}
.sd-reputation-flame[data-reputation-tier="3"]{--flame:#69b9ac;--halo:#b4e3cd}
.sd-reputation-flame[data-reputation-tier="4"]{--flame:#6eaff0;--halo:#bae2fc}
.sd-reputation-flame[data-reputation-tier="5"]{--flame:#a18be0;--halo:#e1cef9}
.sd-reputation-flame[data-reputation-tier="6"]{--flame:#d781ba;--halo:#b9c9ff}
.sd-reputation-flame:is([data-reputation-tier="4"],[data-reputation-tier="5"],[data-reputation-tier="6"]) .sd-flame-sparks{opacity:.8}
.sd-reputation-flame[data-reputation-tier="5"] .sd-flame-halo{stroke:var(--flame);stroke-width:.7}
.sd-reputation-flame[data-reputation-tier="6"] .sd-flame-halo{stroke:#a6b5f5;stroke-width:1.5;animation:sd-flame-breathe 2.4s ease-in-out infinite;transform-origin:20px 42px}
.sd-reputation-flame[data-reputation-tier="6"] .sd-flame-core{animation:sd-flame-core 2.4s ease-in-out infinite}
@keyframes sd-flame-breathe{50%{transform:scale(.94,1.06);opacity:.85}}
@keyframes sd-flame-core{50%{opacity:.65}}
@media(prefers-reduced-motion:reduce){.sd-reputation-flame *{animation:none!important}}
/* Keep decorative marks legible at desktop sizes as well as on touch screens. */
.profile-showcase .profile-name-row .profile-sticker{width:32px!important;height:32px!important;min-width:32px;flex-basis:32px!important;flex-shrink:0}
#sdpp-card .sdpp-stats b{display:flex;align-items:center;justify-content:center;gap:5px}
#sdpp-card .sdpp-name-row .sdpp-emblem-wrap,#sdpp-card .sdpp-name-row .sdpp-emblem{width:32px!important;height:32px!important;min-width:32px;flex:0 0 32px!important}
