
.share-dialog{width:min(760px,92vw)}#share-preview{display:block;width:100%;max-height:58vh;object-fit:contain;margin:18px auto}#share-preview[hidden]{display:none}.share-dialog select{background:#302738;color:#fff;padding:8px;border:1px solid #76667f;border-radius:6px}.share-dialog a{text-decoration:none}.share-dialog [hidden]{display:none}

.hero-search-bar{display:flex;align-items:center;gap:14px;margin:0 0 12px;flex-wrap:wrap}.hero-search-bar label{font-weight:700;font-size:13px}.hero-search-bar input{background:#251e2d;color:#fff;border:1px solid #6b566f;border-radius:8px;padding:11px 14px;width:min(300px,100%);font:inherit;font-size:13px}.hero-search-bar input:focus-visible{outline:2px solid #ff9ab8;outline-offset:2px}.hero-search-bar span{font-size:11px;color:#c5b7cf}.hero-picker{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px!important;max-height:290px;overflow:auto!important;padding:4px 6px 14px!important;margin-bottom:24px}.hero-role{min-width:0}.hero-role h2{font-size:12px;letter-spacing:1.5px;text-transform:uppercase;margin:0 0 10px;color:#e7dce9}.hero-role h2 small{color:#99879f;margin-left:6px}.hero-role-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.hero-role-list .hero-button{flex-direction:row;min-width:0;width:100%;padding:8px;gap:8px;text-align:left}.hero-role-list .hero-button strong{white-space:normal;font-size:12px;overflow-wrap:anywhere}.hero-role-list .hero-button img{width:32px;height:32px;flex-shrink:0}.hero-empty{grid-column:1/-1;color:#c5b7cf}@media(max-width:900px){.hero-role-list{grid-template-columns:1fr}}@media(max-width:540px){.hero-picker{grid-template-columns:1fr;max-height:260px;gap:16px!important}.hero-role-list{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-search-bar{gap:8px}.hero-search-bar label{width:100%}.hero-search-bar input{flex:1;width:150px}}

.ranking-modes{display:flex;gap:8px;margin:0 0 24px;flex-wrap:wrap}.ranking-modes button{background:#211f26;color:#c5b7cf;border:1px solid #4d3d53;border-radius:8px;padding:12px 18px;font:600 13px var(--sans,system-ui);cursor:pointer}.ranking-modes button[aria-pressed="true"]{background:#372830;color:#ffd4e3;border-color:#ff9ab8}.ranking-modes button:focus-visible{outline:2px solid #ff9ab8;outline-offset:3px}#hero-controls[hidden]{display:none!important}.mode-summary{margin:0 0 25px;max-width:820px}.mode-summary h2{font-size:22px;color:#ffd4e3;margin:0 0 8px}.mode-summary p,.mode-summary small{color:#b8aabc;font-size:13px;line-height:1.7}.mode-summary small{font-size:11px}.stale-notice{border:1px solid #dfb16d;background:#392f25;border-radius:8px;padding:20px;margin:0 0 25px;color:#ffdab0}.stale-notice p{line-height:1.7;font-size:13px}.class-favorites{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:28px 0}.class-favorites article{background:#251f2d;border:1px solid #54415c;border-radius:8px;padding:18px;min-width:0}.class-favorites h2{font-size:12px;color:#c5b7cf;margin:0 0 12px}.class-favorites button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:0;background:transparent;color:#fff;cursor:pointer;flex-wrap:wrap}.class-favorites img{object-fit:contain}.class-favorites strong{font-size:17px}.class-favorites small{display:block;font-size:10px;color:#ac9ab8;margin-top:10px}.empty-mode{grid-template-columns:1fr!important}.comparison-history{background:#211c28;border-radius:8px;padding:24px;font-size:13px;line-height:1.8}.comparison-history h2{font-size:20px}.comparison-history h3{color:#ffb4cc}.comparison-history li{margin-bottom:8px}body[data-mode="heroes"] .skin-stage img{height:70%;top:15%;object-fit:contain}body[data-mode="heroes"] .podium-image img{height:75%;width:100%;margin:12% 0 0;object-fit:contain}body[data-mode="heroes"] .roster-image img{width:100%;height:100%;margin:0;object-fit:contain}
@media(max-width:600px){.ranking-modes{gap:6px}.ranking-modes button{flex:1;padding:11px 7px;font-size:11px}.class-favorites{gap:7px}.class-favorites article{padding:12px 6px}.class-favorites img{width:50px;height:50px}.class-favorites strong{font-size:13px}.class-favorites small{font-size:8px}.class-favorites h2{font-size:10px}.mode-summary h2{font-size:20px}}

body[data-mode="heroes"] .skin-stage img,body[data-mode="heroes"] .skin-card:hover .skin-stage img{height:70%;top:15%}

.language-bar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0 0 18px;font-size:12px;color:#c5b7cf}.language-bar select{max-width:100%;min-width:160px;background:#251e2d;color:#fff;border:1px solid #6b566f;border-radius:7px;padding:9px 12px;font:inherit}.language-bar select:focus-visible{outline:2px solid #ff9ab8;outline-offset:2px}.original-name{display:block;color:#bcadbf;font:500 .57em/1.5 system-ui,sans-serif;margin-top:3px;white-space:normal;text-transform:none;letter-spacing:0;overflow-wrap:anywhere}.hero-button .original-name,.ranking-row .original-name{font-size:10px}.class-favorites .original-name{font-size:11px}.placed-list .original-name{font-size:11px}.ranking-modes button{min-width:0;overflow-wrap:anywhere}.skin-info .skin-name,.podium-info .skin-name{line-height:1.25}.dialog-title .original-name{font-size:16px}html:lang(ja) body,html:lang(zh) body,html:lang(ko) body{font-family:system-ui,"Noto Sans CJK JP","Noto Sans CJK SC","Noto Sans CJK KR",sans-serif}html:not(:lang(en)) .nav-button{white-space:normal}html:not(:lang(en)) .intro h1{font-size:clamp(27px,4vw,52px)}html:not(:lang(en)) .intro-stat{max-width:170px}html:not(:lang(en)) .intro-stat span{overflow-wrap:anywhere}html:not(:lang(en)) .match-toolbar{flex-wrap:wrap;gap:8px}@media(max-width:600px){.language-bar{justify-content:flex-start}.ranking-modes button{font-size:11px;padding:10px 6px;line-height:1.45}.hero-role-list .hero-button{padding:8px 6px}.match-actions{flex-wrap:wrap}.class-favorites .original-name{font-size:10px}.original-name{font-size:12px}}
.original-name{color:inherit;opacity:.78}.rank-row-text strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.skin-info .original-name{font-size:12px}.intro-stat{white-space:normal}.language-bar select{color-scheme:dark}

.hero-submodes{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.submode-switch,.class-switch{display:flex;gap:4px;flex-wrap:wrap;padding:4px;background:#211f26;border:1px solid #4d3d53;border-radius:9px}.hero-submodes button{background:transparent;color:#c5b7cf;padding:10px 14px;border-radius:6px;font:inherit;font-size:12px}.hero-submodes button[aria-pressed="true"]{background:#49313f;color:#ffd4e3}.hero-submodes button:focus-visible{outline:2px solid #ff9ab8;outline-offset:2px}

.favourite-shelf{display:flex;align-items:center;gap:18px;margin:-6px 0 20px;padding:6px 0 9px;border-bottom:1px solid #51405366;min-width:0}.shelf-label{font-size:10px;color:#ac9aad;white-space:nowrap}.shelf-collection{display:flex;gap:10px;overflow-x:auto;min-width:0;scrollbar-width:thin;scrollbar-color:#624758 transparent;padding:10px 5px 4px}.shelf-item{position:relative;flex:0 0 64px;max-width:78px;background:transparent;border:0;padding:3px 4px;color:#c5b7cf;cursor:pointer;border-radius:5px}.shelf-stage{display:block;position:relative;height:56px;width:56px;margin:auto;border-bottom:2px solid #70526666}.shelf-stage img{position:absolute;bottom:2px;left:50%;transform:translateX(-50%);transition:opacity .35s ease}.shelf-avatar{width:42px;height:42px;object-fit:contain;border-radius:50%;opacity:.88}.shelf-cutout{max-width:62px;width:auto;height:48px;object-fit:contain;opacity:0}.shelf-cutout.is-loaded{opacity:1}.has-cutout:has(.is-loaded) .shelf-avatar{opacity:0}.shelf-item-name{display:block;font-size:8px;line-height:1.35;margin-top:5px;overflow-wrap:anywhere}.shelf-heart{position:absolute;right:0;top:-8px;color:#ff94bc;font-size:13px;filter:drop-shadow(0 0 4px #ff79a75c);animation:doki 4s ease-in-out infinite}.shelf-class{position:absolute;left:0;bottom:0;color:#e6c786;font-size:11px}.is-class-winner .shelf-stage{border-color:#d1b277;box-shadow:0 8px 10px -10px #e6c786}.is-overall-winner .shelf-stage{border-color:#ff9ab8}.shelf-progress{position:absolute;left:4px;top:7px;width:48px;height:48px;fill:none;stroke-width:2;transform:rotate(-90deg);pointer-events:none}.shelf-ring-track{stroke:#7f63764a}.shelf-ring{stroke:#ffb4cc;stroke-dasharray:132;transition:stroke-dashoffset .15s linear}.shelf-progress.is-indeterminate{animation:shelf-spin 1.6s linear infinite}.shelf-arrival{animation:shelf-arrival .45s ease-out}.cutout-setting{display:flex;align-items:center;gap:7px;color:#b8aabc;font-size:10px;cursor:pointer}.cutout-setting input{accent-color:#ff9ab8}.shelf-item:hover{background:#3d2d3e55}.shelf-item:focus-visible{outline:2px solid #ff9ab8;outline-offset:2px}@keyframes shelf-spin{to{transform:rotate(270deg)}}@keyframes doki{0%,70%,100%{transform:scale(1)}76%{transform:scale(1.18)}83%{transform:scale(1)}89%{transform:scale(1.12)}}@keyframes shelf-arrival{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.favourite-shelf{gap:8px}.shelf-label{font-size:9px}.shelf-collection{gap:4px}.shelf-item{flex-basis:58px}.cutout-setting{font-size:9px}}@media(prefers-reduced-motion:reduce){.shelf-heart,.shelf-progress.is-indeterminate,.shelf-arrival{animation:none}.shelf-stage img,.shelf-ring{transition:none}}

/* Primary sections establish the scope; these quieter tabs switch its view. */
.site-header{display:flex;align-items:center;gap:22px}.site-header .language-bar{margin:0 0 0 auto;align-self:center}.site-header #about-button{margin-left:0;flex-shrink:0}.section-views{display:flex;align-self:auto;align-items:stretch;gap:26px;margin:0 0 26px;padding:0;border-bottom:1px solid #51405388;min-height:44px;flex-wrap:wrap}.section-views .nav-button{padding:10px 0 13px;font-size:12px;white-space:normal;text-align:left}.section-views .nav-button.active:after{bottom:-1px;left:0;right:0;height:2px}.ranking-modes{margin-bottom:20px}.section-views #nav-count{white-space:nowrap}
/* Statuettes stand at least two hero-chip rows tall on every viewport. */
.favourite-shelf{gap:20px;padding:10px 0 12px}.shelf-collection{gap:14px;padding:20px 7px 6px}.shelf-label{font-size:11px}.shelf-item{flex:0 0 188px;max-width:204px;padding:4px 6px}.shelf-stage{height:176px;width:176px}.shelf-avatar{width:144px;height:144px;bottom:4px}.shelf-cutout{height:160px;max-width:200px;bottom:4px}.shelf-item-name{font-size:10px;margin-top:7px}.shelf-heart{font-size:22px;right:3px;top:-10px}.shelf-class{font-size:18px;left:1px;bottom:1px}.shelf-progress{width:160px;height:160px;left:8px;top:14px}
@media(max-width:700px){.site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:0;height:auto;padding:17px 18px 14px;gap:13px}.site-header .brand{grid-column:1;grid-row:1}.site-header #about-button{grid-column:2;grid-row:1}.site-header .language-bar{grid-column:1/-1;grid-row:2;margin:0;justify-content:flex-start}.site-header .language-bar select{padding:7px 10px}.section-views{gap:20px;margin-bottom:22px;min-height:44px}.section-views .nav-button{font-size:11px;padding:10px 0 12px}.favourite-shelf{gap:8px}.shelf-label{font-size:10px}.shelf-collection{gap:8px}.shelf-item{flex-basis:188px}}

/* Cached PNGs are already alpha-cropped; size the flex item to their real ratio. */
.favourite-shelf{gap:0}.shelf-collection{flex:1;gap:6px;align-items:flex-start;padding-inline:3px}.shelf-item{flex:0 0 auto;width:180px;max-width:none;min-width:0;padding:4px 2px;align-self:flex-start}.shelf-item.is-cutout-loaded{width:calc(var(--cutout-width) + 4px)}.shelf-item.is-cutout-loaded .shelf-stage{width:var(--cutout-width)}.shelf-cutout{max-width:none;height:160px;width:auto}.shelf-item-name{min-width:0;overflow-wrap:anywhere}
