/* Armory uses the same Black Legion header, buttons and icy panel language. */
header.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  margin: 0;
  padding: 0 22px;
  border-bottom: 1px solid rgba(127, 202, 216, .18);
  background: rgba(4, 11, 17, .92);
  backdrop-filter: blur(14px);
}
header.topbar .topbar-inner {
  width: min(1440px, 100%);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
header.topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: #f0d99d;
  font: 15px Marcellus, Georgia, serif;
  letter-spacing: .17em;
  text-transform: uppercase;
  white-space: nowrap;
}
header.topbar .sigil {
  width: 39px;
  height: 39px;
  border: 1px solid rgba(126, 208, 224, .48);
  border-radius: 10px 50% 10px 50%;
  color: #91cddd;
  background: rgba(80, 170, 193, .1);
  box-shadow: inset 0 0 14px rgba(96, 201, 222, .1), 0 0 18px rgba(93, 170, 192, .1);
}
header.topbar .nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
header.topbar .nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #bdc8c9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: .18s ease;
}
header.topbar .nav a:hover,
header.topbar .nav a.active {
  border-color: rgba(132, 204, 217, .22);
  background: rgba(81, 172, 192, .08);
  color: #ecf2ef;
}
header.topbar .actions { display: flex; align-items: center; gap: 8px; flex: none; }
header.topbar .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 0 13px;
  border: 1px solid rgba(223, 189, 118, .4);
  border-radius: 4px;
  background: rgba(10, 15, 20, .55);
  color: #f3dfa9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
header.topbar .button:hover { border-color: #f3dfa9; box-shadow: 0 0 18px rgba(223, 189, 118, .12); }
header.topbar .button.primary { border-color: #f0d896; background: linear-gradient(130deg, #e7cf8f, #b78e4b); color: #201a12; }
.menu-toggle { display: none; }

.armory-page-head { padding: 58px 0 24px; }
.armory-page-head h1 { margin: 5px 0 10px; color: #f1e8d5; font: 400 clamp(38px, 5vw, 52px)/1.12 Marcellus, Georgia, serif; }
.armory-page-head .intro { max-width: 680px; margin: 0; line-height: 1.65; }
#search { max-width: 760px; margin: 24px 0 12px; padding: 17px 19px; border: 1px solid rgba(223, 189, 118, .18); border-radius: 9px; background: linear-gradient(110deg, rgba(15, 29, 39, .88), rgba(7, 15, 22, .9)); }
#search label { color: #c8c1ad; letter-spacing: .09em; text-transform: uppercase; }
#search input { border-radius: 5px; border-color: rgba(136, 215, 230, .2); background: rgba(4, 12, 18, .72); }
#search button, #copy-profile { border: 1px solid #f0d896; border-radius: 4px; background: linear-gradient(130deg, #e7cf8f, #b78e4b); color: #201a12; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#notice { min-height: 24px; }
#results { max-width: 760px; }
.result { align-items: center; min-height: 64px; border-color: rgba(130, 198, 214, .17); border-radius: 8px; background: linear-gradient(105deg, rgba(18, 34, 46, .92), rgba(8, 16, 24, .95)); }
.result::before { content: '✧'; display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-right: 12px; border: 1px solid rgba(136, 215, 230, .27); border-radius: 10px; color: #9ad8e5; background: rgba(65, 135, 156, .1); }
.profile-head { border-color: rgba(130, 198, 214, .2); border-radius: 10px; background: linear-gradient(105deg, rgba(18, 38, 51, .92), rgba(8, 16, 24, .94)); }
.profile-head h2 { color: #f0d99d; }
.stats { gap: 10px; }
.stat { border-color: rgba(223, 189, 118, .18); border-radius: 8px; background: linear-gradient(140deg, rgba(20, 34, 44, .88), rgba(8, 15, 22, .94)); }
.stat strong { font-family: Marcellus, Georgia, serif; }
.slot { border-color: rgba(125, 177, 195, .2); border-radius: 8px; background: linear-gradient(110deg, rgba(17, 37, 50, .85), rgba(8, 18, 27, .94)); }
.slot-filled:hover, .slot-filled:focus-visible { border-color: rgba(145, 205, 221, .6); background: linear-gradient(110deg, rgba(25, 54, 70, .92), rgba(9, 22, 32, .96)); }
footer.container { width: min(1260px, calc(100% - 40px)); }

@media (max-width: 1080px) {
  header.topbar .topbar-inner { gap: 10px; }
  header.topbar .brand { gap: 8px; font-size: 12px; letter-spacing: .1em; }
  header.topbar .nav a { padding: 0 7px; font-size: 9px; }
  header.topbar .button { padding: 0 9px; font-size: 8px; }
}
@media (max-width: 760px) {
  header.topbar { padding: 0 14px; }
  header.topbar .topbar-inner { position: relative; min-height: 64px; }
  header.topbar .brand { font-size: 12px; }
  header.topbar .sigil { width: 35px; height: 35px; }
  .menu-toggle { display: grid; place-items: center; width: 37px; height: 37px; margin-left: auto; padding: 0; border: 1px solid rgba(136, 215, 230, .25); border-radius: 5px; background: transparent; color: #f3dfa9; }
  .menu-toggle svg { width: 18px; }
  header.topbar .nav { display: none; position: absolute; top: calc(100% + 1px); left: -14px; right: -14px; padding: 9px 14px 13px; align-items: stretch; flex-direction: column; background: rgba(4, 11, 17, .98); border-bottom: 1px solid rgba(127, 202, 216, .2); box-shadow: 0 15px 28px #0006; }
  header.topbar .nav.open { display: flex; }
  header.topbar .nav a { min-height: 42px; padding: 0 12px; }
  header.topbar .actions .account-button { display: none; }
  header.topbar .button { min-height: 36px; }
  .armory-page-head { padding: 40px 0 20px; }
  #search { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  header.topbar .nav a { transition: none; }
}
