.wardrobe-form {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.wardrobe-form input {
    padding: .85rem 1rem;
    min-width: 320px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--light);
    font-family: 'Share Tech Mono', monospace;
}

.wardrobe-form button {
    padding: .85rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: rgba(0,200,255,.12);
    color: var(--accent);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    cursor: pointer;
}

.wardrobe-form-hint {
    opacity: .55;
    font-size: .8rem;
}

.armory-wall-wrap {
    position: relative;
    margin: 0 auto;
    max-width: 1280px;
    aspect-ratio: 3 / 2;
    border: 1px solid rgba(255, 184, 92, 0.18);
    border-radius: 22px;
    overflow: hidden;
    background: #05070b;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    isolation: isolate;
}

.armory-wall-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 8, 12, 0.24) 0%, rgba(6, 8, 12, 0.06) 22%, rgba(6, 8, 12, 0.2) 100%),
        radial-gradient(circle at center, rgba(255, 170, 70, 0.08), transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.armory-wall {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) brightness(0.92);
}

.armory-slots {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.armory-slot {
    position: absolute;
    z-index: 3;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    border: 3px solid rgba(255, 188, 96, 0.46);
    border-radius: 14px;
    background: transparent !important;
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.16);
    color: var(--light);
    cursor: pointer;
    overflow: hidden;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

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

.armory-slot:hover {
    border-color: rgba(255, 241, 220, 0.72);
    box-shadow:
        0 0 0 2px rgba(255, 241, 220, 0.2),
        0 0 24px rgba(255, 241, 220, 0.16),
        0 10px 22px rgba(0, 0, 0, 0.16);
}

.armory-slot:active {
    background: transparent !important;
    transform: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.armory-slot:focus {
    outline: none;
    background: transparent !important;
}

.armory-slot:focus-visible {
    outline: 1px solid rgba(255, 225, 166, 0.85);
    outline-offset: 1px;
    background: transparent !important;
}

.armory-slot__status {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 1.4rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 10, 16, 0.82);
    color: rgba(232, 237, 245, 0.92);
    font-family: 'Orbitron', monospace;
    font-size: 0.64rem;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.armory-slot__status--missing {
    color: rgba(156, 164, 176, 0.82);
    background: rgba(18, 20, 24, 0.96);
    border-color: rgba(72, 78, 88, 0.65);
}

.armory-slot.is-missing {
    border-color: rgba(78, 84, 94, 0.62) !important;
    background: rgba(60, 66, 76, 0.48) !important;
    box-shadow:
        inset 0 0 0 2px rgba(18, 20, 24, 0.42),
        0 4px 14px rgba(0, 0, 0, 0.12) !important;
    opacity: 0.34 !important;
    filter: grayscale(1) brightness(0.38) saturate(0) contrast(0.9) !important;
}

.armory-slot.is-missing:hover {
    border-color: rgba(78, 84, 94, 0.62) !important;
    box-shadow:
        inset 0 0 0 2px rgba(18, 20, 24, 0.42),
        0 4px 14px rgba(0, 0, 0, 0.12) !important;
    filter: grayscale(1) brightness(0.38) saturate(0) contrast(0.9) !important;
}

.armory-slot.rarity-common {
    border-color: rgba(158, 158, 158, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 2px rgba(158, 158, 158, 0.22),
        0 0 14px rgba(158, 158, 158, 0.3),
        0 12px 28px rgba(0, 0, 0, 0.26);
}

.armory-slot.rarity-uncommon {
    border-color: rgba(0, 255, 102, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 2px rgba(0, 255, 102, 0.2),
        0 0 16px rgba(0, 255, 102, 0.34),
        0 12px 28px rgba(0, 0, 0, 0.26);
}

.armory-slot.rarity-rare {
    border-color: rgba(0, 162, 255, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 2px rgba(0, 162, 255, 0.2),
        0 0 17px rgba(0, 162, 255, 0.34),
        0 12px 28px rgba(0, 0, 0, 0.26);
}

.armory-slot.rarity-epic {
    border-color: rgba(161, 0, 255, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 2px rgba(161, 0, 255, 0.2),
        0 0 18px rgba(161, 0, 255, 0.34),
        0 12px 28px rgba(0, 0, 0, 0.26);
}

.armory-slot.rarity-legendary {
    border-color: rgba(255, 208, 0, 0.95);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 2px rgba(255, 208, 0, 0.24),
        0 0 19px rgba(255, 208, 0, 0.36),
        0 12px 28px rgba(0, 0, 0, 0.26);
}

.armory-slot.rarity-wild {
    border-color: rgba(255, 42, 42, 0.95);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 2px rgba(255, 42, 42, 0.22),
        0 0 20px rgba(255, 42, 42, 0.42),
        0 12px 28px rgba(0, 0, 0, 0.26);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
    justify-content: center;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(10, 14, 24, 0.7);
    border: 1px solid rgba(185, 192, 205, 0.2);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.legend-item:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 237, 245, 0.28);
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.legend-dot.common { background: var(--common, #8fa3bf); box-shadow: 0 0 8px rgba(143, 163, 191, 0.45); }
.legend-dot.uncommon { background: var(--uncommon, #00c47a); box-shadow: 0 0 8px rgba(0, 196, 122, 0.45); }
.legend-dot.rare { background: var(--rare, #4d9eff); box-shadow: 0 0 8px rgba(77, 158, 255, 0.45); }
.legend-dot.epic { background: var(--epic, #b060ff); box-shadow: 0 0 8px rgba(176, 96, 255, 0.45); }
.legend-dot.legendary { background: var(--legendary, #f5c842); box-shadow: 0 0 8px rgba(245, 200, 66, 0.45); }
.legend-dot.wild { background: var(--wild, #ff6030); box-shadow: 0 0 8px rgba(255, 96, 48, 0.45); }
.legend-dot.unowned { background: #9098a8; box-shadow: none; }

.wardrobe-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.wardrobe-modal.is-open {
    display: flex;
}

.wardrobe-modal-card {
    width: min(100%, 520px);
    background: linear-gradient(180deg, rgba(15, 19, 24, 0.96), rgba(10, 14, 20, 0.96));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
}

.wardrobe-modal-close {
    position: absolute;
    top: .6rem;
    right: .8rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 960px) {
    .armory-slot {
        border-radius: 12px;
    }

    .armory-slot__status {
        top: 6px;
        right: 6px;
        min-width: 1.9rem;
        height: 1.2rem;
        padding: 0 0.35rem;
        font-size: 0.54rem;
    }
}
