:root {
  --bg: #111310;
  --bg-2: #161914;
  --surface: #1b1e19;
  --surface-2: #23271f;
  --line: #2f342b;
  --line-2: #3d4337;
  --text: #ecebe4;
  --muted: #9da093;
  --accent: #d9a14b;
  --accent-ink: #1b1406;
  --accent-soft: rgba(217, 161, 75, .14);
  --danger: #e2674a;
  --radius: 14px;
  --radius-sm: 9px;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --topbar: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.no-scroll { overflow: hidden; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: .01em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(36px, 5vw, 64px); text-transform: uppercase; }
h2 { font-size: 24px; text-transform: uppercase; }
h3 { font-size: 18px; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.lead { font-size: 17px; color: #c9c9bf; max-width: 56ch; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons & Chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface-2); font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: #59604f; background: #2a2f25; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #e6b263; border-color: #e6b263; }
.btn-ghost { background: transparent; }
.btn-small { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(20, 22, 18, .7); font-size: 13px; font-weight: 500; backdrop-filter: blur(6px);
}
.chip:hover { border-color: #59604f; }
.chip.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); display: inline-grid; place-items: center; font-size: 14px; }
.icon-btn:hover { border-color: var(--accent); }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tag-on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.link-arrow { color: var(--accent); font-weight: 600; font-size: 14px; }
.link-arrow::after { content: ' →'; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar);
  display: flex; align-items: center; gap: 24px; padding: 0 24px;
  background: rgba(17, 19, 16, .86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px/1 var(--head); letter-spacing: .06em; }
.brand svg { width: 28px; height: 28px; color: var(--accent); }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 14px; color: #c8c8bf; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current] { color: var(--accent); background: var(--accent-soft); }
.cart-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; }
.cart-btn svg { width: 21px; height: 21px; }
.cart-btn.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.15); } }
.badge { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.badge.is-empty { display: none; }

/* ---------- Pages ---------- */
.page { display: none; }
.page.is-active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Home ---------- */
.home { max-width: 1240px; margin: 0 auto; padding: 0 24px 80px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: calc(100vh - var(--topbar) - 40px); padding: 40px 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.hero-facts { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.hero-facts strong { display: block; font: 700 34px/1 var(--head); color: var(--text); }
.hero-figure {
  position: relative; height: min(76vh, 720px); border-radius: 24px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 38%, #343a2f 0%, #1a1d17 62%, #141612 100%);
  border: 1px solid var(--line);
}
.hero-figure::before, .stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
}
.hero-figure svg { position: relative; height: 100%; width: 100%; padding: 28px 0 8px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 64px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-no { font: 700 14px/1 var(--head); color: var(--accent); letter-spacing: .1em; }
.feature h3 { font-size: 26px; text-transform: uppercase; margin: 14px 0 10px; }
.feature p { margin: 0; color: var(--muted); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }

/* ---------- Builder ---------- */
.builder-grid {
  display: grid; grid-template-columns: 360px minmax(0, 1fr) 330px; gap: 16px;
  padding: 16px; height: calc(100vh - var(--topbar)); min-height: 640px;
}
.picker { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.slot-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
.slot-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px 8px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--bg-2);
  font-size: 11.5px; font-weight: 500; color: var(--muted);
}
.slot-tab svg { width: 22px; height: 22px; }
.slot-tab:hover { color: var(--text); border-color: var(--line-2); }
.slot-tab.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.slot-tab.is-filled:not(.is-active) { color: var(--text); }
.slot-tab .dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface); }
.picker-head { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 16px 8px; }
.item-list { overflow-y: auto; padding: 4px 12px 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.item-card { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); transition: border-color .15s; }
.item-card:hover { border-color: var(--line-2); }
.item-card.is-equipped { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.item-main { display: grid; grid-template-columns: 92px 1fr; gap: 12px; width: 100%; padding: 10px; border: 0; background: none; text-align: left; }
.item-thumb { width: 92px; height: 92px; border-radius: 8px; background: radial-gradient(circle at 50% 40%, #30352b, #1b1e18); display: grid; place-items: center; overflow: hidden; }
.item-thumb svg { width: 100%; height: 100%; }
.item-thumb .thumb-weapon { width: 92%; }
.item-body h3 { font-size: 17px; margin-bottom: 4px; }
.item-body p { margin: 0; font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.item-foot { display: flex; align-items: center; gap: 10px; padding: 0 10px 10px; flex-wrap: wrap; }
.item-foot .sw-row { margin-right: auto; }
.link-3d, .link-remove { font-size: 12.5px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0; }
.link-remove { color: var(--muted); }
.link-remove:hover { color: var(--danger); }

.sw-row { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid var(--line-2); overflow: hidden; background: none; transition: transform .1s, border-color .1s; }
.sw svg { width: 100%; height: 100%; display: block; }
.sw:hover { transform: scale(1.1); }
.sw.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent); }
.sw-lg .sw { width: 36px; height: 36px; }

.stage {
  position: relative; display: flex; flex-direction: column; min-height: 0; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #353b30 0%, #1c1f19 58%, #141612 100%); border: 1px solid var(--line);
}
.stage-toolbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; font-size: 13px; flex-wrap: wrap; }
.theme-row { display: flex; gap: 6px; }
.stage-figure { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 4px 0; }
.stage-figure svg { height: 100%; max-width: 100%; }
.stage-hint { position: relative; text-align: center; margin: 0; font-size: 12px; color: var(--muted); }
.stage-actions { position: relative; display: flex; justify-content: center; gap: 8px; padding: 12px 14px 16px; flex-wrap: wrap; }

.figure .layer, .figure .layer-base { transition: filter .15s; }
.figure.is-interactive { cursor: pointer; }
.figure.is-interactive .layer:hover { filter: brightness(1.18); }
.figure .layer.is-active { filter: drop-shadow(0 0 2px var(--accent)) drop-shadow(0 0 7px rgba(217,161,75,.55)); }

.summary { display: flex; flex-direction: column; gap: 12px; padding: 18px; overflow-y: auto; }
.summary-list { list-style: none; margin: 0 -6px; padding: 0; display: flex; flex-direction: column; }
.sum-row { display: flex; align-items: center; border-radius: 8px; }
.sum-row:hover { background: var(--surface-2); }
.sum-row > button:first-child { flex: 1; display: flex; align-items: center; gap: 10px; padding: 7px 6px; border: 0; background: none; text-align: left; min-width: 0; }
.sum-row.is-empty > button { justify-content: space-between; }
.sum-swatch { flex: none; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.sum-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sum-slot { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sum-name { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum-price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.sum-x { flex: none; width: 26px; height: 26px; margin-right: 4px; border-radius: 50%; border: 0; background: none; color: var(--muted); font-size: 11px; opacity: 0; }
.sum-row:hover .sum-x, .sum-x:focus-visible { opacity: 1; }
.sum-x:hover { color: var(--danger); background: rgba(226,103,74,.12); }
.total { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.total span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.total strong { font: 700 30px/1 var(--head); }
.save-row { display: flex; gap: 8px; }
.save-row input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 13px; }
.save-row input:focus { outline: none; border-color: var(--accent); }

/* ---------- Weapons ---------- */
.weapons-grid {
  display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 16px;
  padding: 16px; height: calc(100vh - var(--topbar)); min-height: 600px;
}
.weapon-list { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.panel-title { padding: 4px 4px 6px; }
.weapon-card { display: grid; grid-template-columns: 88px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); }
.weapon-card:hover { border-color: var(--line-2); }
.weapon-card.is-active { border-color: var(--accent); background: var(--accent-soft); }
.weapon-card h3 { font-size: 16px; }
.weapon-card .muted { font-size: 11.5px; }
.weapon-card strong { font-size: 13px; }
.weapon-thumb { height: 52px; display: grid; place-items: center; }
.weapon-thumb svg { width: 100%; height: 100%; }
.viewer {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 45%, #3a4034 0%, #1d2019 60%, #121410 100%);
}
.viewer-canvas { position: absolute; inset: 0; }
.viewer-canvas canvas { width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.viewer-msg { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; color: var(--muted); font-size: 14px; pointer-events: none; transition: opacity .3s; }
.viewer-msg.is-hidden { opacity: 0; }
.viewer-fallback { width: min(80%, 520px); }
.viewer-tools { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.viewer-hint { position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; font-size: 12px; color: var(--muted); pointer-events: none; }
.weapon-info { padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.weapon-info .eyebrow { margin: 0; }
.weapon-name { font-size: 40px; }
.weapon-price { margin: 0; font: 700 30px/1 var(--head); color: var(--accent); }
.weapon-info > .muted { margin: 0; }
.label { font: 600 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.label span { color: var(--text); }
.specs { margin: 8px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.specs div { background: var(--bg-2); padding: 10px 12px; }
.specs dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.specs dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 500; }

.credit { margin: auto 0 0; padding-top: 8px; font-size: 11.5px; color: var(--muted); }
.credit a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Showcase ---------- */
.showcase { max-width: 1240px; margin: 0 auto; padding: 40px 24px 80px; }
.page-head { margin-bottom: 24px; }
.page-head .lead { margin: 12px 0 0; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sc-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.sc-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.sc-card-fig { height: 340px; border: 0; padding: 18px 0 6px; background: radial-gradient(ellipse at 50% 40%, #343a2f 0%, #1a1d17 70%); }
.sc-card-fig svg { height: 100%; width: 100%; transition: transform .3s; }
.sc-card:hover .sc-card-fig svg { transform: scale(1.03); }
.sc-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sc-card-body h3 { font-size: 22px; text-transform: uppercase; }
.sc-card-body p { margin: 0; font-size: 13px; flex: 1; }
.sc-tags { display: flex; gap: 6px; }
.sc-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.sc-card-foot strong { font: 700 22px/1 var(--head); }
.sc-card-foot > div { display: flex; gap: 6px; align-items: center; }
.empty-state { grid-column: 1 / -1; padding: 60px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }

/* ---------- Modal ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 50; visibility: hidden; }
.modal.is-open, .drawer.is-open { visibility: visible; }
.modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 7, 5, .72); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.is-open .modal-backdrop, .is-open .drawer-backdrop { opacity: 1; }
.modal-box {
  position: absolute; inset: 24px; margin: auto; max-width: 1180px; max-height: 920px;
  display: grid; grid-template-rows: auto 1fr auto; border-radius: 22px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 46%, #353b30 0%, #1a1d17 55%, #121410 100%); border: 1px solid var(--line-2);
  opacity: 0; transform: scale(.98); transition: opacity .2s, transform .2s;
}
.is-open .modal-box { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.sc-head { padding: 28px 32px 0; text-align: center; }
.sc-head h2 { font-size: clamp(30px, 4vw, 46px); }
.sc-head p.muted { margin: 6px 0 0; }
.sc-figure { min-height: 0; padding: 10px 20px; color: var(--muted); }
.sc-figure svg { width: 100%; height: 100%; }
.callout-dot { fill: var(--accent); stroke: #121410; stroke-width: 2; }
.callout-name { fill: var(--text); font: 600 15px var(--body); }
.callout-sub { fill: var(--muted); font: 500 12px var(--body); }
.sc-list { display: none; list-style: none; margin: 0; padding: 0 20px; }
.sc-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sc-list li > span:nth-child(2) { flex: 1; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px 24px; flex-wrap: wrap; }
.sc-foot .total { border: 0; padding: 0; gap: 14px; justify-content: flex-start; }
.sc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Drawer ---------- */
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .25s ease;
}
.is-open .drawer-panel { transform: none; }
.drawer-panel header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-panel footer { padding: 16px 20px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.drawer-panel footer .total { border: 0; padding: 0; }
.cart-list { list-style: none; margin: 0; padding: 8px 20px; overflow-y: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 64px; height: 64px; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.cart-thumb svg { width: 100%; height: 100%; }
.cart-info { display: flex; flex-direction: column; font-size: 13.5px; }
.cart-info .muted { font-size: 12px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); line-height: 1; }
.cart-price { font-size: 14px; }
.cart-list .empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---------- Toast & Footer ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px);
  padding: 12px 20px; border-radius: 999px; background: #ecebe4; color: #161812; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.footer { padding: 28px 24px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; }
.footer p { margin: 4px 0; }
body[data-page="builder"] .footer, body[data-page="waffen"] .footer { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .builder-grid { grid-template-columns: 320px minmax(0, 1fr) 300px; }
  .weapons-grid { grid-template-columns: 260px minmax(0, 1fr) 310px; }
}
@media (max-width: 1099px) {
  .builder-grid, .weapons-grid { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .stage { order: -1; height: 78vh; min-height: 520px; }
  .picker { max-height: none; }
  .item-list { overflow: visible; }
  .slot-tabs { grid-template-columns: repeat(5, 1fr); }
  .viewer { order: -1; height: 62vh; min-height: 380px; }
  .weapon-list { flex-direction: row; overflow-x: auto; padding: 10px; }
  .weapon-list .panel-title { display: none; }
  .weapon-card { flex: none; width: 240px; }
  body[data-page="builder"] .footer, body[data-page="waffen"] .footer { display: block; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-figure { height: 70vh; order: -1; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 16px; gap: 12px; backdrop-filter: none; background: var(--bg); }
  .brand em { display: none; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-around; margin: 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(17,19,16,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .nav a { font-size: 13px; padding: 8px 10px; }
  .cart-btn { margin-left: auto; }
  body { padding-bottom: 64px; }
  .toast { bottom: 84px; }
  .home, .showcase { padding-left: 16px; padding-right: 16px; }
  .builder-grid, .weapons-grid { padding: 10px; gap: 10px; }
  .slot-tabs { grid-template-columns: repeat(3, 1fr); }
  .stage { height: 70vh; min-height: 460px; }
  .modal-box { inset: 0; border-radius: 0; max-height: none; overflow-y: auto; grid-template-rows: auto auto auto auto; }
  .sc-figure { height: 56vh; }
  .sc-figure .callout { display: none; }
  .sc-list { display: block; }
  .sc-foot { padding: 16px 20px 28px; }
  .sc-head { padding: 24px 56px 0 20px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
