.modal.weapon-modal{width:min(1240px,96vw);max-width:1240px;padding:clamp(16px,3vw,32px);overflow-x:hidden}
.weapon-modal h2{font-family:var(--font-display,'Oswald',sans-serif);font-size:clamp(28px,4vw,44px);margin:0}.weapon-modal h3{margin:18px 0 12px}.weapon-modal [hidden]{display:none!important}
.weapon-summary,.weapon-calibre{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line,#33382a);border:1px solid var(--line,#33382a);margin:18px 0}
.weapon-metric{background:#181b12;padding:16px;min-width:0}.weapon-metric>span{display:block;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#aeb39b;margin-bottom:8px}.weapon-metric strong{display:block;font-size:24px;color:#f1d480;overflow-wrap:anywhere}.weapon-metric strong small{font-size:13px;font-weight:400;color:#b5b7a9}
.weapon-tabs{display:flex;gap:8px;overflow:auto;border-bottom:1px solid #454833;padding-bottom:12px;margin:18px 0}.weapon-tabs button{padding:10px 20px;white-space:nowrap}.weapon-tabs button[aria-pressed=true]{background:#e2ac2b;color:#11150c;border-color:#e2ac2b}
.weapon-detail-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px}.weapon-modal #item-3d{height:340px}.weapon-description{white-space:pre-line;line-height:1.7;border-left:2px solid #e2ac2b;padding-left:16px}
.weapon-modal .tbl td,.weapon-modal .tbl th{white-space:normal}.weapon-modal .tbl .mono{white-space:nowrap}.weapon-changed{color:#e2ac2b}.weapon-controls{display:flex;flex-wrap:wrap;align-items:end;gap:14px;margin:18px 0}.weapon-controls label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#c3c5b7;flex:1;min-width:125px}.weapon-controls select,.weapon-controls input[type=number]{width:100%;min-height:38px}.weapon-controls .weapon-check{flex-direction:row;align-items:center;align-self:center;min-width:170px}.weapon-check input{width:auto}
.weapon-chart-card{background:#10130d;border:1px solid #3c402b;padding:16px}.weapon-chart-card svg{display:block;width:100%;height:auto}.weapon-chart-card svg text{font-size:12px;fill:#b6bca4}.weapon-axis{stroke:#788266;stroke-width:1;fill:none}.weapon-grid{stroke:#313827;stroke-width:1;stroke-dasharray:3 6}.weapon-plot{stroke:#e2ac2b;stroke-width:2.5;fill:none}.weapon-marker{stroke:#8fb997;stroke-dasharray:4 4}.weapon-base-plot{stroke:#717968;stroke-width:2;fill:none;stroke-dasharray:4 6}.weapon-point{fill:#ffe2a2;stroke:#e2ac2b;stroke-width:1}
.weapon-recoil-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(200px,1fr);gap:20px}.weapon-recoil-layout input[type=range]{display:block;width:100%;margin:15px 0}.weapon-attachment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.weapon-attachment-grid label{min-width:0;display:grid;gap:8px}.weapon-attachment-grid select{width:100%;max-width:100%}.weapon-ammo-list{display:flex;flex-wrap:wrap;gap:10px}.weapon-ammo-list button{text-align:left;white-space:normal}.weapon-ammo-list span{display:block}.weapon-source{margin-top:24px;padding-top:16px;border-top:1px solid #3c402b;color:#9ea78a;font-size:12px}.weapon-calibre{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.weapon-calibre .weapon-metric strong{font-size:18px}
.loadout-profile{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin:12px 0 20px;padding:14px;border:1px solid #535b34;background:#202617}.loadout-profile .profile-copy{flex:1;min-width:180px}.loadout-profile p{margin:4px 0}.loadout-profile .save-error{color:#ffaaa0}
@media(max-width:700px){.weapon-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.weapon-detail-layout,.weapon-recoil-layout{grid-template-columns:1fr}.weapon-attachment-grid{grid-template-columns:1fr}.weapon-modal #item-3d{height:260px}.weapon-tabs button{padding:9px 12px}.weapon-modal .tbl{font-size:12px}.weapon-metric{padding:12px}.weapon-metric strong{font-size:22px}}
