/* 건스미스 및 주간 메타 티어표 전용 스타일 */
:root {
    --mw-neon-orange: #ff9800;
    --mw-neon-orange-dim: rgba(255, 152, 0, 0.14);
}
.text-neon-orange {
    color: var(--mw-neon-orange) !important;
}
/* 발리스틱 어소리티 배너 */
.ballistic-authority-banner {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.12) 0%, rgba(20, 24, 30, 0.95) 100%);
    border: 1px solid var(--mw-neon-orange);
    border-left: 5px solid var(--mw-neon-orange);
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.12);
}
.badge-ballistic-tag {
    background: var(--mw-neon-orange);
    color: #000;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 2px;
}
/* Gunny 툴바 */
.gunny-toolbar {
    background: #14171d;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.1);
}
.btn-gunny-preset {
    background: #1e232d;
    border: 1px solid rgba(255, 152, 0, 0.35);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 2px;
    transition: all 0.2s ease;
}
.btn-gunny-preset:hover {
    background: #2a313e;
    border-color: var(--mw-neon-orange);
    color: var(--mw-neon-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}
.gunny-feedback-toast {
    animation: fadeInToast 0.3s ease-in-out;
}
@keyframes fadeInToast {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
/* 카테고리 필터 필 */
.weapon-category-tabs .cat-pill {
    background: #14181f;
    border: 1px solid var(--mw-border);
    color: var(--mw-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.weapon-category-tabs .cat-pill:hover {
    border-color: var(--mw-neon-orange);
    color: #fff;
}
.weapon-category-tabs .cat-pill.active {
    background: var(--mw-neon-orange);
    border-color: var(--mw-neon-orange);
    color: #000;
    font-weight: 800;
}
/* 무기 퀵 셀렉터 알약 */
.weapon-picker-pill {
    background: #12161e;
    border: 1px solid var(--mw-border);
    color: #b0bccb;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 2px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}
.weapon-picker-pill:hover,
.weapon-picker-pill.active {
    background: #1e2838;
    color: #ffffff;
    border-color: var(--mw-neon-orange);
}
.weapon-picker-pill.active {
    border-left: 3px solid var(--mw-neon-orange);
    font-weight: 700;
}
/* 현재 무기 디스플레이 패널 */
.active-weapon-display {
    background: #151922;
    border: 1px solid var(--mw-border);
    border-left: 3px solid var(--mw-neon-orange);
}
.badge-tier-pill {
    background: #ff5722;
    color: #fff;
    font-family: monospace;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 2px;
}
.badge-role-tag {
    background: #1f2733;
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 2px;
}
.internal-seo-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}
.internal-seo-link:hover {
    color: var(--mw-neon-orange);
    text-decoration: underline;
}
/* 8대 스탯 게이지 바 */
.stats-matrix {
    background: #11141a;
    border: 1px solid var(--mw-border);
}
.progress-bar-neon {
    background: linear-gradient(90deg, #ff9800 0%, #00e676 100%) !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-bar-ttk {
    background: linear-gradient(90deg, #00e676 0%, #ff9800 100%) !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-diff {
    font-size: 0.75rem;
    margin-left: 4px;
    animation: pulseDiff 0.3s ease-in-out;
}
.stat-diff.positive { color: #00e676; font-weight: bold; }
.stat-diff.negative { color: #ff5252; font-weight: bold; }
@keyframes pulseDiff {
    0% { transform: scale(0.85); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
/* 5개 일반 슬롯 카드 */
.slot-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #0f1319;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 2px;
    transition: all 0.2s ease;
}
.slot-box.filled {
    border-color: var(--mw-neon-orange);
    background: rgba(255, 152, 0, 0.25);
    color: var(--mw-neon-orange);
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.4);
}
.slot-card {
    background: #141820;
    border: 1px solid var(--mw-border);
    border-radius: 2px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.slot-card:hover {
    border-color: var(--mw-neon-orange);
    background: #1a202a;
    transform: translateY(-2px);
}
.slot-card.equipped {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08) 0%, #151a23 100%);
    border-color: var(--mw-neon-orange);
    border-left: 3px solid var(--mw-neon-orange);
}
.slot-title {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--mw-text-muted);
}
.slot-badge {
    font-family: monospace;
    font-size: 0.65rem;
    color: #8b97a8;
}
.slot-item-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.slot-item-effect {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--mw-tactical-green);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.slot-card-notice {
    background: rgba(255, 152, 0, 0.06);
    border: 1px dashed rgba(255, 152, 0, 0.3);
    border-radius: 2px;
}
/* 에이펙스 전용 슬롯 카드 */
.apex-slot-container {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.12) 0%, #12151c 100%);
    cursor: pointer;
    transition: all 0.2s ease;
}
.apex-slot-container:hover {
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
    transform: translateY(-2px);
}
.badge-apex-gold {
    background: linear-gradient(90deg, #ff9800 0%, #ffd000 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 2px;
}
/* 티어 카드 스타일 */
.tier-group {
    background: #14171e;
    border: 1px solid var(--mw-border);
    border-radius: 2px;
}
.tier-s .tier-header { border-left: 4px solid var(--mw-neon-orange); }
.tier-a .tier-header { border-left: 4px solid var(--mw-tactical-green); }
.tier-b .tier-header { border-left: 4px solid #ffc107; }
.tier-c .tier-header { border-left: 4px solid #94a3b8; }
.tier-letter {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: monospace;
    width: 28px;
    line-height: 1;
}
.tier-build-card {
    background: #101319;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 10px;
    border-radius: 2px;
    transition: all 0.15s ease;
}
.tier-build-card:hover {
    border-color: rgba(255, 152, 0, 0.4);
    background: #161b24;
}
.btn-upvote {
    background: #1c222c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #8b97a8;
    font-family: monospace;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 2px;
    transition: all 0.15s ease;
}
.btn-upvote:hover {
    color: #00e676;
    border-color: #00e676;
}
.btn-upvote.voted {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border-color: #00e676;
    font-weight: bold;
}
/* 모달 스타일 */
.tactical-modal-content {
    background: #141820;
    border: 1px solid var(--mw-border);
    color: #fff;
}
.picker-item-card {
    background: #0f131a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.picker-item-card:hover {
    border-color: var(--mw-neon-orange);
    background: #18202d;
    transform: translateY(-2px);
}
/* ====================================================================== */
/* 2026 MW4 공식 인게임 규격 건스미스 1:1 오버레이 스테이지 CSS */
/* ====================================================================== */
.gunsmith-fullscreen-station {
    background: #0d0f12;
    overflow: hidden;
    position: relative;
}
.gunsmith-stage-canvas {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: 520px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.45) 0%, rgba(10, 12, 16, 0.98) 80%), #0d0f12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}
.stage-weapon-render-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 900px;
    pointer-events: none;
    opacity: 0.95;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.8));
}
.stage-weapon-img {
    max-height: 400px;
    object-fit: contain;
    user-select: none;
}
.stage-overlay-topleft {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 5;
}
.stage-cat-tag {
    font-size: 1.1rem;
    font-weight: 800;
    color: #4ade80;
    letter-spacing: 1px;
}
.stage-unlock-tag {
    font-size: 0.78rem;
    color: #94a3b8;
}
.stage-overlay-bottomright {
    position: absolute;
    bottom: 16px;
    right: 20px;
    text-align: right;
    z-index: 5;
    font-family: var(--font-mono, monospace);
    pointer-events: none;
}
.gunny-mark {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #f1f5f9;
}
.gunny-slogan {
    font-size: 0.75rem;
    color: #64748b;
}
/* 9개 슬롯 노드 인터페이스 핀 (인게임 절대 위치 배치) */
.slot-pin-node {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.slot-pin-node:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 0 10px rgba(255, 179, 0, 0.7));
}
.slot-pin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 4px;
    color: #e2e8f0;
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.pin-plus-icon {
    font-size: 0.7rem;
    color: #ffb300;
}
.pin-label {
    font-weight: 600;
}
/* 장착 시 노드 카드 */
.slot-pin-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.9);
    border: 1.5px solid #ffb300;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(255, 179, 0, 0.4);
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
}
.pin-card-name {
    color: #ffffff;
    font-weight: 700;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pin-card-price {
    font-size: 0.72rem;
    font-weight: 600;
}
.pin-card-del {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 1rem;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
}
.pin-card-del:hover {
    color: #f87171;
}
/* 슬롯 위치 지정 (인게임 스크린샷 1:1 싱크) */
.pin-barrel       { top: 18%; left: 8%; }
.pin-muzzle       { top: 44%; left: 6%; }
.pin-underbarrel  { top: 60%; left: 28%; }
.pin-laser        { top: 6%;  left: 28%; }
.pin-optic        { top: 6%;  left: 62%; }
.pin-stock        { top: 16%; left: 84%; }
.pin-reargrip     { top: 42%; left: 86%; }
.pin-ammo         { top: 60%; left: 78%; }
.pin-magazine     { top: 72%; left: 56%; }
.pin-bolt         { top: 6%;  left: 45%; }
.pin-guard        { top: 54%; left: 14%; }
.pin-pad          { top: 52%; left: 84%; }
.pin-trigger      { top: 56%; left: 16%; }
.pin-cylinder     { top: 20%; left: 84%; }
/* 에이펙스 전용 마름모 버튼 (하단 중앙) */
.pin-apex {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) !important;
}
.pin-apex:hover {
    transform: translateX(-50%) !important;
    filter: drop-shadow(0 0 14px rgba(255, 179, 0, 0.85));
}
.apex-diamond-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.85);
    border: 1.5px solid #ffb300;
    padding: 6px 14px;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.pin-apex:hover .apex-diamond-btn {
    transform: scale(1.04);
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.6);
    border-color: #ffd54f;
}
.diamond-icon {
    font-size: 0.9rem;
}
.apex-pin-label {
    font-family: var(--font-mono, monospace);
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffb300;
}
/* 인게임 규격 네모 슬롯 박스 (부속 0/5) */
.slot-square-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    transition: all 0.2s ease;
}
.slot-square-box.active {
    background: #4ade80;
    border-color: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}
.apex-hud-diamond {
    color: #ffb300;
    font-size: 1rem;
    font-weight: 900;
}
/* 5대 스탯 트랙 및 게이지 바 */
.ingame-stat-bars .stat-row {
    margin-bottom: 4px;
}
.ingame-stat-bars .stat-name {
    width: 60px;
    font-size: 0.75rem;
    color: #94a3b8;
}
.ingame-stat-bars .stat-track,
.stat-track {
    flex-grow: 1;
    height: 7px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.ingame-stat-bars .stat-fill,
.stat-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #e2e8f0;
    transition: width 0.25s ease;
}
.stat-delta-pos {
    position: absolute;
    top: 0;
    height: 100%;
    background: #00e676;
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.5);
    transition: left 0.25s ease, width 0.25s ease;
}
.stat-delta-neg {
    position: absolute;
    top: 0;
    height: 100%;
    background: #ff5252;
    box-shadow: 0 0 6px rgba(255, 82, 82, 0.5);
    transition: left 0.25s ease, width 0.25s ease;
}
.ingame-stat-bars .stat-val,
.preview-stat-val {
    min-width: 72px;
    text-align: right;
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}
/* 모달 인게임 부속 카드 */
.picker-part-item {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.picker-part-item:hover, .picker-part-item.is-selected {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
}
.picker-part-item.is-equipped {
    border-color: #ffb300;
    background: rgba(255, 179, 0, 0.1);
}
/* 반응형 모바일/태블릿 리플로우 지원 */
@media (max-width: 991px) {
    .gunsmith-stage-canvas {
        height: auto;
        min-height: 380px;
        padding: 50px 10px 70px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .stage-weapon-render-box {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin: 20px 0;
    }
    .slot-pin-node {
        position: static !important;
        display: inline-block;
        margin: 3px;
    }
    .pin-apex {
        position: static !important;
        transform: none !important;
        margin: 10px 0;
    }
}
