/* Equipment and inventory: a shared armory, with room for artwork and readable stats. */
.inventory-empty-slot { display: none; }
.gear-page.armory-page {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.25fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 18px;
  width: 100%;
  max-width: 1640px;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 24px;
  overflow: hidden;
  color: #e9dfcf;
}
.armory-page .armory-hero {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid #584032;
  border-radius: 12px;
  background: radial-gradient(ellipse at 0 0, #77502c29, transparent 65%), linear-gradient(110deg, #251c17, #161211);
  box-shadow: inset 0 1px #c7a7790e, 0 8px 24px #0002;
}
.armory-heading { min-width: 0; flex: 1; }
.armory-heading .eyebrow { color: #bda079; font-size: 11px; letter-spacing: .18em; }
.armory-heading h2 { margin: 5px 0 7px; color: #f0e0c7; font-size: 30px; line-height: 1.1; }
.armory-heading p { color: #b5a493; font-size: 13px; line-height: 1.5; }
.armory-stats { display: grid; grid-template-columns: repeat(4, minmax(68px, 1fr)); gap: 0; }
.armory-stat { display: grid; gap: 7px; padding: 4px 20px; border-left: 1px solid #5b433a77; }
.armory-stat small { color: #bca992; font-size: 11px; }
.armory-stat strong { color: #f0d8ad; font-size: 23px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.armory-page .armory-build { min-height: 38px; padding: 8px 14px; border-color: #765c3d; background: #3c2b1d66; color: #ebd7b8; font-size: 12px; white-space: nowrap; }
.armory-page .armory-equipped, .armory-page .armory-storage {
  padding: 20px;
  border: 1px solid #49372e;
  border-radius: 12px;
  background: linear-gradient(150deg, #201916, #151211 70%);
  box-shadow: inset 0 1px #f0d5a607;
  min-width: 0;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #624936 transparent;
}
.armory-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.armory-panel-head h3, .armory-sets h3 { color: #e3d2ba; font-family: var(--title); font-size: 15px; }
.armory-panel-head > span { color: #a79380; font-size: 11px; white-space: nowrap; }
.armory-page .equipment-grid { gap: 10px; }
.armory-page .equipment-grid .armory-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 106px;
  padding: 12px;
  text-align: left;
  border: 1px solid #44352e;
  border-left: 2px solid color-mix(in srgb, var(--item-color), #40332c 35%);
  border-radius: 8px;
  background: radial-gradient(ellipse at 0 50%, color-mix(in srgb, var(--item-color), transparent 94%), transparent 80%), #171311;
  transition: border-color .15s, background .15s, transform .15s;
}
.armory-page .armory-slot:hover { border-color: var(--item-color); background-color: #2c221b; transform: translateY(-1px); }
.armory-page .armory-item-art { position: relative; display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 64px; }
.armory-page .armory-item-art .equipment-art { width: 56px; height: 56px; filter: drop-shadow(0 4px 4px #0009); }
.armory-page .armory-item-art .slot-ghost { width: 46px; height: 46px; opacity: .18; filter: grayscale(1); object-fit: contain; }
.armory-page .armory-item-art .armory-enhance { position: absolute; right: -1px; bottom: -2px; padding: 2px 5px; border: 1px solid #a7824970; border-radius: 4px; background: #302315; color: #f0cf8d; font: 700 11px/1.3 var(--font); font-style: normal; }
.armory-item-copy { display: flex; flex-direction: column; min-width: 0; gap: 5px; }
.armory-page .armory-slot .armory-item-copy > small { display: block; margin: 0; font-size: 11px; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: #a8947c; }
.armory-page .armory-slot .armory-item-copy > strong { display: block; font-size: 13px; line-height: 1.3; font-weight: 600; color: #e7dac7; overflow-wrap: anywhere; }
.armory-item-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 9px; row-gap: 3px; font-size: 11px; line-height: 1.3; color: #b7a58e; }
.armory-item-meta > span + span { padding-left: 9px; border-left: 1px solid #534238; }
.armory-item-value { color: #c6b69c; font-size: 11px; line-height: 1.3; }
.armory-page .armory-slot.is-empty { border-style: dashed; border-color: #49392d; background: #14111088; }
.armory-page .armory-slot.is-empty .armory-item-copy > strong { color: #9f9180; font-weight: 500; }
.armory-sets { margin-top: 20px; padding-top: 17px; border-top: 1px solid #46362d; }
.armory-set { margin-top: 12px; padding: 12px; border: 1px solid #58442c; border-radius: 7px; background: #34261844; }
.armory-set > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }
.armory-set b { color: #dac19c; font-size: 12px; }
.armory-set span, .armory-set small { color: #a7957e; font-size: 11px; }
.armory-set p { margin: 7px 0; color: #c5b59e; font-size: 12px; line-height: 1.5; }
.armory-set small.active { color: #a4cc9a; }
.armory-set-empty { margin-top: 12px; color: #c1b29e; font-size: 12px; line-height: 1.5; }
.armory-set-empty span { display: block; margin-top: 4px; color: #938372; font-size: 11px; }
.armory-tip { margin-top: 20px; padding-top: 14px; border-top: 1px solid #3a2e27; color: #a1907c; font-size: 11px; line-height: 1.6; }
.armory-storage .bag-heading { gap: 14px; margin-bottom: 16px; }
.armory-storage .bag-heading h3 { color: #e3d2ba; font-family: var(--title); font-size: 18px; letter-spacing: 0; font-weight: 500; }
.armory-storage .inventory-wallet { padding-bottom: 16px; border-bottom: 1px solid #48362c; }
.armory-storage .inventory-wallet small { font-size: 11px; color: #af9e88; }
.armory-storage .inventory-wallet strong { font-size: 19px; }
.armory-storage .inventory-wallet .chip-icon, .armory-storage .inventory-wallet .dust-icon { width: 30px; height: 30px; }
.armory-storage .tabs { gap: 5px; padding-bottom: 12px; margin-bottom: 12px; border-color: #49362c; }
.armory-storage .tabs button { min-height: 36px; font-size: 12px; border-color: #4e3b30; border-radius: 5px; background: #171311; color: #bba78f; }
.armory-storage .tabs button.active { border-color: #94724a; color: #f0dbb8; background: linear-gradient(#5a3f2b66, #35261b66); }
.armory-storage .inventory-bags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.armory-storage .inventory-bags button { flex: 1 1 74px; min-height: 42px; padding: 7px 9px; border-color: #48372b; border-radius: 5px; font-size: 11px; background: #181310; color: #b5a18b; }
.armory-storage .inventory-bags button.active { border-color: #92734b; background: #4b352366; color: #e8d5b6; }
.armory-storage .inventory-bags button small { color: #a38e75; font-size: 11px; }
.armory-storage .inv-salvage { margin-bottom: 12px; border-color: #5d492d; border-radius: 7px; background: #261e1555; }
.armory-storage .inventory-selection { gap: 6px; padding-bottom: 12px; margin-bottom: 0; flex-wrap: wrap; }
.armory-storage .inventory-selection button { min-height: 32px; padding: 6px 10px; border-color: #4a392d; color: #c7b59a; font-size: 11px; }
.armory-storage .inventory-selection > span { font-size: 11px; color: #a9957a; }
.armory-storage .bag-items { padding: 2px 3px 5px 1px; }
.armory-page .armory-storage .item-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.armory-page .armory-storage .item-tile { min-height: 92px; padding: 10px 5px 6px; border-radius: 7px; }
.armory-page .armory-storage .item-tile .item-symbol { display: grid; place-items: center; height: 68px; }
.armory-page .armory-storage .item-tile .equipment-art { width: 66px; height: 66px; }
.armory-page .armory-storage .item-tile .item-tier { top: 5px; left: 5px; font-size: 11px; }
.armory-page .armory-storage .inventory-empty-slot { display: block; min-height: 92px; border: 1px solid #352a22; border-radius: 7px; background: radial-gradient(ellipse at 50% 40%, #31251c35, #100e0c55); box-shadow: inset 0 1px 6px #0002; pointer-events: none; }
.armory-storage .resource-row { padding: 12px 3px; font-size: 12px; border-color: #3d3027; }
.armory-storage .resource-row b { font-size: 13px; }
/* Short desktop windows (large zoom / OS scaling): keep the panels usable and let the page scroll. */
@media (min-width: 961px) and (max-height: 1040px) {
  .gear-page.armory-page { grid-template-rows: auto minmax(640px, 1fr); overflow-y: auto; }
  .armory-page .armory-storage > :not(.bag-items) { flex-shrink: 0; }
  .armory-page .armory-storage .bag-items { min-height: 220px; }
}
@media (max-width: 1250px) and (min-width: 961px) {
  .gear-page.armory-page { grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr); padding: 16px; gap: 14px; }
  .armory-page .armory-hero { flex-wrap: wrap; gap: 18px; padding: 18px; }
  .armory-heading { flex: 1 1 200px; }
  .armory-stats { flex: 1 1 330px; }
  .armory-stat { padding: 3px 13px; }
  .armory-page .armory-equipped, .armory-page .armory-storage { padding: 16px; }
  .armory-page .equipment-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .gear-page.armory-page { display: flex; flex-direction: column; height: 100%; max-width: 720px; padding: 14px 12px 24px; gap: 14px; overflow-y: auto; }
  .armory-page .armory-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 10px; padding: 18px 16px; flex-shrink: 0; }
  .armory-heading h2 { font-size: 26px; }
  .armory-heading p { font-size: 12px; }
  .armory-heading .eyebrow { font-size: 11px; }
  .armory-page .armory-build { align-self: start; font-size: 11px; min-height: 34px; padding: 7px 10px; }
  .armory-stats { grid-row: 2; grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #4e3a2b; }
  .armory-stat { padding: 0 10px; }
  .armory-stat:first-child { padding-left: 0; border: 0; }
  .armory-stat small { font-size: 11px; }
  .armory-stat strong { font-size: 20px; }
  .armory-page .armory-equipped, .armory-page .armory-storage { padding: 16px 12px; overflow: visible; flex: none; height: auto; }
  .armory-page .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .armory-page .equipment-grid .armory-slot { flex-direction: column; align-items: stretch; gap: 9px; min-height: 174px; padding: 12px; }
  .armory-page .armory-item-art { align-self: center; width: 64px; height: 60px; flex-basis: 60px; }
  .armory-page .armory-item-art .equipment-art { width: 60px; height: 60px; }
  .armory-page .armory-slot .armory-item-copy > strong { font-size: 13px; }
  .armory-page .armory-slot .armory-item-copy > small { font-size: 11px; }
  .armory-item-meta, .armory-item-value { font-size: 11px; }
  .armory-page .armory-storage .item-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 7px; }
  .armory-page .armory-storage .item-tile, .armory-page .armory-storage .inventory-empty-slot { min-height: 86px; }
  .armory-page .armory-storage .item-tile .equipment-art { width: 60px; height: 60px; }
  .armory-page .armory-storage .item-tile .item-symbol { height: 60px; }
}
