/* Экран арсенала */
#arsenal-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* Убираем паддинг у контейнера, он будет внутри */
    background: radial-gradient(circle at center, #1a1a2e 0%, #09090b 100%);
    z-index: 20; /* Поверх меню */
}

/* Закрепленная шапка */
#arsenal-screen .header {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    flex-shrink: 0; /* Чтобы шапка не сжималась */
}

/* Скроллящаяся область */
.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    padding-bottom: 100px; /* Отступ снизу, чтобы последнее оружие не перекрывалось */
    box-sizing: border-box;
    overflow-y: auto; /* Включаем скролл */
    flex-grow: 1; /* Занимаем все оставшееся место */
}

/* Стили скроллбара (красивый тонкий) */
.arsenal-grid::-webkit-scrollbar {
    width: 6px;
}
.arsenal-grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.arsenal-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Карточка оружия */
.weapon-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

/* Эффект при наведении (на ПК) */
.weapon-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
}

/* Если выбрано (Equipped) */
.weapon-card.selected {
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    background: rgba(0, 242, 255, 0.05);
}

/* Если не куплено (Locked) */
.weapon-card.locked {
    opacity: 0.7;
}

.weapon-preview {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.weapon-preview img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.weapon-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.2;
}

.weapon-price {
    font-size: 14px;
    color: #f1c40f;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 0 5px rgba(241, 196, 15, 0.5);
}

/* Кнопки */
.btn-action {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
}

.btn-buy {
    background: linear-gradient(45deg, #f1c40f, #d35400);
    color: #000;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}
.btn-buy:active { transform: scale(0.95); }

.btn-equip {
    background: linear-gradient(45deg, #00f2ff, #0099ff);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}
.btn-equip:active { transform: scale(0.95); }

.btn-equipped {
    background: transparent;
    border: 1px solid #00f2ff;
    color: #00f2ff;
    cursor: default;
    opacity: 0.8;
}