/* =============================================================================
 * Myrl's Country — Compare Rifles tool
 * Self-contained theme. Light grey, clean, restrained — white surfaces with
 * black and red accents. No external fonts/CDNs so it loads instantly and
 * drops into WordPress without dependencies.
 * Override the variables in :root to match the live brand exactly.
 * ===========================================================================*/

:root {
  --bg:        #e7e9ec;     /* light grey base */
  --bg-2:      #ffffff;     /* white card surfaces */
  --bg-3:      #dcdfe3;     /* grey wells / track / header cells */
  --line:      #cdd1d7;
  --text:      #16181b;     /* near-black */
  --text-dim:  #5d646d;
  --accent:    #d12b2b;     /* red */
  --accent-2:  #20242a;     /* black */
  --good:      #3a3f45;     /* charcoal (neutral chip) */
  --warn:      #d12b2b;
  --radius:    14px;
  --shadow:    0 8px 24px rgba(20,22,26,.12);
  --maxw:      1140px;
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Display type: industrial condensed, used for headings, stats, controls */
.lead h1, .band__title, .dhead__name, .gcard__name, .badge__big,
.tab, .btn-solid, .btn-ghost, .drow__label, .dval, .duel-head__vs,
.duel-empty__vs, .brand, .topnav__tabs a, .showcase__name {
  font-family: var(--font-display);
}

* { box-sizing: border-box; }

.mc-compare {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(209,43,43,.06), transparent 60%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: clamp(18px, 4vw, 48px);
}

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ---------- header ---------- */
.lead { text-align: center; margin: 0 0 28px; }
.lead__eyebrow {
  display: inline-block; letter-spacing: .22em; text-transform: uppercase;
  font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.lead h1 {
  font-size: clamp(28px, 5vw, 46px); margin: 0 0 10px; font-weight: 800;
  letter-spacing: -.02em;
}
.lead p { color: var(--text-dim); max-width: 640px; margin: 0 auto; font-size: 16px; }

/* ---------- toolbar ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin: 26px 0 14px; flex-wrap: wrap;
}
.toolbar h2.section { font-size: 15px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-dim); margin: 0; font-weight: 700; }
.toolbar .right { display: flex; align-items: center; gap: 14px; }
.selcount { font-size: 13px; color: var(--text-dim); }
.selcount.limit { color: var(--warn); animation: shake .35s; }
@keyframes shake { 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text-dim);
  padding: 9px 16px; border-radius: 2px; font-size: 13px; cursor: pointer;
  transition: .18s; text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* ---------- picker grid ---------- */
#picker {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.card {
  position: relative; text-align: left; cursor: pointer; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s, border-color .15s, box-shadow .15s; font: inherit;
}
.card:hover { transform: translateY(-3px); border-color: #3a414b; box-shadow: var(--shadow); }
.card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.card__media {
  display: grid; place-items: center; height: 92px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border-bottom: 1px solid var(--line);
}
.card__media svg, .card__media img { width: 88%; height: auto; max-height: 78px; object-fit: contain; }
.card__body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 3px; }
.card__series { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.card__name { font-size: 15px; font-weight: 700; }
.card__cal { font-size: 12px; color: var(--text-dim); }
.card__price { font-size: 14px; font-weight: 700; margin-top: 4px; }
.card__check {
  position: absolute; top: 10px; right: 10px; width: 24px; height: 24px;
  border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  background: var(--accent); color: #fff; opacity: 0; transform: scale(.6);
  transition: .15s; font-weight: 800;
}
.card.is-selected .card__check { opacity: 1; transform: scale(1); }

/* ---------- compare area ---------- */
#compare { margin-top: 30px; }
.empty {
  text-align: center; color: var(--text-dim); padding: 50px 20px;
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-2);
}

.grid--head {
  display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 14px;
  margin-bottom: 8px;
}
.ccol {
  position: relative; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 14px; text-align: center;
}
.ccol__remove {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--text-dim);
  cursor: pointer; font-size: 16px; line-height: 1; transition: .15s;
}
.ccol__remove:hover { color: #fff; border-color: var(--warn); background: var(--warn); }
.ccol__media { height: 84px; display: grid; place-items: center; margin-bottom: 8px; }
.ccol__media svg, .ccol__media img { width: 90%; max-height: 80px; object-fit: contain; }
.ccol__series { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ccol__name { font-size: 16px; font-weight: 800; margin: 2px 0; }
.ccol__price { font-size: 14px; color: var(--text-dim); margin-bottom: 8px; }
.ccol__cal { font-size: 12px; color: var(--text-dim); display: inline-flex; gap: 6px; align-items: center; }
.ccol__cal select {
  background: var(--bg-3); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 13px; cursor: pointer;
}
.ccol__cal--fixed { color: var(--text); font-weight: 600; }

/* ---------- block titles ---------- */
.block-title {
  font-size: 14px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim);
  font-weight: 700; margin: 30px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}

/* ---------- charts ---------- */
.metric { margin-bottom: 18px; }
.metric__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.metric__label { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.metric__dir {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 999px; color: #fff;
}
.metric__dir--low  { background: var(--good); }     /* charcoal */
.metric__dir--high { background: var(--accent); }   /* red */
.metric__hint { color: var(--text-dim); cursor: help; font-size: 14px; }
.metric__bars { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .metric__bars { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); } }
.bar__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; gap: 8px; }
.bar__name { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__val { font-size: 14px; font-weight: 700; white-space: nowrap; }
.bar__val em { font-style: normal; font-size: 11px; color: var(--text-dim); font-weight: 500; }
.bar__track { height: 10px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; transition: width .9s cubic-bezier(.16,1,.3,1); }

/* ---------- spec table ---------- */
.specs__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table {
  width: 100%; border-collapse: collapse; min-width: 520px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  padding: 11px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line);
}
.spec-table th[scope=row] {
  color: var(--text-dim); font-weight: 600; white-space: nowrap; width: 170px;
  background: var(--bg-3);
}
.spec-table td { font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td, .spec-table tr:hover th { background: rgba(209,43,43,.05); }

/* ---------- explainer ---------- */
.explain {
  margin-top: 26px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.explain summary {
  cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 14px;
  list-style: none; display: flex; align-items: center; gap: 10px;
}
.explain summary::before { content: "▸"; color: var(--accent); transition: .2s; }
.explain[open] summary::before { transform: rotate(90deg); }
.explain summary::-webkit-details-marker { display: none; }
.explain__body { padding: 0 18px 20px; color: var(--text-dim); font-size: 14px; }
.explain__body p { margin: 0 0 12px; }
.explain__body strong { color: var(--text); }
.formula {
  font-family: var(--mono); background: #f3f4f6; border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; color: #a31f1f; font-size: 13px;
  white-space: pre; overflow-x: auto; margin: 0 0 14px;
}
.explain__vars { list-style: none; padding: 0; margin: 0 0 12px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 6px 18px; }
.explain__vars code { font-family: var(--mono); color: var(--accent); font-weight: 600; }
.explain__note {
  border-left: 3px solid var(--accent); padding-left: 12px; margin-top: 14px !important;
}

/* ---------- footer note ---------- */
.microcopy { text-align: center; color: var(--text-dim); font-size: 12px; margin-top: 22px; }
.microcopy a { color: var(--accent); text-decoration: none; }

/* =============================================================================
 * Brand / video / compliance / footer — added sections
 * ===========================================================================*/

/* ---------- shared building blocks ---------- */
.btn-solid {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  font-size: 14px; padding: 11px 22px; border-radius: 2px; text-decoration: none;
  transition: .18s; border: 1px solid var(--accent);
  text-transform: uppercase; letter-spacing: .04em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.btn-solid:hover { background: #b21f1f; border-color: #b21f1f; }

.band {
  margin-top: 46px; padding-top: 36px; border-top: 1px solid var(--line);
}
.band--legal { margin-top: 40px; }
.band__head { text-align: center; max-width: 640px; margin: 0 auto 22px; }
.band__title {
  font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px;
}
.band__sub { color: var(--text-dim); margin: 0; font-size: 15px; }

/* ---------- trust badges ---------- */
/* Clean inline trust line — no boxes, thin dividers between items */
.badges {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 0; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
}
.home-hero .badges { justify-content: flex-start; }
.badge {
  position: relative; padding: 0 18px; background: none; border: none; box-shadow: none;
  font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap;
}
.badge + .badge::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 11px; width: 1px; background: var(--line);
}
@media (max-width: 600px) {
  .badge { padding: 0 12px; font-size: 11px; letter-spacing: .08em; }
}

/* ---------- videos ---------- */
.videos { max-width: 860px; margin: 0 auto; }
.video-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 18px;
}
.vcard {
  display: block; text-decoration: none; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .15s;
}
.vcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #b9bec5; }
.vcard__thumb { position: relative; display: block; aspect-ratio: 16/9; background: #000; }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vcard__play {
  position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(209,43,43,.92); color: #fff;
  font-size: 16px; padding-left: 3px;
}
.vcard__title { display: block; padding: 11px 13px; font-size: 13.5px; font-weight: 600; }
.video-cta { text-align: center; margin-top: 18px; }

/* ---------- compliance ---------- */
.compliance { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 740px) { .compliance { grid-template-columns: 1fr 1fr; } }
.cpanel {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 22px; box-shadow: var(--shadow);
}
.cpanel__title { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.cpanel__note { margin: 0 0 12px; color: var(--text-dim); font-size: 13.5px; }
.callout {
  border-left: 3px solid var(--accent); background: rgba(209,43,43,.05);
  padding: 12px 14px; border-radius: 8px; font-size: 14px; color: var(--text-dim);
}
.callout a { color: var(--accent); font-weight: 600; }
.md-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.md-table th, .md-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.md-table th { color: var(--text-dim); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--text);
}

/* ---------- legal ---------- */
.legal__list { margin: 0 auto; max-width: 820px; padding-left: 18px; color: var(--text-dim); font-size: 13.5px; }
.legal__list li { margin-bottom: 9px; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line);
}
.site-footer__brand { text-align: center; margin-bottom: 22px; }
.site-footer__brand strong { display: block; font-size: 18px; font-weight: 800; }
.site-footer__brand span { color: var(--text-dim); font-size: 13px; }
.site-footer__cols {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-bottom: 24px;
}
.fcol { text-align: center; }
.fcol h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim);
  margin: 0 0 10px; font-weight: 700;
}
.contact, .social { display: flex; flex-direction: column; gap: 6px; }
.contact a, .contact span, .social a {
  color: var(--text); text-decoration: none; font-size: 14px;
}
.contact a:hover, .social a:hover { color: var(--accent); }
.site-footer__copy { text-align: center; color: var(--text-dim); font-size: 12px; margin: 0; }

/* =============================================================================
 * Armory (tabs + carousel) and Stat Duel — landing redesign
 * ===========================================================================*/

/* ---------- hero CTA ---------- */
.lead__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.btn-ghost--lg { padding: 11px 20px; font-size: 14px; }

/* ---------- tabs ---------- */
.armory { scroll-margin-top: 14px; }
.tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 0 6px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { height: 6px; }
.tabs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.tab {
  flex: 0 0 auto; scroll-snap-align: start; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text-dim);
  padding: 10px 16px; border-radius: 0; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .03em; transition: .16s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.tab:hover { color: var(--text); border-color: #b9bec5; }
.tab.is-active { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.tab__count {
  font-size: 11px; background: var(--bg-3); color: var(--text-dim);
  padding: 1px 7px; border-radius: 999px; font-weight: 700;
}
.tab.is-active .tab__count { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- carousel ---------- */
.carousel { position: relative; }
.rail {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 16px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.rail__empty { color: var(--text-dim); padding: 30px; }
.carousel__nav {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 3px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  font-size: 22px; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: .15s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.carousel__nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.carousel__nav--prev { left: -6px; }
.carousel__nav--next { right: -6px; }
@media (max-width: 560px) { .carousel__nav { display: none; } }

/* ---------- gun card ---------- */
.gcard {
  position: relative; flex: 0 0 230px; scroll-snap-align: start; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.gcard:hover { transform: translateY(-4px); border-color: #b9bec5; box-shadow: var(--shadow); }
.gcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gcard.is-picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.gcard__slot {
  position: absolute; top: 10px; left: 10px; z-index: 2; width: 24px; height: 24px;
  border-radius: 7px; color: #fff; font-weight: 800; font-size: 13px;
  display: grid; place-items: center;
}
.gcard__media {
  height: 120px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border-bottom: 1px solid var(--line);
}
.gcard__media img, .gcard__media svg { width: 90%; max-height: 104px; object-fit: contain; }
.gcard__body { padding: 13px 14px 16px; }
.gcard__series { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.gcard__name {
  font-size: 15px; font-weight: 700; margin: 4px 0 8px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 38px;
}
.gcard__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gcard__cal { font-size: 12px; color: var(--text-dim); }
.gcard__price { font-size: 15px; font-weight: 800; }
.gcard__cta {
  margin-top: 12px; font-size: 12px; font-weight: 700; text-align: center;
  padding: 8px; border-radius: 9px; background: var(--bg-3); color: var(--text-dim); transition: .15s;
}
.gcard:hover .gcard__cta { background: var(--accent); color: #fff; }
.gcard.is-picked .gcard__cta { background: var(--accent-2); color: #fff; }

/* ---------- duel: empty + header ---------- */
.duel-section { scroll-margin-top: 14px; }
.duel-empty {
  text-align: center; padding: 40px 20px; border: 1px dashed var(--line);
  border-radius: var(--radius); background: var(--bg-2); color: var(--text-dim);
}
.duel-empty__vs {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px;
  border-radius: 50%; background: var(--accent-2); color: #fff; font-weight: 800; letter-spacing: .05em;
}
.duel-empty__one { color: var(--accent); font-weight: 700; }

.duel-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 18px; }
.duel-head__vs {
  width: 52px; height: 52px; border-radius: 3px; display: grid; place-items: center;
  background: var(--accent-2); color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: 19px; letter-spacing: .04em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.dhead {
  position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px;
  overflow: hidden; box-shadow: var(--shadow); text-align: center;
}
.dhead--a { border-top: 4px solid var(--accent); }
.dhead--b { border-top: 4px solid var(--accent-2); }

/* dark image stage — the guns command attention on dark */
.dhead__stage {
  position: relative; height: 180px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(130% 120% at 50% 6%, #2c313a, #101216 74%);
  border-bottom: 1px solid var(--line);
}
.dhead__glow {
  position: absolute; left: 50%; top: 54%; width: 80%; height: 66%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--slot), transparent 72%); opacity: .42; filter: blur(7px);
}
.dhead__stage .gallery__main {
  position: relative; z-index: 1; height: 100%; width: 100%; border: none; border-radius: 0;
  background: none; padding: 18px 20px;
}
.dhead__stage .gallery__main img {
  max-height: 150px; max-width: 96%; object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .6));
}
.dhead__mark {
  position: absolute; top: 0; left: 0; z-index: 2; min-width: 50px; height: 44px;
  padding: 0 14px 8px; display: grid; place-items: center; line-height: 1;
  font-family: var(--font-display); font-weight: 800; font-size: 28px; color: #fff;
  background: var(--slot); clip-path: polygon(0 0, 100% 0, 100% 58%, 60% 100%, 0 100%);
}
.dhead .gallery { margin: 0; }
.dhead .gallery__thumbs { padding: 10px 14px 0; }
.dhead__body { padding: 14px 16px 16px; }
.dhead__name { font-weight: 800; font-size: 19px; line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.dhead__sub { color: var(--text-dim); font-size: 12.5px; margin: 5px 0 11px; }
.dcal, .dchip {
  font: inherit; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--text);
}
.dcal { cursor: pointer; }
.dhead__swap {
  display: block; margin: 10px auto 0; font: inherit; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim);
  background: none; border: none; cursor: pointer; text-decoration: underline;
}
.dhead__swap:hover { color: var(--accent); }

/* ---------- duel: stat rows (Borderlands-style) ---------- */
.duel-grid {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 6px; overflow: hidden;
  background-image: linear-gradient(rgba(38,41,46,.025) 1px, transparent 1px);
  background-size: 100% 34px;
}
.drow {
  display: grid; grid-template-columns: 1fr 150px 1fr; align-items: center; gap: 10px;
  padding: 12px 10px; border-bottom: 1px solid var(--line);
}
.drow:last-child { border-bottom: none; }
.drow__mid { text-align: center; }
.drow__label { display: block; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.drow__hint { display: block; font-size: 10.5px; color: var(--text-dim); margin-top: 2px; }

.dcell { display: flex; flex-direction: column; gap: 7px; }
.dcell--a { align-items: flex-end; text-align: right; }
.dcell--b { align-items: flex-start; text-align: left; }
.dvalrow { display: flex; align-items: baseline; gap: 6px; }
.dval { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: .01em; }
.dunit { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.darrow { font-size: 12px; font-weight: 800; white-space: nowrap; }
.dcell.is-win  .dval   { color: var(--accent); }
.dcell.is-win  .darrow { color: var(--accent); }
.dcell.is-lose .dval   { color: var(--text-dim); }
.dcell.is-lose .darrow { color: #aeb4bb; }
.dcell.is-tie  .darrow { color: var(--text-dim); }

/* Segmented Borderlands-style meter: discrete filled blocks, crisp edges */
.segbar { display: flex; gap: 3px; width: 100%; max-width: 320px; height: 16px; }
.seg {
  flex: 1 1 0; background: var(--bg-3); border: 1px solid rgba(20,22,26,.06);
  border-radius: 1px; transform-origin: center bottom;
}
.seg.is-on { animation: segPop .34s both; }
@keyframes segPop { from { opacity: 0; transform: scaleY(.35); } to { opacity: 1; transform: scaleY(1); } }

@media (max-width: 620px) {
  /* Keep the duel a true SIDE-BY-SIDE comparison — just compact it. */
  .duel-head { grid-template-columns: 1fr auto 1fr; gap: 7px; margin-bottom: 12px; }
  .duel-head__vs { width: 34px; height: 34px; font-size: 13px; }
  .dhead__stage { height: 116px; }
  .dhead__stage .gallery__main { padding: 12px; }
  .dhead__stage .gallery__main img { max-height: 92px; }
  .dhead__mark { min-width: 36px; height: 32px; font-size: 19px; padding: 0 9px 6px; }
  .dhead .gallery__thumbs { display: none; }       /* trim clutter on phones */
  .dhead__body { padding: 10px 9px 12px; }
  .dhead__name { font-size: 14px; }
  .dhead__sub { font-size: 10px; margin: 4px 0 8px; }
  .dcal, .dchip { font-size: 12px; padding: 5px 8px; }
  .dhead__barrel { font-size: 9.5px; margin-top: 5px; }
  .dinputs { grid-template-columns: 1fr; gap: 2px; padding: 8px 0 0; margin-top: 10px; }
  .dinputs dt { font-size: 9.5px; }
  .dinputs dd { font-size: 11px; }
  .dhead__actions { grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
  .gbtn { font-size: 11.5px; padding: 8px; }

  /* stat rows stay 3 columns: A | label | B */
  .duel-grid { padding: 4px 2px; }
  .drow { grid-template-columns: 1fr 56px 1fr; gap: 6px; padding: 11px 3px; }
  .dcell { gap: 5px; }
  .dcell--a { align-items: flex-end; text-align: right; }
  .dcell--b { align-items: flex-start; text-align: left; }
  .dvalrow { gap: 3px; }
  .dval { font-size: 16px; }
  .dunit { font-size: 9px; }
  .darrow { font-size: 10px; }
  .segbar { max-width: none; height: 11px; gap: 2px; }
  .drow__label { font-size: 9.5px; letter-spacing: 0; line-height: 1.1; }
  .drow__hint { font-size: 8px; margin-top: 3px; }
  .dgroup { font-size: 10px; padding: 11px 6px 3px; }
}

@media (max-width: 380px) {
  .drow { grid-template-columns: 1fr 46px 1fr; gap: 4px; }
  .dval { font-size: 14px; }
  .duel-head { gap: 5px; }
  .duel-head__vs { width: 28px; height: 28px; font-size: 11px; }
}

.explain--duel { margin-top: 18px; }

/* =============================================================================
 * Top navigation + multi-page routing + Home showcase
 * ===========================================================================*/

/* ---------- top nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(231,233,236,.82); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800; font-size: 18px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
}
.brand__mark { display: inline-flex; }
.brand__mark svg { width: 28px; height: 28px; display: block; }
.brand__word { line-height: 1; }
.topnav__tabs { display: flex; gap: 6px; }
.topnav__tabs a {
  text-decoration: none; color: var(--text-dim); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em; padding: 8px 16px; border: 1px solid transparent;
  border-radius: 2px; transition: .15s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.topnav__tabs a:hover { color: var(--text); background: var(--bg-2); }
.topnav__tabs a.is-active { color: #fff; background: var(--accent); }

/* ---------- pages ---------- */
.page[hidden] { display: none; }
.page { animation: pageIn .35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- home: hero + showcase ---------- */
.home-hero {
  display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center;
  padding: 18px 0 8px;
}
@media (min-width: 900px) { .home-hero { grid-template-columns: 1.05fr 1fr; gap: 40px; } }
.home-hero__copy { text-align: left; }
.home-hero__copy .lead__eyebrow { margin-bottom: 12px; }
.home-hero__copy h1 {
  font-family: var(--font-display); font-size: clamp(34px, 6vw, 62px); line-height: .98;
  letter-spacing: -.01em; margin: 0 0 14px; font-weight: 800; text-transform: uppercase;
}
.home-hero__copy p { color: var(--text-dim); font-size: 17px; max-width: 520px; margin: 0 0 22px; }

/* showcase stage with crossfading bright builds */
.showcase {
  position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, #2a2e35, #14161a 70%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; opacity: 0; transform: scale(1.04);
  transition: opacity .9s ease, transform 5s ease; pointer-events: none;
}
.slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.slide__img {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 8% 10% 22%;
}
.slide__img img { width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.slide__glow {
  position: absolute; left: 50%; top: 46%; width: 70%; height: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(closest-side, rgba(209,43,43,.35), transparent 70%); filter: blur(8px);
}
.slide__info { position: relative; z-index: 2; }
.showcase__series {
  display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
}
.showcase__name {
  color: #fff; font-size: clamp(20px, 3.2vw, 28px); font-weight: 800; margin: 10px 0 4px;
  text-transform: uppercase; line-height: 1.05; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.showcase__price { color: #e7e9ec; font-weight: 700; font-size: 16px; }
.showcase__dots { position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; gap: 6px; }
.showcase__dot {
  width: 26px; height: 5px; border: none; padding: 0; cursor: pointer; border-radius: 1px;
  background: rgba(255,255,255,.35); transition: .2s;
}
.showcase__dot.is-active { background: #fff; }

.home-strip {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px;
}

/* =============================================================================
 * Commerce: buy buttons, cart button, drawer, customize modal
 * ===========================================================================*/

/* ---------- small build buttons ---------- */
.gbtn {
  font-family: var(--font-display); cursor: pointer; font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .03em; padding: 9px 10px; border-radius: 2px;
  transition: .15s; border: 1px solid var(--line); white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.gbtn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.gbtn--solid:hover { background: #b21f1f; border-color: #b21f1f; }
.gbtn--ghost { background: var(--bg-2); color: var(--text); }
.gbtn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.gcard__compare {
  width: 100%; margin-top: 12px; cursor: pointer; font-family: var(--font-display);
  font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  padding: 8px; border-radius: 2px; background: var(--bg-3); color: var(--text-dim);
  border: 1px solid var(--line); transition: .15s;
}
.gcard__compare:hover { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.gcard.is-picked .gcard__compare { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.gcard__buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

/* duel header extras */
.dhead__barrel { display: block; font-size: 11px; color: var(--text-dim); margin-top: 6px; font-weight: 600; }
.dhead__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

/* duel group subheaders */
.dgroup {
  font-family: var(--font-display); font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text-dim); padding: 12px 10px 4px; border-bottom: 1px solid var(--line);
}
.dgroup:first-child { padding-top: 6px; }

/* ---------- cart button ---------- */
.cartbtn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; text-transform: uppercase;
  letter-spacing: .04em; color: #fff; background: var(--accent-2); border: 1px solid var(--accent-2);
  padding: 8px 14px; border-radius: 2px; transition: .15s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.cartbtn:hover { background: #000; }
.cartbtn__count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 800;
}
.cartbtn__count.is-empty { background: rgba(255,255,255,.22); }

/* ---------- overlay + drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(16,18,21,.5); opacity: 0; visibility: hidden;
  transition: opacity .25s; z-index: 60; backdrop-filter: blur(2px);
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); z-index: 70;
  background: var(--bg); border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(0,0,0,.2);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.16,1,.3,1);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h3 { margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 18px; }
.drawer__x { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text-dim); line-height: 1; }
.drawer__x:hover { color: var(--accent); }
.drawer__body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.drawer__empty { text-align: center; color: var(--text-dim); padding: 50px 16px; }

.litem { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.litem__media { width: 64px; height: 52px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: center; overflow: hidden; }
.litem__media img { width: 100%; height: 100%; object-fit: contain; }
.litem__name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.litem__cfg { font-size: 11.5px; color: var(--text-dim); margin: 3px 0 8px; }
.litem__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.litem__price { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.litem__rm { background: none; border: none; font-size: 20px; color: var(--text-dim); cursor: pointer; line-height: 1; align-self: start; }
.litem__rm:hover { color: var(--accent); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.qty button { width: 28px; height: 28px; border: none; background: var(--bg-2); cursor: pointer; font-size: 16px; color: var(--text); }
.qty button:hover { background: var(--accent); color: #fff; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty--sm button { width: 24px; height: 24px; font-size: 14px; }

.drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px; }
.drawer__totrow { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-family: var(--font-display); }
.drawer__totrow span:first-child { text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 700; }
.drawer__subtotal { font-size: 24px; font-weight: 800; }
.drawer__checkout { width: 100%; opacity: .6; cursor: not-allowed; }
.drawer__note { font-size: 12px; color: var(--text-dim); margin: 12px 0 0; text-align: center; }
.drawer__note a { color: var(--accent); }

/* ---------- customize modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.modal.is-open { display: flex; }
.modal__card {
  position: relative; width: min(560px, 100%); background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 22px; box-shadow: var(--shadow); margin: auto;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.modal__x { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text-dim); }
.modal__x:hover { color: var(--accent); }
.modal__head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.modal__media { width: 96px; height: 70px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.modal__media img { width: 100%; height: 100%; object-fit: contain; }
.modal__eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.modal__title { font-family: var(--font-display); margin: 3px 0; font-size: 22px; text-transform: uppercase; line-height: 1.05; }
.modal__base { color: var(--text-dim); font-size: 13px; font-weight: 600; }
.optgrp { margin-bottom: 14px; }
.optgrp__label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 7px; }
.optgrp__row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  font: inherit; cursor: pointer; font-weight: 600; font-size: 13px; padding: 8px 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; transition: .14s; color: var(--text);
}
.opt em { font-style: normal; color: var(--text-dim); font-size: 11.5px; }
.opt:hover { border-color: #b9bec5; }
.opt.is-on { border-color: var(--accent); background: rgba(209,43,43,.06); color: var(--accent); }
.opt.is-on em { color: var(--accent); }
.modal__foot { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal__add { flex: 1; text-align: center; }

@media (max-width: 480px) { .modal__head { flex-direction: column; text-align: center; } }

/* ---------- duel: subtle ballistic-inputs readout ---------- */
.dinputs {
  margin: 12px 0 0; padding: 10px 0 2px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px;
}
.dinputs__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dinputs dt { font-size: 10.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.dinputs dd {
  margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--text);
}
@media (max-width: 480px) { .dinputs { grid-template-columns: 1fr; } }

/* =============================================================================
 * Image galleries (duel header, cards, customize modal)
 * ===========================================================================*/

/* ---------- duel header gallery ---------- */
.gallery { margin-bottom: 8px; }
.gallery__main {
  height: 110px; display: grid; place-items: center; padding: 4px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line);
  border-radius: 8px;
}
.gallery__main img, .gallery__main svg { max-width: 92%; max-height: 100px; object-fit: contain; }
.gallery__thumbs {
  display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; justify-content: center;
}
.gallery__thumbs::-webkit-scrollbar { height: 4px; }
.gallery__thumbs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.gthumb {
  flex: 0 0 auto; width: 42px; height: 34px; padding: 2px; cursor: pointer; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 4px; transition: .14s; overflow: hidden;
}
.gthumb img { width: 100%; height: 100%; object-fit: contain; }
.gthumb:hover { border-color: #b9bec5; }
.gthumb.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ---------- card photo-count badge ---------- */
.gcard__media { position: relative; }
.gcard__media img { transition: opacity .2s; }
.gcard__photos {
  position: absolute; bottom: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: #fff; background: rgba(20,22,26,.62);
  padding: 2px 7px 2px 6px; border-radius: 3px; backdrop-filter: blur(2px);
}
.gcard__photos::before {
  content: ""; width: 9px; height: 8px; border: 1.5px solid #fff; border-radius: 1.5px;
  box-shadow: 2px 2px 0 -1px rgba(255,255,255,.6);
}

/* ---------- modal gallery ---------- */
.mgal { flex: 0 0 auto; width: 130px; }
.mgal__main {
  width: 130px; height: 92px; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 4px; display: grid; place-items: center; overflow: hidden;
}
.mgal__main img { width: 100%; height: 100%; object-fit: contain; }
.mgal__thumbs { display: flex; gap: 5px; margin-top: 6px; overflow-x: auto; padding-bottom: 2px; }
.mgal__thumbs::-webkit-scrollbar { height: 4px; }
.mgal__thumbs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.mthumb {
  flex: 0 0 auto; width: 34px; height: 28px; padding: 2px; cursor: pointer; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden; transition: .14s;
}
.mthumb img { width: 100%; height: 100%; object-fit: contain; }
.mthumb.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
@media (max-width: 480px) { .mgal, .mgal__main { width: 100%; } }

/* ---------- accessory card ---------- */
.acard__add { width: 100%; margin-top: 14px; }
.gcard--acc .gcard__name { min-height: 38px; }

/* ---------- pinned, always-visible "Ammo & Gear" tab ---------- */
.tabs { position: relative; }
.tab--gear {
  position: sticky; right: 0; margin-left: 10px; z-index: 2;
  background: var(--accent-2); color: #fff; border-color: var(--accent-2);
}
.tab--gear .tab__count { background: var(--accent); color: #fff; }
.tab--gear:hover { background: #000; color: #fff; }
.tab--gear.is-active { background: var(--accent); border-color: var(--accent); }
.tab--gear.is-active .tab__count { background: rgba(255,255,255,.22); }
/* fade the scrolling tabs out beneath the pinned one */
.tab--gear::before {
  content: ""; position: absolute; left: -22px; top: -4px; bottom: -4px; width: 22px;
  background: linear-gradient(to right, transparent, var(--bg) 80%); pointer-events: none;
}

/* =============================================================================
 * Ammo & Gear page + Contact page + responsive top nav
 * ===========================================================================*/

/* ---------- gear page ---------- */
.gear-cat {
  font-family: var(--font-display); font-size: 14px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text); margin: 26px 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--accent); display: flex; align-items: center; gap: 10px;
}
.gear-cat:first-child { margin-top: 4px; }
.gear-cat span {
  font-size: 11px; background: var(--bg-3); color: var(--text-dim); padding: 2px 8px; border-radius: 999px;
}
.gear-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px;
}
.gear-grid .gcard { flex: initial; width: auto; }   /* override rail sizing in a grid */

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.contact-info { display: grid; gap: 12px; }
.cc {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px;
  border-left: 3px solid var(--accent);
}
.cc__label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.cc__value { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 4px 0 2px; }
.cc__value a { color: var(--text); text-decoration: none; }
.cc__value a:hover { color: var(--accent); }
.cc__note { font-size: 12.5px; color: var(--text-dim); }
.contact-social { padding-top: 4px; }
.csocial-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.csocial {
  font-weight: 700; font-size: 13px; text-decoration: none; color: #fff; background: var(--accent-2);
  padding: 7px 14px; border-radius: 3px;
}
.csocial:hover { background: #000; }

.contact-form {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.contact-form h3 { font-family: var(--font-display); margin: 0 0 4px; font-size: 20px; text-transform: uppercase; }
.contact-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--text); text-transform: none; letter-spacing: normal;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button { margin-top: 4px; cursor: pointer; }
.contact-form__note { font-size: 12px; color: var(--text-dim); margin: 2px 0 0; }

/* ---------- responsive top nav ---------- */
@media (max-width: 600px) {
  .topnav { padding: 10px 14px; gap: 8px; flex-wrap: nowrap; }
  .brand { font-size: 15px; }
  .topnav__tabs { gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .topnav__tabs::-webkit-scrollbar { display: none; }
  .topnav__tabs a { padding: 7px 10px; font-size: 12.5px; white-space: nowrap; }
  .cartbtn { padding: 7px 11px; font-size: 12.5px; flex: 0 0 auto; }
}

/* =============================================================================
 * Card button grid + Product detail pop-out
 * ===========================================================================*/

/* 2x2 button grid on gun cards — Details sits alongside the rest, no crowding */
.gcard__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.gcard__btns .gbtn { width: 100%; }
.gcard__duelbtn.is-on { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }

/* ---------- product pop-out ---------- */
.pm-overlay {
  position: fixed; inset: 0; background: rgba(16,18,21,.6); opacity: 0; visibility: hidden;
  transition: opacity .25s; z-index: 85; backdrop-filter: blur(3px);
}
.pm-overlay.is-open { opacity: 1; visibility: visible; }
.pm {
  position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start;
  justify-content: center; padding: 24px 16px; overflow-y: auto;
}
.pm.is-open { display: flex; }
.pm__card {
  position: relative; width: min(800px, 100%); margin: auto; background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.pm__x {
  position: absolute; top: 10px; right: 12px; z-index: 4; width: 34px; height: 34px; border: none;
  border-radius: 3px; background: rgba(0,0,0,.45); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.pm__x:hover { background: var(--accent); }
.pm__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pm__grid { grid-template-columns: 1.04fr 1fr; } }

/* dark image stage so the gun commands the popout */
.pm__media { background: radial-gradient(120% 120% at 50% 8%, #2c313a, #101216 76%); padding: 24px; }
.pm__media .gallery { margin: 0; }
.pm__media .gallery__main { background: none; border: none; border-radius: 0; height: 300px; padding: 8px; }
.pm__media .gallery__main img { max-height: 290px; max-width: 96%; filter: drop-shadow(0 16px 26px rgba(0,0,0,.6)); }
.pm__media .gallery__thumbs { margin-top: 14px; justify-content: center; }
.pm__media .gthumb { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.pm__media .gthumb.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.pm__info { padding: 24px; }
.pm__eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pm__title { font-family: var(--font-display); font-size: clamp(22px, 4vw, 28px); text-transform: uppercase; line-height: 1.02; margin: 4px 0 6px; }
.pm__price { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--accent); margin-bottom: 16px; }
.pm__spec { width: 100%; border-collapse: collapse; }
.pm__spec th, .pm__spec td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pm__spec th { color: var(--text-dim); font-weight: 600; width: 44%; }
.pm__spec td { font-weight: 700; }
.pm__ballhead { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin: 18px 0 2px; }
.pm__spec--ball td { color: var(--accent); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pm__actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 20px; }
.pm__contact { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 700; font-size: 13px; text-decoration: none; }
.pm__contact:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .pm__media .gallery__main { height: 210px; }
  .pm__actions { grid-template-columns: 1fr; }
}

/* =============================================================================
 * Armory search + filter/sort bar
 * ===========================================================================*/
.armory-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 4px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.search {
  flex: 1 1 240px; min-width: 0; font: inherit; font-size: 14px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg-2); color: var(--text);
}
.search:focus { outline: none; border-color: var(--accent); }
.search::placeholder { color: var(--text-dim); }
.armory-tools__selects { display: flex; gap: 8px; flex-wrap: wrap; }
.armory-tools select {
  font: inherit; font-size: 13px; font-weight: 600; padding: 9px 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 3px; background: var(--bg-2); color: var(--text);
}
.armory-tools select:focus { outline: none; border-color: var(--accent); }
.armory-tools__meta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.result-count { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); white-space: nowrap; }

/* carousel -> wrap grid when filtering/sorting is active */
.rail.rail--grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  overflow: visible; scroll-snap-type: none; padding: 6px 0 8px;
}
.rail.rail--grid .gcard { flex: initial; width: auto; }
.carousel.is-filtered .carousel__nav { display: none; }

@media (max-width: 600px) {
  .armory-tools__meta { margin-left: 0; width: 100%; justify-content: space-between; }
  .armory-tools__selects { width: 100%; }
  .armory-tools select { flex: 1 1 auto; }
}

/* ---------- restricted states: clean bulleted list (no pills) ---------- */
.state-list {
  width: 100%; margin: 0; padding-left: 20px; list-style: disc;
  columns: 2; column-gap: 30px;
}
.state-list li { font-size: 14px; margin: 0 0 7px; break-inside: avoid; }
.state-list li::marker { color: var(--accent); }
@media (max-width: 480px) { .state-list { columns: 1; } }

/* =============================================================================
 * Instagram band (primary social on the home page)
 * ===========================================================================*/
.insta__head { text-align: center; max-width: 640px; margin: 0 auto 20px; }
.insta__eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px;
}
.ig-glyph { width: 18px; height: 18px; }
.ig-follow {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; text-decoration: none;
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 15px;
  text-transform: uppercase; letter-spacing: .03em; padding: 12px 22px; border-radius: 3px;
  background: linear-gradient(95deg, #f58529, #dd2a7b 55%, #8134af);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: filter .15s, transform .15s;
}
.ig-follow:hover { filter: brightness(1.07); transform: translateY(-1px); }
.ig-follow .ig-glyph { width: 20px; height: 20px; }

.ig-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 960px; margin: 0 auto;
}
.ig-tile {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px;
  background: var(--bg-3); border: 1px solid var(--line);
}
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ig-tile:hover img { transform: scale(1.06); }
.ig-tile__o {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: rgba(16,18,21,.35); opacity: 0; transition: opacity .18s;
}
.ig-tile__o .ig-glyph { width: 26px; height: 26px; }
.ig-tile:hover .ig-tile__o { opacity: 1; }
@media (max-width: 720px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================================
 * Photo backdrop toggle (Photo / White / Black via transparent cutouts)
 * ===========================================================================*/
.photobg { display: inline-flex; align-items: center; gap: 2px; }
.photobg__label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-dim); margin-right: 6px;
}
.photobg button {
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 7px 11px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text-dim);
  border-right-width: 0;
}
.photobg button:first-of-type { border-radius: 3px 0 0 3px; }
.photobg button:last-of-type { border-radius: 0 3px 3px 0; border-right-width: 1px; }
.photobg button:hover { color: var(--text); }
.photobg button.is-on { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }

/* When a backdrop mode is active, override the image stages site-wide.
 * Cutouts are transparent PNGs, so the chosen color shows cleanly behind them. */
body.pbg-white .gcard__media,
body.pbg-white .dhead__stage,
body.pbg-white .pm__media,
body.pbg-white .slide__img,
body.pbg-white .mgal__main,
body.pbg-white .gallery__main { background: #f4f5f6 !important; }
body.pbg-white .dhead__stage .gallery__main,
body.pbg-white .pm__media .gallery__main { background: none !important; }
body.pbg-white .dhead__glow, body.pbg-white .slide__glow { display: none; }
body.pbg-white .dhead__stage .gallery__main img,
body.pbg-white .pm__media .gallery__main img { filter: none; }

body.pbg-black .gcard__media,
body.pbg-black .dhead__stage,
body.pbg-black .pm__media,
body.pbg-black .slide__img,
body.pbg-black .mgal__main,
body.pbg-black .gallery__main { background: #0e1013 !important; }
body.pbg-black .dhead__stage .gallery__main,
body.pbg-black .pm__media .gallery__main { background: none !important; }

/* Maryland roster — positive confirmation callout */
.callout--ok strong { color: var(--accent); }

/* Shipping stance text in the compliance panel */
.ship-note { margin: 0; font-size: 14px; color: var(--text); line-height: 1.55; }

/* ---------- 90-day layaway: trust-strip highlight + hero flag ---------- */
.badge--hl { color: var(--accent); font-weight: 800; }

.layaway-flag {
  display: inline-flex; align-items: center; gap: 11px; margin-top: 20px;
  padding: 8px 8px 8px 8px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 4px; box-shadow: var(--shadow);
}
.layaway-flag__chip {
  display: inline-block; background: var(--accent); color: #fff; font-family: var(--font-display);
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.layaway-flag__text { font-size: 14px; font-weight: 600; color: var(--text); padding-right: 6px; }
@media (max-width: 480px) {
  .layaway-flag { width: 100%; }
  .layaway-flag__text { font-size: 13px; }
}

/* =============================================================================
 * Policies page + buy-moment layaway note
 * ===========================================================================*/
.layaway-policy {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 6px; padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 26px;
}
.layaway-policy__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.layaway-policy__tag { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.layaway-policy__terms { margin: 12px 0 18px; padding-left: 20px; }
.layaway-policy__terms li { margin: 0 0 8px; font-size: 14px; }
.layaway-policy__terms li::marker { color: var(--accent); }

.policy-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .policy-grid { grid-template-columns: 1fr 1fr; } }
.policy { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
.policy__title { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; margin: 0 0 6px; }
.policy__body { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* buy-moment layaway note (cart drawer + customize modal) */
.layaway-note {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px;
  background: rgba(209,43,43,.06); border: 1px solid rgba(209,43,43,.25); border-radius: 4px;
  font-size: 13px; color: var(--text);
}
.layaway-note--modal { margin: 16px 0 0; }
.layaway-note__chip {
  flex: 0 0 auto; background: var(--accent); color: #fff; font-family: var(--font-display);
  font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
}
.layaway-note a { color: var(--accent); font-weight: 700; }

/* ---------- legal document (returns policy) ---------- */
.legal-doc {
  margin-top: 26px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 24px 26px; max-width: 820px;
}
.legal-doc__title { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; margin: 0 0 2px; }
.legal-doc__sub { color: var(--text-dim); font-size: 13px; font-weight: 700; margin: 0 0 14px; }
.legal-doc__h {
  font-family: var(--font-display); font-size: 15px; text-transform: uppercase; letter-spacing: .04em;
  margin: 20px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text);
}
.legal-doc p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin: 0 0 10px; }
.legal-doc ul { margin: 0 0 12px; padding-left: 20px; }
.legal-doc li { font-size: 14px; color: var(--text-dim); line-height: 1.55; margin: 0 0 6px; }
.legal-doc li::marker { color: var(--accent); }
.legal-doc a { color: var(--accent); font-weight: 600; }
