html:has(.weapon-preview) { height:auto; overflow:auto; }
body.weapon-preview { display:block; height:auto; min-height:100vh; margin:0; background:#13100d; color:#eee3ca; font:15px/1.6 Arial,sans-serif; }
.weapon-preview main { max-width:1180px; margin:auto; padding:36px 24px; }
.shared-armor-preview main { max-width:1280px; }
.shared-outfit-figures { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 8px; margin:24px 0; }
.shared-outfit-figures figure { margin:0; min-width:0; }
.shared-outfit-figures figcaption { text-align:center; color:#c9a74e; margin-top:10px; font-size:12px; }
.shared-outfit-figures .pose-frame { position:absolute; object-fit:contain; }
.shared-outfit-figures .pose-layer { position:absolute; left:50%; }
.weapon-preview header { max-width:760px; margin-bottom:24px; }
.weapon-preview .eyebrow { color:#c9a74e; text-transform:uppercase; letter-spacing:.18em; font-size:11px; }
.weapon-preview h1 { color:#e4ca80; font:600 36px/1.2 Georgia,serif; margin:10px 0; }
.weapon-preview header > p:last-child, #weapon-count { color:#b1a38c; }
.weapon-preview form { display:flex; align-items:end; flex-wrap:wrap; gap:12px; }
.weapon-preview label { display:grid; gap:5px; }
.weapon-preview :is(input, select, form button) { min-height:44px; border:1px solid #74603c; border-radius:5px; background:#221b14; color:#eee3ca; padding:8px 12px; font:14px Arial,sans-serif; }
.weapon-preview input { width:min(340px,100%); }
.weapon-preview :focus-visible { outline:var(--focus-ring); outline-offset:3px; }
#weapon-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(0,280px)); justify-content:center; gap:20px; align-items:start; }
#weapon-gallery article { min-width:0; }
.weapon-preview .weapon-enlarge { margin-top:10px; width:100%; min-height:44px; font-size:14px; }
@media(max-width:1000px) { #weapon-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .weapon-preview main { padding:24px 16px; } .weapon-preview h1 { font-size:28px; } #weapon-gallery { grid-template-columns:minmax(0,1fr); max-width:360px; margin:auto; } .weapon-preview form > label:first-child { width:100%; } }

#weapon-gallery .equipment-poker-inspection > .equipment-poker-card { width:100%; }
@media(max-width:1000px) { #weapon-gallery { grid-template-columns:repeat(auto-fit,minmax(0,280px)); } }
@media(max-width:600px) { #weapon-gallery { grid-template-columns:minmax(0,280px); } }
