.armory-hero { min-height: 312px; display: flex; align-items: center; justify-content: space-between;
  gap: 36px; padding-block: 48px; position: relative; }
.armory-hero h1 { font-size: clamp(34px, 4vw, 56px); margin: 14px 0 18px; letter-spacing: .035em; }
.armory-hero p:not(.eyebrow) { max-width: 660px; }
.armory-realm { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 12px;
  color: var(--gold); letter-spacing: .06em; }
.armory-realm::before { content: '◇'; }
.armory-crest { width: 220px; flex-shrink: 0; opacity: .8; }
.armory-shell { padding-bottom: 80px; }
.armory-tabs { display: flex; gap: 38px; border-bottom: 1px solid var(--line); }
.armory-tabs button { padding: 18px 2px; border-bottom: 2px solid transparent; color: var(--muted);
  background: none; min-height: 56px; font-size: 14px; }
.armory-tabs button:hover, .armory-tabs [aria-pressed="true"] { color: var(--gold-light); }
.armory-tabs [aria-pressed="true"] { border-bottom-color: var(--gold); }
.armory-board-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px;
  padding-block: 38px 24px; }
.armory-board-heading .eyebrow { font-size: 9px; letter-spacing: .25em; }
.armory-board-heading h2 { font-size: 30px; margin: 8px 0; }
.armory-rule { font-size: 12px; }
.armory-total { color: var(--gold); font-size: 12px; white-space: nowrap; }
.armory-filters { display: grid; grid-template-columns: minmax(180px, 1fr) 200px 170px auto;
  gap: 16px; align-items: end; padding: 22px; border: 1px solid var(--line); background: #101c21; }
.armory-filters label { display: block; font-size: 11px; margin-bottom: 7px; color: var(--muted); }
.armory-filters input, .armory-filters select { width: 100%; min-height: 48px; padding: 10px 13px;
  border: 1px solid #34464d; border-radius: 0; background: #0c171b; color: var(--ink); font: inherit;
  font-size: 13px; }
.armory-filters .button { min-height: 48px; }
.armory-podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px;
  margin-block: 24px; }
.armory-laureate { display: grid; grid-template-columns: 58px 1fr; gap: 20px; align-items: center;
  padding: 26px; border: 1px solid var(--line); position: relative;
  background: linear-gradient(130deg,#1b2c32,#101b20); }
.armory-laureate:first-child { border-color: #8e7854; background: linear-gradient(130deg,#2b302c,#111d21); }
.armory-laureate h3 { font: 23px var(--serif); margin: 6px 0; overflow-wrap: anywhere; }
.armory-laureate small { display: block; color: var(--muted); font-size: 11px; }
.armory-laureate .armory-place { font-size: 10px; color: var(--gold); letter-spacing: .16em; }
.armory-sigil { width: 52px; height: 62px; display: grid; place-items: center; color: var(--gold-light);
  font: 25px var(--serif); background: #1c2b31; border: 1px solid #76684e;
  clip-path: polygon(50% 0,100% 20%,100% 74%,50% 100%,0 74%,0 20%); }
.armory-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.armory-table th { color: #91a1a8; font-weight: 400; text-align: left; font-size: 11px;
  padding: 16px; border-bottom: 1px solid var(--line); }
.armory-table td { padding: 19px 16px; border-bottom: 1px solid #24343a; overflow-wrap: anywhere; }
.armory-table tbody tr:nth-child(odd) { background: #111e2380; }
.armory-table tbody tr:hover { background: #1c2b3180; }
.armory-table th:first-child { width: 70px; }
.armory-table th:nth-child(2) { width: 29%; }
.armory-table th:last-child, .armory-table td:last-child { text-align: right; }
.armory-table .hero-name { font-size: 15px; color: var(--gold-light); font-weight: 500; }
.armory-table small { display: block; font-size: 11px; color: var(--muted); }
.armory-table .rank { color: var(--gold); font: 21px var(--serif); }
.armory-table .score { font-size: 18px; font-variant-numeric: tabular-nums; }
.armory-feedback { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px solid var(--line);
  margin-top: 24px; }
.armory-feedback[hidden] { display: none; }
.armory-feedback h3 { color: var(--ink); margin: 12px 0 6px; font-family: var(--serif); font-size: 24px; }
.armory-loading { display: inline-block; width: 15px; height: 15px; border: 1px solid #7f7159;
  margin-right: 12px; border-top-color: var(--gold-light); border-radius: 50%;
  animation: armory-spin 1s linear infinite; }
.armory-pagination { display: flex; justify-content: center; gap: 20px; align-items: center; margin-top: 28px; }
.armory-pagination:empty { display: none; }
.armory-pagination button, .armory-bottom button { padding: 10px 14px; background: none; color: var(--gold);
  font-size: 12px; border: 1px solid var(--line); }
.armory-pagination button:disabled { opacity: .35; cursor: default; }
.armory-bottom { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-top: 28px; }
.armory-bottom p, .armory-disclaimer { font-size: 11px; }
.armory-disclaimer { max-width: 780px; margin-top: 14px; }
.armory-back { display: inline-block; color: var(--gold); font-size: 12px; margin-bottom: 28px; }
.armory-profile { border: 1px solid var(--line); background: #111e2380; }
.armory-identity { padding: 32px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 24px; }
.armory-identity h2 { font-size: 38px; margin: 5px 0; overflow-wrap: anywhere; }
.armory-identity p { font-size: 13px; }
.armory-identity .armory-sigil { width: 68px; height: 82px; flex-shrink: 0; }
.armory-profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.armory-stat { padding: 18px 24px; border-right: 1px solid var(--line); }
.armory-stat:last-child { border: 0; }
.armory-stat span { display: block; font-size: 11px; color: var(--muted); }
.armory-stat strong { font: 27px var(--serif); color: var(--gold-light); }
.armory-equipment { display: grid; grid-template-columns: minmax(0,1fr) 330px minmax(0,1fr);
  gap: 18px; padding: 32px; }
.armory-equipment h3 { grid-column: 1/-1; font-size: 18px; margin-bottom: 8px; }
.armory-figure { display: grid; align-content: center; justify-items: center;
  background: radial-gradient(#d6b4810d,transparent 70%); }
.armory-figure img { width: 220px; }
.armory-figure p { font-size: 10px; text-align: center; }
.armory-appearance { align-content: start; padding: 20px 12px; border: 1px solid #3d4038; min-width: 0;
  background: radial-gradient(ellipse at 50% 45%,#ac875619,transparent 70%),#0c171c; }
.appearance-heading { text-align: center; }
.appearance-heading .eyebrow { color: var(--gold); font-size: 9px; letter-spacing: .16em; }
.appearance-heading h4 { margin: 10px 0 5px; color: var(--ink); font: 21px var(--serif); }
.appearance-heading>p:last-child { font-size: 10px; color: var(--muted); }
.appearance-stage { width: 100%; min-width: 0; height: 430px; position: relative; display: grid; place-items: center; }
.appearance-stage model-viewer { width: 100%; height: 100%; background: transparent; --poster-color: transparent; }
.appearance-stage>img { max-width: 180px; }
.armory-appearance .appearance-status { padding: 12px; color: var(--gold); }
.appearance-controls { display: flex; justify-content: center; gap: 7px; width: 100%; flex-wrap: wrap; }
.appearance-controls button, .appearance-retry { background: #17252a; border: 1px solid #6b5e47;
  color: var(--gold-light); font: inherit; font-size: 10px; min-height: 40px; padding: 8px 12px; }
.appearance-controls button:disabled { opacity: .35; cursor: default; }
.appearance-angle { display: block; text-align: center; color: var(--gold); font-size: 10px; margin-top: 8px; }
.armory-appearance .appearance-instruction { margin-top: 12px; color: var(--muted); font-size: 10px; }
.armory-appearance .appearance-notice { color: #a5a18f; font-size: 10px; margin-top: 10px; line-height: 1.7; }
.appearance-retry { margin-top: 10px; }
.appearance-retry[hidden], .appearance-status[hidden] { display: none; }
.armory-gear-list { display: grid; gap: 9px; align-content: start; }
.armory-slot { border: 1px solid var(--line); background: #0b161b; padding: 12px 14px; min-height: 71px; }
.armory-slot small { display: block; font-size: 10px; color: #94a5ac; }
.armory-slot strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.armory-slot span { display: block; font-size: 10px; color: var(--muted); }
.armory-slot.empty { opacity: .5; }
.armory-slot:not(.empty) { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.armory-slot:not(.empty):hover { border-color: #8e7854; background: #14242a; }
.armory-slot:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.armory-item-icon { width: 46px; height: 46px; flex: 0 0 46px; color: var(--gold-light);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  padding: 6px; border: 1px solid #6f6551; background: radial-gradient(#4b4935,#162229); }
.armory-item-icon.armory-item-image { padding: 1px; object-fit: contain; background: #071016; }
.quality-2 .armory-item-image { border-color: #56aa48; }
.quality-3 .armory-item-image { border-color: #4c95d7; }
.quality-4 .armory-item-image { border-color: #a26bd3; }
.quality-5 .armory-item-image { border-color: #eaa446; }
.armory-slot .armory-item-icon.armory-item-image { padding: 1px; }
.armory-slot-copy { min-width: 0; }
.armory-slot .armory-item-hint { color: #b6a080; font-size: 9px; margin-top: 3px; }
.armory-item-tooltip { position: fixed; width: 365px; max-width: calc(100vw - 24px); z-index: 100;
  max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid #8b7857; background: #0b141a;
  box-shadow: 0 18px 70px #000b; overscroll-behavior: contain; }
.armory-item-tooltip[hidden] { display: none; }
.armory-item-dialog { width: 460px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 32px);
  padding: 0; margin: auto; color: var(--ink); border: 1px solid #8b7857; background: #0b141a;
  box-shadow: 0 20px 90px #000c; overscroll-behavior: contain; }
.armory-item-dialog::backdrop { background: #030a10ce; backdrop-filter: blur(4px); }
.armory-item-detail { padding: 22px; font-size: 13px; line-height: 1.65; }
.armory-item-detail p { font-size: inherit; line-height: inherit; margin: 3px 0; white-space: pre-line;
  overflow-wrap: anywhere; color: var(--ink); }
.armory-item-detail .item-title { display: flex; gap: 13px; align-items: center; padding-right: 15px;
  margin-bottom: 14px; }
.armory-item-detail .item-name { font-size: 17px; font-family: var(--serif); line-height: 1.4; }
.armory-item-detail .item-title p { color: var(--gold); font-size: 11px; }
.item-close { position: sticky; top: 8px; float: right; margin: 8px 8px -42px 0; z-index: 1;
  width: 36px; height: 36px; border: 1px solid var(--line); background: #14232b; color: var(--ink);
  font-size: 24px; line-height: 1; }
.item-section { border-top: 1px solid #28363d; margin-top: 14px; padding-top: 12px; }
.item-section h4 { margin: 0 0 6px; color: #c8b18a; font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.armory-item-detail .item-secondary, .armory-item-detail small { color: #95a7b0; font-size: 11px; }
.armory-item-detail .item-enchant-name, .armory-item-detail .item-enchant-value,
.armory-item-detail .item-effects>p:not(.item-secondary) { color: #8ecb8a; }
.armory-item-detail .item-notice { color: #d2b27e; font-size: 11px; margin-top: 8px; }
.armory-item-detail .item-flavor { color: #d2b27e; font-style: italic; }
.item-enchant + .item-enchant { margin-top: 10px; }
.item-socket { display: flex; gap: 10px; align-items: start; padding-block: 8px; }
.item-socket>div { min-width: 0; }
.item-socket small, .item-socket strong { display: block; }
.item-socket .armory-item-icon { width: 27px; height: 27px; flex-basis: 27px; padding: 3px; }
.socket-1 .armory-item-icon { color: #c8c8ce; }.socket-2 .armory-item-icon { color: #ed8787; }
.socket-4 .armory-item-icon { color: #e3ce7c; }.socket-8 .armory-item-icon { color: #80addc; }
.item-socket .gem-color-1 { color: #c8c8ce; }.item-socket .gem-color-2 { color: #ed8787; }
.item-socket .gem-color-4 { color: #e3ce7c; }.item-socket .gem-color-8 { color: #80addc; }
.item-socket .gem-color-6 { color: #e5ae73; }.item-socket .gem-color-10 { color: #bd98dc; }
.item-socket .gem-color-12 { color: #8ecb8a; }.item-socket .gem-color-14 { color: #d1c6e4; }
.item-socket .gem-color-15 { color: #d1c6e4; }
.item-socket .gem-color-unknown { color: #9ba9af; }
.item-socket-bonus { margin-top: 6px; }
.armory-item-detail .item-footnote { font-size: 10px; color: #869ba5; margin-top: 16px;
  border-top: 1px solid #28363d; padding-top: 12px; }
.quality-2 strong { color: #90c38f; }.quality-3 strong { color: #85b4e1; }
.quality-4 strong { color: #be97de; }.quality-5 strong { color: #e6b576; }
[data-class="8"] .hero-name { color: #8dc4d9; }[data-class="19"] .hero-name { color: #e3c184; }
[data-class="23"] .hero-name { color: #b1a2df; }[data-class="32"] .hero-name { color: #a9cab9; }
@keyframes armory-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .armory-loading { animation: none; } }
@media (max-width: 1050px) {
  .armory-filters { grid-template-columns: 1fr 1fr; }.armory-search { grid-column: 1/-1; }
  .armory-equipment { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .armory-figure { grid-column: 1/-1; grid-row: 2; width: 100%; max-width: 480px; justify-self: center; }
  .armory-gear-list { grid-row: 3; }
}
@media (max-width: 680px) {
  .armory-hero { min-height: 290px; padding-block: 38px; }.armory-crest { display: none; }
  .armory-tabs { gap: 0; justify-content: space-between; }.armory-tabs button { font-size: 12px; }
  .armory-filters { padding: 15px; gap: 12px; }.armory-filters .button { grid-column: 1/-1; }
  .armory-board-heading { align-items: start; }.armory-board-heading h2 { font-size: 26px; }
  .armory-total { padding-top: 27px; }.armory-podium { grid-template-columns: 1fr; }
  .armory-laureate { padding: 22px; }.armory-laureate:not(:first-child) { display: none; }
  .armory-table { display: block; }.armory-table thead { display: none; }
  .armory-table tbody { display: grid; gap: 12px; }
  .armory-table tr { display: grid; grid-template-columns: 38px 1fr 66px; padding: 15px;
    border: 1px solid var(--line); }
  .armory-table td { padding: 0; border: 0; }.armory-table td:first-child { grid-row: 1/4; }
  .armory-table td:nth-child(2) { grid-column: 2; }.armory-table td:nth-child(3) { grid-column: 2; }
  .armory-table td:nth-child(4) { grid-column: 2; font-size: 11px; color: var(--muted); }
  .armory-table td:last-child { grid-column: 3; grid-row: 1/4; align-self: center; }
  .armory-bottom { align-items: start; }.armory-bottom button { flex-shrink: 0; }
  .armory-identity { padding: 22px; gap: 18px; }.armory-identity h2 { font-size: 30px; }
  .armory-profile-stats { grid-template-columns: 1fr 1fr; }.armory-stat { border-bottom: 1px solid var(--line); }
  .armory-equipment { padding: 18px; gap: 10px; }.armory-slot { padding: 10px; }
  .armory-slot:not(.empty) { align-items: start; gap: 8px; }
  .armory-slot .armory-item-icon { width: 31px; height: 31px; flex-basis: 31px; padding: 4px; }
  .armory-slot strong { font-size: 11px; }.armory-slot .armory-item-hint { font-size: 9px; }
  .armory-item-dialog { width: 440px; }.armory-item-detail { padding: 20px; }
  .armory-appearance { padding: 18px 12px; }.appearance-stage { height: 390px; }
}
