*{box-sizing:border-box}body{margin:0;background:#0f1716;color:#f4f2e9;font:16px/1.45 system-ui,sans-serif}main{max-width:850px;margin:auto;padding:22px clamp(14px,4vw,40px) 48px}.back,details,header p,.source{font-size:14px;color:#bac9c2}.back,.source{color:#bce6bd}h1{font-size:clamp(34px,6vw,54px);line-height:1.1;margin:23px 0 5px}h2{font-size:18px;margin:19px 0 9px}header p{margin:0}button{font:inherit;color:inherit;background:#1c2825;border:1px solid #3a4943;border-radius:9px;cursor:pointer;padding:6px;min-height:44px}button[aria-pressed=true]{border-color:#c4ed8a;background:#33462c}button:focus-visible,a:focus-visible{outline:3px solid #d6f4ac;outline-offset:2px}.ranks,.roles{display:grid;gap:5px}.ranks{grid-template-columns:repeat(auto-fit,minmax(69px,1fr))}.roles{grid-template-columns:repeat(5,minmax(0,1fr))}.ranks button,.roles button{display:grid;place-items:center;align-content:center;gap:4px;font-size:12px;line-height:1.1}.ranks img{height:35px;width:40px;object-fit:contain}.roles svg{height:24px;width:24px}.roles button span{font-size:11px}.high{font-weight:750;font-size:17px}.row,.head{display:grid;grid-template-columns:minmax(0,1fr) 70px;align-items:center;gap:12px}.row{padding:9px 0;border-bottom:1px solid #34403a;font-variant-numeric:tabular-nums}.head{font-size:12px;color:#b6c2ba}.hero{display:flex;align-items:center;gap:9px;font-size:15px}.hero img{width:50px;aspect-ratio:16/9;object-fit:cover;border-radius:4px}.head span:last-child,.wr{text-align:right}.wr{color:#c3ed97}.tier{font-size:23px;color:#f2c574}.source{display:inline-block;margin-top:15px}details{margin-top:24px}summary{cursor:pointer}#result{min-height:85px;margin-top:26px}@media(max-width:425px){.row,.head{gap:6px}.ranks{grid-template-columns:repeat(5,minmax(0,1fr))}.hero img{width:36px}.hero{font-size:14px}.ranks button,.roles button{padding:4px 2px}}
#result small{display:block;margin-top:6px;color:#a9b7af}.roles img{width:24px;height:24px}

a.hero {width:fit-content;color:#bce6bd;font-weight:700;text-underline-offset:3px}
.tier-heading {position:relative}
.tier-heading h2 {display:flex;align-items:center;margin-bottom:6px}
.tier-help {width:44px;height:44px;padding:0;display:grid;place-items:center;background:transparent;border:0}
.tier-help span {display:grid;place-items:center;border:1px solid #84978c;border-radius:50%;width:18px;height:18px;color:#c2d1c7;font-size:12px;line-height:1}
.tier-hint {position:fixed;inset:auto;margin:0;max-width:min(280px,calc(100vw - 32px));padding:10px 13px;background:#26352f;color:#f4f2e9;border:1px solid #566b60;border-radius:9px;font:14px/1.4 system-ui;box-shadow:0 4px 16px #0005}
.choice{display:grid;place-items:center;min-height:44px;padding:6px;background:#1c2825;border:1px solid #3a4943;border-radius:9px;color:inherit;text-decoration:none;text-align:center;font-size:12px}.choice[aria-current=true]{border-color:#c4ed8a;background:#33462c}
#selected-tier{margin:22px 0 0;color:#bfcec6;font-weight:600}#result{margin-top:5px}

.tier-choice {margin:0;color:inherit;font-size:inherit}
.tier-choice summary {min-height:44px;list-style:none;cursor:pointer}
.tier-choice summary::-webkit-details-marker {display:none}
.tier-choice summary:focus-visible {outline:2px solid #c3ed97;outline-offset:-2px}
.tier-choice .wr::after {content:'⌄';display:inline-block;margin-left:.3em}
.tier-choice[open] .wr::after {transform:rotate(180deg)}
.tier-match-prompt {padding:12px 14px;background:#1c2825;border-left:3px solid #c3ed97}
.tier-match-prompt p {margin:4px 0;color:#c5d0ca;font-size:14px}
.tier-match-prompt a {display:inline-flex;align-items:center;min-height:44px;color:#c3ed97;font-weight:700}
