/*
 * Armory field ledger, visual revision 3.
 * Palette-only reskin: routes, DOM order, data, filters and SSR copy are unchanged.
 */

.armory-index-wrapper,
.armory-wrapper {
    --armory-canvas: #020617;
    --armory-panel: #0b1120;
    --armory-surface: #0f172a;
    --armory-raised: #111827;
    --armory-line: #334155;
    --armory-line-soft: rgba(148, 163, 184, 0.17);
    --armory-text: #f8fafc;
    --armory-soft: #cbd5e1;
    --armory-muted: #94a3b8;
    --armory-dim: #718096;
    --armory-gold: #ffbc05;
    --armory-gold-soft: #ffdc63;
    --armory-cyan: #38bdf8;
    --armory-teal: #39c6b4;
    --armory-red: #f87171;
    color: var(--armory-soft);
    font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

body .armory-index-wrapper {
    position: relative;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--armory-line);
    border-radius: 10px;
    background:
        linear-gradient(rgba(56, 189, 248, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.025) 1px, transparent 1px),
        var(--armory-panel);
    background-size: 36px 36px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.armory-index-wrapper::before,
.armory-wrapper::before {
    content: "";
    position: absolute;
    z-index: 5;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--armory-gold), var(--armory-teal) 62%, transparent);
    pointer-events: none;
}

.armory-index-wrapper .build-intro-section {
    position: relative;
    border: 1px solid var(--armory-line);
    border-radius: 10px;
    background:
        radial-gradient(circle at 88% 16%, rgba(255, 188, 5, 0.12), transparent 30%),
        linear-gradient(115deg, rgba(57, 198, 180, 0.055), transparent 42%),
        var(--armory-surface);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.armory-index-wrapper .build-intro-text h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--armory-text);
    font-size: clamp(1.8rem, 3.2vw, 2.35rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.armory-index-wrapper .build-intro-text h1 i {
    color: var(--armory-gold);
}

.armory-index-wrapper .build-intro-text p {
    color: var(--armory-soft);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.72;
    text-align: left;
}

.armory-index-wrapper .build-intro-image {
    border: 1px solid var(--armory-line);
    border-radius: 8px;
    background: var(--armory-canvas);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.armory-index-wrapper .armory-filter-bar {
    border-bottom: 1px solid var(--armory-line);
}

.armory-index-wrapper .armory-subtitle h2 {
    color: var(--armory-text);
    font-size: 20px;
    line-height: 1.35;
}

.armory-index-wrapper .armory-subtitle p {
    color: var(--armory-muted);
    line-height: 1.55;
}

.armory-index-wrapper .filter-item label,
.armory-wrapper .filter-group label {
    color: var(--armory-muted);
    font-size: 12px;
}

.armory-index-wrapper .filter-item select,
.armory-wrapper .filter-group select {
    min-height: 42px;
    border: 1px solid var(--armory-line);
    border-radius: 8px;
    background-color: #07101e;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 11px top 50%;
    background-size: 10px auto;
    color: var(--armory-text);
}

.armory-index-wrapper .filter-item select:hover,
.armory-wrapper .filter-group select:hover {
    border-color: rgba(255, 188, 5, 0.58);
}

.armory-index-wrapper .filter-item select:focus-visible,
.armory-wrapper .filter-group select:focus-visible,
.armory-index-wrapper a:focus-visible,
.armory-wrapper a:focus-visible,
.armory-index-wrapper button:focus-visible,
.armory-wrapper button:focus-visible {
    outline: 2px solid var(--armory-gold);
    outline-offset: 2px;
}

.armory-index-wrapper .empty-message {
    border: 1px dashed var(--armory-line);
    background: rgba(2, 6, 23, 0.54);
    color: var(--armory-soft);
}

.armory-index-wrapper .empty-message i {
    color: var(--armory-gold);
}

.armory-index-wrapper .category-card {
    height: 150px;
    border: 1px solid var(--armory-line);
    border-radius: 8px;
    background:
        linear-gradient(100deg, rgba(255, 188, 5, 0.035), transparent 38%),
        var(--armory-raised);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.armory-index-wrapper .category-card:hover {
    border-color: rgba(255, 188, 5, 0.7);
    background:
        linear-gradient(100deg, rgba(255, 188, 5, 0.07), rgba(57, 198, 180, 0.035) 65%),
        #152238;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.armory-index-wrapper .card-title {
    color: var(--armory-text);
    font-size: 16px;
}

.armory-index-wrapper .card-desc {
    max-width: 82%;
    color: var(--armory-muted);
    font-size: 12px;
    line-height: 1.5;
}

.armory-index-wrapper .card-badges {
    border-top: 1px solid var(--armory-line-soft);
    background: rgba(2, 6, 23, 0.56);
}

.armory-index-wrapper .badge,
.armory-wrapper .banner-badge {
    border: 1px solid var(--armory-line);
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--armory-soft);
}

.armory-index-wrapper .guide-section {
    border: 1px solid var(--armory-line) !important;
    border-radius: 8px !important;
    background: var(--armory-surface) !important;
    color: var(--armory-soft) !important;
}

.armory-index-wrapper .guide-section h2 {
    border-bottom-color: var(--armory-line) !important;
    color: var(--armory-text) !important;
}

.armory-index-wrapper .guide-section h3 {
    color: var(--armory-gold) !important;
}

.armory-index-wrapper .guide-section p,
.armory-index-wrapper .guide-section li {
    color: var(--armory-soft);
}

.armory-index-wrapper .armory-mobile-intro-toggle {
    border-color: var(--armory-line);
    background: rgba(255, 188, 5, 0.08);
    color: var(--armory-gold-soft);
}

/* Detail workspace */
body .armory-wrapper {
    position: relative;
    border: 1px solid var(--armory-line);
    border-radius: 10px;
    background: var(--armory-panel);
    color: var(--armory-soft);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.armory-wrapper .category-banner {
    border-bottom: 1px solid var(--armory-line);
    background:
        radial-gradient(circle at 86% 24%, rgba(56, 189, 248, 0.13), transparent 28%),
        linear-gradient(105deg, rgba(255, 188, 5, 0.08), transparent 42%),
        var(--armory-surface);
}

.armory-wrapper .banner-title {
    color: var(--armory-text);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.armory-wrapper .banner-desc {
    color: var(--armory-soft);
    font-size: 14px;
    line-height: 1.65;
}

.armory-wrapper .banner-bg-icon {
    color: rgba(56, 189, 248, 0.065);
}

.armory-wrapper .armory-top-bar {
    border-bottom: 1px solid var(--armory-line);
    background: rgba(2, 6, 23, 0.54);
}

.armory-wrapper .selected-build-info {
    border-left-color: var(--armory-line);
}

.armory-wrapper .selected-build-ko {
    color: var(--armory-text);
}

.armory-wrapper .selected-build-en {
    color: var(--armory-muted);
}

.armory-wrapper .armory-main {
    background: var(--armory-panel);
}

.armory-wrapper .left-panel {
    border-right-color: var(--armory-line);
    background: #07101e;
    scrollbar-color: rgba(255, 188, 5, 0.55) transparent;
}

.armory-wrapper .left-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 188, 5, 0.5);
}

.armory-wrapper .build-item {
    border: 1px solid var(--armory-line);
    background: var(--armory-raised);
}

.armory-wrapper .build-item:hover {
    border-color: rgba(255, 188, 5, 0.5);
    background: #152238;
}

.armory-wrapper .build-item.active {
    border-color: rgba(255, 188, 5, 0.78);
    background:
        linear-gradient(90deg, rgba(255, 188, 5, 0.13), rgba(56, 189, 248, 0.055)),
        var(--armory-surface);
    box-shadow: inset 3px 0 var(--armory-gold), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.armory-wrapper .build-item.active .ko,
.armory-wrapper .build-title .ko {
    color: var(--armory-text);
}

.armory-wrapper .build-item.active .en,
.armory-wrapper .build-title .en {
    color: var(--armory-muted);
}

.armory-wrapper .build-title,
.armory-wrapper .build-item.active .build-title {
    border-bottom-color: var(--armory-line-soft);
}

.armory-wrapper .build-icons img {
    border: 1px solid var(--armory-line);
    background: var(--armory-canvas);
}

.armory-wrapper .right-panel {
    background:
        linear-gradient(rgba(148, 163, 184, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.018) 1px, transparent 1px),
        var(--armory-panel);
    background-size: 32px 32px;
}

.armory-wrapper .section-header .title-text,
.armory-wrapper .section-header span.title-text {
    color: var(--armory-text);
    font-size: 16px;
}

.armory-wrapper .section-header .line {
    height: 1px;
    background: linear-gradient(90deg, var(--armory-line), transparent);
}

.armory-wrapper .share-btn {
    min-height: 40px;
    border: 1px solid var(--armory-line);
    border-radius: 7px;
    background: var(--armory-raised);
    color: var(--armory-soft);
    white-space: nowrap;
}

.armory-wrapper .share-btn:hover {
    border-color: var(--armory-gold);
    background: rgba(255, 188, 5, 0.09);
    color: var(--armory-gold-soft);
}

.armory-wrapper .last-updated,
.armory-wrapper .armory-cost-meta,
.armory-wrapper .armory-cost-row {
    color: var(--armory-muted);
    font-size: 12px;
}

.armory-wrapper .badge-high {
    border-color: rgba(248, 113, 113, 0.58);
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
}

.armory-wrapper .badge-mid {
    border-color: rgba(255, 188, 5, 0.45);
    background: rgba(255, 188, 5, 0.08);
    color: var(--armory-gold-soft);
}

.armory-wrapper .gear-slot {
    border: 1px solid var(--armory-line);
    border-radius: 6px;
    background: var(--armory-canvas);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.05);
}

.armory-wrapper .skill-row {
    color: var(--armory-soft);
}

.armory-wrapper .skill-icon {
    border-color: var(--armory-line);
    background: var(--armory-canvas);
}

.armory-wrapper .desc-wrapper,
.armory-wrapper .armory-cost-panel {
    border: 1px solid var(--armory-line);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    color: var(--armory-soft);
}

.armory-wrapper .desc-wrapper h4,
.armory-wrapper .armory-cost-title {
    color: var(--armory-text);
}

.armory-wrapper .desc-item b {
    color: #fca5a5;
}

.armory-wrapper .desc-item.highlighted {
    border-left-color: var(--armory-red);
    background: rgba(248, 113, 113, 0.09);
}

.armory-wrapper .armory-cost-total {
    color: var(--armory-gold-soft);
    font-variant-numeric: tabular-nums;
}

.armory-wrapper .armory-cost-row span:last-child {
    color: var(--armory-text);
    font-variant-numeric: tabular-nums;
}

.armory-wrapper .armory-trust-panel,
.armory-wrapper .armory-category-guide,
.armory-wrapper > .guide-section {
    border-top: 1px solid var(--armory-line) !important;
    background: var(--armory-surface) !important;
    color: var(--armory-soft) !important;
}

.armory-wrapper .armory-trust-panel h2,
.armory-wrapper .armory-category-guide h2,
.armory-wrapper > .guide-section h2 {
    color: var(--armory-text) !important;
}

.armory-wrapper .armory-trust-lead,
.armory-wrapper .armory-trust-card p,
.armory-wrapper .armory-category-guide p,
.armory-wrapper .armory-category-guide li,
.armory-wrapper > .guide-section p,
.armory-wrapper > .guide-section li {
    color: var(--armory-soft) !important;
}

.armory-wrapper .armory-trust-card,
.armory-wrapper .armory-snapshot-card {
    border: 1px solid var(--armory-line) !important;
    border-radius: 8px;
    background: var(--armory-raised) !important;
}

.armory-wrapper .armory-trust-card h3,
.armory-wrapper .armory-snapshot-card h4 {
    color: var(--armory-text) !important;
}

.armory-wrapper .armory-trust-action {
    min-height: 40px;
    border: 1px solid var(--armory-line);
    border-radius: 7px;
    background: var(--armory-raised);
    color: var(--armory-soft);
}

.armory-wrapper .armory-trust-action:hover {
    border-color: rgba(255, 188, 5, 0.7);
    background: rgba(255, 188, 5, 0.08);
    color: var(--armory-gold-soft);
}

.armory-wrapper .armory-category-guide h3,
.armory-wrapper > .guide-section h3 {
    color: var(--armory-gold) !important;
}

@media (min-width: 901px) {
    .armory-wrapper .detail-top > div:first-child {
        flex: 0 0 280px;
        min-width: 0;
    }

    .armory-wrapper .detail-top > div:first-child .section-header {
        display: grid;
        grid-template-columns: auto minmax(16px, 1fr) auto auto;
        gap: 8px;
    }

    .armory-wrapper .detail-top > div:first-child .last-updated {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0;
    }

    .armory-wrapper .build-item.active::after {
        border-color: transparent transparent transparent var(--armory-gold);
    }
}

@media (max-width: 900px) {
    .armory-wrapper .left-panel {
        border-bottom: 1px solid var(--armory-line);
    }

    .armory-wrapper .selected-build-info {
        border-top-color: var(--armory-line);
    }
}

@media (max-width: 768px) {
    body .armory-index-wrapper {
        padding: 12px;
        border-width: 1px;
    }

    .armory-index-wrapper .build-intro-section {
        padding: 16px;
    }

    .armory-index-wrapper .build-intro-text h1 {
        font-size: 1.75rem;
    }

    .armory-index-wrapper .build-intro-text p {
        font-size: 13px;
    }

    .armory-index-wrapper .category-card {
        min-height: 148px;
        height: auto;
    }

    .armory-index-wrapper .filter-item select,
    .armory-wrapper .filter-group select {
        min-height: 44px;
    }
}

@media (max-width: 600px) {
    body .armory-wrapper {
        border-width: 1px;
    }

    .armory-wrapper .category-banner {
        padding: 20px 16px 18px;
    }

    .armory-wrapper .banner-title {
        font-size: 1.7rem;
    }

    .armory-wrapper .banner-desc {
        font-size: 13px;
    }

    .armory-wrapper .right-panel {
        padding: 16px 13px;
    }

    .armory-wrapper .armory-trust-panel,
    .armory-wrapper .armory-category-guide,
    .armory-wrapper > .guide-section {
        padding: 20px 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .armory-index-wrapper *,
    .armory-wrapper * {
        transition: none !important;
    }

    .armory-index-wrapper .category-card:hover {
        transform: none;
    }
}
