/* Оружейная wowcool.su — стиль paperdoll */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
    --armory-primary: #ef972f;
    --armory-primary-dim: rgba(239, 151, 47, 0.2);
    --armory-bg: #200e05;
    --armory-bg2: #170c06;
    --armory-card: rgba(58, 39, 29, 0.85);
    --armory-border: rgba(239, 151, 47, 0.25);
    --armory-text: #fff;
    --armory-muted: #b49a84;
    --armory-class-color: var(--armory-primary);
    --q0: #9d9d9d;
    --q1: #ffffff;
    --q2: #1eff00;
    --q3: #0070dd;
    --q4: #a335ee;
    --q5: #ff8000;
    --q6: #ff8000;
    --q7: #1eff00;
}

* { box-sizing: border-box; }

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: var(--armory-bg);
    color: var(--armory-text);
    overflow-x: hidden;
}

.armory-page {
    min-height: 100vh;
    width: 100%;
    padding-top: 68px;
    background:
        radial-gradient(ellipse at top, rgba(239, 151, 47, 0.07), transparent 55%),
        linear-gradient(180deg, var(--armory-bg) 0%, var(--armory-bg2) 55%, #311300 100%);
    color: var(--armory-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.armory-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* ——— Верхний хедер с логотипом (как на Nozdor) ——— */

.armory-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: var(--armory-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(239, 151, 47, 0.22);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    padding: 12px 0;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.armory-site-header__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

.armory-site-header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.armory-site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    padding: 0 4px;
}

.armory-site-header__logo img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
    transition: filter 0.2s ease;
}

.armory-site-header__logo:hover img {
    filter: drop-shadow(0 2px 8px rgba(239, 151, 47, 0.35));
}

.armory-site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.armory-site-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 14px;
    min-width: 0;
}

.header__account-wrapper {
    position: relative;
    flex-shrink: 0;
}

.header__action-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.header__action-item:hover,
.header__account-wrapper.is-open .header__action-item {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.header__action-item .material-icons {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1.25rem;
}

.header__account {
    font-weight: 500;
}

.header__account-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-dropdown-icon {
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.header__account-wrapper.is-open .account-dropdown-icon {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1100;
    min-width: 220px;
    padding: 8px 0;
    background: rgba(32, 14, 5, 0.98);
    border: 1px solid rgba(239, 151, 47, 0.25);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.account-dropdown:before {
    content: '';
    position: absolute;
    top: -6px;
    right: 18px;
    width: 10px;
    height: 10px;
    background: rgba(32, 14, 5, 0.98);
    border: 1px solid rgba(239, 151, 47, 0.25);
    border-right: none;
    border-bottom: none;
    transform: rotate(45deg);
}

.account-dropdown[hidden] {
    display: none !important;
}

.account-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.account-dropdown__item .material-icons {
    font-size: 1.15rem;
    width: 1.15rem;
    height: 1.15rem;
    line-height: 1.15rem;
    color: #b49a84;
}

.account-dropdown__item:hover {
    background: rgba(239, 151, 47, 0.15);
    color: #ef972f;
}

.account-dropdown__item:hover .material-icons {
    color: #ef972f;
}

.account-dropdown__item--logout {
    margin-top: 4px;
    border-top: 1px solid rgba(239, 151, 47, 0.12);
}

.account-dropdown__item--logout:hover {
    background: rgba(244, 67, 54, 0.12);
    color: #ff8a80;
}

.account-dropdown__item--logout:hover .material-icons {
    color: #ff8a80;
}

.armory-site-header__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f2e8dc;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 9px 14px;
    border-radius: 4px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    transition: color 0.15s ease, background 0.15s ease;
}

.armory-site-header__link:hover {
    color: #fff;
    background: rgba(239, 151, 47, 0.14);
}

.armory-site-header__link.is-active {
    color: #fff;
    background: rgba(239, 151, 47, 0.2);
    box-shadow: inset 0 0 0 1px rgba(239, 151, 47, 0.35);
}

.armory-site-header__emblem {
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.armory-emblem {
    flex-shrink: 0;
    display: block;
}

.armory-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.armory-nav__spacer { flex: 1; min-width: 8px; }

.armory-nav a {
    color: #846f4a;
    text-decoration: none;
    transition: color 0.2s;
}

.armory-nav a:hover { color: var(--armory-primary); }
.armory-nav .sep { color: #555; }

.armory-card {
    background: var(--armory-card);
    border: 1px solid var(--armory-border);
    border-radius: 6px;
    overflow: visible;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Hero */
.armory-hero {
    position: relative;
    padding: 28px 24px 20px;
    overflow: visible;
}

.armory-hero h1,
.armory-hero p,
.armory-hero span {
    font-family: inherit;
}

.armory-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--armory-class-color) 28%, transparent), transparent 55%),
        radial-gradient(circle at 88% 80%, color-mix(in srgb, var(--armory-class-color) 12%, transparent), transparent 60%),
        linear-gradient(135deg, rgba(0,0,0,0.45), rgba(0,0,0,0.15));
}

.armory-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,0.012) 12px 13px);
}

.armory-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
}

.armory-hero__portrait {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.armory-hero__class-icon {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--armory-class-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.4), 0 8px 32px color-mix(in srgb, var(--armory-class-color) 45%, transparent);
    object-fit: cover;
}

.armory-hero__faction {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 15px;
    object-fit: contain;
    object-position: center;
    border-radius: 3px;
    border: 1.5px solid var(--armory-class-color);
    background: var(--armory-bg2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.armory-hero__text {
    min-width: 0;
    max-width: 100%;
    text-align: left;
    overflow: hidden;
}

.armory-hero__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.armory-hero__name {
    margin: 0;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    font-weight: 800;
    color: var(--armory-class-color);
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.armory-hero__online-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.25), 0 0 12px #4caf50;
    animation: armory-pulse 1.5s ease-in-out infinite;
}

@keyframes armory-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.armory-hero__sub {
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--armory-muted);
}

.armory-hero__sub .lvl { color: #fff; font-weight: 700; flex-shrink: 0; }
.armory-hero__sub .cls { color: var(--armory-class-color); font-weight: 600; }
.armory-hero__dot { opacity: 0.4; flex-shrink: 0; }

.armory-hero__guild {
    display: inline-block;
    max-width: 100%;
    margin-top: 8px;
    color: var(--armory-primary);
    text-decoration: none;
    font-style: italic;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: top;
}

.armory-hero__guild:hover { text-decoration: underline; }

.armory-vitals {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 260px;
    margin-top: 12px;
}

.armory-vital {
    width: 100%;
}

.armory-vital__bar {
    position: relative;
    height: 22px;
    border-radius: 3px;
    overflow: hidden;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(0,0,0,0.65);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.armory-vital__fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    opacity: 0.95;
    max-width: 100%;
}

.armory-vital--health .armory-vital__fill {
    background: linear-gradient(90deg, #2f9e3f, #46c45a);
    width: var(--pct, 100%);
}

.armory-vital--mana .armory-vital__fill {
    background: linear-gradient(90deg, #1c5fd0, #2f86e0);
    width: var(--pct, 100%);
}

.armory-vital--rage .armory-vital__fill {
    background: linear-gradient(90deg, #9e2820, #c0392b);
    width: var(--pct, 100%);
}

.armory-vital--energy .armory-vital__fill {
    background: linear-gradient(90deg, #c2a200, #ffd21a);
    width: var(--pct, 100%);
}

.armory-vital--runic .armory-vital__fill {
    background: linear-gradient(90deg, #0086a8, #15b6d6);
    width: var(--pct, 100%);
}

.armory-vital__val {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-size: clamp(10px, 2.4vw, 12px);
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 4px #000, 0 1px 2px #000;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.armory-hero__realm {
    text-align: right;
    padding: 10px 14px;
    min-width: 110px;
    max-width: 150px;
    background: rgba(0,0,0,0.35);
    border: 1px solid color-mix(in srgb, var(--armory-class-color) 35%, transparent);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.armory-hero__realm-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--armory-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.armory-hero__realm-value {
    display: block;
    margin-top: 2px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--armory-class-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.armory-social__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--armory-social-color, var(--armory-class-color));
    opacity: 0.9;
}

.armory-social__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.armory-social__icon--muted {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.armory-social__icon--muted svg {
    width: 14px;
    height: 14px;
}

.armory-social__icon--like {
    position: relative;
    width: 18px;
    height: 18px;
}

.armory-social__icon-filled {
    display: none;
}

.armory-social__btn--like.armory-social__btn--active .armory-social__icon-outline {
    display: none;
}

.armory-social__btn--like.armory-social__btn--active .armory-social__icon-filled {
    display: block;
}

.armory-hero__social {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    --armory-social-color: var(--armory-class-color, var(--armory-primary));
    border-top: 1px solid color-mix(in srgb, var(--armory-social-color) 18%, transparent);
}

.armory-social__stat,
.armory-social__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 11px;
    border-radius: 4px;
    border: 1px solid color-mix(in srgb, var(--armory-social-color) 22%, transparent);
    background: rgba(0, 0, 0, 0.25);
    color: var(--armory-text);
    font-size: 0.85rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.armory-social__stat {
    color: var(--armory-muted);
}

.armory-social__btn {
    margin: 0;
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.armory-social__btn:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--armory-social-color) 55%, transparent);
    background: color-mix(in srgb, var(--armory-social-color) 12%, rgba(0, 0, 0, 0.25));
}

.armory-social__btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.armory-social__btn--like.armory-social__btn--active {
    border-color: rgba(255, 90, 122, 0.5);
    background: rgba(255, 90, 122, 0.1);
}

.armory-social__btn--like.armory-social__btn--active .armory-social__icon,
.armory-social__btn--like.armory-social__btn--active .armory-social__count {
    color: #ff5a7a;
    opacity: 1;
}

.armory-social__count {
    font-weight: 700;
    color: color-mix(in srgb, var(--armory-social-color) 85%, #fff);
}

.armory-social__stat .armory-social__count {
    color: color-mix(in srgb, var(--armory-social-color) 85%, #fff);
}

.armory-social__label {
    font-size: 0.82rem;
    font-weight: 700;
}

.armory-hero__updated {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: var(--armory-muted);
    font-size: 0.74rem;
    white-space: nowrap;
}

.armory-twinks-dd {
    position: relative;
    z-index: 40;
}

.armory-twinks-dd__arrow {
    margin-left: -2px;
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.armory-twinks-dd__trigger[aria-expanded="true"] .armory-twinks-dd__arrow {
    transform: rotate(180deg);
}

.armory-twinks-menu {
    display: none;
    min-width: 250px;
    max-width: 320px;
    max-height: 360px;
    overflow-y: auto;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    background: #170c06;
    border: 1px solid rgba(239, 151, 47, 0.35);
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
    scrollbar-width: thin;
    scrollbar-color: var(--armory-primary-dim) transparent;
}

.armory-twinks-menu.is-open {
    display: flex;
    position: fixed;
    z-index: 10000;
}

.armory-twinks-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    cursor: default;
    appearance: none;
    -webkit-appearance: none;
}

.armory-twinks-backdrop.is-open {
    display: block;
}

.armory-twink-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--armory-text);
    background: #170c06;
    transition: background 0.12s ease;
}

.armory-twink-row:hover {
    background: rgba(239, 151, 47, 0.12);
}

.armory-twink-row__faction,
.armory-twink-row .armory-faction-flag {
    flex-shrink: 0;
}

.armory-twink-row .armory-faction-flag--tiny {
    opacity: 0.9;
}

.armory-twink-row__class {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    object-fit: cover;
}

.armory-twink-row__name {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.armory-twink-row__lvl {
    margin-left: auto;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--armory-muted);
    font-variant-numeric: tabular-nums;
}

.armory-twink-row__online {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 5px #4caf50;
}

.armory-twinks-dd__hint {
    margin: 4px 0 0;
    padding: 8px 8px 4px;
    border-top: 1px solid rgba(239, 151, 47, 0.12);
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--armory-muted);
    background: #170c06;
}

/* Stats strip */
.armory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(239,151,47,0.1);
    border-bottom: 1px solid rgba(239,151,47,0.1);
}

.armory-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    background: var(--armory-card);
}

.armory-stat__icon { font-size: 1.4rem; opacity: 0.85; }

.armory-stat__body { display: flex; flex-direction: column; min-width: 0; }

.armory-stat__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--armory-muted);
}

.armory-stat__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Equipment section */
.armory-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 16px 20px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--armory-primary);
    text-align: left;
}

.armory-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    gap: 16px;
    padding: 0 20px 24px;
    align-items: stretch;
}

.armory-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
}

.armory-section--equipment,
.armory-section--activity {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.armory-section--activity {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(239, 151, 47, 0.12);
    border-radius: 6px;
}

.armory-section--activity .armory-section-title {
    padding: 14px 16px 10px;
}

.armory-section--equipment .armory-section-title {
    padding-left: 0;
    padding-right: 0;
}

.armory-section--equipment .armory-paperdoll {
    padding-left: 0;
    padding-right: 0;
}

.armory-paperdoll {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 1.2fr) 1fr;
    gap: 16px;
    padding: 16px 20px 24px;
    align-items: stretch;
}

.armory-paperdoll__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.armory-paperdoll__col--right .armory-slot-row {
    flex-direction: row-reverse;
}

.armory-slot-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.armory-slot-row__label {
    font-size: 0.72rem;
    color: var(--armory-muted);
    width: 72px;
    text-align: right;
    flex-shrink: 0;
}

.armory-paperdoll__col--right .armory-slot-row__label {
    text-align: left;
}

.armory-slot-wrap {
    position: relative;
    flex-shrink: 0;
}

.armory-slot {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 4px;
    border: 1px solid #2a516d;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    text-decoration: none;
    font-size: 0;
    color: transparent;
    transition: filter 0.15s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.armory-slot--filled {
    display: flex;
    align-items: center;
    justify-content: center;
}

.armory-slot__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: transparent;
    font-size: 0;
}

.armory-slot__gems {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1px;
    z-index: 6;
    pointer-events: none;
}

.armory-slot__gem-link {
    pointer-events: auto;
    display: block;
    line-height: 0;
    text-decoration: none;
}

.armory-slot__gem {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.75);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.85);
    object-fit: cover;
    display: block;
    background: #111;
}

.armory-slot__gem--empty {
    width: 11px;
    height: 11px;
    margin-top: 1px;
    border-radius: 50%;
    opacity: 0.92;
}

.armory-slot__gems--count-1 {
    justify-content: center;
}

.armory-slot__gems--count-2 {
    justify-content: space-between;
    padding: 0 1px;
}

.armory-slot__gems--count-3 {
    justify-content: space-between;
}

.armory-slot__icon {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    border: 1px solid var(--armory-primary);
    box-shadow: 0 0 10px rgba(239, 151, 47, 0.35);
    object-fit: cover;
    display: block;
}

.armory-slot--filled:hover .armory-slot__icon {
    filter: brightness(1.12);
}

.armory-slot:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--armory-class-color) 50%, transparent);
}

.armory-slot--empty:hover {
    filter: none;
    box-shadow: none;
}

.armory-slot[data-rarity="0"] { border-color: var(--q0); }
.armory-slot[data-rarity="1"] { border-color: var(--q1); }
.armory-slot[data-rarity="2"] { border-color: var(--q2); box-shadow: 0 0 0 1px rgba(30,255,0,0.15); }
.armory-slot[data-rarity="3"] { border-color: var(--q3); box-shadow: 0 0 0 1px rgba(0,112,221,0.2); }
.armory-slot[data-rarity="4"] { border-color: var(--q4); box-shadow: 0 0 0 1px rgba(163,53,238,0.3), 0 0 12px rgba(163,53,238,0.25); }
.armory-slot[data-rarity="5"],
.armory-slot[data-rarity="6"] { border-color: var(--q5); box-shadow: 0 0 0 1px rgba(255,128,0,0.35), 0 0 14px rgba(255,128,0,0.2); }

.armory-slot--empty {
    border: 1px solid #2a516d;
    background-color: #0a0a0a;
    cursor: default;
    opacity: 0.92;
}

.armory-slot--empty::after {
    content: none;
    display: none;
}

.armory-paperdoll__center {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    justify-content: space-between;
}

.armory-stats-panel {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(239,151,47,0.12);
    border-radius: 6px;
    padding: 14px;
    text-align: left;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.armory-stats-panel__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.armory-stats-panel h3 {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--armory-class-color);
    text-align: center;
}

.armory-stats-select {
    width: 100%;
    padding: 6px 28px 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(239, 151, 47, 0.25);
    background: rgba(0, 0, 0, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ef972f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    appearance: none;
}

.armory-stats-select:focus {
    outline: none;
    border-color: var(--armory-class-color);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--armory-class-color) 35%, transparent);
}

.armory-stats-panels {
    flex: 1;
    min-height: 0;
}

.armory-stats-list[hidden] {
    display: none !important;
}

.armory-stats-list--active {
    display: flex;
}

.armory-stats-panel__hint {
    margin-left: 4px;
    color: var(--armory-muted);
    font-size: 0.85rem;
    cursor: help;
}

.armory-stats-list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.armory-stats-list__row {
    display: flex;
    justify-content: space-between;
    padding: 5px 2px;
    font-size: 0.86rem;
    border-bottom: 1px dotted rgba(239,151,47,0.15);
}

.armory-stats-list__row dt {
    margin: 0;
    color: var(--armory-muted);
}

.armory-stats-list__row dd {
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.armory-ilvl-badge {
    text-align: center;
    padding: 16px;
    border-top: 1px solid rgba(239,151,47,0.08);
}

.armory-ilvl-badge__value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--armory-class-color);
    font-variant-numeric: tabular-nums;
}

.armory-ilvl-badge__sub {
    font-size: 0.78rem;
    color: var(--armory-muted);
}

.armory-weapons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.armory-weapon-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.armory-weapon-slot__label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--armory-muted);
    text-align: center;
    max-width: 64px;
    line-height: 1.1;
}

@media (max-width: 900px) {
    .armory-hero__content {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .armory-hero__realm {
        grid-column: 1 / -1;
        text-align: center;
        max-width: none;
        margin: 0 auto;
    }
    .armory-vitals {
        max-width: 100%;
    }
    .armory-hero__social {
        gap: 8px;
    }
    .armory-hero__updated {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
    .armory-layout {
        grid-template-columns: 1fr;
    }
    .armory-paperdoll {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "center center"
            "left right"
            "weapons weapons";
    }
    .armory-paperdoll__center { grid-area: center; }
    .armory-paperdoll__col--left { grid-area: left; }
    .armory-paperdoll__col--right { grid-area: right; }
    .armory-paperdoll__footer { grid-area: weapons; }
}

@media (max-width: 600px) {
    .armory-hero__name { font-size: 1.5rem; }
    .armory-paperdoll { grid-template-columns: 1fr; }
    .armory-slot-row__label { display: none; }
}

/* Tabs */
.armory-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    padding: 0 12px;
    border-bottom: 1px solid rgba(239, 151, 47, 0.18);
    background: rgba(0, 0, 0, 0.25);
    scrollbar-width: thin;
}

.armory-tabs__tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    white-space: nowrap;
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--armory-muted);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.armory-tabs__tab:hover {
    color: #fff;
    background: rgba(239, 151, 47, 0.05);
}

.armory-tabs__tab--active {
    color: var(--armory-class-color);
    border-bottom-color: var(--armory-class-color);
}

.armory-panel { padding-bottom: 8px; }
.armory-panel[hidden] { display: none !important; }

.armory-stat__sub {
    font-size: 0.68rem;
    color: var(--armory-muted);
}

.armory-hero__spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    color: #fff;
    font-weight: 600;
}

.armory-hero__spec-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.armory-hero__spec-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Talents */
.armory-talents-tab {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.armory-talentset-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.armory-talentset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 140px;
    padding: 10px 18px;
    border: 1px solid rgba(239, 151, 47, 0.25);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    position: relative;
}

.armory-talentset-btn:hover {
    border-color: rgba(239, 151, 47, 0.5);
    background: rgba(239, 151, 47, 0.08);
}

.armory-talentset-btn--active {
    border-color: var(--armory-primary);
    background: rgba(239, 151, 47, 0.14);
    box-shadow: inset 0 0 0 1px var(--armory-primary);
}

.armory-talentset-btn__num {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--armory-muted);
}

.armory-talentset-btn__name {
    font-size: 0.95rem;
    font-weight: 700;
}

.armory-talentset-btn__live {
    position: absolute;
    top: 8px;
    right: 10px;
    color: #4caf50;
    font-size: 0.7rem;
    line-height: 1;
}

.armory-talentset-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.armory-talentset-panel[hidden] {
    display: none !important;
}

.armory-spec-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.armory-spec-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(239, 151, 47, 0.2);
    border-radius: 8px;
    min-width: 130px;
}

.armory-spec-pill--active {
    border-color: var(--armory-primary);
    background: rgba(239, 151, 47, 0.12);
    box-shadow: inset 0 0 0 1px var(--armory-primary);
}

.armory-spec-pill--equipped::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
}

.armory-spec-pill { position: relative; }

.armory-spec-pill__icon {
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.armory-spec-pill__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.armory-spec-pill__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.armory-spec-pill__points {
    font-size: 0.82rem;
    color: var(--armory-muted);
}

.armory-spec-summary {
    margin: 0;
    font-size: 0.85rem;
    color: var(--armory-muted);
    text-align: center;
    width: 100%;
}

.armory-talent-trees {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.armory-talent-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    --tree-tint: var(--armory-primary);
    border: 1px solid color-mix(in srgb, var(--tree-tint) 45%, transparent);
    border-radius: 4px;
    padding: 10px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tree-tint) 7%, transparent), transparent 55%);
}

.armory-talent-tree__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 700;
    padding-bottom: 4px;
    width: 100%;
    max-width: 266px;
}

.armory-talent-tree__name { font-size: 1rem; color: var(--tree-tint); }
.armory-talent-tree__points { font-size: 1.1rem; color: #fff; }

.armory-talent-grid {
    display: grid;
    grid-template-columns: repeat(4, 50px);
    gap: 18px;
    padding: 6px 8px 10px;
    background-color: #000;
    background-image: var(--tree-bg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    border: 1px solid #404040;
    border-radius: 2px;
    min-height: 280px;
}

.armory-talent-cell {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.armory-talent-cell--empty {
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    background: transparent;
}

.armory-talent-cell .iconmedium {
    margin: 0;
    position: relative;
}

.armory-talent-icon--locked ins {
    filter: grayscale(90%) brightness(45%);
}

.armory-talent-cell__rank {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 30;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    font-size: 11px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    color: #17fd17;
    background: rgba(0, 0, 0, 0.88);
    border-radius: 3px 0 0;
    pointer-events: none;
    font-family: Verdana, sans-serif;
}

.armory-talent-cell__rank--max {
    color: #e7ba00;
}

.armory-talent-cell .iconmedium a.bubbly {
    background-position: 0 0;
}

/* Glyphs */
.armory-glyphs-section { margin-top: 8px; }

.armory-glyphs-title {
    margin: 0 0 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--armory-primary);
    text-align: left;
}

.armory-glyphs {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.armory-glyph-group { min-width: 240px; }

.armory-glyph-group__title {
    margin: 0 0 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--armory-muted);
    text-align: center;
}

.armory-glyph-group--major .armory-glyph-group__title { color: #a335ee; }
.armory-glyph-group--minor .armory-glyph-group__title { color: #0070dd; }

.armory-glyph-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.armory-glyph {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(239, 151, 47, 0.15);
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
}

.armory-glyph--major.armory-glyph--filled {
    border-color: rgba(163, 53, 238, 0.35);
}

.armory-glyph--minor.armory-glyph--filled {
    border-color: rgba(0, 112, 221, 0.35);
}

.armory-glyph--filled:hover { border-color: var(--armory-primary); }

.armory-glyph__iconwrap {
    flex-shrink: 0;
}

.armory-glyph__iconwrap ins {
    background-size: 36px 36px;
}

.armory-glyph__name { font-size: 0.85rem; }

.armory-glyph--empty {
    opacity: 0.55;
}

.armory-glyph__iconwrap--empty ins {
    opacity: 0.45;
    filter: grayscale(35%);
}

.armory-glyph--empty .armory-glyph__name {
    font-style: italic;
    color: var(--armory-muted);
}

/* Professions */
.armory-prof-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 24px;
}

.armory-prof {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(239, 151, 47, 0.1);
    border-radius: 8px;
}

.armory-prof__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 4px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #4a4a4a 0%, #1c1c1c 45%, #303030 100%);
    border: 1px solid #5c5c5c;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 1px 3px rgba(0, 0, 0, 0.45);
}

.armory-prof__img {
    width: 36px;
    height: 36px;
    display: block;
    border-radius: 2px;
    object-fit: cover;
}

.armory-prof__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.armory-prof__head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.armory-prof__name { font-weight: 600; color: #fff; }
.armory-prof__value { font-size: 0.82rem; color: var(--armory-muted); }

.armory-prof__track {
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.armory-prof__fill {
    height: 100%;
    border-radius: 999px;
    background: var(--armory-class-color);
    transition: width 0.4s ease;
}

.armory-prof[data-category="crafting"] .armory-prof__fill { background: var(--armory-primary); }
.armory-prof[data-category="gathering"] .armory-prof__fill { background: #4caf50; }
.armory-prof[data-category="secondary"] .armory-prof__fill { background: #5dade2; }

.armory-prof--maxed .armory-prof__value { color: #ffd166; }
.armory-prof--maxed .armory-prof__fill {
    background: linear-gradient(90deg, #ffcf6b, #ff9f1a);
}

/* Achievements */
.armory-achievements-tab {
    padding: 0 20px 24px;
}

.armory-achcat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}

.armory-achcat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid color-mix(in srgb, var(--armory-class-color, var(--armory-primary)) 18%, transparent);
    border-radius: 8px;
    transition: var(--transition-fast, all 0.2s ease-in-out);
}

.armory-achcat:hover {
    border-color: color-mix(in srgb, var(--armory-class-color, var(--armory-primary)) 55%, transparent);
    background: color-mix(in srgb, var(--armory-class-color, var(--armory-primary)) 8%, rgba(0, 0, 0, 0.25));
}

.armory-achcat__ring {
    position: relative;
    width: 72px;
    height: 72px;
}

.armory-achcat__svg {
    width: 72px;
    height: 72px;
    transform: rotate(-90deg);
}

.armory-achcat__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 5;
}

.armory-achcat__arc {
    fill: none;
    stroke: var(--armory-primary);
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.armory-achcat__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    color: var(--armory-class-color, var(--armory-primary));
    font-size: 24px;
    line-height: 1;
}

.armory-achcat__pct {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--armory-text, #fff);
}

.armory-achcat__name {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.15;
    color: var(--armory-secondary, #ef972f);
}

.armory-achcat__progress {
    width: 100%;
    max-width: 132px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
}

.armory-achcat__ratio {
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    color: var(--armory-text, #fff);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.armory-achcat__bar {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.armory-achcat__bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff6b35, var(--armory-primary, #ef972f));
    transition: width 0.4s ease;
}

.armory-ach-summary-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    min-width: 148px;
}

.armory-ach-summary-progress__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--armory-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.armory-ach-summary-progress__bar {
    width: 100%;
    min-width: 132px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.armory-ach-summary-progress__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff6b35, var(--armory-primary, #ef972f));
    transition: width 0.4s ease;
}

.armory-achcat--feat .armory-achcat__icon {
    transform: translate(-50%, -50%);
    font-size: 30px;
}

.armory-ach-recent {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(239, 151, 47, 0.12);
    border-radius: 4px;
    padding: 16px;
}

.armory-ach-recent__title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--armory-secondary, #ef972f);
}

.armory-ach-recent .armory-activity {
    padding: 0;
}

@media (max-width: 600px) {
    .armory-achcat-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .armory-achievements-tab .armory-section-title {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .armory-ach-summary-progress {
        width: 100%;
        align-items: stretch;
        min-width: 0;
    }

    .armory-ach-summary-progress__bar {
        min-width: 0;
    }
}

.armory-ach-summary {
    display: flex;
    gap: 16px;
    padding: 0 20px 16px;
    flex-wrap: wrap;
}

.armory-ach-summary__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    padding: 12px 20px;
    background: rgba(239, 151, 47, 0.1);
    border: 1px solid rgba(239, 151, 47, 0.2);
    border-radius: 6px;
}

.armory-ach-summary__item strong {
    font-size: 1.4rem;
    color: var(--armory-primary);
}

.armory-ach-summary__item span {
    font-size: 0.78rem;
    color: var(--armory-muted);
}

.armory-activity {
    list-style: none;
    margin: 0;
    padding: 0 20px 24px;
}

.armory-activity--feed {
    flex: 1 1 auto;
    padding: 0 12px 12px;
    max-height: 680px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.armory-activity__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(239, 151, 47, 0.06);
    font-size: 0.85rem;
    min-height: 34px;
    box-sizing: border-box;
}

.armory-activity__row:last-child {
    border-bottom: none;
}

.armory-activity__row:hover { background: rgba(239, 151, 47, 0.04); }

.armory-activity__verb {
    color: var(--armory-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.armory-activity__row[data-type="achievement"] .armory-activity__verb { color: #ffc107; }
.armory-activity__row[data-type="loot"] .armory-activity__verb { color: #c98bff; }
.armory-activity__row[data-type="boss-kill"] .armory-activity__verb { color: #ff8a80; }

.armory-activity__entity {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.armory-activity__entity:hover {
    color: var(--armory-class-color);
    text-decoration: underline;
}

.armory-activity__date {
    color: var(--armory-muted);
    font-size: 0.72rem;
    white-space: nowrap;
}

.armory-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    margin: 0 20px 24px;
    padding: 24px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(239, 151, 47, 0.15);
    border-radius: 8px;
    color: var(--armory-muted);
}

.armory-placeholder--compact {
    min-height: 240px;
    margin: 0 12px 12px;
    padding: 20px 16px;
}

.armory-section__hint {
    margin-left: auto;
    color: var(--armory-muted);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: normal;
}

.armory-collection-tab {
    padding: 0 20px 24px;
}

.armory-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 8px;
}

.armory-collectible {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px 7px 7px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid color-mix(in srgb, var(--armory-class-color) 18%, transparent);
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
    min-width: 0;
}

.armory-collectible:hover {
    border-color: color-mix(in srgb, var(--armory-class-color) 55%, transparent);
    background: color-mix(in srgb, var(--armory-class-color) 10%, rgba(0, 0, 0, 0.25));
}

.armory-collectible__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    object-fit: cover;
}

.armory-collectible__name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.15;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 600px) {
    .armory-collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    .armory-tabs__tab { padding: 10px 12px; font-size: 0.8rem; }
    .armory-talent-trees { justify-content: center; }
    .armory-activity__row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .armory-activity__verb { grid-column: 1 / -1; font-size: 0.72rem; }
}

/* ——— Сравнение персонажей (cmp-*) ——— */

.cmp-page {
    min-height: 100vh;
    width: 100%;
    padding-top: 68px;
    background:
        radial-gradient(ellipse at top, rgba(239, 151, 47, 0.06), transparent 60%),
        linear-gradient(180deg, var(--armory-bg) 0%, var(--armory-bg2) 55%, #311300 100%);
    color: var(--armory-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cmp-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.cmp-breadcrumb { margin-bottom: 16px; }

.cmp-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cmp-search__field {
    position: relative;
    flex: 0 1 320px;
}

.cmp-search__field input {
    width: 100%;
    padding: 10px 36px 10px 12px;
    background: var(--armory-bg2);
    border: 1px solid var(--armory-border);
    border-radius: 4px;
    color: var(--armory-text);
    font: inherit;
}

.cmp-search__field input:focus {
    outline: none;
    border-color: var(--armory-primary);
}

.cmp-search__icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--armory-muted);
    pointer-events: none;
}

.cmp-search__btn {
    padding: 10px 24px;
    background: var(--armory-primary);
    border: none;
    border-radius: 4px;
    color: #1a0f08;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: filter 0.2s;
}

.cmp-search__btn:hover { filter: brightness(1.1); }

.cmp-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    margin: 0;
    padding: 4px;
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    background: var(--armory-bg2);
    border: 1px solid var(--armory-border);
    border-radius: 4px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.cmp-suggest__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.cmp-suggest__item:hover {
    background: rgba(239, 151, 47, 0.1);
}

.cmp-error {
    text-align: center;
    color: #f44336;
    margin: 0 0 16px;
    font-size: 0.9rem;
}

.cmp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.cmp-panel--stats {
    min-height: auto;
    align-self: start;
}

.cmp-collections {
    margin-top: 16px;
    min-height: auto;
}

.cmp-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--armory-text);
}

.cmp-stat__icon {
    flex-shrink: 0;
    color: var(--armory-primary);
    opacity: 0.9;
}

.cmp-collrow .cmp-table__num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cmp-diff .cmp-statrow__diff {
    justify-content: center;
}

.cmp-char,
.cmp-panel {
    display: flex;
    flex-direction: column;
    background: var(--armory-card);
    border: 1px solid var(--armory-border);
    border-radius: 4px;
    padding: 16px;
    overflow: visible;
    min-height: 280px;
}

.cmp-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.cmp-panel__title {
    margin: 0;
    font-size: 0.9rem;
    color: var(--armory-primary);
}

.cmp-char__header,
.cmp-char__header--standalone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--armory-border);
}

.cmp-char__header--standalone {
    background: var(--armory-card);
    border: 1px solid var(--armory-border);
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 0;
}

.cmp-headers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.cmp-char__class {
    border-radius: 4px;
    flex-shrink: 0;
}

.cmp-char__id {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.cmp-char__name {
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
}

.cmp-char__name:hover { text-decoration: underline; }

.cmp-char__sub {
    font-size: 0.78rem;
    color: var(--armory-muted);
}

.cmp-char__online {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
    margin-left: 6px;
}

.cmp-ilvl {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--armory-border);
    border-radius: 4px;
}

.cmp-ilvl__value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.cmp-ilvl__label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--armory-muted);
}

.cmp-ilvl--up .cmp-ilvl__value { color: #4caf50; }
.cmp-ilvl--down .cmp-ilvl__value { color: #f44336; }

.cmp-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 16px;
    text-align: center;
    color: var(--armory-muted);
}

.cmp-empty__icon {
    color: var(--armory-primary);
    opacity: 0.55;
}

.cmp-empty__field {
    flex: 0 0 auto;
    width: 100%;
    max-width: 260px;
    margin-top: 4px;
}

/* Paperdoll (как на Nozdor) */
.cmp-doll {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    margin-bottom: 8px;
    width: 100%;
    overflow: visible;
}

.cmp-doll__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    justify-content: space-between;
}

.cmp-doll__col--right {
    align-items: flex-end;
}

.cmp-doll__center {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    min-width: 0;
    height: 100%;
}

.cmp-doll__extras {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: 1;
    width: 100%;
    min-height: 0;
    gap: 0;
}

.cmp-doll__weapons {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
    flex-shrink: 0;
}

.cmp-doll__center .cmp-mini {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 6px 4px;
    border-top: none;
    border-bottom: 1px solid rgba(239, 151, 47, 0.08);
}

.cmp-doll__center .cmp-mini:last-child {
    border-bottom: none;
}

.cmp-doll__center .cmp-mini__label {
    width: auto;
}

.cmp-doll__center .cmp-mini__spec {
    margin-left: 0;
    width: 100%;
    text-align: center;
}

.cmp-doll__center .cmp-mini__icons {
    justify-content: center;
    width: 100%;
}

.cmp-doll__center .cmp-mini--link {
    display: flex;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.cmp-doll__center .cmp-mini--link:hover {
    background: rgba(239, 151, 47, 0.1);
}

.cmp-slot-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.cmp-slot {
    display: block;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.45);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    overflow: visible;
}

.cmp-slot__hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.cmp-slot--empty {
    border-style: dashed;
    border-color: rgba(239, 151, 47, 0.18);
    background-color: rgba(0, 0, 0, 0.25);
}

.cmp-slot--empty::after {
    content: attr(data-slot-name);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(239, 151, 47, 0.4);
    font-size: 0.58rem;
    text-align: center;
    padding: 2px;
    line-height: 1.1;
    pointer-events: none;
}

.cmp-slot[data-rarity="2"] { border-color: #1eff00; }
.cmp-slot[data-rarity="3"] { border-color: #0070dd; }
.cmp-slot[data-rarity="4"] { border-color: #a335ee; }
.cmp-slot[data-rarity="5"] { border-color: #ff8000; }
.cmp-slot[data-rarity="6"] { border-color: #e6cc80; }

.cmp-slot__gems {
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    z-index: 2;
}

.cmp-slot .armory-slot__gems {
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    z-index: 2;
}

.cmp-slot .armory-slot__gem {
    width: 14px;
    height: 14px;
}

.cmp-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(239, 151, 47, 0.08);
    flex-wrap: wrap;
}

.cmp-mini--col {
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cmp-mini--link {
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    transition: background 0.2s;
}

.cmp-mini--link:hover {
    background: rgba(239, 151, 47, 0.1);
}

.cmp-mini__label {
    flex-shrink: 0;
    width: 72px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--armory-muted);
}

.cmp-mini--col .cmp-mini__label {
    width: auto;
    text-align: center;
}

.cmp-mini__talents {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cmp-mini__sep { color: var(--armory-muted); }
.cmp-mini__t--1 { color: #e05b5b; }
.cmp-mini__t--2 { color: #5c8dd6; }
.cmp-mini__t--3 { color: #7bc043; }

.cmp-mini__spec {
    font-size: 0.72rem;
    color: var(--armory-muted);
    margin-left: auto;
    text-align: right;
}

.cmp-mini__icons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cmp-mini__icon {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(0, 0, 0, 0.4);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cmp-mini__icon--diff {
    border-color: var(--armory-primary);
    box-shadow: 0 0 0 1px var(--armory-primary), 0 0 6px rgba(239, 151, 47, 0.55);
}

.cmp-mini__icon--empty {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.cmp-mini__none {
    font-size: 0.78rem;
    color: var(--armory-muted);
    font-style: italic;
}

.cmp-mini__ach {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--armory-text);
}

.cmp-mini__ach--diff {
    color: var(--armory-primary);
}

.cmp-stats-wrap {
    overflow: visible;
}

.cmp-table td.cmp-table__name {
    overflow: visible;
    position: relative;
}

.cmp-table {
    width: 100%;
    border-collapse: collapse;
}

.cmp-table th {
    text-align: left;
    padding: 8px 6px;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--armory-muted);
    border-bottom: 1px solid var(--armory-border);
    white-space: nowrap;
}

.cmp-table th.cmp-table__num,
.cmp-table td.cmp-table__num {
    text-align: center;
}

.cmp-table td {
    padding: 7px 6px;
    border-bottom: 1px solid rgba(239, 151, 47, 0.07);
    color: var(--armory-text);
    font-size: 0.86rem;
    vertical-align: middle;
}

.cmp-table__name {
    min-width: 120px;
    max-width: 180px;
}

.cmp-group td {
    padding: 10px 6px 4px;
    border-bottom: 1px solid rgba(239, 151, 47, 0.15);
    color: var(--armory-primary);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.12);
}

.cmp-stat-tip {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    cursor: help;
}

.cmp-stat-tip__label {
    border-bottom: 1px dotted rgba(180, 154, 132, 0.65);
    line-height: 1.3;
}

.cmp-stat-tip__popup {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    top: auto;
    z-index: 40;
    width: min(300px, 70vw);
    padding: 10px 12px;
    background: linear-gradient(180deg, #2d1c12 0%, #1a1008 100%);
    border: 1px solid rgba(239, 151, 47, 0.35);
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    text-align: left;
    pointer-events: none;
}

.cmp-stat-tip:hover .cmp-stat-tip__popup,
.cmp-stat-tip:focus-within .cmp-stat-tip__popup {
    display: block;
}

.cmp-stat-tip__title {
    display: block;
    margin: 0 0 6px;
    font-size: 0.82rem;
    color: var(--armory-primary);
}

.cmp-stat-tip__desc,
.cmp-stat-tip__calc {
    margin: 0 0 6px;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #d8c8b4;
    font-weight: 400;
}

.cmp-stat-tip__calc {
    margin-bottom: 0;
    color: var(--armory-muted);
    font-style: italic;
}

.cmp-suggest__class {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

.cmp-suggest__name { white-space: nowrap; }

.cmp-suggest__meta {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--armory-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmp-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.cmp-toggles {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cmp-cat {
    padding: 5px 10px;
    background: var(--armory-bg2);
    border: 1px solid var(--armory-border);
    border-radius: 4px;
    color: var(--armory-text);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 110px;
}

.cmp-cat:focus-visible {
    outline: none;
    border-color: var(--armory-primary);
}

.cmp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--armory-muted);
    cursor: pointer;
    user-select: none;
}

.cmp-toggle input {
    width: 15px;
    height: 15px;
    accent-color: var(--armory-primary);
}

.cmp-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cmp-statrow__diff {
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cmp-statrow__diff.cmp-eq {
    color: var(--armory-muted);
}

.cmp-diff {
    line-height: 1;
}

.cmp-arrow {
    flex-shrink: 0;
    display: block;
    opacity: 0.95;
}

.cmp-up { color: #4caf50 !important; }
.cmp-down { color: #f44336 !important; }

.cmp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.76rem;
    color: var(--armory-muted);
}

.cmp-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cmp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.cmp-dot--up { background: #4caf50; }
.cmp-dot--down { background: #f44336; }
.cmp-dot--eq { background: var(--armory-muted); }

@media (max-width: 1100px) {
    .cmp-body { grid-template-columns: 1fr 1fr; }
    .cmp-panel--stats { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
    .cmp-grid { grid-template-columns: 1fr 1fr; }
    .cmp-panel--stats { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .cmp-grid { grid-template-columns: 1fr; }
    .cmp-body,
    .cmp-headers { grid-template-columns: 1fr; }
    .cmp-search__field { flex-basis: 100%; }
    .cmp-doll { gap: 6px; }
    .cmp-slot-wrap,
    .cmp-slot { width: 48px; height: 48px; }
    .cmp-mini__label { width: auto; }
    .cmp-mini__spec { margin-left: 0; width: 100%; text-align: center; }
}

/* ——— Главная оружейной ——— */

.armory-home-page .armory-home__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.armory-home-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px 24px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(58, 39, 29, 0.9), rgba(30, 20, 15, 0.95));
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.armory-home-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 4px;
    overflow: hidden;
    background: radial-gradient(ellipse 60% 80% at 50% -10%, var(--armory-primary-dim), transparent 70%);
}

.armory-home-hero__title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: var(--armory-primary);
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.armory-home-hero__emblem {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 10px rgba(239, 151, 47, 0.5));
}

.armory-home-hero__title-text {
    line-height: 1;
}

.armory-home-hero__title .armory-home__icon {
    width: 1.9rem;
    height: 1.9rem;
}

.armory-home-hero__subtitle {
    position: relative;
    margin: 8px 0 20px;
    max-width: 560px;
    color: rgba(212, 196, 176, 0.72);
    font-size: 0.9rem;
    line-height: 1.45;
}

.armory-home-search {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 520px;
}

.armory-home-search__label {
    display: none;
}

.armory-home-search__field {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 8px;
    padding: 6px 6px 6px 18px;
    border-radius: 8px;
    border: 2px solid rgba(232, 163, 60, 0.45);
    background: rgba(0, 0, 0, 0.38);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.armory-home-search__field::before {
    content: "";
    align-self: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-right: 4px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF972F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.armory-home-search__field:focus-within {
    border-color: var(--armory-primary);
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(239, 151, 47, 0.22);
}

.armory-home-search__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 0;
    border: none;
    outline: none;
    background: none;
    color: var(--armory-text);
    font-size: 1.05rem;
    font-weight: 500;
}

.armory-home-search__input::placeholder {
    color: var(--armory-muted);
    opacity: 0.75;
}

.armory-home-search__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--armory-muted);
    cursor: pointer;
}

.armory-home-search__clear .armory-home__icon {
    width: 16px;
    height: 16px;
}

.armory-home-search__clear:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--armory-text);
}

.armory-home-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 48px;
    height: 38px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--armory-primary), #c97a16);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.armory-home-search__submit:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.armory-home-search__submit .armory-home__icon {
    width: 22px;
    height: 22px;
}

.armory-home-search__submit:hover:not(:disabled) {
    filter: brightness(1.08);
    box-shadow: 0 2px 8px rgba(239, 151, 47, 0.35);
}

.armory-home-search__error {
    margin: 10px 0 0;
    color: #f44336;
    font-size: 0.85rem;
}

.armory-home-search__list,
.armory-home-search__empty {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    padding: 4px;
    list-style: none;
    max-height: 360px;
    overflow-y: auto;
    background: rgba(23, 12, 6, 0.98);
    border: 1px solid rgba(239, 151, 47, 0.3);
    border-radius: 4px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.armory-home-search__empty {
    display: block;
    padding: 14px;
    text-align: center;
    color: var(--armory-muted);
    font-size: 0.9rem;
}

.armory-home-search__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 3px;
    border-left: 2px solid transparent;
    cursor: pointer;
    transition: background 0.12s ease;
}

.armory-home-search__item--alliance { border-left-color: rgba(74, 144, 217, 0.55); }
.armory-home-search__item--horde { border-left-color: rgba(192, 57, 43, 0.55); }
.armory-home-search__item:hover,
.armory-home-search__item--active {
    background: rgba(239, 151, 47, 0.12);
    border-left-color: var(--armory-primary);
}

.armory-home-search__item-icon {
    width: 26px;
    height: 26px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    object-fit: contain;
}

.armory-home-search__item-icon--faction {
    width: 22px;
    height: 15px;
    object-fit: contain;
    border-radius: 2px;
    background: transparent;
    border: none;
}

.armory-home-search__item-icon--guild {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--armory-primary);
    font-size: 1rem;
    line-height: 1;
    background: rgba(239, 151, 47, 0.12);
}

.armory-home-search__item .armory-faction-flag--search {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.35);
}

.armory-home-search__item-type {
    color: var(--armory-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.68rem;
}

.armory-home-search__item-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.armory-home-search__item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--armory-text);
}

.armory-home-search__item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--armory-muted);
}

.armory-home-search__item-level { color: var(--armory-text); font-weight: 600; }
.armory-home-search__item-dot { opacity: 0.4; }
.armory-home-search__item-guild { font-style: italic; }

.armory-home-filters {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 18px;
}

.armory-home-filters__label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(212, 196, 176, 0.72);
}

.armory-home-filters__classes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(232, 163, 60, 0.12);
}

.armory-home-class-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    text-decoration: none;
    transition: all 0.18s ease;
}

.armory-home-class-chip img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    opacity: 0.6;
    filter: grayscale(0.4);
    transition: all 0.18s ease;
}

.armory-home-class-chip:hover {
    transform: translateY(-2px);
}

.armory-home-class-chip:hover img {
    opacity: 1;
    filter: none;
}

.armory-home-class-chip--active {
    border-color: var(--cc, var(--armory-primary));
    background: color-mix(in srgb, var(--cc, var(--armory-primary)) 18%, transparent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--cc, var(--armory-primary)) 30%, transparent);
}

.armory-home-class-chip--active img {
    opacity: 1;
    filter: none;
}

.armory-home-filters__clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px 6px 8px;
    border-radius: 4px;
    color: rgba(212, 196, 176, 0.65);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}

.armory-home-filters__clear .armory-home__icon {
    width: 16px;
    height: 16px;
}

.armory-home-filters__clear:hover {
    color: #f44336;
}

.armory-home-filters__specs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.armory-home-spec-chip {
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid rgba(232, 163, 60, 0.25);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(212, 196, 176, 0.85);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}

.armory-home-spec-chip:hover {
    border-color: var(--armory-primary);
    color: var(--armory-primary);
}

.armory-home-spec-chip--active {
    border-color: rgba(232, 163, 60, 0.5);
    background: rgba(232, 163, 60, 0.25);
    color: var(--armory-primary);
}

.armory-home-advanced {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 4px;
}

.armory-home-advanced__group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.armory-home-advanced__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(212, 196, 176, 0.72);
}

.armory-home-faction-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid rgba(232, 163, 60, 0.2);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(212, 196, 176, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.armory-home-faction-chip img,
.armory-home-faction-chip .armory-faction-flag__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 2px;
}

.armory-home-faction-chip:hover {
    color: var(--armory-text);
}

.armory-home-faction-chip--alliance.armory-home-faction-chip--active {
    border-color: #5dade2;
    background: rgba(93, 173, 226, 0.18);
    color: #add8f5;
}

.armory-home-faction-chip--horde.armory-home-faction-chip--active {
    border-color: #ec7063;
    background: rgba(236, 112, 99, 0.18);
    color: #f3a79e;
}

.armory-home-advanced__input {
    width: 58px;
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid rgba(232, 163, 60, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: var(--armory-text);
    font-size: 0.82rem;
    text-align: center;
    outline: none;
    transition: border-color 0.15s ease;
}

.armory-home-advanced__input--wide {
    width: 70px;
}

.armory-home-advanced__input:focus {
    border-color: var(--armory-primary);
}

.armory-home-advanced__dash {
    color: rgba(212, 196, 176, 0.5);
}

.armory-home-section__online {
    color: #7dda80;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.armory-home-table--browse .armory-home-table__head,
.armory-home-table--browse .armory-home-row {
    grid-template-columns: minmax(0, 2fr) 72px minmax(0, 1.3fr) 58px 58px;
}

.col-lvl,
.col-ilvl {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(212, 196, 176, 0.85);
}

.armory-home-table__head .col-lvl {
    font-size: 0.62rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.col-online {
    display: flex;
    align-items: center;
    justify-content: center;
}

.armory-home-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.armory-home-online-dot--off {
    background: rgba(212, 196, 176, 0.2);
    box-shadow: none;
}

.armory-home-advanced__input::-webkit-outer-spin-button,
.armory-home-advanced__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.armory-home-advanced__input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.armory-home-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.armory-home-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(58, 39, 29, 0.7);
    border: 1px solid var(--armory-primary-dim);
    border-radius: 4px;
}

.armory-home-stat__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(239, 151, 47, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.armory-home-stat__svg {
    display: block;
    width: 1.85rem;
    height: 1.85rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.armory-home-stat__icon .armory-home__icon {
    width: 1.6rem;
    height: 1.6rem;
}

.armory-home-stat--online .armory-home-stat__icon {
    border-color: rgba(76, 175, 80, 0.35);
    background: rgba(76, 175, 80, 0.1);
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.12);
}

.armory-home-stat--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.armory-home-stat--link:hover {
    border-color: rgba(239, 151, 47, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.armory-home-stat--link:hover .armory-home-stat__label,
.armory-home-stat--link:hover .armory-home-stat__hint {
    color: rgba(239, 151, 47, 0.95);
}

.armory-home-guild-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 14px;
}

.armory-home-guild-filters__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(212, 196, 176, 0.65);
}

.armory-home-guild-filters__chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.armory-home-guild-filters__count {
    margin-left: auto;
    font-size: 0.76rem;
    color: rgba(212, 196, 176, 0.55);
    font-variant-numeric: tabular-nums;
}

.armory-home-table--guilds .armory-home-table__head,
.armory-home-table--guilds .armory-home-guild-row {
    grid-template-columns: 40px minmax(0, 2fr) minmax(0, 1.4fr) 110px;
}

.armory-home-table__head--sortable .armory-home-sort {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: rgba(212, 196, 176, 0.8);
    text-decoration: none;
    transition: color 0.15s ease;
}

.armory-home-table__head--sortable .armory-home-sort:hover {
    color: var(--armory-primary);
}

.armory-home-table__head--sortable .armory-home-sort--active {
    color: var(--armory-primary);
}

.col-guild-faction,
.col-guild-members {
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-guild-name,
.col-guild-leader {
    display: flex;
    align-items: center;
    min-width: 0;
}

.col-guild-members {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(212, 196, 176, 0.9);
}

.armory-home-table__head .col-guild-faction,
.armory-home-table__head .col-guild-members {
    justify-self: center;
}

.armory-home-guild-row {
    display: grid;
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(100, 80, 60, 0.15);
    font-size: 0.85rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    cursor: pointer;
}

.armory-home-guild-row:hover {
    text-decoration: none;
    color: inherit;
}

.armory-home-guild-row:last-child {
    border-bottom: none;
}

.armory-home-guild-row--alliance { background: rgba(93, 173, 226, 0.04); }
.armory-home-guild-row--alliance:hover { background: rgba(93, 173, 226, 0.1); }
.armory-home-guild-row--horde { background: rgba(236, 112, 99, 0.04); }
.armory-home-guild-row--horde:hover { background: rgba(236, 112, 99, 0.1); }

.armory-faction-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 11px;
    border-radius: 2px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    line-height: 0;
}

.armory-faction-flag--chip {
    width: 14px;
    height: 10px;
}

.armory-faction-flag--tiny {
    width: 14px;
    height: 10px;
}

.armory-faction-flag__img,
.armory-home-row__faction,
.armory-home-guild-row__faction {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 2px;
    flex-shrink: 0;
}

.armory-home-guild-row__faction-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 11px;
    border-radius: 2px;
    font-size: 0.58rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(212, 196, 176, 0.85);
}

.armory-home-guild-row__name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.armory-home-guild-row__name--alliance { color: #5dade2; }
.armory-home-guild-row__name--horde { color: #ec7063; }

.armory-home-guild-row__leader {
    color: rgba(225, 210, 190, 0.92);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.armory-home-guild-row__leader:hover {
    color: var(--armory-primary);
    text-decoration: underline;
}

.armory-home-guild-row__leader--empty {
    color: rgba(212, 196, 176, 0.4);
}

.armory-guild-detail__hero {
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 4px;
    border: 1px solid var(--armory-primary-dim);
    background: linear-gradient(135deg, rgba(58, 39, 29, 0.92), rgba(30, 20, 15, 0.96));
}

.armory-guild-detail__hero--alliance {
    border-color: rgba(93, 173, 226, 0.35);
    background: linear-gradient(135deg, rgba(58, 39, 29, 0.92), rgba(20, 35, 55, 0.55));
}

.armory-guild-detail__hero--horde {
    border-color: rgba(236, 112, 99, 0.35);
    background: linear-gradient(135deg, rgba(58, 39, 29, 0.92), rgba(55, 20, 15, 0.55));
}

.armory-guild-detail__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.armory-faction-flag--guild-hero {
    width: 22px;
    height: 15px;
}

.armory-guild-detail__title {
    margin: 0;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.armory-guild-detail__title--alliance { color: #5dade2; }
.armory-guild-detail__title--horde { color: #ec7063; }

.armory-guild-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.82rem;
    color: rgba(212, 196, 176, 0.8);
}

.armory-guild-detail__dot {
    color: rgba(212, 196, 176, 0.35);
}

.armory-guild-detail__online {
    color: #7dda80;
}

.armory-guild-detail__leader {
    color: var(--armory-primary);
    text-decoration: none;
}

.armory-guild-detail__leader:hover {
    text-decoration: underline;
}

.armory-guild-detail__motd {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
    border-left: 3px solid var(--armory-primary);
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(225, 210, 190, 0.88);
}

.armory-guild-detail__members-title {
    margin-top: 4px;
}

.armory-home-table--guild-members .armory-home-table__head,
.armory-home-table--guild-members .armory-home-guild-member-row {
    grid-template-columns: minmax(0, 2.2fr) 72px minmax(0, 1.2fr) 120px;
}

.col-guild-member-rank,
.col-guild-member-status {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: rgba(212, 196, 176, 0.88);
}

.col-guild-member-rank {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-guild-member-status {
    font-size: 0.76rem;
}

.armory-home-stat__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.armory-home-stat__value {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.armory-home-stat__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(212, 196, 176, 0.65);
}

.armory-home-stat__hint {
    margin-top: 2px;
    font-size: 0.66rem;
    line-height: 1.25;
    color: rgba(212, 196, 176, 0.45);
}

.armory-home-section {
    background: rgba(58, 39, 29, 0.7);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 16px;
}

.armory-home-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    color: var(--armory-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(232, 163, 60, 0.15);
}

.armory-home-section__title .armory-home__icon {
    width: 1.1rem;
    height: 1.1rem;
}

.armory-home-section__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    border-radius: 4px;
    background: rgba(232, 163, 60, 0.2);
    color: var(--armory-primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.armory-home-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 20px;
    color: rgba(212, 196, 176, 0.72);
    text-align: center;
}

.armory-home-state .armory-home__icon {
    width: 2.25rem;
    height: 2.25rem;
    opacity: 0.55;
}

.armory-home-state p {
    margin: 0;
    max-width: 420px;
    font-size: 0.9rem;
}

.armory-home-table {
    overflow-x: auto;
}

.armory-home-table__head,
.armory-home-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 2fr) 72px minmax(0, 1.3fr) 58px 58px 58px;
    gap: 10px;
    align-items: center;
}

.armory-home-table__head {
    padding: 10px 16px;
    background: rgba(60, 45, 35, 0.95);
    border-radius: 4px;
    border-bottom: 1px solid rgba(100, 80, 60, 0.3);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(212, 196, 176, 0.8);
}

.armory-home-table__head .col-rank,
.armory-home-table__head .col-spec,
.armory-home-table__head .col-stat {
    justify-self: center;
}

.armory-home-table__head .col-stat .armory-home__icon {
    width: 1rem;
    height: 1rem;
    opacity: 0.75;
}

.armory-home-row {
    padding: 8px 16px;
    border-bottom: 1px solid rgba(100, 80, 60, 0.15);
    font-size: 0.85rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.armory-home-row:last-child {
    border-bottom: none;
}

.armory-home-row--alliance { background: rgba(93, 173, 226, 0.05); }
.armory-home-row--alliance:hover { background: rgba(93, 173, 226, 0.13); }
.armory-home-row--horde { background: rgba(236, 112, 99, 0.05); }
.armory-home-row--horde:hover { background: rgba(236, 112, 99, 0.13); }

.col-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(212, 196, 176, 0.55);
}

.col-rank.gold { color: gold; text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.col-rank.silver { color: silver; text-shadow: 0 0 8px rgba(192, 192, 192, 0.4); }
.col-rank.bronze { color: #cd7f32; text-shadow: 0 0 8px rgba(205, 127, 50, 0.4); }

.col-player {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.armory-home-row__class {
    display: block;
    width: 26px;
    height: 26px;
    min-width: 26px;
    max-width: 26px;
    min-height: 26px;
    max-height: 26px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.armory-home-row__id {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.15;
}

.armory-home-row__name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.armory-home-row__name--alliance { color: #5dade2; }
.armory-home-row__name--horde { color: #ec7063; }

.armory-home-row__guild {
    font-size: 0.7rem;
    color: rgba(212, 196, 176, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-spec {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    color: rgba(225, 210, 190, 0.9);
}

.armory-home-row__spec-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
}

.armory-home-row__spec-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-stat {
    display: grid;
    grid-template-columns: 18px auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 600;
    color: rgba(212, 196, 176, 0.85);
}

.col-stat__icon .armory-home__icon {
    width: 18px;
    height: 18px;
}

.col-stat__icon--view { color: rgba(212, 196, 176, 0.7); }
.col-stat__icon--like { color: #e06c75; }
.col-stat__icon--fav { color: var(--armory-primary); }

.col-stat__value {
    text-align: left;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .armory-site-header {
        padding: 10px 0;
    }

    .armory-site-header__logo img {
        height: 34px;
        max-width: 170px;
    }

    .armory-site-header__link {
        font-size: 0.76rem;
        padding: 6px 10px;
    }

    .armory-site-header__link {
        font-size: 0.84rem;
        padding: 7px 10px;
        gap: 5px;
    }

    .armory-site-header__emblem {
        width: 16px !important;
        height: 16px !important;
    }

    .armory-page,
    .cmp-page {
        padding-top: 58px;
    }

    .armory-home-hero { padding: 24px 16px; }
    .armory-home-hero__title { font-size: 1.25rem; letter-spacing: 1px; }
    .armory-home-hero__emblem { width: 2.4rem; height: 2.4rem; }
    .armory-home-stats { grid-template-columns: repeat(2, 1fr); }
    .armory-home-table__head,
    .armory-home-row {
        grid-template-columns: 34px minmax(0, 2fr) 52px minmax(0, 1.1fr) 46px 46px 46px;
        gap: 6px;
    }
    .armory-home-table--browse .armory-home-table__head,
    .armory-home-table--browse .armory-home-row {
        grid-template-columns: minmax(0, 2fr) 52px minmax(0, 1.1fr) 46px 46px;
    }
    .armory-home-table--guilds .armory-home-table__head,
    .armory-home-table--guilds .armory-home-guild-row {
        grid-template-columns: 56px minmax(0, 2fr) minmax(0, 1.2fr) 72px;
        gap: 6px;
    }
    .armory-home-table--guild-members .armory-home-table__head,
    .armory-home-table--guild-members .armory-home-guild-member-row {
        grid-template-columns: minmax(0, 2fr) 52px minmax(0, 1fr) 92px;
        gap: 6px;
    }
    .armory-home-guild-filters__count {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .armory-home__container { padding: 16px 8px 32px; }
    .armory-home-section { padding: 14px; }
    .armory-home-table__head,
    .armory-home-row {
        grid-template-columns: 28px minmax(0, 2fr) 40px 42px 42px 42px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .armory-home-table--browse .armory-home-table__head,
    .armory-home-table--browse .armory-home-row {
        grid-template-columns: minmax(0, 2fr) 40px 42px 42px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .armory-home-table__head .col-lvl {
        font-size: 0.58rem;
    }
    .armory-home-table--browse .col-spec { display: none; }
    .armory-home-table--guilds .col-guild-leader { display: none; }
    .armory-home-table--guilds .armory-home-table__head,
    .armory-home-table--guilds .armory-home-guild-row {
        grid-template-columns: 48px minmax(0, 2fr) 64px;
    }
    .armory-home-table--guild-members .col-guild-member-rank { display: none; }
    .armory-home-table--guild-members .armory-home-table__head,
    .armory-home-table--guild-members .armory-home-guild-member-row {
        grid-template-columns: minmax(0, 2fr) 40px 72px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .col-spec { display: none; }
}

