/* Game-inspired player UI. Assets remain local and are supplied by the catalog. */
:root{--bg:#101112;--panel:#171819;--line:#303133;--text:#f2f2ef;--muted:#a0a1a3;--red:#ec1830;--amber:#f4ae36;--gain:#48d384;--loss:#ee786e}
.topbar{height:64px;background:#0b0c0d}.brand{font-weight:900}.brand-mark{background:var(--red)}
#app{max-width:1400px;padding-top:30px}.catalog-hero{position:relative;isolation:isolate;min-height:174px;padding:26px 30px;margin-bottom:24px;border:1px solid #292a2c;background:#101112;overflow:hidden}.catalog-hero:before{content:'';position:absolute;inset:0;z-index:-1;background-image:linear-gradient(90deg,#101112 5%,#10111288 55%,#10111222),var(--topography,none);background-position:center;background-size:cover;background-repeat:no-repeat;opacity:.8}.catalog-hero h1{font-size:clamp(35px,4.5vw,62px);font-weight:900;line-height:1.02;letter-spacing:-.045em;margin:10px 0}.catalog-hero h1 em{color:var(--red);font-style:normal}.catalog-hero .eyebrow{font-size:10px}.catalog-hero .count strong{font-size:32px}.catalog-hero .count{align-self:flex-end}.catalog-hero p{font-size:14px;color:#bfc0c2}.title-dot{display:none}
.class-tabs{gap:8px;border-bottom:0;overflow-x:auto;padding-bottom:4px}.class-tabs button{justify-content:center;border:1px solid var(--line);background:#171819;padding:13px 20px;text-transform:uppercase;letter-spacing:.035em;font-size:13px;font-weight:800;white-space:nowrap}.class-tabs button.active{background:#f2f2ef;color:#101112;border-color:#f2f2ef}.class-tabs button:after{display:none}.class-tabs button.active .class-icon{filter:brightness(0)}.class-icon{width:22px;height:22px}.slot-tabs button.active{background:#342015;border-color:var(--amber);color:var(--amber)}
.weapon-card{background:#161718;border-color:#303133;transition:border-color .15s,background .15s}.weapon-card:hover{border-color:var(--red);background:#1b1c1e}.weapon-card h2{font-weight:900;letter-spacing:-.025em}.weapon-card .card-top{font-size:10px;letter-spacing:.06em}.weapon-card .card-title p{font-size:10px;line-height:1.5}.weapon-card .compact .bar{height:5px}
.drawer{width:min(680px,100%);background:#151617}.drawer-head{background:#111213;border-color:#333;font-size:11px;letter-spacing:.07em}.drawer-body{padding:0 28px 30px}.drawer-hero{position:relative;isolation:isolate;overflow:hidden;margin:20px 0 24px;border:1px solid #303133;background:#0c0d0e}.drawer-hero:before{content:'';position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#10111222,#10111266),var(--topography,none);background-size:cover;background-position:center;background-repeat:no-repeat}.hero-image{height:195px;padding:25px 35px;transform:rotate(6deg);object-fit:contain}.table-thumb{transform:none}.detail-title h2{font-size:36px;font-weight:900;letter-spacing:-.03em}.detail-title .eyebrow{color:#b6b7b8;font-size:10px}.section-head{margin:24px 0 18px;padding-top:18px}.section-head h3,.slot-heading strong{color:var(--amber);font-weight:900;letter-spacing:.07em;font-size:12px}.section-head>span{font-size:9px;color:#a4a5a6}
.stat-list:not(.compact){display:flex;flex-direction:column;gap:14px}.stat-list:not(.compact) .stat-row{display:block}.stat-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:6px;line-height:1.2}.stat-heading>span{text-transform:uppercase;font-size:12px;font-weight:600;letter-spacing:.025em;color:#b9babc}.stat-heading b{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.stat-list:not(.compact) .bar{height:12px;width:100%;background:#444649}.bar .bar-base{background:#efefed}.bar .gain{background:var(--gain)}.bar .loss{background:var(--loss)}.stat-delta.positive{color:var(--gain)}.stat-delta.negative{color:var(--loss)}.stat-heading .stat-delta{font-size:12px;margin-left:4px}.bar-change{font-style:normal}.delta-inside{position:absolute;left:50%;top:0;transform:translateX(-50%);font:800 10px/12px 'Exo 2',sans-serif;white-space:nowrap;color:#09110c;visibility:hidden}.stat-row.delta-fits .delta-inside{visibility:visible}.stat-row.delta-fits .delta-fallback{display:none}
.slot{padding:16px 0 20px}.slot-heading{gap:10px}.slot-heading span{font-size:10px;text-align:right;max-width:65%;text-transform:uppercase}.slot-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:12px}.slot-options button{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:left;min-height:95px;padding:10px;border:1px solid #353637;background:#0d0e0f;color:#efefed;border-radius:0}.slot-options button:hover:not(:disabled){border-color:#999}.slot-options button.active{background:#f2f2ef;color:#101112;border-color:#f2f2ef}.slot-options button:disabled{opacity:.37}.slot-options button.active:disabled{opacity:1}.attachment-thumb{display:block;width:100%;height:38px;object-fit:contain;margin:0 0 9px}.slot-options button.active .attachment-thumb{filter:brightness(0)}.attachment-name{text-transform:uppercase;font-size:12px;font-weight:900;line-height:1.15;overflow-wrap:anywhere}.attachment-bonuses{display:block;margin-top:5px}.slot-options small{font-size:10px;line-height:1.3;margin-top:2px;color:#b9babc}.slot-options button.active small{color:#4b4d50}.attachment-description{font-size:12px;line-height:1.55;color:#a9aaac;margin:12px 0 0}.slot-fixed{font-size:10px;color:#919396}.slot .hint{font-size:12px}
.sort-header{border:0;background:none;color:#b5b6b8;font:800 10px/1.4 'Exo 2',sans-serif;letter-spacing:.03em;text-transform:uppercase;padding:7px 0;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.sort-header.active,.sort-arrow,.sort-priority{color:var(--red)}th[aria-sort]:not([aria-sort=none]) .sort-header{color:var(--red)}.sort-header:hover{color:#f2f2ef}.sort-priority{font-size:9px;min-width:12px;border:1px solid #9b2332;text-align:center}.sort-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:14px 0}.sort-chip{display:inline-flex;align-items:center;gap:7px;background:#231519;color:#f1b8bf;border:1px solid #672330;padding:5px 9px;font-size:11px}.sort-chip button,.sort-controls>.sort-clear{color:inherit;background:none;border:0;font:inherit;cursor:pointer}.sort-controls>.sort-clear{color:#aaa;text-decoration:underline;padding:6px}.sort-hint{font-size:11px;color:#989a9d;margin:10px 0 15px}.table-wrap th{padding-top:9px;padding-bottom:9px}.table-wrap td{font-variant-numeric:tabular-nums}.table-wrap tbody tr:hover{background:#1c1d20}
@media(max-width:700px){.slot-options{grid-template-columns:repeat(3,minmax(0,1fr))}.class-tabs button{padding:11px 14px;font-size:11px}.catalog-hero{padding:20px;min-height:150px}.catalog-hero h1{font-size:38px}.hero-image{height:180px;padding:26px}.drawer-body{padding-left:20px;padding-right:20px}.drawer-hero{margin-left:0;margin-right:0}}
@media(max-width:440px){#app{padding-top:20px}.catalog-hero{padding:20px 16px}.catalog-hero h1{font-size:34px}.slot-options{grid-template-columns:repeat(2,minmax(0,1fr))}.attachment-thumb{height:35px}.slot-options button{min-height:98px}.stat-heading{gap:8px}.stat-heading>span{font-size:11px}.drawer-head{padding:16px 20px}.hero-image{height:160px;padding:24px}.toolbar{gap:7px}.class-tabs{gap:6px}}
@media(prefers-reduced-motion:reduce){.weapon-card{transition:none}}

/* Comparison is quiet until at least one weapon is selected. */
.compare-check{position:relative;z-index:3;display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px;color:#b8babc;font-size:10px;letter-spacing:0;text-transform:none;cursor:pointer}
.compare-check:hover,.compare-check:has(input:checked){color:var(--text)}
.compare-check input{width:14px;height:14px;margin:0;accent-color:var(--amber);cursor:pointer}
.compare-check:focus-within{outline:2px solid var(--amber);outline-offset:2px}
.compare-check input:focus-visible{outline:none}
.weapon-card .compare-check{min-width:82px;justify-content:flex-end}
.weapon-card .compare-check span{opacity:0;transition:opacity .15s}
.weapon-card .compare-check:hover span,.weapon-card .compare-check:focus-within span,.weapon-card .compare-check:has(input:checked) span{opacity:1}
.compare-cell{width:70px;text-align:center}.compare-table-heading{font-size:10px;text-transform:uppercase;color:var(--muted)}
.comparison-tray{position:sticky;bottom:12px;z-index:5;display:flex;align-items:center;gap:16px;margin-top:24px;padding:14px 18px;background:#242629f5;border:1px solid #55595f;box-shadow:0 5px 25px #0008}
.comparison-selection{flex:1;min-width:0}.comparison-selection>strong{font-size:12px}.comparison-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.comparison-chips button{padding:3px 8px;border:1px solid #505359;background:#17191c;color:#ddd;font-size:11px}.comparison-chips button span{margin-left:5px}
.comparison-dialog{position:fixed;inset:24px;z-index:11;display:flex;flex-direction:column;max-width:1600px;margin:auto;border:1px solid #46494e;background:#151617;box-shadow:0 20px 80px #0009;overflow:hidden}
.comparison-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 24px;background:#101112;border-bottom:1px solid var(--line)}
.comparison-head h2{margin:0;font-size:20px;text-transform:uppercase}.comparison-head h2 span{color:var(--amber);font-size:14px;margin-left:8px}.comparison-head .icon-button{font-size:28px}
.comparison-dialog select{min-width:0;background:#232529;color:var(--text);border:1px solid #4e5156;padding:8px;font-size:12px}
.comparison-scroll{overflow:auto;flex:1;min-height:0;overscroll-behavior:contain;padding:18px 20px 24px}
.comparison-columns{display:grid;grid-template-columns:repeat(4,minmax(285px,1fr));grid-template-rows:repeat(8,auto);gap:0 14px;min-width:calc(4 * 285px + 3 * 14px)}
.comparison-column{display:grid;grid-template-rows:subgrid;grid-row:span 8;min-width:0;border-left:1px solid var(--line);border-right:1px solid var(--line);background:#18191b}
.comparison-column[data-column]{transition:transform .18s ease,background .15s,border-color .15s}
.comparison-column:not(.comparison-empty):hover{cursor:grab;background:#1e2022;border-color:#55595f}.comparison-column:not(.comparison-empty) :is(button,select,input,label,a){cursor:pointer}
.comparison-column.is-drag-placeholder{background:#28241b;border:1px dashed var(--amber);user-select:none}.comparison-column.is-drag-placeholder>*{visibility:hidden}
.comparison-drag-proxy{position:fixed;top:0;left:0;z-index:12;max-height:min(520px,80dvh);overflow:hidden;pointer-events:none;border:1px solid var(--amber);background:#202123;box-shadow:0 20px 48px #000c,0 0 0 3px #f4ae3630;opacity:.97;will-change:transform}
.comparison-drag-proxy-title{padding:12px 16px;background:#292b2e;border-bottom:1px solid #555;font-size:18px;font-weight:900;text-transform:uppercase}
.comparison-drag-proxy .comparison-image{height:95px;padding:8px 12px}.comparison-drag-proxy>.hint{display:block;padding:0 16px 10px}.comparison-drag-proxy .comparison-stats{padding:12px 16px 16px}.comparison-drag-proxy .comparison-stats h4{margin-bottom:10px}.comparison-drag-proxy .stat-list:not(.compact){gap:7px}.comparison-drag-proxy .stat-heading{margin-bottom:3px}.comparison-drag-proxy .stat-list:not(.compact) .bar{height:7px}
.comparison-drag-active,.comparison-drag-active *{user-select:none!important}
.comparison-empty{border:1px dashed #45484c;background:#18191b77;padding:16px;display:block;min-height:220px}.comparison-empty label{display:flex;flex-direction:column;gap:10px;color:var(--muted);font-size:12px;font-weight:700}.comparison-empty select{width:100%}
.comparison-column.is-drop-target{outline:2px solid var(--amber);outline-offset:-2px}.comparison-column.is-keyboard-moving{outline:2px dashed var(--amber);outline-offset:-2px}
.comparison-weapon,.comparison-stats,.comparison-slot{padding:14px 16px;min-width:0}.comparison-weapon{display:flex;flex-direction:column}.comparison-weapon select{width:100%}
.comparison-image{display:block;width:100%;height:115px;object-fit:contain;padding:16px 10px}.comparison-weapon h3{font-size:24px;margin:3px 0;text-transform:uppercase}.comparison-weapon>.hint{min-height:35px}
.comparison-actions{display:flex;justify-content:space-between;gap:10px;margin-top:auto}.comparison-actions .text-button{font-size:9px;letter-spacing:.04em}
.comparison-stats{border-top:1px solid var(--line);padding-bottom:24px}.comparison-stats h4{color:var(--amber);font-size:11px;text-transform:uppercase;margin:0 0 18px}
.comparison-slot{border-top:1px solid var(--line)}.comparison-slot .slot{border:0;padding:0}.comparison-slot .slot-options{grid-template-columns:repeat(2,minmax(0,1fr))}.comparison-slot .attachment-name{font-size:10px}.comparison-slot .slot-options button{min-height:85px}
.slot-tabs{overflow-x:auto;align-items:stretch}.slot-tabs button{flex-shrink:0;display:flex;align-items:center;gap:8px;white-space:nowrap}.slot-tabs button small{font-size:9px;letter-spacing:0;text-transform:none}
.slot-tabs .fixed-slot-tab{background:#303236}.slot-tabs .fixed-slot-tab.active{background:#44464a;color:var(--text);border-color:#c3c5c9}
.equipment-card.fixed-equipment{background:#2b2d30;border-color:#5a5d61}.equipment-card.fixed-equipment:hover{background:#33363a}
.fixed-badge{border:1px solid #8b8f94;padding:2px 7px;color:#e2e3e5}.fixed-note{padding:10px 14px;border-left:2px solid #999da2;background:#26282b;font-size:12px;color:#d0d2d4}
.equipment-description{font-size:12px;line-height:1.6;color:#b9bbbe;margin:10px 0 0}.equipment-card .weapon-image{height:120px}
@media(max-width:700px){.comparison-dialog{inset:0;border:0}.comparison-head{padding:12px 16px}.comparison-head h2{font-size:18px}.comparison-scroll{padding:18px 12px 16px}.comparison-tray{gap:10px;padding:12px;bottom:8px;flex-wrap:wrap}.comparison-selection{flex-basis:100%}.comparison-tray>.button{margin-left:auto}.comparison-chips{flex-wrap:nowrap;overflow-x:auto}.comparison-chips button{white-space:nowrap;flex:none}}

.comparison-column-title{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#242629;border-bottom:1px solid #45484c;padding:8px 12px;font-size:18px;font-weight:900;text-transform:uppercase;box-shadow:0 3px 8px #0003}.comparison-drag-title{min-width:0;overflow-wrap:anywhere;cursor:grab}.comparison-drag-title:active{cursor:grabbing}.comparison-drag-title:focus-visible{outline:2px solid var(--amber);outline-offset:2px}.comparison-remove{flex:none;font-size:22px}
@media(prefers-reduced-motion:reduce){.weapon-card .compare-check span,.comparison-column[data-column]{transition:none}}

/* Brand presentation remains readable before the catalog loads. */
.brand{flex-shrink:0}.brand small{letter-spacing:.015em;font-weight:500;font-size:10px}.site-about{max-width:720px;letter-spacing:0;font-weight:400}.site-about strong{font-size:12px;font-weight:700;color:var(--muted)}.site-about p{margin:7px 0 0;font-size:12px;line-height:1.6}.site-about .dot{margin:0 5px}footer{gap:24px}footer>.text-button{flex-shrink:0}
@media(max-width:700px){.brand small{display:none}.site-about strong>span:last-child{display:block;margin-top:4px}.site-about .dot{display:none}footer{align-items:flex-start;flex-wrap:wrap}}

.site-about .game-attribution{margin-top:10px;font-size:11px;color:var(--muted);font-weight:400}
