/* Destiny-inspired collection interface: restrained surfaces, rarity banners,
   square equipment tiles and circular perk sockets. Local design preview. */
:root{
 --bg:#20282c;--panel:#232b30;--card:#2b3439;--cardhi:#354147;
 --line:#566168;--line-soft:#3b464c;--text:#f0efeb;--muted:#bec6c7;--faint:#a7b1b5;
 --accent:#e9e6dc;--accent-2:#eee8d5;--accent-dim:rgba(235,231,217,.12);
 --chipbg:#374248;--chiptx:#f1eee4;--legendary:#72558c;--legendary-tx:#d7bee9;
 --exotic:#c3a45b;--exotic-tx:#ead399;--radius:0px;--radius-sm:0px;
}
body{padding-top:88px;background:#20282c;}
body::before{content:"";position:fixed;width:70vw;height:70vw;border:1px solid #64737924;border-radius:50%;top:8vh;left:18vw;pointer-events:none;z-index:-1;box-shadow:0 0 0 90px #64737908,0 0 0 180px #64737908;}
.collection-nav{position:fixed;inset:0 0 auto;height:88px;z-index:15;display:flex;align-items:center;gap:32px;padding:0 28px;border-bottom:1px solid #82909360;background:#1b2327;}
.collection-brand{display:flex;align-items:center;gap:14px;flex-shrink:0;min-width:224px;}
.collection-brand img{opacity:.85;}
.collection-brand span{display:block;font-size:10px;letter-spacing:.3em;color:var(--muted);}
.collection-brand strong{display:block;font-size:21px;letter-spacing:.13em;font-weight:400;margin-top:3px;}
.collection-nav .modetabs{align-self:stretch;display:flex;align-items:stretch;gap:28px;margin:0;flex:1;width:auto;}
.collection-nav .modetabs button{flex:0 1 auto;padding:0 8px;background:transparent;color:#b9c2c5;border:0;border-bottom:3px solid transparent;border-radius:0;font-size:14px;letter-spacing:.08em;font-weight:400;}
.collection-nav .modetabs button.on{background:transparent;color:#fff;border-bottom-color:#f0eee4;}
.collection-nav .modetabs button:hover{background:#ffffff07;color:#fff;}
.collection-nav .modetabs .ico{display:none;}
.collection-caption{font-size:11px;letter-spacing:.08em;color:#aeb8bc;white-space:nowrap;}.collection-caption span{padding:0 9px;color:#67767b;}
.sidebar{background:#1c2529d9;width:286px;padding:28px 20px;border-right:1px solid var(--line-soft);gap:19px;}
.sidebar h1{font-size:15px;font-weight:400;letter-spacing:.12em;padding-bottom:14px;border-bottom:1px solid var(--line-soft);}
.sidebar h1 .logo{display:none;}.sidebar h1 small{font-size:10px;letter-spacing:.03em;}
.sbtoggle{border:0;background:transparent;color:var(--muted);}
.fgroup h4,.fgroup summary{font-size:12px;font-weight:400;letter-spacing:.07em;color:#c7ced0;}
.search,.typeSel{border:1px solid #68777d80;border-radius:0;background:#111a2050;color:#f1f0eb;padding:11px 12px;}
.search:focus,.typeSel:focus{background:#354047;box-shadow:none;outline:1px solid #e5e4da;outline-offset:2px;}
.chip{border:1px solid #60707766;border-radius:0;background:transparent;color:var(--muted);font-weight:400;}
.chip:hover{border-color:#b3bcbf;background:#ffffff08;}
.chip.on,button.chip.on{border-color:#eeeade;background:#dedbd0;color:#22292d;}
.reset,.cmpbtn,.ftoggle,.dcmp{border-radius:0;border:1px solid #76848b80;background:#ffffff04;color:#ecebe4;}
.reset:hover,.cmpbtn:hover,.dcmp:hover{border-color:#eeece1;background:#ffffff12;color:#fff;}
.list{padding:28px;gap:10px 14px;background:transparent;grid-template-columns:repeat(auto-fill,minmax(min(275px,100%),1fr));}
.resultbar{border-bottom:1px solid #a4b0b580;padding:0 0 20px;margin-bottom:8px;gap:8px;}
.resultbar strong{font-size:26px;font-weight:300;letter-spacing:.1em;}
.resultbar>span{font-size:11px;letter-spacing:.03em;}
.resultbar .filtersummary{color:#aebcc0;}
.card{position:relative;padding:12px;min-height:112px;border:1px solid #707e8455;background:#283238b3;gap:15px;transition:background .12s,border-color .12s;}
.card:hover,.card.active{border-color:#eae7dd;background:#424d52;box-shadow:inset 0 0 0 1px #eae7dd;}
.card .ic,.card .ic img.wp,.card .ic img.wm{width:72px;height:72px;}
.card .ic{outline:1px solid #c5c6c780;outline-offset:2px;}
.card.t-경이 .ic{outline-color:var(--exotic);}.card.t-전설 .ic{outline-color:#ac95ba;}
.card .ic img.dm{width:20px;height:20px;right:-4px;bottom:-4px;background:#1b2529;border:1px solid #9ca6aa;}
.card .name{font-size:16px;font-weight:500;letter-spacing:.02em;}
.card .type{font-size:11px;color:#bfc7ca;}.card .meta{font-size:10px;color:#acb9bf;}
.detail{background:#232b30;width:clamp(460px,41vw,720px);padding:26px;border-left:1px solid #8a949966;}
.dhead,.sethead{background:#3b464c;border-top:3px solid #a9b1b4;border-bottom:1px solid #9ca6ab60;margin:-26px -26px 0;padding:24px 26px 18px;top:-26px;}
[data-rarity="전설"]>.dhead{background:#574264;border-top-color:#ad98bb;}
[data-rarity="경이"]>.dhead{background:#7a693e;border-top-color:#dcc58c;}
[data-rarity="희귀"]>.dhead{background:#385467;border-top-color:#a1bdce;}
.dhead h2,.sethead h2{font-size:24px;font-weight:400;letter-spacing:.035em;line-height:1.3;}
.dhead .sub{font-size:13px;color:#e1dce5;}
.dhead .sub .chip{background:#15191c40;color:#f0eee9;border-color:#ddd8df50;}
.dhead .icwrap{outline:1px solid #eeeadeaa;outline-offset:3px;}
.dhead .dactions{padding-top:6px;}
.dhead .dcmp{background:#141a1e22;border-color:#e3dfe850;}
.dhead .dclose{color:#eeeade;}
.ddesc{color:#bfc7ca;font-size:13px;font-style:italic;line-height:1.8;padding:2px 0 12px;}
.sec{border-top:1px solid #68767d80;padding:22px 0;}
.sec h3{font-size:12px;letter-spacing:.12em;color:#e9e8e1;font-weight:400;}
.sec h3 .hint{font-size:11px;color:#aebcc3;}
.stat{font-size:12px;gap:12px;}.stat .bar{height:8px;background:#111b2066;}.stat .fill{background:#e9e7e0;}.stat .val{font-variant-numeric:tabular-nums;}
.plug{border-radius:50%;border:1px solid #aab6bc80;background:#202b33;padding:4px;}
.plug.sel{border-color:#eceade;background:#536570;box-shadow:0 0 0 2px #232b30,0 0 0 3px #eceade;}
.plug.enh{border-color:#cbb86c;}.plug.sq{border-radius:0;}
.plug:hover{background:#526069;border-color:#fff;}
.frame{background:#33404770;border:1px solid #6b7e8660;padding:14px;}
.frame .fn{font-size:15px;font-weight:400;}.frame .fd{color:#bfcbd0;}
.catcl,.cl{border-radius:0;background:#182126;border-color:#65747b;}
.setcard,.acard{background:#283238b3;border:1px solid #707e8455;padding:20px;}
.setcard:hover,.acard:hover,.setcard.active,.acard.active{background:#424d52;border-color:#eae7dd;box-shadow:inset 0 0 0 1px #eae7dd;}
.acard{border-top:2px solid #bca466;}.setcard{border-top:2px solid #9479a6;}
.setcard .sicons img,.acard img.ai{outline:1px solid #c6c7c780;outline-offset:2px;}
#cmpOverlay,#creditsOverlay{background:#20292ef7;}.cmpbar{background:#1c2529;border-bottom-color:#65757d;}
.cmpslot{border-color:#6d7d84;background:#232d33;}.cmppanel .dhead{margin:0;padding:20px;border-top-width:3px;}
#perkTip,#tipSheet{background:#172026;border:1px solid #95a2a9;box-shadow:0 12px 30px #0007;}
button:focus-visible,.card:focus-visible,.setcard:focus-visible,.acard:focus-visible{outline:2px solid #f0eddf;outline-offset:3px;}
@media(min-width:861px) and (max-width:1180px){.collection-nav{padding:0 20px;gap:20px;}.collection-brand{min-width:210px;}.collection-caption{display:none;}.sidebar{width:250px;padding:24px 16px;}.list{padding:24px 18px;}}
@media(max-width:860px){
 body{padding-top:110px;}
 .collection-nav{height:110px;padding:15px 16px 0;gap:8px;flex-wrap:wrap;}
 .collection-brand{min-width:0;gap:10px;}.collection-brand img{width:24px;height:24px;}.collection-brand span{font-size:8px;}.collection-brand strong{font-size:16px;margin-top:2px;}
 .collection-caption{margin-left:auto;font-size:10px;}.collection-caption span{padding:0 4px;}
 .collection-nav .modetabs{flex:0 0 100%;height:42px;gap:0;}.collection-nav .modetabs button{flex:1;padding:8px 4px;font-size:12px;}
 .sidebar{padding:14px 16px;gap:10px;background:#1d272c;border-bottom:1px solid #56666d;}
 .sidebar h1{display:none;}.sidebar.fopen h1{display:flex;}
 .sidebar.fopen{z-index:40;background:#202b31;}
 .list{padding:20px 16px;grid-template-columns:minmax(0,1fr);gap:10px;}
 .resultbar strong{font-size:22px;}.resultbar{padding-bottom:16px;}
 .card{padding:12px;min-height:106px;}.card .ic,.card .ic img.wp,.card .ic img.wm{width:64px;height:64px;}.card .name{font-size:16px;}
 .detail{padding:20px 16px;background:#232b30;z-index:35;}
 .dhead,.sethead{margin:-20px -16px 0;padding:20px 16px 16px;top:-20px;}
 .dhead h2,.sethead h2{font-size:21px;}.dhead .icwrap{outline-offset:2px;}
 .cmppanel .dhead{padding:16px;}.frame{padding:12px;}
 .cmpbar{gap:8px;}.cmpbar h2{font-size:15px;}
}
@media(prefers-reduced-motion:reduce){.card{transition:none;}}
@media(max-width:860px){.sidebar{width:100%;}.detail,body.fcol .detail{width:100%;}}
@media(max-width:860px){.sidebar{top:110px;z-index:20;}.sidebar.fopen{top:0;z-index:90;}.detail{z-index:100;}}
/* Collections reference pass: narrow category rail, compact catalogue rows,
   warm neutral surfaces and rarity-tinted quick inspection. */
:root{--bg:#2c2d2c;--panel:#303131;--card:#3a3b38;--cardhi:#4d4e49;--line:#74756e;--line-soft:#50524c;--muted:#c7c8be;--faint:#afb1a6;}
body{background:#2c2d2c;padding-top:88px;border-top:5px solid #9c9165;}
body::before{border-color:#bbbba717;box-shadow:0 0 0 80px #b7b6a509,0 0 0 160px #b7b6a505;}
.collection-nav{background:#30312df5;border-top:5px solid #9c9165;border-bottom-color:#aaa99555;}
.collection-brand span{color:#c1bd9e;}.collection-brand strong{letter-spacing:.08em;}
.sidebar{background:#30312dbd;border-right-color:#85867b44;width:262px;gap:15px;padding:24px 20px;}
.search,.typeSel{background:#22252175;border-color:#92938655;}.search:hover,.search:focus,.typeSel:hover,.typeSel:focus{background:#444740;}
.sidebar .collection-types{order:0;}
.collection-types summary{padding-bottom:10px;}
#typeChips{display:flex;flex-direction:column;gap:2px;max-height:300px;overflow-y:auto;padding:3px;}
#typeChips .typechip{width:100%;min-height:29px;padding:5px 9px;justify-content:flex-start;text-align:left;border:1px solid #a3a39626;background:#a5a59408;font-size:11px;letter-spacing:.07em;position:relative;}
#typeChips .typechip .tsvg{width:24px;height:13px;opacity:.75;}
#typeChips .typechip:hover{background:#b8b8a51c;border-color:#d7d4bd66;}
#typeChips .typechip.on{background:#bebeb14d;color:#fff;border-color:#e8e5d2;}
#typeChips .typechip.on::after{content:'◇';margin-left:auto;color:#fff;}
.list{gap:5px 12px;padding:28px 24px;grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr));}
.resultbar{padding-bottom:17px;margin-bottom:12px;border-color:#c7c4a766;}.resultbar strong{font-size:25px;letter-spacing:.09em;}.resultbar .filtersummary{color:#bbbeb3;}
.card{min-height:64px;padding:6px 8px 6px 6px;gap:11px;background:#c6c5b40a;border:1px solid #b3b5a52b;}
.card .ic,.card .ic img.wp,.card .ic img.wm{width:44px;height:44px;}
.card .ic{outline-offset:0;outline-color:#c1c0b866;}
.card .ic img.dm{width:15px;height:15px;right:0;bottom:0;padding:1px;border:0;}
.card .name{font-size:13px;font-weight:400;line-height:1.3;letter-spacing:.02em;}
.card .type{font-size:10px;line-height:1.2;margin-top:3px;color:#c3c3b8;}.card .type .tier{font-weight:400;}
.card .meta{display:none;}.card .pills{margin-top:4px;}.card .pill{font-size:10px;padding:2px 5px;}
.card:hover,.card.active{background:#c8c9b42a;border-color:#f0efdc;box-shadow:inset 0 0 0 1px #f0efdc;}
.card:focus-visible{outline:1px solid #f8f5de;outline-offset:2px;}
.detail{background:#303131;}.dhead,.sethead{background:#4a4d47;}.ddesc{color:#c7c9bf;}.frame{background:#d1d4c10a;border-color:#c7ccb844;}.frame .fd{color:#c3c7bb;}
.sec{border-color:#bdc0b23d;}.stat .bar{background:#15171588;}.stat .fill{background:#eeeee5;}
.reset,.cmpbtn,.ftoggle,.dcmp{border-color:#acb0a160;}.chip{border-color:#929c8566;}
#collectionPreview{position:fixed;z-index:120;width:310px;max-height:calc(100vh - 24px);overflow:hidden;background:#242724f5;border:1px solid #d6d7c780;box-shadow:0 14px 35px #0007;pointer-events:none;color:#eeeeE8;}
#collectionPreview[hidden]{display:none;}
.inspect-heading{padding:13px 16px 11px;background:#777b73;border-top:3px solid #b1b5a9;}
[data-rarity="전설"] .inspect-heading{background:#634c75;border-top-color:#ac8fb9;}
[data-rarity="경이"] .inspect-heading{background:#8c793e;border-top-color:#dfc579;}
[data-rarity="희귀"] .inspect-heading{background:#42697c;border-top-color:#87b7ca;}
.inspect-heading strong{display:block;font-size:19px;line-height:1.3;font-weight:400;letter-spacing:.03em;}
.inspect-heading>span{display:flex;justify-content:space-between;margin-top:4px;font-size:11px;color:#eee8e9;}
.inspect-body{padding:13px 16px;font-size:12px;line-height:1.6;}
.inspect-element{display:flex;align-items:center;gap:7px;font-size:17px;color:#d9e9ef;margin-bottom:13px;}.inspect-element img{width:22px;height:22px;}.inspect-element>span{margin-left:auto;color:#c5c6bc;font-size:11px;}
.inspect-label{font-size:10px;color:#bfc3b7;letter-spacing:.08em;border-bottom:1px solid #a6ab9b40;padding-bottom:7px;}
.inspect-stat{display:grid;grid-template-columns:85px 1fr 25px;gap:7px;align-items:center;font-size:11px;line-height:1.8;}
.inspect-stat i{height:6px;background:#101410;}.inspect-stat b{height:100%;display:block;background:#eeeeE3;}.inspect-stat em{text-align:right;font-style:normal;font-variant-numeric:tabular-nums;}
.inspect-frame{display:flex;align-items:center;gap:10px;border-top:1px solid #9da39155;margin-top:14px;padding-top:12px;}.inspect-frame img{width:25px;height:25px;}
.inspect-hint{margin:13px -16px -13px;padding:9px 16px;background:#757c6a22;font-size:10px;color:#c4c9b8;}
@media(min-width:861px){.detail{width:clamp(440px,38vw,660px);}}
@media(max-width:860px){
 body{padding-top:110px;}.collection-nav{height:110px;}.sidebar{width:100%;padding:12px 16px;background:#30332e;}.sidebar.fopen{background:#30332e;}
 .list{grid-template-columns:minmax(0,1fr);gap:6px;padding:20px 16px;}.card{min-height:72px;padding:9px;}.card .ic,.card .ic img.wp,.card .ic img.wm{width:48px;height:48px;}.card .name{font-size:14px;}.card .type{font-size:11px;}
 #typeChips{max-height:280px;}.detail{background:#303131;}#collectionPreview{display:none;}
}
/* Larger equipment and perk artwork, retaining the compact collections layout. */
.card{min-height:84px;padding:9px;gap:13px;}
.card .ic,.card .ic img.wp,.card .ic img.wm{width:64px;height:64px;}
.card .ic img.dm{width:21px;height:21px;padding:2px;}
.card .name{font-size:14px;line-height:1.35;}.card .type{font-size:11px;margin-top:5px;}
#typeChips .typechip{min-height:34px;font-size:12px;gap:10px;}
#typeChips .typechip .tsvg{width:32px;height:18px;}
.ico{height:1.2em;}.frame img{width:56px;height:56px;flex-shrink:0;}
.plug{width:64px;height:64px;padding:4px;}.rplug{width:58px;height:58px;}
.acard img.ai{width:68px;height:68px;}.acard .atrait img{width:28px;height:28px;}
.setcard .sicons img{max-width:56px;}
.inspect-element img{width:28px;height:28px;}.inspect-frame img{width:34px;height:34px;}
@media(min-width:861px){
 .dhead{grid-template-columns:76px minmax(0,1fr) 44px;}
 .dhead .icwrap,.dhead .icwrap img{width:76px;height:76px;}
 .cmppanel .dhead{grid-template-columns:76px minmax(0,1fr);}
}
@media(max-width:860px){
 .card{min-height:82px;padding:10px;gap:13px;}
 .card .ic,.card .ic img.wp,.card .ic img.wm{width:60px;height:60px;}
 .card .name{font-size:15px;}.card .type{font-size:11px;}
 .plug{width:60px;height:60px;}.cols{gap:12px;}.rplug{width:54px;height:54px;}
 .acard img.ai{width:64px;height:64px;}
}
/* Collection arrangement: ammunition tabs over the category rail, three item columns. */
.ammo-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:11px;letter-spacing:.08em;color:var(--muted);}
.ammo-heading button{border:0;background:transparent;color:var(--muted);padding:5px 8px;cursor:pointer;font-size:11px;}
.ammo-heading button[aria-pressed="true"]{color:#fff;text-decoration:underline;text-underline-offset:5px;}
.ammo-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;}
.ammo-tabs button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:64px;border:1px solid #b9baaa55;background:#d6d5bf08;color:#e5e5dd;cursor:pointer;}
.ammo-tabs button[data-ammo="2"]{color:#84b581;}.ammo-tabs button[data-ammo="3"]{color:#b09ac8;}
.ammo-tabs svg{width:40px;height:30px;}.ammo-tabs button span{font-size:10px;letter-spacing:.07em;}
.ammo-tabs button[aria-pressed="true"]{background:#cdcfbd3b;border-color:#f0efdf;box-shadow:inset 0 0 0 1px #f0efdf;}
.ammo-tabs button[aria-pressed="true"]::before{content:'◆';position:absolute;top:-9px;left:calc(50% - 5px);color:#fff;font-size:10px;}
.collection-path{font-size:.85em;font-weight:300;color:#adb0a7;letter-spacing:.03em;}
@media(min-width:861px){
 .sidebar{width:300px;padding:24px;gap:16px;}
 .sidebar .collection-types{margin-top:3px;}
 #typeChips{max-height:320px;gap:4px;}
 #typeChips .typechip{min-height:35px;font-size:12px;}
 .list{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:28px 28px 28px 16px;}
 .card{min-height:80px;padding:6px;gap:12px;}
 .card .name{font-size:13px;}.card .type{font-size:10px;}
 body:has(#detail.open) .list{grid-template-columns:minmax(0,1fr);}
}
@media(min-width:861px) and (max-width:1180px){.sidebar{width:250px;padding:20px 16px;}.list{padding:24px 16px;grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:860px){.sidebar.fopen .ammo-group{flex:1 1 100%;}.ammo-tabs button{min-height:66px;} .collection-path{font-size:16px;}}
/* Four peer collections: weapons, exotic weapons, armor sets, exotic armor. */
.collection-nav .modetabs{gap:18px;}
.collection-nav .modetabs #modeE.on,.collection-nav .modetabs #modeA.on{border-bottom-color:#dac37c;color:#eadba8;}
@media(max-width:860px){.collection-nav .modetabs{gap:0;}.collection-nav .modetabs button{font-size:11px;padding:8px 2px;letter-spacing:0;}}
@media(min-width:861px) and (max-width:1180px){.collection-nav .modetabs{gap:10px;}.collection-nav .modetabs button{font-size:12px;padding:0 5px;}}
/* Interaction polish: clear input, removable filters, explicit selected states. */
.search-field{position:relative;width:100%;min-width:0;}
.search-field .search{padding-right:42px;}
#clearSearch{position:absolute;right:1px;top:1px;bottom:1px;width:38px;border:0;background:transparent;color:#dbded2;font-size:22px;cursor:pointer;}
#clearSearch:hover{background:#e7ebd812;}#clearSearch[hidden]{display:none;}
.resultbar .filtersummary{display:flex;gap:6px;flex-wrap:wrap;align-items:center;line-height:1.6;}
.resultbar .filter-token{display:inline-flex;align-items:center;gap:10px;font-size:11px;padding:6px 9px;min-height:32px;border:1px solid #afb5a166;background:#b3bea812;color:#e2e6d9;}
.resultbar .filter-token:hover{border-color:#e5e8d5;background:#ccd6b822;}
.filter-token>span{font-size:16px;line-height:1;color:#bcc6b3;}
.resultbar [data-reset]{font-size:11px;min-height:34px;}
.plug{position:relative;}
.plug.sel::after{content:'✓';position:absolute;right:-3px;top:-3px;display:grid;place-items:center;width:17px;height:17px;border:1px solid #e6e9dc;border-radius:50%;background:#e6e9dc;color:#25302b;font-size:11px;font-weight:700;line-height:1;pointer-events:none;}
.chip[aria-pressed="true"]{font-weight:600;}
button:disabled{cursor:default;opacity:.4;}
.cmp-slot-label{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:9px;min-height:30px;font-size:12px;}
.cmp-slot-label>span{min-width:0;overflow-wrap:anywhere;color:#d9dfce;}
.cmp-clear{flex-shrink:0;border:1px solid #b4bdaa55;background:transparent;padding:5px 9px;min-height:30px;font-size:11px;color:#d1d8c8;cursor:pointer;}
.cmp-clear:not(:disabled):hover{border-color:#e2e8d3;background:#d1dbc412;}
.cmpbar #cmpSwap{margin-left:0;white-space:nowrap;min-height:34px;}
.cmpbar #cmpShare{margin-left:0;}
.cmppick .cmpq{font-size:13px;}
.cmpres{border-color:#a0ad95;}.cmpitem:focus-visible{outline-offset:-3px;background:#b5c6a11c;}
.loadmore{min-height:44px;border:1px solid #aab69c66;border-radius:0;background:#bac5a90c;color:#e1e7d8;}
.empty{line-height:1.9;color:#c4ccbb;}
.fgroup summary{min-height:34px;align-items:center;}
@media(min-width:861px){.sidebar .fmain{margin-bottom:2px;}.sidebar h1{margin-bottom:0;}}
@media(max-width:860px){
 .sidebar.fopen #typeChips .typechip{min-height:42px;}
 .chip,.reset,.ftoggle,.cmp-clear{min-height:40px;}
 .resultbar .filter-token{min-height:38px;}
 .cmpbar{display:grid;grid-template-columns:1fr auto auto 40px;gap:8px;}
 .cmpbar h2{grid-column:1/-1;grid-row:1;}
 .cmpbar .cmphint{grid-column:1/-1;grid-row:2;order:0;font-size:11px;line-height:1.6;}
 .cmpbar #cmpSwap{grid-column:1;grid-row:3;justify-self:start;min-height:38px;}
 .cmpbar #cmpShare{grid-column:2/4;grid-row:3;min-height:38px;}
 .cmpbar #cmpClose{grid-column:4;grid-row:1;margin:0;min-width:40px;}
 #creditsOverlay .cmpbar h2{grid-column:1/4;}
 #creditsOverlay .cmpbar #creditsClose{grid-column:4;grid-row:1;}
 .cmppick{padding:14px;}
}
/* Audit fixes: readable intermediate widths and consistent collection surfaces. */
.card .meta{display:flex;flex-wrap:wrap;gap:4px;font-size:10px;color:var(--muted);margin-top:5px;}
.setcard,.acard,.cmpslot,.cmppanel,.perkcard,.slotcell{background:#343632;}
#cmpOverlay,#creditsOverlay{background:#2c2e2bf7;}.cmpbar{background:#30332e;}
#perkTip,#tipSheet,.catcl,.cl{background:#282c27;}
.plug{background:#343a32;}.plug.sel{background:#58614f;box-shadow:0 0 0 2px #30332e,0 0 0 3px #eceade;}
.card img.wp,.sicons img,.acard img.ai,.slotcell img.ai,.ashot,.plug img{background-color:#454840;}
.armorbar,.classbar{gap:10px;}.classbar #sq{flex:1;min-width:160px;max-width:360px;}
#cmpOverview,.editor-toggle{display:none;}
#cmpOverview h3{margin:0 0 12px;font-size:16px;font-weight:500;}
#cmpOverview table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;}
#cmpOverview th,#cmpOverview td{padding:8px 5px;border-bottom:1px solid #747b6955;overflow-wrap:anywhere;text-align:right;}
#cmpOverview th:first-child{text-align:left;width:34%;}#cmpOverview thead th{vertical-align:top;color:#e8e5d2;}
#cmpOverview p{font-size:11px;line-height:1.6;color:var(--muted);}
@media(min-width:861px) and (max-width:1180px){
 body:has(#detail.open) .detail,body.fcol:has(#detail.open) .detail{width:clamp(440px,50vw,590px);}
}
/* Armor uses full-width controls above the catalogue, with a compact utility rail. */
body.smode .sidebar,body.amode .sidebar{width:52px;padding:18px 8px;overflow:visible;}
body.smode .sidebar>*,body.amode .sidebar>*{display:none!important;}
body.smode .sidebar .creditlink,body.amode .sidebar .creditlink{display:block!important;position:relative;margin:0;font-size:0;min-height:40px;}
body.smode .creditlink .ico,body.amode .creditlink .ico{font-size:18px;}
@media(max-width:860px){
 body.smode .sidebar,body.amode .sidebar{display:none;}
 #cmpOverview{display:block;flex:none;padding:16px;background:#343632;border:1px solid var(--line-soft);}
 .cmppanel{max-height:400px;overflow:auto;flex:none;}
 .cmpslot.expanded .cmppanel{max-height:none;}
 .editor-toggle{display:block;margin-top:10px;min-height:40px;border:1px solid var(--line);background:transparent;color:var(--text);padding:8px 12px;}
 .armorbar .abrow{gap:8px;}.armorbar .aq{flex-basis:100%;width:100%;max-width:none;}
 .card .meta{font-size:11px;}
}
/* Weapon categories never wrap into horizontal scrolling columns. */
#typeChips{display:grid;grid-template-columns:minmax(0,1fr);max-height:none;overflow:visible;gap:4px;}
#typeChips .typechip{min-width:0;width:100%;white-space:normal;}
#typeChips .typechip>span{min-width:0;overflow-wrap:anywhere;}
@media(min-width:380px) and (max-width:860px){
 #typeChips{grid-template-columns:repeat(2,minmax(0,1fr));}
 #typeChips .typechip{gap:7px;padding:8px;}
 #typeChips .typechip .tsvg{width:26px;}
}
/* Navigation: in-flow search results and always reachable filter actions. */
.category-hint{font-size:10px;color:var(--muted);margin-left:auto;letter-spacing:0;}
.psug,.cmpres{position:static;margin:8px 0 0;max-height:240px;width:100%;box-shadow:none;}
.cmpres[hidden]{display:none;}.cmppick{flex-shrink:0;}
.psug.open{display:block;}.pwrap{flex-shrink:0;}
@media(max-width:860px){
 .sidebar.fopen{padding-top:76px;padding-bottom:24px;scroll-padding-top:80px;}
 .sidebar.fopen #ftoggle{position:fixed;top:12px;right:16px;left:auto;width:calc(50% - 24px);z-index:95;background:#454b3f;min-height:44px;}
 .sidebar.fopen #resetBtn{position:fixed;top:12px;left:16px;right:auto;width:calc(50% - 24px);z-index:95;background:#30332e;min-height:44px;margin:0;}
 .sidebar.fopen::before{content:'';position:fixed;top:0;left:0;right:0;height:68px;background:#30332e;border-bottom:1px solid var(--line);z-index:94;}
 .psug,.cmpres{max-height:min(240px,40dvh);}
 .cmpbody .cmppanel{display:none;max-height:none;overflow:visible;}
 .cmpbody .cmpslot.expanded .cmppanel{display:block;max-height:none;overflow:visible;}
 .cmpbody:has(.cmpslot.expanded) #cmpOverview,.cmpbody:has(.cmpslot.expanded) .cmpslot:not(.expanded){display:none;}
 .cmpbody .cmpslot{overflow:visible;}
 .cmpbody .cmpslot.expanded .cmppick{position:sticky;top:-14px;z-index:8;background:#343632;}
 .cmpbody .cmpslot.expanded .cmpres{max-height:25dvh;}
 .cmpbody .cmppanel .dhead{position:static;}
}
@media(min-width:861px){
 .cmpslot{overflow-y:auto;}.cmppanel{flex-shrink:0;}
}
/* Keep perk artwork inside its socket; selection must read independently of rarity. */
.plug img,.rplug img{display:block;object-fit:contain;background:transparent;border-radius:inherit;clip-path:inset(0 round 50%);}
.plug.sq img,.rplug.mw img,.rplug.mod img{clip-path:inset(0 round 2px);}
.plug{border-width:2px;background:#292e26;}
.plug.sel,.plug.enh.sel,[data-role=mwRow] .plug.sel{border-color:#fff5d5;background:#566344;box-shadow:0 0 0 2px #30332e,0 0 0 4px #e9e6d5;}
.plug.sel:hover,.plug.enh.sel:hover{background:#65764f;border-color:#fff;}
.plug.sel::after{right:-5px;top:-5px;width:22px;height:22px;font-size:15px;font-weight:800;border:2px solid #30332e;background:#f4edcf;color:#24301c;}
.plug:not(.sel):hover{background:#424a39;border-color:#cbd0bf;}
.plug:focus-visible{outline:2px dashed #fff;outline-offset:7px;}
/* Explicit touch application, neutral comparison differences and searchable result counts. */
#tipSheet.open{display:flex;flex-direction:column;max-height:65dvh;overflow:visible;}
#tipBody{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:40px;}
.tip-apply{flex-shrink:0;min-height:44px;margin-top:14px;width:100%;border:1px solid #eee4c8;background:#566344;color:#fff;font-size:14px;cursor:pointer;}
.rplug{cursor:pointer;}.rplug:focus-visible{outline:2px dashed #fff;outline-offset:4px;}
.dbadge{color:var(--muted);font-weight:400;}
.cmp-result-count{padding:9px 12px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line-soft);}
.cmp-more{width:100%;min-height:44px;background:#424a39;color:var(--text);border:0;border-top:1px solid var(--line);cursor:pointer;}
/* Readability and density follow the available catalogue width, including detail-open mode. */
.card{padding:10px;gap:12px;min-height:96px;}
.card .name{font-size:17px;font-weight:500;line-height:1.4;}
.card .type,.card .meta{font-size:13px;line-height:1.45;}
.card .pill{font-size:12px;}
.resultbar>span,.resultbar .filter-token,.resultbar [data-reset]{font-size:13px;}
.sidebar h1{font-size:17px;}.sidebar h1 small{font-size:12px;}
.fgroup h4,.fgroup summary{font-size:14px;}.h4hint,.category-hint{font-size:12px;}
.search,.typeSel,#typeChips .typechip,.chip{font-size:14px;}
#typeChips .typechip{min-height:42px;line-height:1.4;}
.ammo-heading,.ammo-heading button,.ammo-tabs button span{font-size:13px;}
.reset,.cmpbtn,.dcmp,.ftoggle,.editor-toggle,.cmp-clear{font-size:14px;}
.sec h3{font-size:15px;letter-spacing:.04em;}.sec h3 .hint{font-size:12px;letter-spacing:0;}
.ddesc,.frame .fd,.pkdesc,.catab .cabd{font-size:15px;line-height:1.7;}
.frame .fn{font-size:17px;}.stat{font-size:14px;line-height:1.5;}
.dhead .sub,.dhead .pill,.sethead .smeta,.note{font-size:13px;}
.setcard .sname,.acard .aname{font-size:18px;}.setcard .smeta,.acard .ameta,.acard .atrait{font-size:13px;}
.cmp-slot-label,.cmppick .cmpq,.cmpitem .cmn,#cmpOverview table{font-size:14px;}
.cmpitem .cmt,.cmpbar .cmphint,#cmpOverview p{font-size:12px;}
.inspect-body{font-size:14px;}.inspect-stat{font-size:13px;}.inspect-label,.inspect-hint,.inspect-heading>span{font-size:12px;}
@media(min-width:861px){
 .list,body:has(#detail.open) .list{grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:10px;padding:24px 20px;}
 .detail,body.fcol .detail{width:clamp(440px,34vw,620px);}
}
@media(min-width:861px) and (max-width:1180px){
 body:has(#detail.open) .detail,body.fcol:has(#detail.open) .detail{width:clamp(440px,50vw,590px);}
}
@media(max-width:860px){
 .card .name{font-size:17px;}.card .type,.card .meta{font-size:13px;}
 .collection-nav .modetabs button{font-size:12px;}
 .sidebar .search{font-size:16px;}
 .list{gap:8px;}
}
@media(max-width:860px){
 .sidebar:not(.fopen) .fmain{flex:1 1 0;min-width:0;}
 .sidebar:not(.fopen) #ftoggle{flex:0 0 72px;width:72px;padding:10px 6px;justify-content:center;}
}
.ddesc{margin:16px 0;padding:0;}
.sec{padding:18px 0;}.sec h3{margin:0 0 12px;}
/* Readability across armor, perk explanations, comparison and credits. */
.slotgrid{grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:12px;}
.slotcell .sltype{font-size:13px;}.slotcell .slname{font-size:14px;line-height:1.5;overflow-wrap:anywhere;}
.perkcard .pkcount{font-size:13px;padding:4px 8px;}.perkcard .pkname{font-size:17px;}
.perkcard .pkdesc{font-size:15px;line-height:1.7;}.perkcard{padding:16px 0;}
.classbar .cbhint,.armorbar .cbhint{font-size:13px;}.armorbar .aq{font-size:15px;}
.catab .cabn{font-size:15px;}.catstats .cst{font-size:13px;}
.catcl .clh,#perkTip .clh,#tipSheet .clh{font-size:13px;letter-spacing:0;}
.clleg{font-size:12px;display:inline-block;line-height:1.5;}
#perkTip,#tipSheet{font-size:15px;}
#perkTip .pn,#tipSheet .pn{font-size:18px;}
#perkTip .etag,#tipSheet .etag,#perkTip .td,#tipSheet .td{font-size:13px;}
#perkTip .cll,#tipSheet .cll,#perkTip .ccond,#tipSheet .ccond,#perkTip .ceff,#tipSheet .ceff{font-size:14px;line-height:1.6;}
#perkTip table.cstk,#tipSheet table.cstk{font-size:14px;}
#perkTip .cwarn,#tipSheet .cwarn{font-size:13px;}
.cmore{font-size:14px;min-height:40px;}.cgrid span{font-size:14px;}
.dhead .dcmp,.sethead .dcmp{font-size:14px;}
.dbadge{font-size:12px;display:inline-block;vertical-align:baseline;margin-left:5px;}
.cmpbar h2{font-size:18px;}.cmpbar .cmphint{font-size:13px;line-height:1.6;}
.cmppanel .ph{font-size:15px;margin:20px 0;}.cmppanel .ph .phsub{font-size:13px;}
.cmpitem.none,.cmp-result-count{font-size:14px;}
.cmpitem .cmn,.cmpitem .cmt{white-space:normal;overflow-wrap:anywhere;}
.credwrap{max-width:1100px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;}
.credgroup{padding:18px;min-width:0;}.credgroup:first-child,.credfoot{grid-column:1/-1;}
.credgroup h3{font-size:18px;}.credgroup .creddesc{font-size:15px;line-height:1.7;}
.credgroup a{font-size:14px;overflow-wrap:anywhere;}.credgroup code{font-size:13px;overflow-wrap:anywhere;}
.credfoot{font-size:13px;max-width:none;margin:0;line-height:1.7;}
.datainfo,.madeby,.creditlink{font-size:13px;}
@media(max-width:860px){
 .credwrap{grid-template-columns:minmax(0,1fr);gap:12px;}.creditsbody{padding:16px;}.credgroup{padding:16px;}
 .slotgrid{grid-template-columns:repeat(2,minmax(0,1fr));}
 .cmpbar .cmphint{font-size:13px;}.armorbar .aq{font-size:16px;}
}
.slotcell .icwrap{width:88px;max-width:100%;margin:0 auto;}
.slotcell{padding:10px 6px;}
#creditsOverlay{background:#2c2e2b;}
@media(max-width:860px){.slotcell .icwrap{width:80px;}}
/* Stats: explicit units and neutral, numeric differences. */
.stat{grid-template-columns:112px minmax(24px,1fr) minmax(72px,auto);gap:10px;min-height:48px;align-items:center}
.stat-help{font:inherit;font-size:14px;line-height:1.45;text-align:left;color:inherit;background:none;border:0;padding:8px 0;min-height:44px;cursor:help;text-decoration:underline dotted;text-underline-offset:5px}
.stat-help:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.stat-reading{display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:0}
.stat-reading .val{font-size:16px;white-space:nowrap;color:var(--text)}
.stat-diff{font-size:12px;color:#c5c8bd;white-space:nowrap}
.stat .delta.changed{background:#b2bbae}
.stat-legend,.stat-tip-note{font-size:13px;line-height:1.65;color:#c5c8bd;margin:0 0 12px}
.statextra{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.statextra .xtile{display:grid;grid-template-columns:1fr auto;gap:4px 8px;align-items:center;padding:12px 0;min-width:0}
.xtile .stat-help{grid-column:1/-1;font-size:14px}
.xtile .stat-reading{grid-column:2;grid-row:2}
.xtile .dial{grid-column:1;grid-row:2}
.xtile .stat-caption{grid-column:1/-1;font-size:13px;line-height:1.5;color:#c5c8bd}
.compare-stat-caption{display:block;font-size:12px;line-height:1.5;font-weight:400;margin-top:5px}
.tds .td{color:#e0e3d9}
@media(max-width:600px){.stat{grid-template-columns:94px minmax(20px,1fr) minmax(68px,auto);gap:8px}.statextra{gap:12px}}

.stat-help-values{font-size:15px;line-height:1.6;margin:16px 0 0;color:var(--text)}
.compare-stat-caption{word-break:keep-all;overflow-wrap:normal}
@media(max-width:380px){#cmpOverview{padding:12px}#cmpOverview th:first-child{width:36%}#cmpOverview th,#cmpOverview td{padding:8px 3px}}

.xtile:not(:has(.dial)) .stat-reading{grid-column:1/-1;align-items:flex-start}
.stat-preview-status{display:none}
@media(min-width:1024px){
 body:has(#detail.open .weapon-workbench){--workspace-editor-width:416px;--balanced-detail:clamp(720px,54vw,790px)}
 body:has(#detail.open .weapon-workbench) #grid{flex:1 1 0;width:auto;min-width:0;grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr));padding:18px 12px;gap:10px}
 body:has(#detail.open .weapon-workbench) #grid .collection-intro{padding:0 0 16px}
 body:has(#detail.open .weapon-workbench) #detail{flex:0 0 var(--balanced-detail);width:var(--balanced-detail);min-width:0;padding:0;display:flex;flex-direction:column;overflow:hidden}
 #detail:has(.weapon-workbench)>.dhead{position:relative;top:auto;flex:none;margin:0;padding:20px;grid-template-columns:76px minmax(0,1fr) auto 44px;align-items:center;gap:12px}
 #detail:has(.weapon-workbench)>.dhead .dactions{grid-column:3;grid-row:1;flex-wrap:nowrap;padding:0}
 #detail:has(.weapon-workbench)>.dhead .dclose{grid-column:4;grid-row:1}
 .weapon-workbench{display:grid;grid-template-columns:minmax(300px,1fr) var(--workspace-editor-width);flex:1;min-height:0;min-width:0}
 .weapon-stats,.weapon-build{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:18px}
 .weapon-stats{border-right:1px solid var(--line-soft);background:#2b2e29}
 .weapon-stats>.sec{margin:0;padding:0;border:0}
 .weapon-stats .stat{min-height:36px;grid-template-columns:94px minmax(20px,1fr) 76px;gap:8px}
 .weapon-stats .stat-help{min-height:32px;padding:5px 0}
 .weapon-stats .stat-reading{gap:0}
 .weapon-stats .stat-preview-status{display:block;min-height:40px;font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 8px}
 .weapon-stats.previewing .stat-preview-status{color:#eee6b4}
 .weapon-stats.previewing{box-shadow:inset 3px 0 #c9c18f}
 .weapon-stats .statextra{gap:10px}
 .weapon-stats .stat-legend{margin-bottom:8px}
 .weapon-build>.sec:first-child,.weapon-build>.ddesc:first-child{margin-top:0}
 .weapon-build .cols{gap:12px;align-items:flex-start}
}

@media(min-width:1024px){
 .weapon-stats .stat{margin-bottom:0;min-height:35px}
 .weapon-stats .stat-reading .val{line-height:1.3}
 .weapon-stats .stat-diff{line-height:1.2}
}

.weapon-stats .stat-preview-changed .val{color:#eee6b4}
.weapon-stats .stat-preview-status{max-height:40px;overflow:hidden}



/* Lobby uses the same quiet collection palette and native navigation links. */
.collection-brand{color:inherit;text-decoration:none;min-height:48px}
.collection-brand:hover strong{color:#f0e8b8}
.collection-brand:focus-visible,.lobby-card:focus-visible{outline:2px solid #eee7bd;outline-offset:5px}
body.lobby-view>.sidebar,body.lobby-view>#grid,body.lobby-view>#detail{display:none!important}
.lobby[hidden]{display:none}
.lobby{width:100%;height:100%;overflow-y:auto;padding:clamp(28px,5vw,80px);background:#292c28}
.lobby-heading,.lobby-destinations,.lobby-footer{max-width:1440px;margin-left:auto;margin-right:auto}
.lobby-heading{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:48px;border-bottom:1px solid #a6aa8b55;padding-bottom:36px}
.lobby-eyebrow{color:#c7c39c;font-size:12px;letter-spacing:.22em;margin:0 0 20px}
.lobby h1{font-size:clamp(30px,3.5vw,52px);font-weight:400;letter-spacing:.02em;line-height:1.25;margin:0 0 20px;word-break:keep-all}
.lobby h1:focus{outline:none}
.lobby-description{font-size:17px;line-height:1.7;color:#c6c9be;margin:0;word-break:keep-all}
.lobby-mark{width:112px;height:112px;opacity:.7;flex:none}
.lobby-destinations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.lobby-card{display:flex;flex-direction:column;min-width:0;min-height:320px;padding:24px;border:1px solid #a3a99166;border-top:3px solid #a3a991;background:#32372f;color:var(--text);text-decoration:none;transition:background .15s,border-color .15s}
.lobby-card:hover{background:#42483c;border-color:#e8e5ce}
.lobby-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:42px}
.lobby-number{font-size:11px;letter-spacing:.08em;color:#c6c8b9}
.lobby-card-top>.ico{font-size:32px;width:36px;height:36px;flex:none}
.lobby-card-top>.ico svg{width:100%;height:100%}
.lobby-card-title{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:25px;line-height:1.4;font-weight:500;word-break:keep-all;margin-bottom:16px}
.lobby-card-title>span{font-size:22px;color:#c4c6b4;font-weight:400}
.lobby-card-desc{font-size:15px;line-height:1.8;color:#c9cbbf;word-break:keep-all}
.lobby-card-foot{margin-top:auto;padding-top:28px;font-size:13px;color:#dedfce}
.lobby-exotics{border-top-color:#c7ac61}.lobby-sets{border-top-color:#aaa0ba}.lobby-armor{border-top-color:#bba276}
.lobby-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid #a6aa8b44;padding-top:22px;margin-top:36px;font-size:13px;line-height:1.6;color:#aeb4a7}
@media(max-width:1180px){.lobby-destinations{grid-template-columns:repeat(2,minmax(0,1fr))}.lobby-card{min-height:260px}.lobby-card-top{margin-bottom:24px}}
@media(max-width:600px){.lobby{padding:28px 20px}.lobby-heading{margin-bottom:28px;padding-bottom:28px}.lobby-mark{display:none}.lobby h1{font-size:32px}.lobby-description{font-size:16px}.lobby-destinations{grid-template-columns:1fr;gap:14px}.lobby-card{min-height:230px;padding:22px}.lobby-card-top{margin-bottom:20px}.lobby-card-title{font-size:24px}.lobby-footer{font-size:12px}}
@media(prefers-reduced-motion:reduce){.lobby-card{transition:none}}
