:root {
  --bg: hsl(0 9% 7%);
  --bg-hover: hsl(0 6% 10%);
  --border: hsl(0 5% 12%);
  --text: hsl(0 4% 71%);
  --strong: hsl(0 15% 94%);
  --weak: hsl(0 1% 60%);
  --weaker: hsl(0 3% 28%);
  --accent: hsl(205 32% 62%);
  --accent-muted: hsl(205 22% 40%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { min-width: 320px; background: var(--bg); color: var(--text); font-family: "IBM Plex Sans", -apple-system, sans-serif; line-height: 1.5; }
main { width: min(1500px, calc(100% - 48px)); margin: auto; }
.masthead { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.brand { color: var(--strong); font-family: "IBM Plex Mono", monospace; font-size: 1rem; letter-spacing: .02em; white-space: nowrap; }.brand i { color: var(--accent-muted); font-style: normal; margin: 0 7px; }.brand small { color: var(--weak); font-size: .72rem; }
.realm-field { min-width: 220px !important; }
.recent-searches { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }.recent-searches button { border: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--weak); cursor: pointer; font: .68rem "IBM Plex Mono", monospace; padding: 5px 8px; }.recent-searches button:hover { border-color: var(--accent-muted); color: var(--strong); }.recent-searches span { color: var(--weaker); }
.recent-searches { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }.recent-searches button { flex: none; white-space: nowrap; }
.lookup { width: min(700px, 100%); gap: 0; padding: 5px; border: 1px solid var(--border); border-radius: 6px; background: hsl(0 6% 9%); box-shadow: inset 0 1px hsl(0 0% 100% / .025), 0 10px 30px hsl(0 0% 0% / .18); }
.lookup label { min-width: 0; padding: 0 12px; }.lookup label + label { border-left: 1px solid var(--border); }.lookup label span { margin-bottom: 1px; color: var(--accent-muted); font-size: .58rem; }.lookup input, .lookup select { width: 100%; height: 28px; border: 0; padding: 0; background: transparent; color: var(--strong); }.lookup input:focus, .lookup select:focus { border: 0; }.lookup .search-field { flex: 1; }.lookup .realm-field { flex: 1.15; }.lookup button { height: 34px; min-width: 92px; border: 1px solid var(--accent-muted); border-radius: 4px; background: hsl(205 22% 18%); color: var(--accent); font-size: .68rem; transition: background .15s, color .15s, transform .15s; }.lookup button:hover { background: hsl(205 24% 25%); color: var(--strong); transform: translateY(-1px); }.lookup button:disabled { cursor: wait; opacity: .55; transform: none; }
.lookup { display: flex; align-items: end; gap: 10px; width: min(720px, 100%); }.lookup label { min-width: 125px; }.lookup label span { display: block; color: var(--weak); font: .66rem "IBM Plex Mono", monospace; letter-spacing: .08em; margin-bottom: 4px; text-transform: lowercase; }.lookup input, .lookup select, .lookup button { height: 34px; border: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--strong); font: .8rem "IBM Plex Mono", monospace; padding: 0 10px; outline: 0; }.lookup input:focus, .lookup select:focus { border-color: var(--accent-muted); }.lookup select { min-width: 70px; }.lookup button { border-color: var(--accent-muted); color: var(--accent); cursor: pointer; }.lookup button:hover { background: var(--bg-hover); color: var(--strong); }
.message { min-height: 12px; padding-top: 4px; color: var(--accent); font: .75rem "IBM Plex Mono", monospace; }.character[hidden] { display: none; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 2px 0 4px; }.identity-block { display: flex; align-items: center; gap: 10px; min-width: 0; }.avatar { width: 60px; height: 60px; border-radius: 4px; object-fit: cover; }.eyebrow { color: var(--accent-muted); font: .62rem "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: lowercase; }.hero h1 { margin: 3px 0 2px; color: var(--strong); font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }.identity { color: var(--weak); font-size: .8rem; white-space: pre-line; line-height: 1.35; }.level { color: var(--strong); font: 2rem "IBM Plex Mono", monospace; text-align: right; }.level small { display: block; color: var(--weak); font-size: .65rem; }.share-button { border: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--weak); cursor: pointer; font: .68rem "IBM Plex Mono", monospace; padding: 7px 9px; }.share-button:hover { border-color: var(--accent-muted); color: var(--strong); }
.identity-block #realm { font-size: .75rem; }
.character > #stats-mobile { display: none; }
.armory-grid { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(400px, 560px) minmax(250px, 1fr); gap: 22px; min-height: 670px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }.gear-rail { display: grid; grid-template-rows: repeat(10, 1fr); gap: 8px; padding: 18px 0; }.right-rail { text-align: right; }.gear-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 11px; align-items: center; align-self: center; width: 100%; min-height: 65px; padding: 7px 10px; border: 1px solid transparent; border-radius: 3px; background: transparent; transition: background .15s, border-color .15s; }.gear-row:hover { background: var(--bg-hover); border-color: var(--border); }.right-rail .gear-row { grid-template-columns: minmax(0, 1fr) 62px; }.right-rail .item-visual { grid-column: 2; grid-row: 1; }.right-rail .gear-copy { grid-column: 1; grid-row: 1; }.item-visual { position: relative; display: block; width: 58px; height: 64px; }.item-icon { width: 58px; height: 58px; border: 1px solid var(--accent-muted); border-radius: 4px; overflow: hidden; background: var(--bg-hover); }.item-icon a, .item-icon img { display: block; width: 100%; height: 100%; }.item-icon img { object-fit: cover; }.gear-copy { min-width: 0; }.slot { color: var(--weaker); font: .62rem "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: lowercase; }.item-name { display: block; overflow: hidden; color: var(--strong); font-size: .9rem; line-height: 1.25; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }.quality-poor { color: #9d9d9d; }.quality-common { color: var(--strong); }.quality-uncommon { color: #1eff00; }.quality-rare { color: #0070dd; }.quality-epic { color: #a335ee; }.quality-legendary { color: #ff8000; }.quality-artifact { color: #e6cc80; }.item-details { overflow: hidden; color: #35ef72; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }.gems { position: absolute; bottom: 0; left: -2px; z-index: 2; display: flex; gap: 2px; justify-content: flex-start; }.gem { display: block; width: 21px; height: 21px; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; background: var(--bg); }.gem img { display: block; width: 100%; height: 100%; object-fit: cover; }
.model-stage { position: relative; min-height: 670px; overflow: visible; background: var(--bg); display: flex; align-items: center; justify-content: center; }.model-stage::before { position: absolute; inset: 10% 12%; border: 1px solid hsl(205 12% 14%); border-radius: 50%; content: ""; opacity: .45; }.model-stage::after { position: absolute; bottom: 12%; left: 18%; width: 64%; height: 1px; background: var(--border); content: ""; }.model-stage #model-3d { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 670px; display: flex; align-items: center; justify-content: center; }.model-stage #model-3d canvas { display: block; max-width: 100%; margin: auto; }.model-fallback { position: absolute; top: 50%; right: 0; left: 0; z-index: 2; color: var(--weak); font: .72rem "IBM Plex Mono", monospace; text-align: center; }.model-label { position: absolute; right: 12px; bottom: 12px; z-index: 2; color: var(--weaker); font: .62rem "IBM Plex Mono", monospace; text-transform: lowercase; }
@media (max-width: 760px) { .model-stage { min-height: 500px; }.model-stage #model-3d { min-height: 500px; } }
.footer-note { padding: 18px 0 36px; color: var(--weaker); font: .68rem "IBM Plex Mono", monospace; text-align: center; }
@media (max-width: 1050px) { .armory-grid { grid-template-columns: minmax(220px, 1fr) minmax(330px, 45vw) minmax(220px, 1fr); gap: 10px; }.item-name { font-size: .8rem; } }
@media (max-width: 760px) { main { width: min(100% - 28px, 560px); }.masthead { display: block; }.brand { margin-bottom: 20px; }.lookup { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }.lookup .search-field { grid-column: 1 / -1; }.lookup button { width: 100%; }.hero { padding-top: 34px; }.armory-grid { display: flex; flex-direction: column; min-height: 0; border-bottom: 0; }.model-stage { order: -1; min-height: 500px; margin: 0 -14px; }.gear-rail { gap: 4px; padding: 10px 0; }.right-rail { text-align: left; }.right-rail .gear-row, .gear-row { grid-template-columns: 62px minmax(0, 1fr); }.right-rail .item-visual, .right-rail .gear-copy { grid-column: auto; grid-row: auto; }.right-rail .item-visual { order: 0; }.right-rail .gear-copy { order: 1; }.right-rail .gear-row { text-align: left; } }
.gear-row { grid-template-columns: 44px minmax(0, 1fr); }
.right-rail .gear-row { grid-template-columns: minmax(0, 1fr) 44px; }
.item-visual { width: 40px; height: 40px; }
.item-icon { width: 40px; height: 40px; }
.gems { right: 0; bottom: -6px; left: 0; justify-content: center; gap: 3px; }
.gem { width: 12px; height: 12px; }
.gear-row.flat { gap: 8px; min-width: 0; padding: 8px 12px; border-radius: 8px; background: linear-gradient(90deg, var(--bg-hover) 0%, var(--bg-hover) 20%, transparent 100%); align-items: center; display: flex; }
.gear-row.flat.mirror { background: linear-gradient(270deg, var(--bg-hover) 0%, var(--bg-hover) 20%, transparent 100%); flex-direction: row-reverse; }
.gear-row.flat:hover { background: linear-gradient(90deg, hsl(0 6% 12%) 0%, hsl(0 6% 12%) 20%, transparent 100%); }
.gear-row.flat.mirror:hover { background: linear-gradient(270deg, hsl(0 6% 12%) 0%, hsl(0 6% 12%) 20%, transparent 100%); }
.icon-wrap { flex: none; display: inline-flex; position: relative; }
.gear-row .icon { display: inline-flex; border-radius: 4px; box-shadow: 0 0 0 1px currentColor; line-height: 0; text-decoration: none; }
.gear-row .icon img { display: block; width: 40px; height: 40px; border-radius: 4px; }
.gear-row .gems { pointer-events: auto; position: absolute; right: 0; bottom: -6px; left: 0; display: flex; justify-content: center; gap: 3px; }
.gem-link { display: block; border-radius: 2px; line-height: 0; text-decoration: none; }
.gem-icon { display: block; width: 12px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px currentColor; }
.gear-row .body { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 1px; }
.gear-row .line1 { display: flex; width: 100%; min-width: 0; align-items: baseline; gap: 8px; }
.gear-row .name-wrap { display: block; min-width: 0; max-width: 100%; }
.gear-row .name { display: block; min-width: 0; max-width: 100%; overflow: hidden; color: var(--strong); font-size: .9rem; font-weight: 500; line-height: 1.3; text-overflow: ellipsis; text-decoration: none; white-space: nowrap; }
.gear-row.mirror .body { text-align: right; }.gear-row.mirror .line1 { flex-direction: row-reverse; }
.gear-row .enchant { color: #35ef72; font-size: .72rem; letter-spacing: 0; line-height: 1.3; }
.empty-slot { visibility: visible; color: var(--faint, var(--weak)); font-size: .72rem; gap: 8px; }.empty-slot.mirror { flex-direction: row-reverse; justify-content: flex-start; }.empty-icon { display: block; width: 40px; height: 40px; border-radius: 4px; box-shadow: 0 0 0 1px var(--weaker); }
.armory-grid { grid-template-columns: 230px 440px 230px 240px; gap: 4px; }
.armory-grid > .stats-panel { display: flex; flex-direction: column; align-self: stretch; gap: 1px; margin: 18px 0; overflow: hidden; border-radius: 5px; }.armory-grid > .stats-panel .stat-section { flex: none; min-width: 0; padding: 12px; }
@media (min-width: 1101px) { main { width: min(1180px, calc(100% - 48px)); } }
@media (max-width: 1100px) and (min-width: 761px) { .armory-grid { grid-template-columns: 220px minmax(330px, 1fr) 220px; }.armory-grid > .stats-panel { grid-column: 1 / -1; flex-direction: row; overflow-x: auto; margin: 0 0 12px; }.armory-grid > .stats-panel .stat-section { flex: 1 0 150px; } }
@media (max-width: 1100px) and (min-width: 761px) { .armory-grid { grid-template-columns: minmax(130px, .8fr) minmax(260px, 1.8fr) minmax(130px, .8fr) minmax(180px, 1fr); }.armory-grid > .stats-panel { grid-column: auto; flex-direction: column; overflow: hidden; margin: 18px 0; }.armory-grid > .stats-panel .stat-section { flex: none; } }
@media (min-width: 761px) { .armory-grid { grid-template-areas: "left model right stats"; }.armory-grid > #gear-left { grid-area: left; }.armory-grid > .model-stage { grid-area: model; }.armory-grid > #gear-right { grid-area: right; }.armory-grid > #stats { grid-area: stats; grid-column: auto; } }
@media (min-width: 1101px) { main { width: min(1120px, calc(100% - 48px)); }.armory-grid { grid-template-columns: 200px 400px 200px 280px; gap: 4px; }.model-stage { min-height: 620px; }.model-stage #model-3d { min-height: 620px; }.armory-grid > .stats-panel { margin: 8px 0; overflow: visible; }.armory-grid > .stats-panel .stat-section { padding: 9px 10px; }.armory-grid > .stats-panel .stat-list div { font-size: .68rem; } }
@media (max-width: 1100px) and (min-width: 761px) { .armory-grid { grid-template-columns: 130px minmax(280px, 1fr) 130px 240px; }.model-stage { min-height: 620px; }.model-stage #model-3d { min-height: 620px; }.armory-grid > .stats-panel { overflow: visible; } }
.armory-grid { min-height: 560px; }
.gear-row { height: 52px; min-height: 0; padding: 4px 8px; }
.model-stage { min-height: 560px; }
.model-stage #model-3d { min-height: 560px; }
.armory-grid > .stats-panel { margin: 0; align-self: center; overflow: visible; }
.armory-grid > .stats-panel .stat-section { padding: 6px 9px; }
.armory-grid > .stats-panel .stat-section h2 { margin-bottom: 3px; font-size: .58rem; }
.armory-grid > .stats-panel .stat-list { gap: 1px; }
.armory-grid > .stats-panel .stat-list div { font-size: .64rem; line-height: 1.25; }
@media (max-width: 760px) { .armory-grid { min-height: 0; }.model-stage { min-height: 500px; }.model-stage #model-3d { min-height: 500px; }.gear-row { height: 65px; } }
@media (max-width: 760px) { .character > .stats-panel { display: flex; flex-direction: column; margin-top: 12px; overflow: hidden; }.character > .stats-panel .stat-section { flex: none; }.character .armory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; min-height: 0; }.character .model-stage { grid-column: 1 / -1; order: -1; min-height: 320px; margin: 0; }.character .model-stage #model-3d { min-height: 320px; }.character .gear-rail { display: flex; flex-direction: column; gap: 5px; padding: 0; }.character .gear-row, .character .right-rail .gear-row { display: flex; flex-direction: row; height: 54px; min-height: 54px; padding: 4px; text-align: left; }.character .right-rail .gear-row { flex-direction: row; }.character .right-rail .item-visual, .character .right-rail .gear-copy { order: initial; }.character .gear-copy { min-width: 0; text-align: left; }.character .item-name { font-size: .68rem; }.character .item-details { font-size: .6rem; }.character .item-icon, .character .item-visual { width: 40px; height: 40px; flex: none; }.character .gear-row .gems { left: 0; right: auto; }.character .stats-panel .stat-section { padding: 10px 12px; } }
.character > .stats-panel { min-width: 0; }
@media (max-width: 760px) {
  .masthead { min-height: 0; padding: 14px 0; }
  .lookup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px 28px; gap: 5px; width: 100%; }
  .lookup label, .lookup .search-field, .lookup .realm-field { width: auto; min-width: 0 !important; padding: 0; }
  .lookup input, .lookup select, .lookup button { width: 100%; height: 36px; min-width: 0; padding: 0 7px; font-size: .65rem; }
  .lookup button { padding: 0; }
  .recent-control { width: 28px; }
  .character .armory-grid { grid-template-columns: minmax(0, 1fr) minmax(110px, 1.2fr) minmax(0, 1fr); gap: 2px; min-height: 0; align-items: stretch; }
  .character .model-stage { grid-column: 2; grid-row: 1; min-height: 500px; margin: 0; }
  .character .model-stage #model-3d { min-height: 500px; transform: scale(.72); transform-origin: center; }
  .character .left-rail { grid-column: 1; grid-row: 1; }
  .character .right-rail { grid-column: 3; grid-row: 1; }
  .character .gear-rail { display: flex; gap: 4px; padding: 4px 0; }
  .character .gear-row, .character .right-rail .gear-row { display: flex; height: 50px; min-height: 50px; padding: 3px 2px; gap: 4px; text-align: left; }
  .character .right-rail .gear-row { flex-direction: row; }
  .character .right-rail .item-visual, .character .right-rail .gear-copy { grid-column: auto; grid-row: auto; }
  .character .item-visual, .character .item-icon { width: 32px; height: 32px; }
  .character .item-name { font-size: .54rem; line-height: 1.1; }
  .character .item-details { display: none; }
  .character .slot { font-size: .5rem; line-height: 1; }
  .character > .stats-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 8px; overflow: visible; }
  .character > .stats-panel .stat-section { min-width: 0; padding: 9px 8px; }
  .character > .stats-panel .stat-section h2 { font-size: .56rem; }
  .character > .stats-panel .stat-list div { gap: 4px; font-size: .6rem; }
}
@media (max-width: 760px) {
  .lookup { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; align-items: end; padding: 0; }
  .lookup .search-field { grid-column: 1 / -1; width: 100%; }
  .lookup .realm-field { grid-column: 1; width: 100%; }
  .lookup > button:not(.recent-toggle) { grid-column: 2; width: 40px !important; min-width: 40px !important; padding: 0 !important; }
  .lookup .recent-control { grid-column: 1 / -1; width: 28px; justify-self: end; }
  .lookup .recent-control .recent-searches { right: 0; left: auto; width: min(260px, calc(100vw - 28px)); transform: none; }
  .lookup input, .lookup select, .lookup button { height: 38px; }
  .lookup input, .lookup select { padding: 0 9px; }
  .character .armory-grid { display: grid; grid-template-columns: 1fr; gap: 5px; }
  .character .model-stage { grid-column: 1; grid-row: 1; min-height: 300px; }
  .character .model-stage #model-3d { min-height: 300px; transform: scale(.62); }
  .character .left-rail { grid-column: 1; grid-row: 2; }
  .character .right-rail { grid-column: 1; grid-row: 3; }
  .character .gear-rail { gap: 4px; }
  .character .gear-row, .character .right-rail .gear-row { height: 52px; min-height: 52px; }
  .character .item-name { font-size: .52rem; }
  .character .item-details { display: block; max-height: 16px; overflow: hidden; font-size: .46rem; line-height: 1; white-space: normal; }
  .character .gear-row .gems { right: 0; left: 0; justify-content: center; }
  .hero > #stats { display: none !important; }
  .character > #stats-mobile { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; margin-top: 12px; overflow: visible; visibility: visible; }
  .character > #stats-mobile .stat-section { display: block; min-width: 0; padding: 9px 8px; }
}
@media (min-width: 1101px) { .armory-grid { grid-template-columns: 175px 380px 175px 350px; gap: 5px; }.model-stage { min-height: 560px; }.model-stage #model-3d { min-height: 560px; }.armory-grid > .stats-panel { margin: 0; padding: 4px; }.armory-grid > .stats-panel .stat-section { padding: 12px 14px; }.armory-grid > .stats-panel .stat-list div { font-size: .72rem; } }
@media (max-width: 1100px) and (min-width: 761px) { .armory-grid { grid-template-columns: 120px minmax(250px, 1fr) 120px 260px; gap: 4px; }.model-stage, .model-stage #model-3d { min-height: 540px; } }
@media (min-width: 761px) { .character { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 8px; align-items: start; }.character > .hero, .character > .armory-grid { grid-column: 1; }.character > .stats-panel { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: start; }.armory-grid { grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.6fr) minmax(180px, 1fr); gap: 4px; }.armory-grid > .stats-panel { display: none !important; } }
@media (max-width: 1100px) and (min-width: 761px) { .character { grid-template-columns: minmax(0, 1fr) 285px; }.armory-grid { grid-template-columns: minmax(140px, 1fr) minmax(260px, 1.5fr) minmax(140px, 1fr); }.model-stage, .model-stage #model-3d { min-height: 540px; } }
@media (max-width: 760px) { .character { display: block; }.character > .stats-panel { margin-top: 12px; }.armory-grid > .stats-panel { display: none !important; } }
.landing main { width: min(760px, calc(100% - 48px)); }.landing .masthead { min-height: 78vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; border-bottom: 0; }.landing .brand { font-size: clamp(2rem, 6vw, 3.5rem); }.landing .search-area { width: min(620px, 100%); margin: 0 auto; align-self: center; }.landing .lookup { width: 100%; justify-content: center; }.landing .lookup input, .landing .lookup select, .landing .lookup button { height: 44px; }.landing .lookup label span { font-size: .68rem; }.landing .recent-searches { display: none; }.landing #message { text-align: center; }
.landing .recent-searches { position: static; display: flex; width: min(620px, 100%); max-width: 100%; max-height: 240px; margin: 0 auto; transform: none; border: 0; background: transparent; box-shadow: none; }.landing .recent-searches[hidden] { display: none; }.landing .recent-searches button { border-bottom: 1px solid var(--border); padding: 9px 4px; }
@media (min-width: 761px) { .character { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) 350px; }.character > .hero, .character > .armory-grid, .character > .stats-panel { min-width: 0; width: 100%; }.armory-grid { min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(280px, 1.6fr) minmax(0, 1fr); }.gear-rail, .model-stage, .model-stage #model-3d { min-width: 0; }.character > .stats-panel { overflow: visible; } }
@media (min-width: 761px) { .character { display: block; width: auto; }.character > .hero, .character > .armory-grid { width: auto; }.character > .stats-panel { display: none !important; }.hero > .stats-panel { display: flex; flex: 1; min-width: 0; margin: 0; overflow-x: auto; }.armory-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 1.6fr) minmax(0, 1fr); min-width: 0; }.gear-rail, .model-stage, .model-stage #model-3d { min-width: 0; } }
.recent-control { position: relative; flex: none; }.recent-control .recent-searches { top: calc(100% + 2px); right: auto; left: 50%; transform: translateX(-50%); z-index: 100; }
.landing .lookup { flex-wrap: wrap; }.landing .recent-control { width: 100%; position: static; }.landing .recent-control .recent-searches { position: static; width: min(620px, 100%); transform: none; margin: 0 auto; }
@media (max-width: 760px) { .landing .lookup { flex-wrap: wrap; }.landing .recent-control { width: 100%; position: static; }.landing .recent-control .recent-searches { position: static; width: 100%; transform: none; } }
.stats-panel { display: flex; gap: 1px; margin: 0 0 12px; overflow-x: auto; border: 1px solid var(--border); border-radius: 5px; background: var(--border); }.stat-section { flex: 1 0 150px; padding: 12px 14px; background: var(--bg); }.stat-section h2 { margin-bottom: 8px; color: var(--accent-muted); font: .65rem "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }.stat-list { display: grid; gap: 4px; }.stat-list div { display: flex; justify-content: space-between; gap: 14px; font-size: .72rem; white-space: nowrap; }.stat-list span { color: var(--weak); }.stat-list strong { color: var(--strong); font-weight: 500; }
.hero .stats-panel { flex: 1; min-width: 0; margin: 0; }.hero .stat-section { flex-basis: 135px; padding: 8px 10px; }.hero .stat-section h2 { margin-bottom: 5px; }.hero .stat-list { gap: 2px; }
.model-stage::before, .model-stage::after { display: none; }
.gear-row .name.quality-poor { color: #9d9d9d; }.gear-row .name.quality-common { color: var(--strong); }.gear-row .name.quality-uncommon { color: #1eff00; }.gear-row .name.quality-rare { color: #0070dd; }.gear-row .name.quality-epic { color: #a335ee; }.gear-row .name.quality-legendary { color: #ff8000; }.gear-row .name.quality-artifact { color: #e6cc80; }
.lookup { width: min(720px, 100%); gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.lookup label { min-width: 125px; padding: 0; }.lookup label + label { border-left: 0; }.lookup label span { margin-bottom: 4px; color: var(--weak); font-size: .66rem; }.lookup input, .lookup select { height: 34px; border: 1px solid var(--border); padding: 0 10px; background: transparent; }.lookup input:focus, .lookup select:focus { border-color: var(--accent-muted); }.lookup .search-field, .lookup .realm-field { flex: initial; }.lookup button { height: 34px; min-width: 54px; border: 1px solid var(--accent-muted); border-radius: 3px; background: transparent; transform: none; }.lookup button:hover { background: var(--bg-hover); transform: none; }
.lookup .search-field { width: 160px; }.lookup .realm-field { width: 175px; min-width: 0 !important; }.lookup .realm-field select { width: 100%; }
.lookup input:focus-visible, .lookup select:focus-visible { border-color: var(--accent-muted); box-shadow: 0 0 0 1px var(--accent-muted); outline: none; }
.masthead { display: grid; grid-template-columns: auto 1fr; align-items: center; }.search-area { position: relative; justify-self: end; width: min(720px, 100%); }.search-area .lookup { width: 100%; }.masthead .recent-searches { justify-content: flex-end; margin-top: 8px; }
@media (max-width: 760px) { .masthead { display: block; }.masthead .lookup { justify-self: auto; }.masthead .recent-searches { justify-content: flex-start; } }
.hero { padding-top: 18px; padding-bottom: 10px; }
.masthead { position: relative; }
.lookup .recent-toggle { min-width: 58px; margin-left: 2px; color: var(--weak); }
.lookup .recent-toggle { min-width: 28px; width: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }.recent-toggle span { display: block; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .15s; }.recent-toggle[aria-expanded="true"] span { transform: rotate(225deg); }
.recent-toggle[hidden] { display: none; }
.recent-searches { position: absolute; top: calc(100% + 2px); right: auto; left: calc(100% - 28px); z-index: 20; display: flex; flex-direction: column; align-items: stretch; width: 260px; max-width: calc(100vw - 28px); max-height: 280px; margin: 0; padding: 5px; overflow-y: auto; border: 1px solid var(--border); border-radius: 5px; background: hsl(0 9% 8%); box-shadow: 0 16px 35px hsl(0 0% 0% / .35); }
.recent-landing { width: min(620px, 100%); margin: 8px auto 0; }
.recent-landing button { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--weak); cursor: pointer; font: .68rem "IBM Plex Mono", monospace; padding: 9px 4px; text-align: left; }.recent-landing button:hover { background: var(--bg-hover); color: var(--strong); }.recent-landing span { color: var(--weaker); }.recent-landing .recent-clear { color: var(--weaker); font-size: .62rem; }
.recent-landing[hidden] { display: none; }
.recent-control { position: relative; flex: none; }.recent-control .recent-searches { top: calc(100% + 2px); right: auto; left: 50%; transform: translateX(-50%); z-index: 100; }
.share-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 5px; background: transparent; color: var(--weak); cursor: pointer; }.share-button:hover { border-color: var(--accent-muted); color: var(--strong); }.share-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.share-button.copied { color: var(--accent); }
.gear-row .gem-icon { box-shadow: 0 0 0 1px hsl(0 3% 38%); }
.share-button svg { opacity: 1; transition: opacity .1s ease; }.share-button.icon-fade svg { opacity: 0; }
.recent-searches[hidden] { display: none; }
.recent-searches button { width: 100%; border: 0; border-radius: 3px; padding: 8px 9px; text-align: left; }.recent-searches button:hover { background: var(--bg-hover); }.recent-searches .recent-clear { margin-top: 4px; border-top: 1px solid var(--border); color: var(--weaker); font-size: .62rem; }
main { width: min(1120px, calc(100% - 48px)); }
.armory-grid { grid-template-columns: 270px 500px 270px; justify-content: center; gap: 4px; }
.gear-row { min-height: 0; height: 100%; }
.gear-row.empty { visibility: hidden; }
.gear-rail { min-height: 0; grid-template-rows: repeat(10, minmax(0, 1fr)); align-content: stretch; }
.gear-row { min-height: 0; height: auto; align-self: stretch; overflow: hidden; }
.gear-rail { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; }
.gear-row { flex: none; height: 65px; }
@media (max-width: 1050px) { .armory-grid { grid-template-columns: minmax(220px, 1fr) minmax(330px, 45vw) minmax(220px, 1fr); } }
