/* Loadout Generator – HNTv3 design system, shared Feed/Guides proportions and existing palette. */
.hnt-lg-page,.hnt-lg-page *,.hnt-lg-page *::before,.hnt-lg-page *::after{box-sizing:border-box}
.hnt-lg-page{min-width:0;padding-bottom:85px;color:var(--body-text)}
.hnt-lg-page [hidden]{display:none!important}
.hnt-lg-page .ph{width:17px;height:17px;fill:currentColor;flex:none}
.hnt-lg-wrap{width:100%;max-width:1525px;margin:0 auto;min-width:0}
.hnt-lg-pagehead.feed-page-title{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:75px;margin:0 0 22px}
.hnt-lg-kicker.feed-kicker{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:9px;font-weight:600;letter-spacing:1.3px;color:#88b695}
.hnt-lg-pagehead h1{font-size:30px;line-height:1.23;font-weight:700;letter-spacing:-.45px;color:var(--title);margin:0 0 7px}
.hnt-lg-pagehead h1 .title-ember,.lg-summary h2 .title-ember{color:var(--accent)}
.hnt-lg-pagehead p{font-size:14px;color:var(--subtle-text);line-height:1.4;margin:0}
.hnt-lg-head-actions{display:flex;align-items:center;justify-content:end;gap:11px}
.hnt-lg-page .hnt-lg-primary,.hnt-lg-page .hnt-lg-secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:10px;min-height:39px;padding:0 17px;font-family:inherit;font-weight:740;font-size:12px;line-height:1;white-space:nowrap;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.hnt-lg-page .hnt-lg-primary{border:1px solid var(--accent);background:var(--accent);color:var(--accent-ink)}
.hnt-lg-page .hnt-lg-primary:hover{background:var(--accent-soft);transform:translateY(-1px)}
.hnt-lg-page .hnt-lg-secondary{background:var(--surface-control);color:var(--body-text);border:1px solid var(--control-border)}
.hnt-lg-page .hnt-lg-secondary:hover:not(:disabled){background:var(--surface-raised);color:var(--title)}
.hnt-lg-page .hnt-lg-secondary:disabled{opacity:.35;cursor:not-allowed}
.lg-layout{display:grid;grid-template-columns:minmax(260px,300px) minmax(0,1fr);align-items:start;gap:15px}
.lg-settings,.lg-summary,.lg-item{border:1px solid color-mix(in srgb,var(--panel-border) 43%,transparent);background:var(--widget);border-radius:13px}
.lg-settings{position:sticky;top:18px;min-width:0;padding:22px 20px 19px}
.lg-eyebrow{color:var(--logo-accent);font-size:9px;font-weight:760;letter-spacing:1.1px}
.lg-settings-head{display:flex;align-items:center;justify-content:space-between;gap:11px;margin:0 0 22px;padding-bottom:17px;border-bottom:1px solid color-mix(in srgb,var(--panel-border) 43%,transparent)}
.lg-settings-head h2{display:flex;align-items:center;gap:9px;font-size:17px;line-height:1.3;color:var(--title);margin:8px 0 0}
.lg-settings-head h2 .ph{width:18px;height:18px;color:var(--accent)}
.lg-settings-counter{display:inline-flex;padding:7px 9px;border-radius:7px;background:var(--filter-selected-bg);color:var(--filter-selected-fg);font-size:9px;font-weight:760;white-space:nowrap}
.lg-rule{margin:0 0 16px}
.lg-rule>label{display:block;margin-bottom:10px;color:var(--title);font-size:11.5px;font-weight:730}
.lg-select{height:42px;display:flex;align-items:center;position:relative;border-radius:9px;border:1px solid var(--control-border);background:var(--surface-input);color:var(--body-text)}
.lg-select select{appearance:none;border:0;outline:0;background:transparent;color:var(--body-text);padding:0 33px 0 12px;width:100%;height:100%;cursor:pointer;font-size:11.5px}
.lg-select select option{color:var(--title);background:var(--surface-deep)}
.lg-select .ph{pointer-events:none;position:absolute;right:10px;height:13px;width:13px}
.lg-rule>p{margin:9px 0 0;color:var(--subtle-text);font-size:10px;line-height:1.5}
.lg-toggle{display:flex;align-items:start;gap:11px;position:relative;padding:16px 0;cursor:pointer;border-top:1px solid color-mix(in srgb,var(--panel-border) 35%,transparent)}
.lg-toggle>input{position:absolute;opacity:0;width:1px;height:1px}
.lg-switch{display:flex;align-items:center;flex:none;width:34px;height:19px;margin-top:2px;padding:3px;border:1px solid var(--control-border);border-radius:14px;background:var(--surface-control);transition:background .2s,border-color .2s}
.lg-switch i{display:block;width:11px;height:11px;border-radius:50%;background:var(--subtle-text);transition:transform .2s,background .2s}
.lg-toggle input:checked+.lg-switch{background:var(--filter-selected-bg);border-color:var(--accent)}
.lg-toggle input:checked+.lg-switch i{background:var(--accent);transform:translateX(14px)}
.lg-toggle input:focus-visible+.lg-switch{outline:2px solid var(--accent);outline-offset:3px}
.lg-toggle strong,.lg-toggle small{display:block}
.lg-toggle strong{font-size:11px;font-weight:760;color:var(--title);margin:1px 0 6px}
.lg-toggle small{font-size:10px;color:var(--subtle-text);line-height:1.5}
.lg-settings-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0 17px}
.lg-settings-facts>div{display:flex;flex-direction:column;gap:7px;padding:11px 8px;border:1px solid color-mix(in srgb,var(--panel-border) 35%,transparent);border-radius:9px;background:var(--surface-neutral)}
.lg-settings-facts span{font-size:9px;color:var(--subtle-text)}
.lg-settings-facts strong{font-size:16px;color:var(--title);font-weight:750}
.lg-settings-foot{display:flex;align-items:flex-start;gap:9px;padding-top:14px;border-top:1px solid color-mix(in srgb,var(--panel-border) 35%,transparent);font-size:10px;color:var(--subtle-text);line-height:1.6}
.lg-settings-foot .ph{color:var(--accent);width:15px;height:15px;margin-top:2px}
.lg-results{min-width:0}
.lg-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 20px;margin-bottom:24px;background:linear-gradient(115deg,var(--widget),var(--surface-neutral))}
.lg-summary-title{display:flex;flex-direction:column;min-width:0;gap:8px}
.lg-summary-title h2{font-size:18px;color:var(--title);line-height:1.25;margin:0 0 4px;font-weight:740}
.lg-summary-title p{font-size:10.5px;line-height:1.5;color:var(--subtle-text);margin:0}
.lg-summary-info{display:flex;align-items:center;gap:18px;flex:none}
.lg-total{display:flex;flex-direction:column;gap:7px;align-items:flex-end}
.lg-total span{font-size:9px;letter-spacing:.9px;color:var(--subtle-text);font-weight:740}
.lg-total strong{font-size:22px;line-height:1.05;font-weight:780;color:var(--title);font-variant-numeric:tabular-nums}
.lg-group{margin-bottom:23px}
.lg-section-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;padding:0 1px 12px;margin-bottom:12px;border-bottom:1px solid color-mix(in srgb,var(--panel-border) 43%,transparent)}
.lg-section-heading h2{display:flex;align-items:center;gap:9px;font-size:17px;color:var(--title);font-weight:750;margin:5px 0 0}
.lg-section-heading h2 .ph{color:var(--accent);height:17px;width:17px}
.lg-section-note{font-size:10px;color:var(--subtle-text)}
.lg-weapon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.lg-small-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.lg-item{display:flex;flex-direction:column;min-width:0;position:relative;padding:14px 15px;min-height:205px;overflow:hidden;transition:border-color .2s,background .2s}
.lg-item:hover{border-color:color-mix(in srgb,var(--accent) 28%,var(--panel-border))}
.lg-item-weapon{min-height:271px;padding:16px 18px}
.lg-item.is-locked{border-color:color-mix(in srgb,var(--accent) 55%,var(--panel-border));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 6%,transparent)}
.lg-item-top{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;z-index:1}
.lg-item-top>span{font-size:9px;font-weight:790;letter-spacing:1px;color:var(--subtle-text)}
.lg-lock{width:28px;height:28px;display:grid;place-items:center;padding:0;background:var(--surface-control);color:var(--body-text);border:1px solid var(--control-border);border-radius:7px;cursor:pointer}
.lg-lock .ph{width:14px;height:14px}
.lg-lock:disabled{opacity:.27;cursor:not-allowed}
.lg-lock:not(:disabled):hover,.lg-item.is-locked .lg-lock{color:var(--filter-selected-fg);border-color:var(--accent);background:var(--filter-selected-bg)}
.lg-item-image{height:97px;min-height:0;display:grid;place-items:center;position:relative;overflow:hidden}
.lg-item-weapon .lg-item-image{height:138px}
.lg-item-image>img{max-width:93%;max-height:92%;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 18px color-mix(in srgb,var(--black) 40%,transparent));transition:transform .2s}
.lg-item:hover .lg-item-image>img{transform:scale(1.03)}
.lg-item-image>.ph{width:35px;height:35px;color:var(--subtle-text);opacity:.27}
.lg-item-bottom{display:flex;flex-direction:column;gap:5px;min-width:0;margin-top:auto}
.lg-item-bottom h3{font-size:12.5px;line-height:1.3;font-weight:760;color:var(--title);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.lg-item-weapon .lg-item-bottom h3{font-size:16px}
.lg-item-bottom p{font-size:9.5px;color:var(--subtle-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}
.lg-item-meta{display:flex;justify-content:space-between;align-items:center;gap:7px;border-top:1px solid color-mix(in srgb,var(--panel-border) 43%,transparent);padding-top:8px;margin-top:8px;min-width:0}
.lg-item-meta span{color:var(--subtle-text);font-size:9.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lg-item-meta strong{color:var(--body-text);font-size:10.5px;white-space:nowrap;font-variant-numeric:tabular-nums}
.lg-ammo-action{display:inline-flex;gap:5px;align-items:center;justify-content:center;margin-top:5px;align-self:flex-start;padding:5px 8px;background:var(--surface-control);border:1px solid var(--control-border);border-radius:6px;color:var(--body-text);font-size:9px;cursor:pointer}
.lg-ammo-action .ph{width:12px;height:12px}
.lg-ammo-action:hover{color:var(--accent);border-color:var(--accent)}
.lg-bottom-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0 0;border-top:1px solid color-mix(in srgb,var(--panel-border) 43%,transparent)}
.lg-bottom-actions p{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--subtle-text);line-height:1.5;margin:0}
.lg-bottom-actions p .ph{color:var(--accent);width:14px;height:14px}
.hnt-lg-page button:focus-visible,.hnt-lg-page select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:1300px){.lg-layout{grid-template-columns:255px minmax(0,1fr)}.lg-small-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lg-item--empty:not(.lg-item-weapon){min-height:174px}}
@media(max-width:970px){.lg-layout{grid-template-columns:1fr}.lg-settings{position:static}.lg-settings-facts{max-width:430px}.lg-small-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.lg-small-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lg-item{min-height:180px}.lg-item-weapon{min-height:225px}.lg-item-image{height:80px}.lg-item-weapon .lg-item-image{height:106px}.lg-summary{flex-wrap:wrap}.lg-summary-info{flex:1;width:100%;justify-content:space-between}}
@media(max-width:580px){.hnt-lg-pagehead.feed-page-title{align-items:flex-start;gap:9px}.hnt-lg-pagehead h1{font-size:27px}.hnt-lg-pagehead p{font-size:11.5px;max-width:32ch}.hnt-lg-head-actions{gap:5px}.hnt-lg-head-actions button{padding:0!important;width:37px;height:37px;min-width:37px;font-size:0!important}.hnt-lg-head-actions button .ph{width:18px;height:18px}.lg-settings{padding:16px}.lg-summary{padding:15px}.lg-weapon-grid{gap:8px}.lg-small-grid{gap:8px}.lg-item-weapon{padding:12px;min-height:215px}.lg-item{padding:11px;min-height:170px}.lg-item-bottom h3,.lg-item-weapon .lg-item-bottom h3{font-size:11px}.lg-item-image{height:83px}.lg-item-weapon .lg-item-image{height:103px}.lg-item-bottom p{font-size:9px}.lg-section-heading h2{font-size:16px}.lg-section-note{font-size:9px}.lg-bottom-actions{flex-wrap:wrap}.lg-bottom-actions .hnt-lg-primary{width:100%}}
@media(prefers-reduced-motion:reduce){.hnt-lg-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.lg-lock .lg-padlock{height:15px;width:15px;flex:none}


/* Arsenal images must fit *inside* the existing weapon / tool card viewport.
   The demo's grid image is a replaced element with an intrinsic 2:1 ratio.
   On Chromium, max-height:92% on an in-flow grid child resolves against an
   indefinite grid track and it grows to ~240px inside a 138px clipped box.
   Absolutely positioning the img makes percentages resolve against the
   already-sized image area, preserving the original HNTv3 card layout. */
.hnt-lg-page .lg-item-image > img {
    position: absolute;
    top: 4%;
    left: 3.5%;
    width: 93%;
    height: 92%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

/* Hunt 2.8: a single eight-slot equipment grid. Keep HNTv3 proportions. */
.lg-equipment-explanation {
  margin: -1px 0 15px;
  color: var(--subtle-text);
  line-height: 1.55;
  font-size: 10.5px;
}
.hnt-lg-page .lg-item.is-tool {
  border-color: color-mix(in srgb,var(--panel-border) 65%,transparent);
}
.hnt-lg-page .lg-item.is-consumable .lg-item-meta {
  border-top-color: color-mix(in srgb,var(--logo-accent) 24%,var(--panel-border));
}
.hnt-lg-page .lg-item.is-consumable .lg-item-top>span {
  color: var(--logo-accent);
}
.hnt-lg-page .lg-item.is-locked {
  border-color: color-mix(in srgb,var(--accent) 55%,var(--panel-border));
}
.hnt-lg-page #lgGearState {
  font-variant-numeric: tabular-nums;
  white-space: normal;
  text-align: right;
  max-width: 54%;
}
@media(max-width:540px){
 .hnt-lg-page .lg-equipment-explanation{font-size:10px}
 .hnt-lg-page #lgGearState{font-size:9px;max-width:58%}
}



/* Arsenal slot-machine reveal: staggered, legible cards without layout shifts. */
.hnt-lg-page .lg-item { isolation:isolate; }
.hnt-lg-page .lg-slot-reel {
  position:absolute;inset:0;z-index:5;pointer-events:none;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  gap:12px;padding:18px;
  border-radius:inherit;
  background:linear-gradient(180deg, #303733 0%, #252c29 49%, #2e3531 100%);
  border:1px solid color-mix(in srgb,var(--accent) 48%,var(--panel-border));
  box-shadow:inset 0 0 40px rgba(138,205,167,.09),0 0 19px rgba(154,216,176,.08);
  overflow:hidden;
}
.hnt-lg-page .lg-reel-window {
  width:100%;height:59%;display:grid;place-items:center;position:relative;overflow:hidden;
}
.hnt-lg-page .lg-reel-window img {
  display:block;width:96%;height:92%;object-fit:contain;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.36));
  animation:lg-reel-flick .17s ease-in-out infinite alternate;
}
.hnt-lg-page .lg-reel-label {
  width:100%;color:var(--title);font-weight:800;font-size:11px;
  text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  letter-spacing:.1px;
}
.hnt-lg-page .lg-reel-scan {
  position:absolute;left:10%;right:10%;top:50%;height:2px;
  background:linear-gradient(90deg,transparent,var(--accent),transparent);
  box-shadow:0 0 16px var(--accent);
  opacity:.55;animation:lg-reel-scan 650ms linear infinite;
}
.hnt-lg-page .lg-item.lg-reel-landed {
  animation:lg-reel-land 420ms ease-out both;
}
@keyframes lg-reel-flick {
  from{transform:translateY(-5px) scale(.97);opacity:.72;filter:blur(1px) drop-shadow(0 6px 12px rgba(0,0,0,.36))}
  to{transform:translateY(5px) scale(1.01);opacity:1;filter:blur(0) drop-shadow(0 6px 12px rgba(0,0,0,.36))}
}
@keyframes lg-reel-scan {
  0%{transform:translateY(-55px)}
  100%{transform:translateY(55px)}
}
@keyframes lg-reel-land {
  0%{box-shadow:0 0 0 rgba(154,216,176,0);border-color:var(--accent)}
  35%{box-shadow:0 0 24px rgba(154,216,176,.22);border-color:var(--accent)}
  100%{box-shadow:0 0 0 rgba(154,216,176,0)}
}
@media(prefers-reduced-motion:reduce){
  .hnt-lg-page .lg-slot-reel,.hnt-lg-page .lg-item.lg-reel-landed{animation:none!important}
}
\n.hnt-lg-page .lg-group{scroll-margin-top:22px}\n